velocity.log Lock Error
hi. I'm experiencing a Lock error on the velocity.log file. ERROR 2004-07-16 13:18:41,783 - Checks.printCheck:? - Error while Printing check java.lang.Exception: Unable to configure AvalonLogSystem : java.io.FileNotFoundException: D:\Tomcat4.1\bin\velocity.log (The process cannot access the file because it is being used by another process) I am experiencing this error when generating the report from multiple terminals, accesing the application from a common server. Previously, I was setting runtime.log = velocity.log in the velocity.properties file. I commented-out the line and deleted the velocity.log file. However, generating a velocity based template re-creates the file. Is there any way through which I can disable the creation/access/logging-into of this file? Does it make any difference if I don't use this file for logging of velocity errors/process ? thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
too many files open error
Hi. i am experiencing a problem when generating a velocity template. suppose i am printing it multiple times, over and over. what happens is that after a very large number, something like after printing the same template over and over 18,000 plus times, the error thrown on Tomcat is that : java.io.IOException: Too many open files java.io.IOException: Too many open files at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at java.io.FileInputStream.init(FileInputStream.java:66) at org.apache.commons.collections.ExtendedProperties.init(ExtendedPro erties.java:470) at org.apache.commons.collections.ExtendedProperties.init(ExtendedPro erties.java:452) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.jav :473) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93) could it be that velocity is not releasing the handle of the template passed to it ? any suggestions or resolutions ? thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with velocity in Excel -- help
Hi. I am experiencing a problem when using the following code in Excel : #foreach ($fnc in $fncmap) $fnc.Name #end Using the above code in a .rtf file generates correctly, even with the new-line indentations. However, when I place these lines in seperate cells in an Excel sheet, like so : it generates an error : org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.vel ocity.runtime.parser.TokenMgrError: Lexical error at line 1, column 7. Encounte red: EOF after : at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 95) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:19 9) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) Report: ERROR endElement() add org.apache.velocity.exception.ParseErrorExcepti on: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical err or at line 1, column 7. Encountered: EOF after : any ideas of this ?? my guess is that it is generating an error since the code-tags have been placed in seperate cells. If I write it as a whole in a single cell, it generates perfectly, but all the values are concatenated and shown in that individual cell. I wish to show he values row-by-row. Any ideas ?? thx. Microsoft Excel Worksheet.xls Description: application/microsoft-ole-object - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with velocity in Excel -- help
Thx. That was gonna be the second option, which looks like to have been made the first option :) -Original Message- From: Simon Christian [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 9:37 PM To: Velocity Users List Subject: Re: problem with velocity in Excel -- help Wow.. To get this straight, you've created a 'template' within Excel, saved it as a file and are now trying to render it through Velocity? I think that's a real non-starter. Excel is a binary format, and Velocity doesn't really 'do' binary (it may be possible but hardly the norm). Try opening your Excel file in a text editor to get a feel of what it looks like to Velocity. Perhaps you'd be better off generating a CSV or SYLK file instead, or even HTML/XML but forcing the browser to open it in Excel. - simon Saad Zia wrote: Hi. I am experiencing a problem when using the following code in Excel : #foreach ($fnc in $fncmap) $fnc.Name #end Using the above code in a .rtf file generates correctly, even with the new-line indentations. However, when I place these lines in seperate cells in an Excel sheet, like so : it generates an error : org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.vel ocity.runtime.parser.TokenMgrError: Lexical error at line 1, column 7. Encounte red: EOF after : at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 95) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:19 9) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ssConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java :584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) Report: ERROR endElement() add org.apache.velocity.exception.ParseErrorExcepti on: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical err or at line 1, column 7. Encountered: EOF after : any ideas of this ?? my guess is that it is generating an error since
multiple sheets in Excel workbook
hi. I have velocity-variables coded onto multiple sheets in the same workbook. when i execute and generate the report, only the first sheet gets executed while the remaining sheets show the velocity-variables as they were put there in the template. since the code on all the sheets is the same, if the first sheet gets executed, then so should the rest. does velocity support multiple sheets in the same workbook ? or am i doing something wrong ? thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]