practice application 2 throwing exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

practice application 2 throwing exception

doitifucan
Hi,
i completed the practice 1 application. While working with practice 2 am getting the below exception

Screen Render Error

java.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException
        at org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
        at org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
        at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
        at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
        at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
        at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
        at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
        at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
        at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
        at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
        at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
        at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
        at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
        at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
        at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
        at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
        at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
        at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
        at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
        at org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)

please guide me any better way to identify what went wrong.

the error log below

2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [  ModelScreenWidget.java:885:ERROR]

---- runtime exception report --------------------------------------------------
Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
Exception: java.lang.NullPointerException
Message: null
---- stack trace ---------------------------------------------------------------
java.lang.NullPointerException
org.ofbiz.widget.ModelWidget.<init>(ModelWidget.java:65)
org.ofbiz.widget.form.ModelForm.<init>(ModelForm.java:208)
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:155)
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:151)
org.ofbiz.widget.form.FormFactory.getFormFromLocation(FormFactory.java:86)
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:882)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------


2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [        ModelScreen.java:402:ERROR]

---- runtime exception report --------------------------------------------------
Error rendering screen [component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]: java.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException. Rolling back transaction.
Exception: java.lang.RuntimeException
Message: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException
---- stack trace ---------------------------------------------------------------
java.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------


2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [    TransactionUtil.java:231:ERROR]

---- exception report ----------------------------------------------------------
Rollback Only was set when trying to commit transaction here; throwing rollbackOnly cause exception
Exception: javax.transaction.RollbackException
Message: Unable to commit: transaction marked for rollback
---- stack trace ---------------------------------------------------------------
javax.transaction.RollbackException: Unable to commit: transaction marked for rollback
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271)
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:245)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:210)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:196)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:426)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------


2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [        ModelScreen.java:428:ERROR]

---- exception report ----------------------------------------------------------
Could not commit transaction: org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]: java.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerExceptionjava.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException (Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException)
Exception: org.ofbiz.entity.transaction.GenericTransactionException
Message: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]: java.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerExceptionjava.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException (Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException)
---- cause ---------------------------------------------------------------------
Exception: java.lang.RuntimeException
Message: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException
---- stack trace ---------------------------------------------------------------
java.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------

Thanks & Regards
Reply | Threaded
Open this post in threaded view
|

Re: practice application 2 throwing exception

BJ Freeman
NullPointerException usually says that it expecting data and there is none.

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


doitifucan sent the following on 12/14/2010 3:25 AM:

