[OFBiz] Dev - error trying to receive inventory

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

[OFBiz] Dev - error trying to receive inventory

Ray Barlow
Hi,

I'm getting this error thrown during receiving of inventory against
a(any) product id, in my test instance GZ-2644, the on screen error is:
The Following Errors Occurred:

Error running the simple-method: Error in simple-method operation []:
java.lang.RuntimeException: Error in simple-method operation []:
java.lang.RuntimeException: Error in simple-method operation []:
java.lang.ClassCastException
null

Anybody else getting this or have a fix? Thanks,

Ray

471683 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.187,since last(Begin):0.187]] - 'facility / prepareInventoryReceipt'
471684 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [createInventoryItem]
471745 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:242:DEBUG] XML Read 0.059s: file:/home/ray/work/OFBiz/ofbiztest/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
471863 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for [InventoryItem]; curSeqId=10030, maxSeqId=10040, bankSize=10
472184 (http-0.0.0.0-8443-Processor2) [      EntityEcaRule.java:122:INFO ] Running Entity ECA Service: createInventoryItemCheckSetAtpQoh, triggered by rule on Entity: InventoryItem
472187 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.0010,since last(Begin):0.0010]] - 'entity-default / createInventoryItemCheckSetAtpQoh'
472189 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.503,since last(Begin):0.504]] - 'facility / createInventoryItem'
472190 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [createInventoryItemDetail]
472283 (http-0.0.0.0-8443-Processor2) [      EntityEcaRule.java:122:INFO ] Running Entity ECA Service: updateInventoryItemFromDetail, triggered by rule on Entity: InventoryItemDetail
472296 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.011,since last(Begin):0.011]] - 'entity-default / updateInventoryItemFromDetail'
472298 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.107,since last(Begin):0.107]] - 'facility / createInventoryItemDetail'
472299 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [createShipmentReceipt]
472318 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:212:WARN ] [SequenceUtil.SequenceBank.fillBank] first select failed: will try to add new row, result set was empty for sequence [ShipmentReceipt]
Used SQL: SELECT SEQ_ID FROM OFBIZ.SEQUENCE_VALUE_ITEM WHERE SEQ_NAME='ShipmentReceipt'
 Thread Name is: http-0.0.0.0-8443-Processor2:Thread[http-0.0.0.0-8443-Processor2,5,main]
472344 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for [ShipmentReceipt]; curSeqId=10000, maxSeqId=10010, bankSize=10
472814 (http-0.0.0.0-8443-Processor2) [ServiceEcaCondition.java:137:WARN ] From Field (returnId) is not found in context for createShipmentReceipt, defaulting to null.
472816 (http-0.0.0.0-8443-Processor2) [     ServiceEcaRule.java:118:INFO ] Got false for condition: [null][][returnId][is-not-empty][null][][true][String][]
472817 (http-0.0.0.0-8443-Processor2) [ServiceEcaCondition.java:137:WARN ] From Field (orderId) is not found in context for createShipmentReceipt, defaulting to null.
472818 (http-0.0.0.0-8443-Processor2) [     ServiceEcaRule.java:118:INFO ] Got false for condition: [null][][orderId][is-not-empty][null][][true][String][]
472819 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.519,since last(Begin):0.519]] - 'facility / createShipmentReceipt'
472820 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [balanceInventoryItems]
472920 (http-0.0.0.0-8443-Processor2) [         ListToList.java:60 :INFO ] List not found with name privilegedReservations, not copying list
472923 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:932:ERROR]
---- runtime exception report --------------------------------------------------
Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
Exception: java.lang.ClassCastException
Message: null
---- stack trace ---------------------------------------------------------------
java.lang.ClassCastException
org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:181)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------

472925 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:932:ERROR]
---- runtime exception report --------------------------------------------------
Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
Exception: java.lang.RuntimeException
Message: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
---- stack trace ---------------------------------------------------------------
java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------

472928 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:932:ERROR]
---- runtime exception report --------------------------------------------------
Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
Exception: java.lang.RuntimeException
Message: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
---- stack trace ---------------------------------------------------------------
java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------

472954 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:573:ERROR] Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
472957 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:281:WARN ]
---- exception report ----------------------------------------------------------
[TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening:
Exception: java.lang.Exception
Message: null
---- stack trace ---------------------------------------------------------------
java.lang.Exception
org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:281)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:231)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:698)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------

472958 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:407:ERROR] Service Error [balanceInventoryItems]: Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException<br/>null
472959 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:285:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
472960 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.14,since last(Begin):0.14]] - 'facility / balanceInventoryItems'
472961 (http-0.0.0.0-8443-Processor2) [         GroupModel.java:160:ERROR] Grouped service [balanceInventoryItems] failed.
472962 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:407:ERROR] Service Error [receiveInventoryProduct]: Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException<br/>null
472963 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:285:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
472964 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:1.484,since last(Begin):1.484]] - 'facility / receiveInventoryProduct'
472966 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:248: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:247)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:229)
org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:304)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------

472983 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:258:INFO ] [TransactionUtil.rollback] transaction rolled back
472985 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:281:ERROR] Request receiveInventoryProduct caused an error with the following message:
Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException<br/>null


472986 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:372:INFO ] [RequestHandler.doRequest]: Response is a view.
472987 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:524:INFO ] servletName=control, view=ReceiveInventory
473022 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:242:DEBUG] XML Read 0.033s: file:/home/ray/work/OFBiz/ofbiztest/applications/product/widget/facility/FacilityScreens.xml
473027 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:127:INFO ] Got 20 screens in 0.038s from: file:/home/ray/work/OFBiz/ofbiztest/applications/product/widget/facility/FacilityScreens.xml
473095 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:242:DEBUG] XML Read 0.025s:
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Dev - error trying to receive inventory

