Hi
I am new to ofbiz, I am practicing CRUD operations from the tutorial. While creation I am getting an error as below: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.RuntimeException: Error rendering included form named [main-decorator] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException (Error rendering included form named [main-decorator] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException) And on updation I am getting an error as below: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Could not find SimpleMethod XML document in resource: component://practice/script/org/hotwax/practice/PracticeServices.xml) Please let me know how to solve this erors. Thanks & Regards Prashanth Jilla |
Hello Prashanth,
Please check whether you have done main- decorator entry in web.xml. It seems you haven't done this. Thanks ! -- Vivek Mishra jillas wrote: > Hi > > I am new to ofbiz, I am practicing CRUD operations from the tutorial. > While creation I am getting an error as below: > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [main-decorator] at location > [component://practice/widget/PracticeForms.xml]: > java.lang.NullPointerException (Error rendering included form named > [main-decorator] at location > [component://practice/widget/PracticeForms.xml]: > java.lang.NullPointerException) > > And on updation I am getting an error as below: > org.ofbiz.webapp.event.EventHandlerException: Service invocation error > (Could not find SimpleMethod XML document in resource: > component://practice/script/org/hotwax/practice/PracticeServices.xml) > > Please let me know how to solve this erors. > > > > Thanks & Regards > Prashanth Jilla > smime.p7s (4K) Download Attachment |
Hi Vivek
In web.xml the content is like this : <context-param> <param-name>mainDecoratorLocation</param-name> <param-value>component://practice/widget/CommonScreens.xml</param-value> <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description> </context-param> Please let me know if anything is to be changed in it. Thanks & Regards Prashanth Jilla
|
In reply to this post by jillas
jillas wrote: > Hi > > I am new to ofbiz, I am practicing CRUD operations from the tutorial. > While creation I am getting an error as below: > org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen > [component://common/widget/CommonScreens.xml#GlobalDecorator]: > java.lang.RuntimeException: Error rendering included form named > [main-decorator] at location > [component://practice/widget/PracticeForms.xml]: > java.lang.NullPointerException (Error rendering included form named > [main-decorator] at location > [component://practice/widget/PracticeForms.xml]: > java.lang.NullPointerException) > > service and form in which you are making update operation. Regards Ravindra Mandre > And on updation I am getting an error as below: > org.ofbiz.webapp.event.EventHandlerException: Service invocation error > (Could not find SimpleMethod XML document in resource: > component://practice/script/org/hotwax/practice/PracticeServices.xml) > > Please let me know how to solve this erors. > > > > Thanks & Regards > Prashanth Jilla > |
Hi Ravindra
Please find the controller.xml below, and let me know any modifications in it. <request-map uri="personform"> <security https="false" auth="false"/> <response name="success" type="view" value="personform"/> </request-map> <request-map uri="createPracticePerson"> <security https="true" auth="true"/> <event type="service" invoke="createPracticePerson"/> <response name="success" type="view" value="personform"/> </request-map> <request-map uri="updatePracticePerson"> <security https="true" auth="true"/> <event type="service" invoke="updatePracticePerson"/> <response name="success" type="view" value="personform"/> </request-map> <request-map uri="deletePracticePerson"> <security https="true" auth="true"/> <event type="service" invoke="deletePracticePerson"/> <response name="success" type="view" value="personform"/> </request-map> <view-map name="personform" type="screen" page="component://practice/widget/PracticeScreens.xml#personform"/> Thanks & Regards Prashanth Jilla
|
Hello Prashanth,
Have you done this entry in controller.xml file <include location="component://common/webcommon/WEB-INF/common-controller.xml"/> Thanks ! -- Vivek Mishra jillas wrote: Hi Ravindra Please find the controller.xml below, and let me know any modifications in it. <request-map uri="personform"> <security https="false" auth="false"/> <response name="success" type="view" value="personform"/> </request-map> <request-map uri="createPracticePerson"> <security https="true" auth="true"/> <event type="service" invoke="createPracticePerson"/> <response name="success" type="view" value="personform"/> </request-map> <request-map uri="updatePracticePerson"> <security https="true" auth="true"/> <event type="service" invoke="updatePracticePerson"/> <response name="success" type="view" value="personform"/> </request-map> <request-map uri="deletePracticePerson"> <security https="true" auth="true"/> <event type="service" invoke="deletePracticePerson"/> <response name="success" type="view" value="personform"/> </request-map> <view-map name="personform" type="screen" page="component://practice/widget/PracticeScreens.xml#personform"/> Thanks & Regards Prashanth Jilla Ravindra Mandre wrote:jillas wrote:Hi I am new to ofbiz, I am practicing CRUD operations from the tutorial. While creation I am getting an error as below: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.RuntimeException: Error rendering included form named [main-decorator] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException (Error rendering included form named [main-decorator] at location [component://practice/widget/PracticeForms.xml]: java.lang.NullPointerException)could you please post your controller.xml entry for calling update service and form in which you are making update operation. Regards Ravindra MandreAnd on updation I am getting an error as below: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Could not find SimpleMethod XML document in resource: component://practice/script/org/hotwax/practice/PracticeServices.xml) Please let me know how to solve this erors. Thanks & Regards Prashanth Jilla smime.p7s (4K) Download Attachment |
Vivek, it is available in the controller.xml
You can find the controller.xml attached to this mail controller.xml |
In reply to this post by jillas
Hi Prashanth ,
controller.xml entries are look fine , but I suggest you to again go through the part 3 of this tutorial and make sure you make entry in ofbiz-component.xml for service. hope that help Regards Ravindra Mandre jillas wrote: > Hi Ravindra > > Please find the controller.xml below, and let me know any > modifications in it. > > <request-map uri="personform"> > <security https="false" auth="false"/> > <response name="success" type="view" value="personform"/> > </request-map> > <request-map uri="createPracticePerson"> > <security https="true" auth="true"/> > <event type="service" invoke="createPracticePerson"/> > <response name="success" type="view" value="personform"/> > </request-map> > <request-map uri="updatePracticePerson"> > <security https="true" auth="true"/> > <event type="service" invoke="updatePracticePerson"/> > <response name="success" type="view" value="personform"/> > </request-map> > <request-map uri="deletePracticePerson"> > <security https="true" auth="true"/> > <event type="service" invoke="deletePracticePerson"/> > <response name="success" type="view" value="personform"/> > </request-map> > <view-map name="personform" type="screen" > page="component://practice/widget/PracticeScreens.xml#personform"/> > > > Thanks & Regards > Prashanth Jilla > > > > > Ravindra Mandre wrote: > >> >> jillas wrote: >> >>> Hi >>> >>> I am new to ofbiz, I am practicing CRUD operations from the tutorial. >>> While creation I am getting an error as below: >>> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen >>> [component://common/widget/CommonScreens.xml#GlobalDecorator]: >>> java.lang.RuntimeException: Error rendering included form named >>> [main-decorator] at location >>> [component://practice/widget/PracticeForms.xml]: >>> java.lang.NullPointerException (Error rendering included form named >>> [main-decorator] at location >>> [component://practice/widget/PracticeForms.xml]: >>> java.lang.NullPointerException) >>> >>> >>> >> could you please post your controller.xml entry for calling update >> service and form in which you are making update operation. >> >> >> Regards >> Ravindra Mandre >> >>> And on updation I am getting an error as below: >>> org.ofbiz.webapp.event.EventHandlerException: Service invocation error >>> (Could not find SimpleMethod XML document in resource: >>> component://practice/script/org/hotwax/practice/PracticeServices.xml) >>> >>> Please let me know how to solve this erors. >>> >>> >>> >>> Thanks & Regards >>> Prashanth Jilla >>> >>> >> > > |
Hi Ravindra
Please find ofbiz-component.xml below: <?xml version="1.0" encoding="UTF-8"?> <ofbiz-component name="practice" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> <resource-loader name="main" type="component"/> <classpath type="dir" location="config"/> <classpath type="dir" location="script"/> <classpath type="jar" location="build/lib/*"/> <service-resource type="model" loader="main" location="servicedef/services.xml"/> <service-resource type="eca" loader="main" location="servicedef/secas.xml"/> <entity-resource type="eca" reader-name="main" loader="main" location="entitydef/eecas.xml"/> <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/> <entity-resource type="data" reader-name="demo" loader="main" location="data/PracticeData.xml"/> <webapp name="practice" title="Practice" server="default-server" base-permission="OFBTOOLS" location="webapp/practice" mount-point="/practice" app-bar-display="true"/> </ofbiz-component>
|
In reply to this post by Ravindra Mandre
Hi Prashanth,
Please make sure the form name which have specified in PracticeForms.xml and the place where you include this from that is in PracticeScreens.xml are different. That means you have a form name "main-decorator" which is not included with the same name in PracticeScreens.xml or vice-versa. I think you will find the solution and the case is same specified by me above. Thanks ! -- Vivek Mishra Ravindra Mandre wrote: > Hi Prashanth , > controller.xml entries are look fine , but I suggest you to again go > through the part 3 of this tutorial and make sure you make entry in > ofbiz-component.xml for service. > hope that help > > Regards > Ravindra Mandre > > jillas wrote: >> Hi Ravindra >> >> Please find the controller.xml below, and let me know any >> modifications in it. >> >> <request-map uri="personform"> >> <security https="false" auth="false"/> >> <response name="success" type="view" value="personform"/> >> </request-map> >> <request-map uri="createPracticePerson"> >> <security https="true" auth="true"/> >> <event type="service" invoke="createPracticePerson"/> >> <response name="success" type="view" value="personform"/> >> </request-map> >> <request-map uri="updatePracticePerson"> >> <security https="true" auth="true"/> >> <event type="service" invoke="updatePracticePerson"/> >> <response name="success" type="view" value="personform"/> >> </request-map> >> <request-map uri="deletePracticePerson"> >> <security https="true" auth="true"/> >> <event type="service" invoke="deletePracticePerson"/> >> <response name="success" type="view" value="personform"/> >> </request-map> >> <view-map name="personform" type="screen" >> page="component://practice/widget/PracticeScreens.xml#personform"/> >> >> >> Thanks & Regards >> Prashanth Jilla >> >> >> >> >> Ravindra Mandre wrote: >> >>> >>> jillas wrote: >>> >>>> Hi >>>> >>>> I am new to ofbiz, I am practicing CRUD operations from the >>>> tutorial. >>>> While creation I am getting an error as below: >>>> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen >>>> [component://common/widget/CommonScreens.xml#GlobalDecorator]: >>>> java.lang.RuntimeException: Error rendering included form named >>>> [main-decorator] at location >>>> [component://practice/widget/PracticeForms.xml]: >>>> java.lang.NullPointerException (Error rendering included form named >>>> [main-decorator] at location >>>> [component://practice/widget/PracticeForms.xml]: >>>> java.lang.NullPointerException) >>>> >>>> >>> could you please post your controller.xml entry for calling update >>> service and form in which you are making update operation. >>> >>> >>> Regards >>> Ravindra Mandre >>> >>>> And on updation I am getting an error as below: >>>> org.ofbiz.webapp.event.EventHandlerException: Service invocation error >>>> (Could not find SimpleMethod XML document in resource: >>>> component://practice/script/org/hotwax/practice/PracticeServices.xml) >>>> >>>> Please let me know how to solve this erors. >>>> >>>> >>>> >>>> Thanks & Regards >>>> Prashanth Jilla >>>> >>> >> >> > smime.p7s (4K) Download Attachment |
In reply to this post by jillas
Hi Prashanth ,
A quick solution for you to find out the attached zip file of practice and match code with that and find out where you doing wrong. Regards Ravindra Mandre jillas wrote: > Hi Ravindra > > Please find ofbiz-component.xml below: > > <?xml version="1.0" encoding="UTF-8"?> > <ofbiz-component name="practice" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> > <resource-loader name="main" type="component"/> > <classpath type="dir" location="config"/> > <classpath type="dir" location="script"/> > <classpath type="jar" location="build/lib/*"/> > <service-resource type="model" loader="main" > location="servicedef/services.xml"/> > <service-resource type="eca" loader="main" > location="servicedef/secas.xml"/> > <entity-resource type="eca" reader-name="main" loader="main" > location="entitydef/eecas.xml"/> > <entity-resource type="model" reader-name="main" loader="main" > location="entitydef/entitymodel.xml"/> > <entity-resource type="data" reader-name="demo" loader="main" > location="data/PracticeData.xml"/> > <webapp name="practice" > title="Practice" > server="default-server" > base-permission="OFBTOOLS" > location="webapp/practice" > mount-point="/practice" > app-bar-display="true"/> > </ofbiz-component> > > > > Ravindra Mandre wrote: > >> Hi Prashanth , >> controller.xml entries are look fine , but I suggest you to again go >> through the part 3 of this tutorial and make sure you make entry in >> ofbiz-component.xml for service. >> hope that help >> >> Regards >> Ravindra Mandre >> >> jillas wrote: >> >>> Hi Ravindra >>> >>> Please find the controller.xml below, and let me know any >>> modifications in it. >>> >>> <request-map uri="personform"> >>> <security https="false" auth="false"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <request-map uri="createPracticePerson"> >>> <security https="true" auth="true"/> >>> <event type="service" invoke="createPracticePerson"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <request-map uri="updatePracticePerson"> >>> <security https="true" auth="true"/> >>> <event type="service" invoke="updatePracticePerson"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <request-map uri="deletePracticePerson"> >>> <security https="true" auth="true"/> >>> <event type="service" invoke="deletePracticePerson"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <view-map name="personform" type="screen" >>> page="component://practice/widget/PracticeScreens.xml#personform"/> >>> >>> >>> Thanks & Regards >>> Prashanth Jilla >>> >>> >>> >>> >>> Ravindra Mandre wrote: >>> >>> >>>> jillas wrote: >>>> >>>> >>>>> Hi >>>>> >>>>> I am new to ofbiz, I am practicing CRUD operations from the >>>>> tutorial. >>>>> While creation I am getting an error as below: >>>>> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen >>>>> [component://common/widget/CommonScreens.xml#GlobalDecorator]: >>>>> java.lang.RuntimeException: Error rendering included form named >>>>> [main-decorator] at location >>>>> [component://practice/widget/PracticeForms.xml]: >>>>> java.lang.NullPointerException (Error rendering included form named >>>>> [main-decorator] at location >>>>> [component://practice/widget/PracticeForms.xml]: >>>>> java.lang.NullPointerException) >>>>> >>>>> >>>>> >>>>> >>>> could you please post your controller.xml entry for calling update >>>> service and form in which you are making update operation. >>>> >>>> >>>> Regards >>>> Ravindra Mandre >>>> >>>> >>>>> And on updation I am getting an error as below: >>>>> org.ofbiz.webapp.event.EventHandlerException: Service invocation error >>>>> (Could not find SimpleMethod XML document in resource: >>>>> component://practice/script/org/hotwax/practice/PracticeServices.xml) >>>>> >>>>> Please let me know how to solve this erors. >>>>> >>>>> >>>>> >>>>> Thanks & Regards >>>>> Prashanth Jilla >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> > > |
In reply to this post by jillas
Hi Prashanth ,
A quick solution for you to find out the attached zip file of practice and match code with that and find out where you doing wrong. http://docs.ofbiz.org/pages/viewpageattachments.action?pageId=4432 Regards Ravindra Mandre jillas wrote: > Hi Ravindra > > Please find ofbiz-component.xml below: > > <?xml version="1.0" encoding="UTF-8"?> > <ofbiz-component name="practice" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> > <resource-loader name="main" type="component"/> > <classpath type="dir" location="config"/> > <classpath type="dir" location="script"/> > <classpath type="jar" location="build/lib/*"/> > <service-resource type="model" loader="main" > location="servicedef/services.xml"/> > <service-resource type="eca" loader="main" > location="servicedef/secas.xml"/> > <entity-resource type="eca" reader-name="main" loader="main" > location="entitydef/eecas.xml"/> > <entity-resource type="model" reader-name="main" loader="main" > location="entitydef/entitymodel.xml"/> > <entity-resource type="data" reader-name="demo" loader="main" > location="data/PracticeData.xml"/> > <webapp name="practice" > title="Practice" > server="default-server" > base-permission="OFBTOOLS" > location="webapp/practice" > mount-point="/practice" > app-bar-display="true"/> > </ofbiz-component> > > > > Ravindra Mandre wrote: > >> Hi Prashanth , >> controller.xml entries are look fine , but I suggest you to again go >> through the part 3 of this tutorial and make sure you make entry in >> ofbiz-component.xml for service. >> hope that help >> >> Regards >> Ravindra Mandre >> >> jillas wrote: >> >>> Hi Ravindra >>> >>> Please find the controller.xml below, and let me know any >>> modifications in it. >>> >>> <request-map uri="personform"> >>> <security https="false" auth="false"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <request-map uri="createPracticePerson"> >>> <security https="true" auth="true"/> >>> <event type="service" invoke="createPracticePerson"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <request-map uri="updatePracticePerson"> >>> <security https="true" auth="true"/> >>> <event type="service" invoke="updatePracticePerson"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <request-map uri="deletePracticePerson"> >>> <security https="true" auth="true"/> >>> <event type="service" invoke="deletePracticePerson"/> >>> <response name="success" type="view" value="personform"/> >>> </request-map> >>> <view-map name="personform" type="screen" >>> page="component://practice/widget/PracticeScreens.xml#personform"/> >>> >>> >>> Thanks & Regards >>> Prashanth Jilla >>> >>> >>> >>> >>> Ravindra Mandre wrote: >>> >>> >>>> jillas wrote: >>>> >>>> >>>>> Hi >>>>> >>>>> I am new to ofbiz, I am practicing CRUD operations from the >>>>> tutorial. >>>>> While creation I am getting an error as below: >>>>> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen >>>>> [component://common/widget/CommonScreens.xml#GlobalDecorator]: >>>>> java.lang.RuntimeException: Error rendering included form named >>>>> [main-decorator] at location >>>>> [component://practice/widget/PracticeForms.xml]: >>>>> java.lang.NullPointerException (Error rendering included form named >>>>> [main-decorator] at location >>>>> [component://practice/widget/PracticeForms.xml]: >>>>> java.lang.NullPointerException) >>>>> >>>>> >>>>> >>>>> >>>> could you please post your controller.xml entry for calling update >>>> service and form in which you are making update operation. >>>> >>>> >>>> Regards >>>> Ravindra Mandre >>>> >>>> >>>>> And on updation I am getting an error as below: >>>>> org.ofbiz.webapp.event.EventHandlerException: Service invocation error >>>>> (Could not find SimpleMethod XML document in resource: >>>>> component://practice/script/org/hotwax/practice/PracticeServices.xml) >>>>> >>>>> Please let me know how to solve this erors. >>>>> >>>>> >>>>> >>>>> Thanks & Regards >>>>> Prashanth Jilla >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> > > |
Free forum by Nabble | Edit this page |