You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <ji...@apache.org> on 2005/09/19 06:56:58 UTC

[jira] Commented: (VELOCITY-206) The Velocity Plugins for eclipse throw an npe when trying to access a template.

    [ http://issues.apache.org/jira/browse/VELOCITY-206?page=comments#action_12329761 ] 

Will Glass-Husain commented on VELOCITY-206:
--------------------------------------------

Hi Sachin,

Just going through some old bugs.  Did you ever get this to work?

WILL

> 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
>         Type: Bug
>   Components: Source
>     Versions: 1.3
>  Environment: Operating System: Windows XP
> Platform: PC
>     Reporter: Sachin Patel
>     Assignee: Sachin Patel
>     Priority: Critical

>
> 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: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org