Ray Barlow
Just to add that this only seems to occur when you have an open order
against that product. So you need to place an order for GZ-2644 so the
ATP is allocated and then goods receive to get the failure in the oisgir
(which I've now tracked to mean OrderItemShipGrpInvRes). If you complete
the order then the goods can be received.

I'm still confused as to what the class cast exception is relating to,  
I'm looking around line 460 of InventoryServices.xml.

Have just changed the following line and it appears to work now:

462 -           *<set* from-field="oisgir.orderId" field="cancelOisgirMap"*/>*

462 +           *<set* from-field="oisgir.orderId" field="cancelOisgirMap.orderId"*/>
*

File:
applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

This does appear to be enough to correct the problem. I guess the
original line is trying to convert the whole object rather than the field?!


Ray


Ray wrote:

> Hi,
>
> I'm getting this error thrown during receiving of inventory against
> a(any) product id, in my test instance GZ-2644, the on screen error is:
> The Following Errors Occurred:
>
> Error running the simple-method: Error in simple-method operation []:
> java.lang.RuntimeException: Error in simple-method operation []:
> java.lang.RuntimeException: Error in simple-method operation []:
> java.lang.ClassCastException
> null
>
> Anybody else getting this or have a fix? Thanks,
>
> Ray
>
>------------------------------------------------------------------------
>
>471683 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.187,since last(Begin):0.187]] - 'facility / prepareInventoryReceipt'
>471684 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [createInventoryItem]
>471745 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:242:DEBUG] XML Read 0.059s: file:/home/ray/work/OFBiz/ofbiztest/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
>471863 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for [InventoryItem]; curSeqId=10030, maxSeqId=10040, bankSize=10
>472184 (http-0.0.0.0-8443-Processor2) [      EntityEcaRule.java:122:INFO ] Running Entity ECA Service: createInventoryItemCheckSetAtpQoh, triggered by rule on Entity: InventoryItem
>472187 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.0010,since last(Begin):0.0010]] - 'entity-default / createInventoryItemCheckSetAtpQoh'
>472189 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.503,since last(Begin):0.504]] - 'facility / createInventoryItem'
>472190 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [createInventoryItemDetail]
>472283 (http-0.0.0.0-8443-Processor2) [      EntityEcaRule.java:122:INFO ] Running Entity ECA Service: updateInventoryItemFromDetail, triggered by rule on Entity: InventoryItemDetail
>472296 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.011,since last(Begin):0.011]] - 'entity-default / updateInventoryItemFromDetail'
>472298 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.107,since last(Begin):0.107]] - 'facility / createInventoryItemDetail'
>472299 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [createShipmentReceipt]
>472318 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:212:WARN ] [SequenceUtil.SequenceBank.fillBank] first select failed: will try to add new row, result set was empty for sequence [ShipmentReceipt]
>Used SQL: SELECT SEQ_ID FROM OFBIZ.SEQUENCE_VALUE_ITEM WHERE SEQ_NAME='ShipmentReceipt'
> Thread Name is: http-0.0.0.0-8443-Processor2:Thread[http-0.0.0.0-8443-Processor2,5,main]
>472344 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for [ShipmentReceipt]; curSeqId=10000, maxSeqId=10010, bankSize=10
>472814 (http-0.0.0.0-8443-Processor2) [ServiceEcaCondition.java:137:WARN ] From Field (returnId) is not found in context for createShipmentReceipt, defaulting to null.
>472816 (http-0.0.0.0-8443-Processor2) [     ServiceEcaRule.java:118:INFO ] Got false for condition: [null][][returnId][is-not-empty][null][][true][String][]
>472817 (http-0.0.0.0-8443-Processor2) [ServiceEcaCondition.java:137:WARN ] From Field (orderId) is not found in context for createShipmentReceipt, defaulting to null.
>472818 (http-0.0.0.0-8443-Processor2) [     ServiceEcaRule.java:118:INFO ] Got false for condition: [null][][orderId][is-not-empty][null][][true][String][]
>472819 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.519,since last(Begin):0.519]] - 'facility / createShipmentReceipt'
>472820 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:110:INFO ] Running grouped service [balanceInventoryItems]
>472920 (http-0.0.0.0-8443-Processor2) [         ListToList.java:60 :INFO ] List not found with name privilegedReservations, not copying list
>472923 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:932:ERROR]
>---- runtime exception report --------------------------------------------------
>Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>Exception: java.lang.ClassCastException
>Message: null
>---- stack trace ---------------------------------------------------------------
>java.lang.ClassCastException
>org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:181)
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>java.lang.Thread.run(Thread.java:534)
>--------------------------------------------------------------------------------
>
>472925 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:932:ERROR]
>---- runtime exception report --------------------------------------------------
>Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>Exception: java.lang.RuntimeException
>Message: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>---- stack trace ---------------------------------------------------------------
>java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
>org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>java.lang.Thread.run(Thread.java:534)
>--------------------------------------------------------------------------------
>
>472928 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:932:ERROR]
>---- runtime exception report --------------------------------------------------
>Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>Exception: java.lang.RuntimeException
>Message: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>---- stack trace ---------------------------------------------------------------
>java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
>org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>java.lang.Thread.run(Thread.java:534)
>--------------------------------------------------------------------------------
>
>472954 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:573:ERROR] Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException
>472957 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:281:WARN ]
>---- exception report ----------------------------------------------------------
>[TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening:
>Exception: java.lang.Exception
>Message: null
>---- stack trace ---------------------------------------------------------------
>java.lang.Exception
>org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:281)
>org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:231)
>org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:698)
>org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>java.lang.Thread.run(Thread.java:534)
>--------------------------------------------------------------------------------
>
>472958 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:407:ERROR] Service Error [balanceInventoryItems]: Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException<br/>null
>472959 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:285:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>472960 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:0.14,since last(Begin):0.14]] - 'facility / balanceInventoryItems'
>472961 (http-0.0.0.0-8443-Processor2) [         GroupModel.java:160:ERROR] Grouped service [balanceInventoryItems] failed.
>472962 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:407:ERROR] Service Error [receiveInventoryProduct]: Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException<br/>null
>472963 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:285:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
>472964 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:447:DEBUG] [[Sync service finished- total:1.484,since last(Begin):1.484]] - 'facility / receiveInventoryProduct'
>472966 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:248: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:247)
>org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:229)
>org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:304)
>org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>java.lang.Thread.run(Thread.java:534)
>--------------------------------------------------------------------------------
>
>472983 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:258:INFO ] [TransactionUtil.rollback] transaction rolled back
>472985 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:281:ERROR] Request receiveInventoryProduct caused an error with the following message:
>Error running the simple-method: Error in simple-method operation [<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in simple-method operation [<iterate list-name="allReservations" entry-name="oisgir"/>]: java.lang.RuntimeException: Error in simple-method operation [<call-service/>]: java.lang.ClassCastException<br/>null
>
>
>472986 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:372:INFO ] [RequestHandler.doRequest]: Response is a view.
>472987 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:524:INFO ] servletName=control, view=ReceiveInventory
>473022 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:242:DEBUG] XML Read 0.033s: file:/home/ray/work/OFBiz/ofbiztest/applications/product/widget/facility/FacilityScreens.xml
>473027 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:127:INFO ] Got 20 screens in 0.038s from: file:/home/ray/work/OFBiz/ofbiztest/applications/product/widget/facility/FacilityScreens.xml
>473095 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:242:DEBUG] XML Read 0.025s:
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>Dev mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/dev
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Dev - error trying to receive inventory

