[ 
https://issues.apache.org/jira/browse/OFBIZ-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergei Biletnikov updated OFBIZ-5085:
-------------------------------------

    Description: 
Install OFBiz 10.04 from the release 10.04 brunch with demo data. And send 
email for a party, for example:
open any order, and click : "send a confirmation email" to the customer party:
https://localhost:8443/ordermgr/control/confirmationmailedit?orderId=DEMO_B2B_IT02&partyId=DemoCustomer&sendTo=ofbizt...@yahoo.com

After that, go to Communications:
https://localhost:8443/partymgr/control/FindCommunicationEvents
and click "Find".

you will see:
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
[component://common/widget/CommonScreens.xml#GlobalDecorator]: 
java.lang.NullPointerException (null)

(also, please see my screenshot)


My quick investigations say that something happens here:
applications\party\widget\partymgr\CommunicationEventForms.xml#ListCommEvents

        <field name="subject">
            <hyperlink description="${subject}[${communicationEventId}]" 
target="ViewCommunicationEvent">
                <parameter param-name="communicationEventId"/>
                <parameter param-name="partyIdFrom" from-field="partyId"/>
                <parameter param-name="roleTypeId"/>
                <parameter param-name="headerItem" 
from-field="parameters.headerItem"/>
            </hyperlink>
        </field>

The error disappears, if I comment this line :                 <parameter 
param-name="partyIdFrom" from-field="partyId"/>


  was:
Install OFBiz 10.04 from the release 10.04 brunch with demo data. And send 
email for a party, for example:
open any order, and click : "send a confirmation email" to the customer party:
https://localhost:8443/ordermgr/control/confirmationmailedit?orderId=DEMO_B2B_IT02&partyId=DemoCustomer&sendTo=ofbizt...@yahoo.com

After that, go to Communications:
https://localhost:8443/partymgr/control/FindCommunicationEvents
and click "Find".

you will see:
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
[component://common/widget/CommonScreens.xml#GlobalDecorator]: 
java.lang.NullPointerException (null)

(also, please see my screenshot)


My quick investigations say that something happens here:
applications\party\widget\partymgr\CommunicationEventForms.xml#ListCommEvents

        <field name="subject">
            <hyperlink description="${subject}[${communicationEventId}]" 
target="ViewCommunicationEvent">
                <parameter param-name="communicationEventId"/>
                <parameter param-name="partyIdFrom" from-field="partyId"/>
                <parameter param-name="roleTypeId"/>
                <parameter param-name="headerItem" 
from-field="parameters.headerItem"/>
            </hyperlink>
        </field>

The error disappear, if I comment this line :                 <parameter 
param-name="partyIdFrom" from-field="partyId"/>


    
> Search result for "Find Communications" does not work
> -----------------------------------------------------
>
>                 Key: OFBIZ-5085
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5085
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Release Branch 10.04
>            Reporter: Sergei Biletnikov
>         Attachments: Bug.png
>
>
> Install OFBiz 10.04 from the release 10.04 brunch with demo data. And send 
> email for a party, for example:
> open any order, and click : "send a confirmation email" to the customer party:
> https://localhost:8443/ordermgr/control/confirmationmailedit?orderId=DEMO_B2B_IT02&partyId=DemoCustomer&sendTo=ofbizt...@yahoo.com
> After that, go to Communications:
> https://localhost:8443/partymgr/control/FindCommunicationEvents
> and click "Find".
> you will see:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
> [component://common/widget/CommonScreens.xml#GlobalDecorator]: 
> java.lang.NullPointerException (null)
> (also, please see my screenshot)
> My quick investigations say that something happens here:
> applications\party\widget\partymgr\CommunicationEventForms.xml#ListCommEvents
>         <field name="subject">
>             <hyperlink description="${subject}[${communicationEventId}]" 
> target="ViewCommunicationEvent">
>                 <parameter param-name="communicationEventId"/>
>                 <parameter param-name="partyIdFrom" from-field="partyId"/>
>                 <parameter param-name="roleTypeId"/>
>                 <parameter param-name="headerItem" 
> from-field="parameters.headerItem"/>
>             </hyperlink>
>         </field>
> The error disappears, if I comment this line :                 <parameter 
> param-name="partyIdFrom" from-field="partyId"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to