OFBiz
  1. OFBiz
  2. OFBIZ-4496

"Quick complete Drop Shipment" on purchase order causes many warning messages

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: Release Branch 11.04, SVN trunk
    • Fix Version/s: None
    • Labels:
      None

      Description

      Got following warnings during: "Quick complete Drop Shipment" on purchase order

      [ServiceEcaCondition.java:156:WARN ] From Field (originFacilityId) is not found in context for createShipment, defaulting to null.
      [ServiceEcaCondition.java:156:WARN ] From Field (destinationFacilityId) is not found in context for createShipment, defaulting to null.
      [ Log.java:117:WARN ] ShipmentServices.xml#setShipmentSettingsFromPrimaryOrder line 532 Cannot find a shipping origin address for WS10123
      [ Log.java:117:WARN ] ShipmentServices.xml#setShipmentSettingsFromPrimaryOrder line 554 Cannot find a shipping destination phone number for WS10123
      [ Log.java:117:WARN ] ShipmentServices.xml#setShipmentSettingsFromPrimaryOrder line 568 Cannot find a shipping origin phone number for WS10123
      [ FieldToResult.java:77 :WARN ] Field value not found with name lookedUpValue.originFacilityId in Map with name
      [ FieldToResult.java:77 :WARN ] Field value not found with name lookedUpValue.destinationFacilityId in Map with name
      [ Log.java:117:WARN ] InvoiceServices.xml#getNextInvoiceId line 35 errorPartyPerf
      [ InvoiceServices.java:323:WARN ] No billing locations found for order [WS10123] and none were created for Invoice [10061]
      [ FieldToResult.java:77 :WARN ] Field value not found with name contactMechId in Map with name
      [ServiceEcaCondition.java:156:WARN ] From Field (originFacilityId) is not found in context for updateShipment, defaulting to null.
      [ServiceEcaCondition.java:156:WARN ] From Field (destinationFacilityId) is not found in context for updateShipment, defaulting to null.
      [ServiceEcaCondition.java:156:WARN ] From Field (primaryOrderId) is not found in context for updateShipment, defaulting to null.
      [ TransactionUtil.java:375:WARN ]
      ---- exception report ----------------------------------------------------------
      [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening:
      Exception: java.lang.Exception
      Message: Error in simple-method [ file:/D:/EclipseWorkspaces/Autogoza/ofbiz/applications/accounting/script/org/ofbiz/accounting/olap/FactServices.xml#loadSalesInvoiceFact]: ;

      {Invoice with id AI14 doesn't exist.}
      ---- stack trace ---------------------------------------------------------------
      java.lang.Exception: Error in simple-method [ file:/D:/EclipseWorkspaces/Autogoza/ofbiz/applications/accounting/script/org/ofbiz/accounting/olap/FactServices.xml#loadSalesInvoiceFact]: ; {Invoice with id AI14 doesn't exist.}

      org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:375)
      org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:317)
      org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:870)
      org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
      org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
      org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
      org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
      org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
      _$gen.file_58$.D_58$.EclipseWorkspaces.Autogoza.ofbiz.applications.accounting.servicedef.services_95$olap_46$xml_35$loadSalesInvoiceFact.runSync(file:/D:/EclipseWorkspaces/Autogoza/ofbiz/applications/accounting/servicedef/services_olap.xml#loadSalesInvoiceFact:37)
      org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
      org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
      org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
      org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:71)
      org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242)
      java.lang.Thread.run(Thread.java:662)
      --------------------------------------------------------------------------------

      2011-10-20 12:01:00,823 (default-invoker-Thread-12) [ ServiceDispatcher.java:543:ERROR] Error in Service [loadSalesInvoiceFact]: Invoice with id AI14 doesn't exist.
      2011-10-20 12:01:00,823 (default-invoker-Thread-12) [ TransactionUtil.java:339:ERROR]
      ---- exception report ----------------------------------------------------------
      [TransactionUtil.rollback]
      Exception: java.lang.Exception
      Message: Stack Trace
      ---- stack trace ---------------------------------------------------------------
      java.lang.Exception: Stack Trace
      org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:338)
      org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:315)
      org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:547)
      org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
      org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
      org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:71)
      org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242)
      java.lang.Thread.run(Thread.java:662)
      --------------------------------------------------------------------------------

      2011-10-20 12:01:00,824 (default-invoker-Thread-12) [ TransactionUtil.java:349:INFO ] [TransactionUtil.rollback] transaction rolled back
      2011-10-20 12:01:00,824 (default-invoker-Thread-12) [ ServiceDispatcher.java:604:INFO ] Sync service [order/loadSalesInvoiceFact] finished in [71] milliseconds with response [{errorMessageList=

      {Invoice with id AI14 doesn't exist.}

      , responseMessage=error}]
      2011-10-20 12:01:00,825 (default-invoker-Thread-12) [ GenericServiceJob.java:118:ERROR]
      ---- exception report ----------------------------------------------------------
      Async-Service failed.
      Exception: java.lang.Exception
      Message: null
      ---- stack trace ---------------------------------------------------------------
      java.lang.Exception
      org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:77)
      org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242)
      java.lang.Thread.run(Thread.java:662)
      --------------------------------------------------------------------------------

        Issue Links

          Activity

          Hide
          mz4wheeler added a comment -

          I recently noticed that drop shipping is broken in trunk. Good catch.

          Show
          mz4wheeler added a comment - I recently noticed that drop shipping is broken in trunk. Good catch.
          Hide
          Paul Foxworthy added a comment -

          Re

          java.lang.Exception: Error in simple-method [ file:/D:/EclipseWorkspaces/Autogoza/ofbiz/applications/accounting/script/org/ofbiz/accounting/olap/FactServices.xml#loadSalesInvoiceFact]: ;

          {Invoice with id AI14 doesn't exist.}

          See thread http://ofbiz.135035.n4.nabble.com/Should-loadSalesInvoiceFact-be-run-on-return-instead-of-commit-td3896289.html

          I will be submitting a patch for this.

          Cheers

          Paul Foxworthy

          Show
          Paul Foxworthy added a comment - Re java.lang.Exception: Error in simple-method [ file:/D:/EclipseWorkspaces/Autogoza/ofbiz/applications/accounting/script/org/ofbiz/accounting/olap/FactServices.xml#loadSalesInvoiceFact ]: ; {Invoice with id AI14 doesn't exist.} See thread http://ofbiz.135035.n4.nabble.com/Should-loadSalesInvoiceFact-be-run-on-return-instead-of-commit-td3896289.html I will be submitting a patch for this. Cheers Paul Foxworthy
          Hide
          Kiran Gawde added a comment -

          I have fixed few warnings. But waiting for my other patch (OFBIZ-4495) to get integrated. Once that is integrated. I can provide patch for this defect.

          Show
          Kiran Gawde added a comment - I have fixed few warnings. But waiting for my other patch ( OFBIZ-4495 ) to get integrated. Once that is integrated. I can provide patch for this defect.
          Hide
          Jacques Le Roux added a comment -

          Patches welcome...

          Show
          Jacques Le Roux added a comment - Patches welcome...
          Hide
          Paul Foxworthy added a comment -

          I did submit a patch in OFBIZ-4582. This problem will be similar.

          Show
          Paul Foxworthy added a comment - I did submit a patch in OFBIZ-4582 . This problem will be similar.
          Hide
          Paul Foxworthy added a comment -

          I think the failure, as opposed to the warnings, are fixed by OFBIZ-4582, so in R11.04 should be fixed in r1206508. Kiran, can you confirm?

          Show
          Paul Foxworthy added a comment - I think the failure, as opposed to the warnings, are fixed by OFBIZ-4582 , so in R11.04 should be fixed in r1206508. Kiran, can you confirm?
          Hide
          Kiran Gawde added a comment -

          I fixed some of those warnings. The patch was provided in OFBIZ-4517.

          Show
          Kiran Gawde added a comment - I fixed some of those warnings. The patch was provided in OFBIZ-4517 .
          Hide
          Jacques Le Roux added a comment -

          Should we close this one as duplicate? Or only after applying patches in OFBIZ-4517, or?

          Show
          Jacques Le Roux added a comment - Should we close this one as duplicate? Or only after applying patches in OFBIZ-4517 , or?
          Hide
          Paul Foxworthy added a comment -

          Yes, I think this can be closed as a dupe. OFBIZ-4496 = OFBIZ-4517 + OFBIZ-4582.

          Show
          Paul Foxworthy added a comment - Yes, I think this can be closed as a dupe. OFBIZ-4496 = OFBIZ-4517 + OFBIZ-4582 .
          Hide
          Jacques Le Roux added a comment -

          Thanks Paul

          Show
          Jacques Le Roux added a comment - Thanks Paul

            People

            • Assignee:
              Jacques Le Roux
              Reporter:
              Kiran Gawde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development