Si Chen-2
Ray,

Should we just make this change?  Does it fix your issue?

Si

Ray wrote:

> Just to add that this only seems to occur when you have an open order
> against that product. So you need to place an order for GZ-2644 so the
> ATP is allocated and then goods receive to get the failure in the
> oisgir (which I've now tracked to mean OrderItemShipGrpInvRes). If you
> complete the order then the goods can be received.
>
> I'm still confused as to what the class cast exception is relating
> to,  I'm looking around line 460 of InventoryServices.xml.
>
> Have just changed the following line and it appears to work now:
>
> 462 -           *<set* from-field="oisgir.orderId"
> field="cancelOisgirMap"*/>*
>
> 462 +           *<set* from-field="oisgir.orderId"
> field="cancelOisgirMap.orderId"*/>
> *
>
> File:
> applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
>
>
> This does appear to be enough to correct the problem. I guess the
> original line is trying to convert the whole object rather than the
> field?!
>
>
> Ray
>
>
> Ray wrote:
>
>> Hi,
>>
>> I'm getting this error thrown during receiving of inventory against
>> a(any) product id, in my test instance GZ-2644, the on screen error is:
>> The Following Errors Occurred:
>>
>> Error running the simple-method: Error in simple-method operation []:
>> java.lang.RuntimeException: Error in simple-method operation []:
>> java.lang.RuntimeException: Error in simple-method operation []:
>> java.lang.ClassCastException
>> null
>>
>> Anybody else getting this or have a fix? Thanks,
>>
>> Ray
>>
>> ------------------------------------------------------------------------
>>
>> 471683 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:0.187,since last(Begin):0.187]] - 'facility /
>> prepareInventoryReceipt'
>> 471684 (http-0.0.0.0-8443-Processor2) [  
>> GroupServiceModel.java:110:INFO ] Running grouped service
>> [createInventoryItem]
>> 471745 (http-0.0.0.0-8443-Processor2) [            
>> UtilXml.java:242:DEBUG] XML Read 0.059s:
>> file:/home/ray/work/OFBiz/ofbiztest/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
>>
>> 471863 (http-0.0.0.0-8443-Processor2) [      
>> SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for
>> [InventoryItem]; curSeqId=10030, maxSeqId=10040, bankSize=10
>> 472184 (http-0.0.0.0-8443-Processor2) [      
>> EntityEcaRule.java:122:INFO ] Running Entity ECA Service:
>> createInventoryItemCheckSetAtpQoh, triggered by rule on Entity:
>> InventoryItem
>> 472187 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:0.0010,since last(Begin):0.0010]] - 'entity-default /
>> createInventoryItemCheckSetAtpQoh'
>> 472189 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:0.503,since last(Begin):0.504]] - 'facility / createInventoryItem'
>> 472190 (http-0.0.0.0-8443-Processor2) [  
>> GroupServiceModel.java:110:INFO ] Running grouped service
>> [createInventoryItemDetail]
>> 472283 (http-0.0.0.0-8443-Processor2) [      
>> EntityEcaRule.java:122:INFO ] Running Entity ECA Service:
>> updateInventoryItemFromDetail, triggered by rule on Entity:
>> InventoryItemDetail
>> 472296 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:0.011,since last(Begin):0.011]] - 'entity-default /
>> updateInventoryItemFromDetail'
>> 472298 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:0.107,since last(Begin):0.107]] - 'facility /
>> createInventoryItemDetail'
>> 472299 (http-0.0.0.0-8443-Processor2) [  
>> GroupServiceModel.java:110:INFO ] Running grouped service
>> [createShipmentReceipt]
>> 472318 (http-0.0.0.0-8443-Processor2) [      
>> SequenceUtil.java:212:WARN ] [SequenceUtil.SequenceBank.fillBank]
>> first select failed: will try to add new row, result set was empty
>> for sequence [ShipmentReceipt] Used SQL: SELECT SEQ_ID FROM
>> OFBIZ.SEQUENCE_VALUE_ITEM WHERE SEQ_NAME='ShipmentReceipt' Thread
>> Name is:
>> http-0.0.0.0-8443-Processor2:Thread[http-0.0.0.0-8443-Processor2,5,main]
>> 472344 (http-0.0.0.0-8443-Processor2) [      
>> SequenceUtil.java:263:INFO ] Got bank of sequenced IDs for
>> [ShipmentReceipt]; curSeqId=10000, maxSeqId=10010, bankSize=10
>> 472814 (http-0.0.0.0-8443-Processor2)
>> [ServiceEcaCondition.java:137:WARN ] From Field (returnId) is not
>> found in context for createShipmentReceipt, defaulting to null.
>> 472816 (http-0.0.0.0-8443-Processor2) [    
>> ServiceEcaRule.java:118:INFO ] Got false for condition:
>> [null][][returnId][is-not-empty][null][][true][String][]
>> 472817 (http-0.0.0.0-8443-Processor2)
>> [ServiceEcaCondition.java:137:WARN ] From Field (orderId) is not
>> found in context for createShipmentReceipt, defaulting to null.
>> 472818 (http-0.0.0.0-8443-Processor2) [    
>> ServiceEcaRule.java:118:INFO ] Got false for condition:
>> [null][][orderId][is-not-empty][null][][true][String][]
>> 472819 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:0.519,since last(Begin):0.519]] - 'facility /
>> createShipmentReceipt'
>> 472820 (http-0.0.0.0-8443-Processor2) [  
>> GroupServiceModel.java:110:INFO ] Running grouped service
>> [balanceInventoryItems]
>> 472920 (http-0.0.0.0-8443-Processor2) [         ListToList.java:60
>> :INFO ] List not found with name privilegedReservations, not copying
>> list
>> 472923 (http-0.0.0.0-8443-Processor2) [      
>> SimpleMethod.java:932:ERROR] ---- runtime exception report
>> --------------------------------------------------
>> Error in simple-method operation [<call-service/>]:
>> java.lang.ClassCastException
>> Exception: java.lang.ClassCastException
>> Message: null
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.ClassCastException
>> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:181)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>>
>> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>>
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>>
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>>
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>>
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>> java.lang.Thread.run(Thread.java:534)
>> --------------------------------------------------------------------------------
>>
>>
>> 472925 (http-0.0.0.0-8443-Processor2) [      
>> SimpleMethod.java:932:ERROR] ---- runtime exception report
>> --------------------------------------------------
>> Error in simple-method operation [<iterate
>> list-name="allReservations" entry-name="oisgir"/>]:
>> java.lang.RuntimeException: Error in simple-method operation
>> [<call-service/>]: java.lang.ClassCastException
>> Exception: java.lang.RuntimeException
>> Message: Error in simple-method operation [<call-service/>]:
>> java.lang.ClassCastException
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.RuntimeException: Error in simple-method operation
>> [<call-service/>]: java.lang.ClassCastException
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>>
>> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>>
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>>
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>>
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>>
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>> java.lang.Thread.run(Thread.java:534)
>> --------------------------------------------------------------------------------
>>
>>
>> 472928 (http-0.0.0.0-8443-Processor2) [      
>> SimpleMethod.java:932:ERROR] ---- runtime exception report
>> --------------------------------------------------
>> Error in simple-method operation [<if-compare
>> field-name="inventoryItemTypeId" map-name="inventoryItem"
>> value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in
>> simple-method operation [<iterate list-name="allReservations"
>> entry-name="oisgir"/>]: java.lang.RuntimeException: Error in
>> simple-method operation [<call-service/>]: java.lang.ClassCastException
>> Exception: java.lang.RuntimeException
>> Message: Error in simple-method operation [<iterate
>> list-name="allReservations" entry-name="oisgir"/>]:
>> java.lang.RuntimeException: Error in simple-method operation
>> [<call-service/>]: java.lang.ClassCastException
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.RuntimeException: Error in simple-method operation
>> [<iterate list-name="allReservations" entry-name="oisgir"/>]:
>> java.lang.RuntimeException: Error in simple-method operation
>> [<call-service/>]: java.lang.ClassCastException
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>>
>> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>>
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>>
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>>
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>>
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>> java.lang.Thread.run(Thread.java:534)
>> --------------------------------------------------------------------------------
>>
>>
>> 472954 (http-0.0.0.0-8443-Processor2) [      
>> SimpleMethod.java:573:ERROR] Error running the simple-method: Error
>> in simple-method operation [<if-compare
>> field-name="inventoryItemTypeId" map-name="inventoryItem"
>> value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in
>> simple-method operation [<iterate list-name="allReservations"
>> entry-name="oisgir"/>]: java.lang.RuntimeException: Error in
>> simple-method operation [<call-service/>]: java.lang.ClassCastException
>> 472957 (http-0.0.0.0-8443-Processor2) [    
>> TransactionUtil.java:281:WARN ] ---- exception report
>> ----------------------------------------------------------
>> [TransactionUtil.setRollbackOnly] Calling transaction
>> setRollbackOnly; this stack trace shows where this is happening:
>> Exception: java.lang.Exception
>> Message: null
>> ---- stack trace
>> ---------------------------------------------------------------
>> java.lang.Exception
>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:281)
>>
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:231)
>>
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:698)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:86)
>>
>> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:61)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.group.GroupServiceModel.invoke(GroupServiceModel.java:121)
>>
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync(ServiceGroupEngine.java:57)
>>
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:273)
>>
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>>
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>>
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>> java.lang.Thread.run(Thread.java:534)
>> --------------------------------------------------------------------------------
>>
>>
>> 472958 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:407:ERROR] Service Error
>> [balanceInventoryItems]: Error running the simple-method: Error in
>> simple-method operation [<if-compare field-name="inventoryItemTypeId"
>> map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]:
>> java.lang.RuntimeException: Error in simple-method operation
>> [<iterate list-name="allReservations" entry-name="oisgir"/>]:
>> java.lang.RuntimeException: Error in simple-method operation
>> [<call-service/>]: java.lang.ClassCastException<br/>null
>> 472959 (http-0.0.0.0-8443-Processor2) [    
>> TransactionUtil.java:285:INFO ] [TransactionUtil.setRollbackOnly]
>> transaction rollback only not set, rollback only is already set.
>> 472960 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:0.14,since last(Begin):0.14]] - 'facility / balanceInventoryItems'
>> 472961 (http-0.0.0.0-8443-Processor2) [        
>> GroupModel.java:160:ERROR] Grouped service [balanceInventoryItems]
>> failed.
>> 472962 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:407:ERROR] Service Error
>> [receiveInventoryProduct]: Error running the simple-method: Error in
>> simple-method operation [<if-compare field-name="inventoryItemTypeId"
>> map-name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]:
>> java.lang.RuntimeException: Error in simple-method operation
>> [<iterate list-name="allReservations" entry-name="oisgir"/>]:
>> java.lang.RuntimeException: Error in simple-method operation
>> [<call-service/>]: java.lang.ClassCastException<br/>null
>> 472963 (http-0.0.0.0-8443-Processor2) [    
>> TransactionUtil.java:285:INFO ] [TransactionUtil.setRollbackOnly]
>> transaction rollback only not set, rollback only is already set.
>> 472964 (http-0.0.0.0-8443-Processor2) [  
>> ServiceDispatcher.java:447:DEBUG] [[Sync service finished-
>> total:1.484,since last(Begin):1.484]] - 'facility /
>> receiveInventoryProduct'
>> 472966 (http-0.0.0.0-8443-Processor2) [    
>> TransactionUtil.java:248: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:247)
>>
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:229)
>>
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:304)
>>
>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:393)
>>
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:250)
>>
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>>
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>> java.lang.Thread.run(Thread.java:534)
>> --------------------------------------------------------------------------------
>>
>>
>> 472983 (http-0.0.0.0-8443-Processor2) [    
>> TransactionUtil.java:258:INFO ] [TransactionUtil.rollback]
>> transaction rolled back
>> 472985 (http-0.0.0.0-8443-Processor2) [    
>> RequestHandler.java:281:ERROR] Request receiveInventoryProduct caused
>> an error with the following message: Error running the simple-method:
>> Error in simple-method operation [<if-compare
>> field-name="inventoryItemTypeId" map-name="inventoryItem"
>> value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error in
>> simple-method operation [<iterate list-name="allReservations"
>> entry-name="oisgir"/>]: java.lang.RuntimeException: Error in
>> simple-method operation [<call-service/>]:
>> java.lang.ClassCastException<br/>null
>>
>>
>> 472986 (http-0.0.0.0-8443-Processor2) [    
>> RequestHandler.java:372:INFO ] [RequestHandler.doRequest]: Response
>> is a view.
>> 472987 (http-0.0.0.0-8443-Processor2) [    
>> RequestHandler.java:524:INFO ] servletName=control,
>> view=ReceiveInventory
>> 473022 (http-0.0.0.0-8443-Processor2) [            
>> UtilXml.java:242:DEBUG] XML Read 0.033s:
>> file:/home/ray/work/OFBiz/ofbiztest/applications/product/widget/facility/FacilityScreens.xml
>>
>> 473027 (http-0.0.0.0-8443-Processor2) [      
>> ScreenFactory.java:127:INFO ] Got 20 screens in 0.038s from:
>> file:/home/ray/work/OFBiz/ofbiztest/applications/product/widget/facility/FacilityScreens.xml
>>
>> 473095 (http-0.0.0.0-8443-Processor2) [            
>> UtilXml.java:242:DEBUG] XML Read 0.025s:
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Dev - error trying to receive inventory

David E. Jones
In reply to this post by Ray Barlow

Thanks Ray, that would be the problem. The ClassCastException was  
thrown because the first line was creating a new variable called  
cancelOisgirMap as a String, and then the following operation tried  
to treat it like a Map.

Your change is in SVN rev 5928.

-David


On Oct 7, 2005, at 6:26 AM, Ray wrote:

> Just to add that this only seems to occur when you have an open  
> order against that product. So you need to place an order for  
> GZ-2644 so the ATP is allocated and then goods receive to get the  
> failure in the oisgir (which I've now tracked to mean  
> OrderItemShipGrpInvRes). If you complete the order then the goods  
> can be received.
>
> I'm still confused as to what the class cast exception is relating  
> to,  I'm looking around line 460 of InventoryServices.xml.
>
> Have just changed the following line and it appears to work now:
>
> 462 -           *<set* from-field="oisgir.orderId"  
> field="cancelOisgirMap"*/>*
>
> 462 +           *<set* from-field="oisgir.orderId"  
> field="cancelOisgirMap.orderId"*/>
> *
>
> File: applications/product/script/org/ofbiz/product/inventory/
> InventoryServices.xml
>
> This does appear to be enough to correct the problem. I guess the  
> original line is trying to convert the whole object rather than the  
> field?!
>
>
> Ray
>
>
> Ray wrote:
>
>
>> Hi,
>>
>> I'm getting this error thrown during receiving of inventory  
>> against a(any) product id, in my test instance GZ-2644, the on  
>> screen error is:
>> The Following Errors Occurred:
>>
>> Error running the simple-method: Error in simple-method operation  
>> []: java.lang.RuntimeException: Error in simple-method operation  
>> []: java.lang.RuntimeException: Error in simple-method operation  
>> []: java.lang.ClassCastException
>> null
>>
>> Anybody else getting this or have a fix? Thanks,
>>
>> Ray
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> 471683 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:0.187,since last(Begin):
>> 0.187]] - 'facility / prepareInventoryReceipt'
>> 471684 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:
>> 110:INFO ] Running grouped service [createInventoryItem]
>> 471745 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:
>> 242:DEBUG] XML Read 0.059s: file:/home/ray/work/OFBiz/ofbiztest/
>> applications/product/script/org/ofbiz/product/inventory/
>> InventoryServices.xml
>> 471863 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:
>> 263:INFO ] Got bank of sequenced IDs for [InventoryItem];  
>> curSeqId=10030, maxSeqId=10040, bankSize=10
>> 472184 (http-0.0.0.0-8443-Processor2) [      EntityEcaRule.java:
>> 122:INFO ] Running Entity ECA Service:  
>> createInventoryItemCheckSetAtpQoh, triggered by rule on Entity:  
>> InventoryItem
>> 472187 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:0.0010,since last(Begin):
>> 0.0010]] - 'entity-default / createInventoryItemCheckSetAtpQoh'
>> 472189 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:0.503,since last(Begin):
>> 0.504]] - 'facility / createInventoryItem'
>> 472190 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:
>> 110:INFO ] Running grouped service [createInventoryItemDetail]
>> 472283 (http-0.0.0.0-8443-Processor2) [      EntityEcaRule.java:
>> 122:INFO ] Running Entity ECA Service:  
>> updateInventoryItemFromDetail, triggered by rule on Entity:  
>> InventoryItemDetail
>> 472296 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:0.011,since last(Begin):
>> 0.011]] - 'entity-default / updateInventoryItemFromDetail'
>> 472298 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:0.107,since last(Begin):
>> 0.107]] - 'facility / createInventoryItemDetail'
>> 472299 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:
>> 110:INFO ] Running grouped service [createShipmentReceipt]
>> 472318 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:
>> 212:WARN ] [SequenceUtil.SequenceBank.fillBank] first select  
>> failed: will try to add new row, result set was empty for sequence  
>> [ShipmentReceipt] Used SQL: SELECT SEQ_ID FROM  
>> OFBIZ.SEQUENCE_VALUE_ITEM WHERE SEQ_NAME='ShipmentReceipt' Thread  
>> Name is: http-0.0.0.0-8443-Processor2:Thread[http-0.0.0.0-8443-
>> Processor2,5,main]
>> 472344 (http-0.0.0.0-8443-Processor2) [       SequenceUtil.java:
>> 263:INFO ] Got bank of sequenced IDs for [ShipmentReceipt];  
>> curSeqId=10000, maxSeqId=10010, bankSize=10
>> 472814 (http-0.0.0.0-8443-Processor2) [ServiceEcaCondition.java:
>> 137:WARN ] From Field (returnId) is not found in context for  
>> createShipmentReceipt, defaulting to null.
>> 472816 (http-0.0.0.0-8443-Processor2) [     ServiceEcaRule.java:
>> 118:INFO ] Got false for condition: [null][][returnId][is-not-
>> empty][null][][true][String][]
>> 472817 (http-0.0.0.0-8443-Processor2) [ServiceEcaCondition.java:
>> 137:WARN ] From Field (orderId) is not found in context for  
>> createShipmentReceipt, defaulting to null.
>> 472818 (http-0.0.0.0-8443-Processor2) [     ServiceEcaRule.java:
>> 118:INFO ] Got false for condition: [null][][orderId][is-not-empty]
>> [null][][true][String][]
>> 472819 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:0.519,since last(Begin):
>> 0.519]] - 'facility / createShipmentReceipt'
>> 472820 (http-0.0.0.0-8443-Processor2) [  GroupServiceModel.java:
>> 110:INFO ] Running grouped service [balanceInventoryItems]
>> 472920 (http-0.0.0.0-8443-Processor2) [         ListToList.java:
>> 60 :INFO ] List not found with name privilegedReservations, not  
>> copying list
>> 472923 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:
>> 932:ERROR] ---- runtime exception report  
>> --------------------------------------------------
>> Error in simple-method operation [<call-service/>]:  
>> java.lang.ClassCastException
>> Exception: java.lang.ClassCastException
>> Message: null
>> ---- stack trace  
>> ---------------------------------------------------------------
>> java.lang.ClassCastException
>> org.ofbiz.minilang.method.callops.CallService.exec
>> (CallService.java:181)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker
>> (SimpleServiceEngine.java:86)
>> org.ofbiz.minilang.SimpleServiceEngine.runSync
>> (SimpleServiceEngine.java:61)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.group.GroupServiceModel.invoke
>> (GroupServiceModel.java:121)
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync
>> (ServiceGroupEngine.java:57)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke
>> (ServiceMultiEventHandler.java:273)
>> org.ofbiz.webapp.control.RequestHandler.runEvent
>> (RequestHandler.java:393)
>> org.ofbiz.webapp.control.RequestHandler.doRequest
>> (RequestHandler.java:250)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:
>> 87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:252)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:202)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.apache.catalina.core.StandardWrapperValve.invoke
>> (StandardWrapperValve.java:213)
>> org.apache.catalina.core.StandardContextValve.invoke
>> (StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke
>> (StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:105)
>> org.apache.catalina.core.StandardEngineValve.invoke
>> (StandardEngineValve.java:107)
>> org.apache.catalina.valves.AccessLogValve.invoke
>> (AccessLogValve.java:526)
>> org.apache.catalina.connector.CoyoteAdapter.service
>> (CoyoteAdapter.java:148)
>> org.apache.coyote.http11.Http11Processor.process
>> (Http11Processor.java:856)
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>> (PoolTcpEndpoint.java:527)
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>> (LeaderFollowerWorkerThread.java:80)
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
>> (ThreadPool.java:684)
>> java.lang.Thread.run(Thread.java:534)
>> ---------------------------------------------------------------------
>> -----------
>>
>> 472925 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:
>> 932:ERROR] ---- runtime exception report  
>> --------------------------------------------------
>> Error in simple-method operation [<iterate list-
>> name="allReservations" entry-name="oisgir"/>]:  
>> java.lang.RuntimeException: Error in simple-method operation  
>> [<call-service/>]: java.lang.ClassCastException
>> Exception: java.lang.RuntimeException
>> Message: Error in simple-method operation [<call-service/>]:  
>> java.lang.ClassCastException
>> ---- stack trace  
>> ---------------------------------------------------------------
>> java.lang.RuntimeException: Error in simple-method operation  
>> [<call-service/>]: java.lang.ClassCastException
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
>> org.ofbiz.minilang.method.envops.Iterate.exec(Iterate.java:121)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker
>> (SimpleServiceEngine.java:86)
>> org.ofbiz.minilang.SimpleServiceEngine.runSync
>> (SimpleServiceEngine.java:61)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.group.GroupServiceModel.invoke
>> (GroupServiceModel.java:121)
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync
>> (ServiceGroupEngine.java:57)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke
>> (ServiceMultiEventHandler.java:273)
>> org.ofbiz.webapp.control.RequestHandler.runEvent
>> (RequestHandler.java:393)
>> org.ofbiz.webapp.control.RequestHandler.doRequest
>> (RequestHandler.java:250)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:
>> 87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:252)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:202)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.apache.catalina.core.StandardWrapperValve.invoke
>> (StandardWrapperValve.java:213)
>> org.apache.catalina.core.StandardContextValve.invoke
>> (StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke
>> (StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:105)
>> org.apache.catalina.core.StandardEngineValve.invoke
>> (StandardEngineValve.java:107)
>> org.apache.catalina.valves.AccessLogValve.invoke
>> (AccessLogValve.java:526)
>> org.apache.catalina.connector.CoyoteAdapter.service
>> (CoyoteAdapter.java:148)
>> org.apache.coyote.http11.Http11Processor.process
>> (Http11Processor.java:856)
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>> (PoolTcpEndpoint.java:527)
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>> (LeaderFollowerWorkerThread.java:80)
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
>> (ThreadPool.java:684)
>> java.lang.Thread.run(Thread.java:534)
>> ---------------------------------------------------------------------
>> -----------
>>
>> 472928 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:
>> 932:ERROR] ---- runtime exception report  
>> --------------------------------------------------
>> Error in simple-method operation [<if-compare field-
>> name="inventoryItemTypeId" map-name="inventoryItem"  
>> value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error  
>> in simple-method operation [<iterate list-name="allReservations"  
>> entry-name="oisgir"/>]: java.lang.RuntimeException: Error in  
>> simple-method operation [<call-service/>]:  
>> java.lang.ClassCastException
>> Exception: java.lang.RuntimeException
>> Message: Error in simple-method operation [<iterate list-
>> name="allReservations" entry-name="oisgir"/>]:  
>> java.lang.RuntimeException: Error in simple-method operation  
>> [<call-service/>]: java.lang.ClassCastException
>> ---- stack trace  
>> ---------------------------------------------------------------
>> java.lang.RuntimeException: Error in simple-method operation  
>> [<iterate list-name="allReservations" entry-name="oisgir"/>]:  
>> java.lang.RuntimeException: Error in simple-method operation  
>> [<call-service/>]: java.lang.ClassCastException
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:933)
>> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:125)
>> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:927)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:569)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker
>> (SimpleServiceEngine.java:86)
>> org.ofbiz.minilang.SimpleServiceEngine.runSync
>> (SimpleServiceEngine.java:61)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.group.GroupServiceModel.invoke
>> (GroupServiceModel.java:121)
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync
>> (ServiceGroupEngine.java:57)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke
>> (ServiceMultiEventHandler.java:273)
>> org.ofbiz.webapp.control.RequestHandler.runEvent
>> (RequestHandler.java:393)
>> org.ofbiz.webapp.control.RequestHandler.doRequest
>> (RequestHandler.java:250)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:
>> 87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:252)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:202)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.apache.catalina.core.StandardWrapperValve.invoke
>> (StandardWrapperValve.java:213)
>> org.apache.catalina.core.StandardContextValve.invoke
>> (StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke
>> (StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:105)
>> org.apache.catalina.core.StandardEngineValve.invoke
>> (StandardEngineValve.java:107)
>> org.apache.catalina.valves.AccessLogValve.invoke
>> (AccessLogValve.java:526)
>> org.apache.catalina.connector.CoyoteAdapter.service
>> (CoyoteAdapter.java:148)
>> org.apache.coyote.http11.Http11Processor.process
>> (Http11Processor.java:856)
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>> (PoolTcpEndpoint.java:527)
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>> (LeaderFollowerWorkerThread.java:80)
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
>> (ThreadPool.java:684)
>> java.lang.Thread.run(Thread.java:534)
>> ---------------------------------------------------------------------
>> -----------
>>
>> 472954 (http-0.0.0.0-8443-Processor2) [       SimpleMethod.java:
>> 573:ERROR] Error running the simple-method: Error in simple-method  
>> operation [<if-compare field-name="inventoryItemTypeId" map-
>> name="inventoryItem" value="NON_SERIAL_INV_ITEM"/>]:  
>> java.lang.RuntimeException: Error in simple-method operation  
>> [<iterate list-name="allReservations" entry-name="oisgir"/>]:  
>> java.lang.RuntimeException: Error in simple-method operation  
>> [<call-service/>]: java.lang.ClassCastException
>> 472957 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:
>> 281:WARN ] ---- exception report  
>> ----------------------------------------------------------
>> [TransactionUtil.setRollbackOnly] Calling transaction  
>> setRollbackOnly; this stack trace shows where this is happening:
>> Exception: java.lang.Exception
>> Message: null
>> ---- stack trace  
>> ---------------------------------------------------------------
>> java.lang.Exception
>> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly
>> (TransactionUtil.java:281)
>> org.ofbiz.entity.transaction.TransactionUtil.rollback
>> (TransactionUtil.java:231)
>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:698)
>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:
>> 116)
>> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:
>> 98)
>> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker
>> (SimpleServiceEngine.java:86)
>> org.ofbiz.minilang.SimpleServiceEngine.runSync
>> (SimpleServiceEngine.java:61)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.group.GroupServiceModel.invoke
>> (GroupServiceModel.java:121)
>> org.ofbiz.service.group.GroupModel.runAll(GroupModel.java:155)
>> org.ofbiz.service.group.GroupModel.run(GroupModel.java:120)
>> org.ofbiz.service.group.ServiceGroupEngine.runSync
>> (ServiceGroupEngine.java:57)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 339)
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
>> 213)
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
>> 110)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke
>> (ServiceMultiEventHandler.java:273)
>> org.ofbiz.webapp.control.RequestHandler.runEvent
>> (RequestHandler.java:393)
>> org.ofbiz.webapp.control.RequestHandler.doRequest
>> (RequestHandler.java:250)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:
>> 87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:252)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:202)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.apache.catalina.core.StandardWrapperValve.invoke
>> (StandardWrapperValve.java:213)
>> org.apache.catalina.core.StandardContextValve.invoke
>> (StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke
>> (StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:105)
>> org.apache.catalina.core.StandardEngineValve.invoke
>> (StandardEngineValve.java:107)
>> org.apache.catalina.valves.AccessLogValve.invoke
>> (AccessLogValve.java:526)
>> org.apache.catalina.connector.CoyoteAdapter.service
>> (CoyoteAdapter.java:148)
>> org.apache.coyote.http11.Http11Processor.process
>> (Http11Processor.java:856)
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>> (PoolTcpEndpoint.java:527)
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>> (LeaderFollowerWorkerThread.java:80)
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
>> (ThreadPool.java:684)
>> java.lang.Thread.run(Thread.java:534)
>> ---------------------------------------------------------------------
>> -----------
>>
>> 472958 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 407:ERROR] Service Error [balanceInventoryItems]: Error running  
>> the simple-method: Error in simple-method operation [<if-compare  
>> field-name="inventoryItemTypeId" map-name="inventoryItem"  
>> value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error  
>> in simple-method operation [<iterate list-name="allReservations"  
>> entry-name="oisgir"/>]: java.lang.RuntimeException: Error in  
>> simple-method operation [<call-service/>]:  
>> java.lang.ClassCastException<br/>null
>> 472959 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:
>> 285:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback  
>> only not set, rollback only is already set.
>> 472960 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:0.14,since last(Begin):
>> 0.14]] - 'facility / balanceInventoryItems'
>> 472961 (http-0.0.0.0-8443-Processor2) [         GroupModel.java:
>> 160:ERROR] Grouped service [balanceInventoryItems] failed.
>> 472962 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 407:ERROR] Service Error [receiveInventoryProduct]: Error running  
>> the simple-method: Error in simple-method operation [<if-compare  
>> field-name="inventoryItemTypeId" map-name="inventoryItem"  
>> value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error  
>> in simple-method operation [<iterate list-name="allReservations"  
>> entry-name="oisgir"/>]: java.lang.RuntimeException: Error in  
>> simple-method operation [<call-service/>]:  
>> java.lang.ClassCastException<br/>null
>> 472963 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:
>> 285:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback  
>> only not set, rollback only is already set.
>> 472964 (http-0.0.0.0-8443-Processor2) [  ServiceDispatcher.java:
>> 447:DEBUG] [[Sync service finished- total:1.484,since last(Begin):
>> 1.484]] - 'facility / receiveInventoryProduct'
>> 472966 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:
>> 248: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:247)
>> org.ofbiz.entity.transaction.TransactionUtil.rollback
>> (TransactionUtil.java:229)
>> org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke
>> (ServiceMultiEventHandler.java:304)
>> org.ofbiz.webapp.control.RequestHandler.runEvent
>> (RequestHandler.java:393)
>> org.ofbiz.webapp.control.RequestHandler.doRequest
>> (RequestHandler.java:250)
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
>> 191)
>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:
>> 87)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:252)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:
>> 258)
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (ApplicationFilterChain.java:202)
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterChain.java:173)
>> org.apache.catalina.core.StandardWrapperValve.invoke
>> (StandardWrapperValve.java:213)
>> org.apache.catalina.core.StandardContextValve.invoke
>> (StandardContextValve.java:178)
>> org.apache.catalina.core.StandardHostValve.invoke
>> (StandardHostValve.java:126)
>> org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:105)
>> org.apache.catalina.core.StandardEngineValve.invoke
>> (StandardEngineValve.java:107)
>> org.apache.catalina.valves.AccessLogValve.invoke
>> (AccessLogValve.java:526)
>> org.apache.catalina.connector.CoyoteAdapter.service
>> (CoyoteAdapter.java:148)
>> org.apache.coyote.http11.Http11Processor.process
>> (Http11Processor.java:856)
>> org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>> (PoolTcpEndpoint.java:527)
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>> (LeaderFollowerWorkerThread.java:80)
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
>> (ThreadPool.java:684)
>> java.lang.Thread.run(Thread.java:534)
>> ---------------------------------------------------------------------
>> -----------
>>
>> 472983 (http-0.0.0.0-8443-Processor2) [    TransactionUtil.java:
>> 258:INFO ] [TransactionUtil.rollback] transaction rolled back
>> 472985 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:
>> 281:ERROR] Request receiveInventoryProduct caused an error with  
>> the following message: Error running the simple-method: Error in  
>> simple-method operation [<if-compare field-
>> name="inventoryItemTypeId" map-name="inventoryItem"  
>> value="NON_SERIAL_INV_ITEM"/>]: java.lang.RuntimeException: Error  
>> in simple-method operation [<iterate list-name="allReservations"  
>> entry-name="oisgir"/>]: java.lang.RuntimeException: Error in  
>> simple-method operation [<call-service/>]:  
>> java.lang.ClassCastException<br/>null
>>
>>
>> 472986 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:
>> 372:INFO ] [RequestHandler.doRequest]: Response is a view.
>> 472987 (http-0.0.0.0-8443-Processor2) [     RequestHandler.java:
>> 524:INFO ] servletName=control, view=ReceiveInventory
>> 473022 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:
>> 242:DEBUG] XML Read 0.033s: file:/home/ray/work/OFBiz/ofbiztest/
>> applications/product/widget/facility/FacilityScreens.xml
>> 473027 (http-0.0.0.0-8443-Processor2) [      ScreenFactory.java:
>> 127:INFO ] Got 20 screens in 0.038s from: file:/home/ray/work/
>> OFBiz/ofbiztest/applications/product/widget/facility/
>> FacilityScreens.xml
>> 473095 (http-0.0.0.0-8443-Processor2) [            UtilXml.java:
>> 242:DEBUG] XML Read 0.025s:
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

smime.p7s (3K) Download Attachment