Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Release
    • Component/s: order
    • Labels:
      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:?]
      
      1. OFBIZ-9167.patch
        9 kB
        Wai
      2. OFBIZ-9167.patch
        9 kB
        Wai

        Issue Links

          Activity

          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Thanks Wai,

          Your patch is in trunk at revision: 1778889

          While at it I also found issues with cartLine.getName() in ftl files. It was
          also missing the dispatcher. This was broken by OFBIZ-9164

          Show
          jacques.le.roux Jacques Le Roux added a comment - Thanks Wai, Your patch is in trunk at revision: 1778889 While at it I also found issues with cartLine.getName() in ftl files. It was also missing the dispatcher. This was broken by OFBIZ-9164
          Hide
          wt Wai added a comment -

          Similar patch. But modified to accommodate directory name change from 'specialpurpose' to 'plugins'.

          Show
          wt Wai added a comment - Similar patch. But modified to accommodate directory name change from 'specialpurpose' to 'plugins'.

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              wt Wai
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development