>
> Hi,
> i completed the practice 1 application. While working with practice 2 am
> getting the below exception
>
> Screen Render Error
>
> java.lang.RuntimeException: Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
> at
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
> at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
> at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> at
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
>
> please guide me any better way to identify what went wrong.
>
> the error log below
>
> 2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
> ModelScreenWidget.java:885:ERROR]
>
> ---- runtime exception report
> --------------------------------------------------
> Error rendering included form named [ListPersons] at location
> [component://practice/widget/PracticeForms.xml]:
> Exception: java.lang.NullPointerException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.NullPointerException
> org.ofbiz.widget.ModelWidget.<init>(ModelWidget.java:65)
> org.ofbiz.widget.form.ModelForm.<init>(ModelForm.java:208)
> org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:155)
> org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:151)
> org.ofbiz.widget.form.FormFactory.getFormFromLocation(FormFactory.java:86)
> org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:882)
> org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------
>
>
> 2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
> ModelScreen.java:402:ERROR]
>
> ---- runtime exception report
> --------------------------------------------------
> Error rendering screen
> [component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]:
> java.lang.RuntimeException: Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException. Rolling back transaction.
> Exception: java.lang.RuntimeException
> Message: Error rendering included form named [ListPersons] at location
> [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.RuntimeException: Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException
> org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
> org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------
>
>
> 2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
> TransactionUtil.java:231:ERROR]
>
> ---- exception report
> ----------------------------------------------------------
> Rollback Only was set when trying to commit transaction here; throwing
> rollbackOnly cause exception
> Exception: javax.transaction.RollbackException
> Message: Unable to commit: transaction marked for rollback
> ---- stack trace
> ---------------------------------------------------------------
> javax.transaction.RollbackException: Unable to commit: transaction marked
> for rollback
> org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271)
> org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:245)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:210)
> org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:196)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:426)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------
>
>
> 2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
> ModelScreen.java:428:ERROR]
>
> ---- exception report
> ----------------------------------------------------------
> Could not commit transaction:
> org.ofbiz.entity.transaction.GenericTransactionException: Roll back error,
> could not commit transaction, was rolled back instead because of: Error
> rendering screen
> [component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]:
> java.lang.RuntimeException: Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerExceptionjava.lang.RuntimeException: Error rendering
> included form named [ListPersons] at location
> [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException (Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException)
> Exception: org.ofbiz.entity.transaction.GenericTransactionException
> Message: Roll back error, could not commit transaction, was rolled back
> instead because of: Error rendering screen
> [component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]:
> java.lang.RuntimeException: Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerExceptionjava.lang.RuntimeException: Error rendering
> included form named [ListPersons] at location
> [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException (Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException)
> ---- cause
> ---------------------------------------------------------------------
> Exception: java.lang.RuntimeException
> Message: Error rendering included form named [ListPersons] at location
> [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.RuntimeException: Error rendering included form named
> [ListPersons] at location [component://practice/widget/PracticeForms.xml]:
> java.lang.NullPointerException
> org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
> org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Thread.java:619)
> --------------------------------------------------------------------------------
>
> Thanks&  Regards

Reply | Threaded
Open this post in threaded view
|

Re: practice application 2 throwing exception

Chirag Manocha-3
In reply to this post by doitifucan
Check the location of form and name of form. Also look for the form name, it is case-sensitive.

Regards
--
Chirag Manocha
Emforium Software Pvt. Ltd. | ALL-IN Software
+91-98735-47457 | +91-98263-19099
Please don't print this Email unless you really need to - this will preserve trees on planet earth.




From: "doitifucan" <[hidden email]>
To: [hidden email]
Sent: Tuesday, December 14, 2010 4:55:46 PM
Subject: practice application 2 throwing exception


Hi,
i completed the practice 1 application. While working with practice 2 am
getting the below exception

Screen Render Error

java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException
at
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
at
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
at
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
at
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
at
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
at
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

please guide me any better way to identify what went wrong.

the error log below

2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
ModelScreenWidget.java:885:ERROR]

---- runtime exception report
--------------------------------------------------
Error rendering included form named [ListPersons] at location
[component://practice/widget/PracticeForms.xml]:
Exception: java.lang.NullPointerException
Message: null
---- stack trace
---------------------------------------------------------------
java.lang.NullPointerException
org.ofbiz.widget.ModelWidget.<init>(ModelWidget.java:65)
org.ofbiz.widget.form.ModelForm.<init>(ModelForm.java:208)
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:155)
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:151)
org.ofbiz.widget.form.FormFactory.getFormFromLocation(FormFactory.java:86)
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:882)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------


2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
ModelScreen.java:402:ERROR]

---- runtime exception report
--------------------------------------------------
Error rendering screen
[component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]:
java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException. Rolling back transaction.
Exception: java.lang.RuntimeException
Message: Error rendering included form named [ListPersons] at location
[component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException
---- stack trace
---------------------------------------------------------------
java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------


2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
TransactionUtil.java:231:ERROR]

---- exception report
----------------------------------------------------------
Rollback Only was set when trying to commit transaction here; throwing
rollbackOnly cause exception
Exception: javax.transaction.RollbackException
Message: Unable to commit: transaction marked for rollback
---- stack trace
---------------------------------------------------------------
javax.transaction.RollbackException: Unable to commit: transaction marked
for rollback
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271)
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:245)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:210)
org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:196)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:426)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------


2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
ModelScreen.java:428:ERROR]

---- exception report
----------------------------------------------------------
Could not commit transaction:
org.ofbiz.entity.transaction.GenericTransactionException: Roll back error,
could not commit transaction, was rolled back instead because of: Error
rendering screen
[component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]:
java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerExceptionjava.lang.RuntimeException: Error rendering
included form named [ListPersons] at location
[component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException (Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException)
Exception: org.ofbiz.entity.transaction.GenericTransactionException
Message: Roll back error, could not commit transaction, was rolled back
instead because of: Error rendering screen
[component://practice/widget/CommonScreens.xml#CommonPracticeDecorator]:
java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerExceptionjava.lang.RuntimeException: Error rendering
included form named [ListPersons] at location
[component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException (Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException)
---- cause
---------------------------------------------------------------------
Exception: java.lang.RuntimeException
Message: Error rendering included form named [ListPersons] at location
[component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException
---- stack trace
---------------------------------------------------------------
java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------

Thanks & Regards
--
View this message in context: http://ofbiz.135035.n4.nabble.com/practice-application-2-throwing-exception-tp3086872p3086872.html 
Sent from the OFBiz - User mailing list archive at Nabble.com.