Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9167

add item to order cause exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • 17.12.01
    • order
    • None

    Description

      -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:?]
      

      Attachments

        1. OFBIZ-9167.patch
          9 kB
          Wai
        2. OFBIZ-9167.patch
          9 kB
          Wai

        Issue Links

          Activity

            People

              jleroux Jacques Le Roux
              wt Wai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: