[ http://issues.apache.org/jira/browse/OFBIZ-58?page=comments#action_12418152 ]
Daniel Kunkel commented on OFBIZ-58: ------------------------------------ Was able to get by this by specificially selecting Company instead of accepting the default "Marketing Department." Would a better error message be appropriate? --- Now I receive an error after "quick receive" when it jumps me into the Facility module: I get the error if I pick the radio button: 10000 Purchase Shipment but not if I pick to receive the entire PO. Service invocation error on row (0): org.ofbiz.service.GenericServiceException: Service target threw an unexpected exception (null) 76077371[ ServiceDispatcher.java:386:DEBUG] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'facility / createShipmentReceipt' 76077379[ ServiceDispatcher.java:389:ERROR] ---- exception report ---------------------------------------------------------- Service [createShipmentReceipt] threw an unexpected exception/error Exception: org.ofbiz.service.GenericServiceException Message: Problems with the transaction. (Service target threw an unexpected exception (null)) ---- stack trace --------------------------------------------------------------- org.ofbiz.service.GenericServiceException: Problems with the transaction. (Service target threw an unexpected exception (null)) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:432) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:109) org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:135) org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:173) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:373) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) 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:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:287) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:416) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:252) 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:615) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) 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:541) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) org.ofbiz.service.GenericServiceException: Service target threw an unexpected exception (null) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:113) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.accounting.invoice.InvoiceServices.createInvoicesFromShipments(InvoiceServices.java:1026) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.accounting.invoice.InvoiceServices.createInvoicesFromShipment(InvoiceServices.java:843) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:109) org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:135) org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:173) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:373) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.shipment.shipment.ShipmentServices.updatePurchaseShipmentFromReceipt(ShipmentServices.java:841) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:109) org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:135) org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:173) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:373) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) 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:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:287) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:416) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:252) 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:615) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) 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:541) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) java.lang.NullPointerException org.ofbiz.accounting.invoice.InvoiceServices.createInvoiceForOrder(InvoiceServices.java:182) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.accounting.invoice.InvoiceServices.createInvoicesFromShipments(InvoiceServices.java:1026) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.accounting.invoice.InvoiceServices.createInvoicesFromShipment(InvoiceServices.java:843) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:109) org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:135) org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:173) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:373) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.shipment.shipment.ShipmentServices.updatePurchaseShipmentFromReceipt(ShipmentServices.java:841) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:101) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:63) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:109) org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:135) org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:173) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:373) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) 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:340) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:214) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:123) org.ofbiz.webapp.event.ServiceMultiEventHandler.invoke(ServiceMultiEventHandler.java:287) org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:416) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:252) 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:615) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) 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:541) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) > Bug - FacilityScreens.xml#ReceiveInventory bug line 106 > ------------------------------------------------------- > > Key: OFBIZ-58 > URL: http://issues.apache.org/jira/browse/OFBIZ-58 > Project: The Open For Business Project > Type: Bug > Components: order > Versions: SVN trunk > Environment: test linux system > Reporter: Daniel Kunkel > Priority: Minor > > Using a very fresh svn demo system with seed data... > I placed an order using NO SUPPLIER of record for 100 GZ-1004. > Because not an existing supplier I entered data for "supplier" including > name, phone numbers, e-mail. > Finished the order, approved, and got the error below when I went to "Quick > Receive purchase order" from catlog, GZ-1004, Inventory, Order 10000, order > screen. > org.ofbiz.base.util.GeneralException: Error rendering screen > [component://product/widget/facility/FacilityScreens.xml#ReceiveInventory]: > org.ofbiz.base.util.GeneralException: Error running BSH script at location > [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh]: > org.ofbiz.base.util.GeneralException: Error running BSH script at > [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh], > line [106]: Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null : at Line: 106 : in file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : facility .getRelatedOne ( "OwnerParty" ) > Target exception: java.lang.NullPointerException: Null Pointer in Method > Invocation > (Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null) (Error running BSH script at > [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh], > line [106]: Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null : at Line: 106 : in file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : facility .getRelatedOne ( "OwnerParty" ) > Target exception: java.lang.NullPointerException: Null Pointer in Method > Invocation > (Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null)) (Error running BSH script at location > [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh]: > org.ofbiz.base.util.GeneralException: Error running BSH script at > [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh], > line [106]: Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null : at Line: 106 : in file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : facility .getRelatedOne ( "OwnerParty" ) > Target exception: java.lang.NullPointerException: Null Pointer in Method > Invocation > (Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null) (Error running BSH script at > [component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh], > line [106]: Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null : at Line: 106 : in file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : facility .getRelatedOne ( "OwnerParty" ) > Target exception: java.lang.NullPointerException: Null Pointer in Method > Invocation > (Sourced file: > component://product/webapp/facility/WEB-INF/actions/inventory/receiveInventory.bsh > : null))) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
