[ http://issues.apache.org/jira/browse/VELOCITY-206?page=all ]
Henning Schmiedehausen updated VELOCITY-206: -------------------------------------------- Bugzilla Id: (was: 23114) Component/s: Engine (was: Source) > The Velocity Plugins for eclipse throw an npe when trying to access a > template. > ------------------------------------------------------------------------------- > > Key: VELOCITY-206 > URL: http://issues.apache.org/jira/browse/VELOCITY-206 > Project: Velocity > Issue Type: Bug > Components: Engine > Affects Versions: 1.3 > Environment: Operating System: Windows XP > Platform: PC > Reporter: Sachin Patel > Priority: Minor > > The Velocity Plugins for eclipse throw an npe when trying to access a > template. > I am an IBM developer working on a eclipsed based project that uses velocity. > I have eclipse installed with a my project plugins along with the velocity > plugins. When I startup up eclipse and my plugins are invoked, I get an NPE > whenever I try to access a template. However if I start up eclipse, then use > the runtime workbench to startup another instance of eclipse then when i > invoke my plugins I do not get any errors. My code is correct and I am > initlizing the velocity engine correctly as well as it pointing to my > template > correctly. However velocity only seems to work when eclipse is started from > within a runtie workbench. Here is the exception I am getting: > java.lang.NullPointerException > at java.lang.Throwable.<init>(Throwable.java) > at java.lang.Throwable.<init>(Throwable.java) > at java.lang.NullPointerException.<init>(NullPointerException.java:63) > at org.apache.velocity.runtime.RuntimeInstance.getTemplate > (RuntimeInstance.java:814) > at org.apache.velocity.runtime.RuntimeInstance.getTemplate > (RuntimeInstance.java:796) > at org.apache.velocity.runtime.RuntimeSingleton.getTemplate > (RuntimeSingleton.java:337) > at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:512) > at com.ibm.ws.rd.taghandlers.EJBSourceHandler.endResource > (EJBSourceHandler.java:121) > at com.ibm.ws.rd.builders.AnnotationProcessor.visit > (AnnotationProcessor.java:149) > at com.ibm.ws.rd.builders.AnnotationProcessor.visit > (AnnotationProcessor.java:118) > at org.eclipse.core.internal.events.ResourceDelta.accept > (ResourceDelta.java) > at org.eclipse.core.internal.events.ResourceDelta.accept > (ResourceDelta.java) > at org.eclipse.core.internal.events.ResourceDelta.accept > (ResourceDelta.java) > at org.eclipse.core.internal.events.ResourceDelta.accept > (ResourceDelta.java) > at org.eclipse.core.internal.events.ResourceDelta.accept > (ResourceDelta.java) > at org.eclipse.core.internal.events.ResourceDelta.accept > (ResourceDelta.java) > at org.eclipse.core.internal.events.ResourceDelta.accept > (ResourceDelta.java:52) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]