[jira] Created: (TAPESTRY-328) When an engine implementation is missing Tapestry does not throw an appropriate error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (TAPESTRY-328) When an engine implementation is missing Tapestry does not throw an appropriate error

JIRA tapestry-dev@jakarta.apache.org
When an engine implementation is missing Tapestry does not throw an appropriate error
-------------------------------------------------------------------------------------

         Key: TAPESTRY-328
         URL: http://issues.apache.org/jira/browse/TAPESTRY-328
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 4.0    
 Environment: OS X 10.3.9, Tomcat 5.0.30, Powerbook g4
    Reporter: Warner Onstine


I had a custom engine implementation specified in my application file which did not exist. When I attempted to access the application I received the following error:
java.lang.NullPointerException
        org.apache.tapestry.services.impl.EngineFactoryImpl.constructNewEngineInstance(EngineFactoryImpl.java:90)
        $EngineFactory_103d20624a2.constructNewEngineInstance($EngineFactory_103d20624a2.java)
        $EngineFactory_103d20624a1.constructNewEngineInstance($EngineFactory_103d20624a1.java)
        org.apache.tapestry.services.impl.EngineManagerImpl.getEngineInstance(EngineManagerImpl.java:51)
        $EngineManager_103d206249b.getEngineInstance($EngineManager_103d206249b.java)
        $EngineManager_103d206249a.getEngineInstance($EngineManager_103d206249a.java)
        org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:51)
        org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
        org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
        $ServletRequestServicer_103d206249c.service($ServletRequestServicer_103d206249c.java)
        org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
        $ServletRequestServicerFilter_103d2062485.service($ServletRequestServicerFilter_103d2062485.java)
        $ServletRequestServicerFilter_103d2062484.service($ServletRequestServicerFilter_103d2062484.java)
        $ServletRequestServicer_103d206249c.service($ServletRequestServicer_103d206249c.java)
        org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
        $ServletRequestServicer_103d206249c.service($ServletRequestServicer_103d206249c.java)
        org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:125)
        org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:89)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

It would be better for end devlopers if Tapestry threw a message that said - cannot find custom Engine - "blah.Engine", please ensure that it is in your classpath. Or something like that.

--
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: [hidden email]
For additional commands, e-mail: [hidden email]