[jira] [Commented] (OFBIZ-9438) add gift certificate in purchase order cause exception

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

[jira] [Commented] (OFBIZ-9438) add gift certificate in purchase order cause exception

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-9438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16079085#comment-16079085 ]

Deepak Dixit commented on OFBIZ-9438:
-------------------------------------

Thanks Wai and Pallavi for your contribution

Applied slightly modified patch and added condition to show git card only for Sales order
This has been fixed at
ofbiz framework trunk at r#1801274
R16.11 at r#1801275

> add gift certificate in purchase order cause exception
> ------------------------------------------------------
>
>                 Key: OFBIZ-9438
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9438
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Trunk
>            Reporter: Wai
>            Assignee: Deepak Dixit
>             Fix For: 16.11.04
>
>         Attachments: OFBIZ-9438.patch
>
>
> Go to https://localhost:8443/ordermgr/control/orderentry
> open new purchase order
> fill info
> click 'continue'
> fill info
> click on 'continue'
> click 'Add Gift Certificate'
> message...
> ERROR rendering error page [/error/error.jsp], but here is the error text: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/OrderEntryCartScreens.xml#AddGiftCertificate]: java.lang.IllegalArgumentException: Error running script at location [component://order/groovyScripts/entry/AddGiftCertificates.groovy]: java.lang.NullPointerException: Cannot get property 'purchaseSurveyId' on null object (Error running script at location [component://order/groovyScripts/entry/AddGiftCertificates.groovy]: java.lang.NullPointerException: Cannot get property 'purchaseSurveyId' on null object)
> console output...
> 2017-06-28 15:39:45,497 |jsse-nio-8443-exec-4 |ScriptUtil                    |W| Error running script at location [component://order/groovyScripts/entry/AddGiftCertificates.groovy]: java.lang.NullPointerException: Cannot get property 'purchaseSurveyId' on null object
> java.lang.NullPointerException: Cannot get property 'purchaseSurveyId' on null object
>         at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60) ~[groovy-all-2.4.12.jar:2.4.12]
>         at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:174) ~[groovy-all-2.4.12.jar:2.4.12]
> ...
> 2017-06-28 15:39:45,501 |jsse-nio-8443-exec-4 |ModelScreen                   |E| Error rendering screen [component://order/widget/ordermgr/OrderEntryCartScreens.xml#AddGiftCertificate]: java.lang.IllegalArgumentException: Error running script at location [component://order/groovyScripts/entry/AddGiftCertificates.groovy]: java.lang.NullPointerException: Cannot get property 'purchaseSurveyId' on null object. Rolling back transaction.
> 2017-06-28 15:39:45,503 |jsse-nio-8443-exec-4 |TransactionUtil               |I| Transaction rolled back
> 2017-06-28 15:39:45,503 |jsse-nio-8443-exec-4 |ControlServlet                |E| Error in request handler:
> org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/OrderEntryCartScreens.xml#AddGiftCertificate]: java.lang.IllegalArgumentException: Error running script at location [component://order/groovyScripts/entry/AddGiftCertificates.groovy]: java.lang.NullPointerException: Cannot get property 'purchaseSurveyId' on null object (Error running script at location [component://order/groovyScripts/entry/AddGiftCertificates.groovy]: java.lang.NullPointerException: Cannot get property 'purchaseSurveyId' on null object)
>         at org.apache.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:179) ~[ofbiz.jar:?]
> ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)