You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <ji...@apache.org> on 2006/11/05 19:49:18 UTC

[jira] Resolved: (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=all ]

Henning Schmiedehausen resolved VELOCITY-206.
---------------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Henning Schmiedehausen

Hm, there are now a number of plugins using Velocity for Eclipse and I cannot reproduce that without some demo plugin code. Might actually be only an Eclipse 2.x problem as Eclipse 3.x really changed lots of the internal architecture. Please reopen if you can give us more infos / this still happens with 1.4 or the 1.5 betas. Until then I resolve as not reproducable.

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