You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Wai (JIRA)" <ji...@apache.org> on 2017/01/07 15:13:58 UTC
[jira] [Updated] (OFBIZ-9167) add item to order cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-9167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wai updated OFBIZ-9167:
-----------------------
Attachment: OFBIZ-9167.patch
> add item to order cause exception
> ---------------------------------
>
> Key: OFBIZ-9167
> URL: https://issues.apache.org/jira/browse/OFBIZ-9167
> Project: OFBiz
> Issue Type: Bug
> Components: order
> Affects Versions: Trunk
> Reporter: Wai
> Attachments: OFBIZ-9167.patch
>
>
> -go to https://localhost:8443/ordermgr/control/orderentry
> -create order for DemoCustomer
> -add an item
> console output...
> 2017-01-06 19:09:32,752 |http-nio-8443-exec-3 |ServiceDispatcher |T| Sync service [order/getUserPreferenceGroup] finished in [1] milliseconds
> 2017-01-06 19:09:32,811 |http-nio-8443-exec-3 |ServiceDispatcher |T| Sync service [order/getVisualThemeResources] finished in [55] milliseconds
> 2017-01-06 19:09:32,821 |http-nio-8443-exec-3 |ScreenFactory |I| Got 13 screens in 0.008s from: file:/home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk/applications/order/widget/ordermgr/OrderEntryCartScreens.xml
> 2017-01-06 19:09:32,821 |http-nio-8443-exec-3 |UtilProperties |I| orderPreference.giftEnable misses in order for locale en_US
> 2017-01-06 19:09:32,960 |http-nio-8443-exec-3 |ShoppingCartItem |I| Setting orderItemSeqId - 00001
> 2017-01-06 19:09:32,962 |http-nio-8443-exec-3 |ScriptUtil |W| Error running script at location [component://order/groovyScripts/entry/ShowCart.groovy]: java.lang.NullPointerException
> java.lang.NullPointerException
> at org.apache.ofbiz.content.content.ContentWorker.renderContentAsText(ContentWorker.java:368) ~[ofbiz.jar:?]
> at org.apache.ofbiz.product.product.ProductContentWrapper.getProductContentAsText(ProductContentWrapper.java:176) ~[ofbiz.jar:?]
> at org.apache.ofbiz.product.product.ProductContentWrapper.getProductContentAsText(ProductContentWrapper.java:120) ~[ofbiz.jar:?]
> at org.apache.ofbiz.product.product.ProductContentWrapper.getProductContentAsText(ProductContentWrapper.java:98) ~[ofbiz.jar:?]
> at org.apache.ofbiz.order.shoppingcart.ShoppingCartItem.getName(ShoppingCartItem.java:1690) ~[ofbiz.jar:?]
> at org.apache.ofbiz.order.shoppingcart.ShoppingCart.makeOrderItems(ShoppingCart.java:3670) ~[ofbiz.jar:?]
> at org.apache.ofbiz.order.shoppingcart.ShoppingCart.makeOrderItems(ShoppingCart.java:3610) ~[ofbiz.jar:?]
> at org.apache.ofbiz.order.shoppingcart.ShoppingCart$makeOrderItems$5.call(Unknown Source) ~[?:?]
> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) ~[groovy-all-2.4.5.jar:2.4.5]
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) ~[groovy-all-2.4.5.jar:2.4.5]
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) ~[groovy-all-2.4.5.jar:2.4.5]
> at ShowCart.run(ShowCart.groovy:56) ~[?:?]
> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:204) ~[ofbiz.jar:?]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)