You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by jillas <pr...@cognizant.com> on 2009/06/05 07:55:58 UTC

Errors on CRUD operations

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
-- 
View this message in context: http://www.nabble.com/Errors-on-CRUD-operations-tp23881225p23881225.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors on CRUD operations

Posted by jillas <pr...@cognizant.com>.
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


Vivek Mishra-2 wrote:
> 
> 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
>>   
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/Errors-on-CRUD-operations-tp23881225p23884444.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors on CRUD operations

Posted by Vivek Mishra <vi...@hotwaxmedia.com>.
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
>   

Re: Errors on CRUD operations

Posted by jillas <pr...@cognizant.com>.
Vivek, it is available in the controller.xml

You can find the controller.xml attached to this mail


Vivek Mishra-2 wrote:
> 
> 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 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
>>>>   
>>>>       
>>>     
>>
>>   
> 
>  
> 
http://www.nabble.com/file/p23884791/controller.xml controller.xml 
-- 
View this message in context: http://www.nabble.com/Errors-on-CRUD-operations-tp23881225p23884791.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors on CRUD operations

Posted by Vivek Mishra <vi...@hotwaxmedia.com>.
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 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
>>>   
>>>       
>>     
>
>   

Re: Errors on CRUD operations

Posted by Ravindra Mandre <ra...@hotwaxmedia.com>.
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
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>     
>
>   

Re: Errors on CRUD operations

Posted by Ravindra Mandre <ra...@hotwaxmedia.com>.
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
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>   
>>>       
>>     
>
>   

Re: Errors on CRUD operations

Posted by jillas <pr...@cognizant.com>.
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
>>>>   
>>>>       
>>>     
>>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/Errors-on-CRUD-operations-tp23881225p23885207.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors on CRUD operations

Posted by Vivek Mishra <vi...@hotwaxmedia.com>.
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
>>>>         
>>>     
>>
>>   
>

Re: Errors on CRUD operations

Posted by Ravindra Mandre <ra...@hotwaxmedia.com>.
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
>>>   
>>>       
>>     
>
>   

Re: Errors on CRUD operations

Posted by jillas <pr...@cognizant.com>.
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
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/Errors-on-CRUD-operations-tp23881225p23884643.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Errors on CRUD operations

Posted by Ravindra Mandre <ra...@hotwaxmedia.com>.

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
>