velocity-user

[Prev] Thread [Next]  |  [Prev] Date [Next]

PANIC : Error configuring AvalonLogSystem : java.io.IOException: Cannot create a file when that file already exists Chetan Patil Tue Jan 08 18:01:30 2008

Hi ,

I am getting error in verlocity jar version 1.4 after some time.

Following code I am using ::

 public  String mergeTemplate(Object input, Reader template){

   VelocityEngine ve=new VelocityEngine();
   ve.init();
   VelocityContext context = new VelocityContext();
   context.put("hash", input);
   StringWriter sw = new StringWriter();
   ve.evaluate(context,sw,"VelocityInfo",template);
   sReturn = sw.toString().trim();
   template.close();
   template = null;
}

Please help out.

PANIC : Error configuring AvalonLogSystem : java.io.IOException: Cannot
create a file when that file already exists
PANIC : Error configuring AvalonLogSystem : java.io.IOException: Cannot
create a file when that file already exists
java.lang.Exception: Unable to configure AvalonLogSystem :
java.io.IOException: Cannot create a file when that file already exists
 at
org.apache.velocity.runtime.log.AvalonLogSystem.init(AvalonLogSystem.java:92
)
 at
org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:1
27)
 at
org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance
.java:553)
 at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:226)
 at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:80)


Thanks and Regards,

Chetan
============================================================================
===============================
"This transmission may contain legally privileged information and/or is
confidential and intended only for the use of the addressees named above.

Any review, retransmission, dissemination or other use of, or taking of any
action by persons or entities other than the intended recipient

is prohibited. If you have received this communication in error, please
immediately notify the sender and destroy the communication.

Any wrongful interception of this transmission is prohibited and punishable
under federal law."
============================================================================
===============================