I am studying the book of "Apache OFBiz Development The Beginners Tutorial".
In page 31, when I clicked Submit Order, the Order Confirmation screen did not show up and there was an error message "[Fatal Error] :-1:-1: Premature end of file." in the console; I also saw the error message below in log file. I tried different Shipping Method but still got error in this step. Your help or suggestion would be appreciated. I am using the release 4.0 of ofbiz. Regards, Zhou ... 2009-05-04 21:27:10,582 (http-0.0.0.0-8443-Processor3) [ UspsServices.java:1347:INFO ] USPS response: 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ UspsServices.java:191:INFO ] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.shipment.thirdparty.usps.UspsRequestException Message: Error reading request Document from a String: Premature end of file. ---- stack trace --------------------------------------------------------------- org.ofbiz.shipment.thirdparty.usps.UspsRequestException: Error reading request Document from a String: Premature end of file. org.ofbiz.shipment.thirdparty.usps.UspsServices.sendUspsRequest(UspsServices.java:1353) org.ofbiz.shipment.thirdparty.usps.UspsServices.uspsRateInquire(UspsServices.java:189) 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:597) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java:233) org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java:93) org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) bsh.Reflect.constructObject(Reflect.java:679) bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102) bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94) bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) bsh.BSHAssignment.eval(BSHAssignment.java:58) bsh.BSHBlock.eval(BSHBlock.java:79) bsh.BSHBlock.eval(BSHBlock.java:44) bsh.BSHIfStatement.eval(BSHIfStatement.java:48) bsh.Interpreter.evalParsedScript(Interpreter.java:1104) org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:387) org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) 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:248) 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:619) -------------------------------------------------------------------------------- 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ ServiceDispatcher.java:419:ERROR] Service Error [uspsRateInquire]: Error sending request for USPS Domestic Rate Calculation service: Error reading request Document from a String: Premature end of file. 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ TransactionUtil.java:255: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:254) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:423) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java:233) org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java:93) org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) bsh.Reflect.constructObject(Reflect.java:679) bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102) bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94) bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) bsh.BSHAssignment.eval(BSHAssignment.java:58) bsh.BSHBlock.eval(BSHBlock.java:79) bsh.BSHBlock.eval(BSHBlock.java:44) bsh.BSHIfStatement.eval(BSHIfStatement.java:48) bsh.Interpreter.evalParsedScript(Interpreter.java:1104) org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:387) org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) 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:248) 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:619) ... |
what version of ofbiz are you running
release ver 4.0 Release 09.04 or the Trunk? if the trunk what Svn version? zhou zhou sent the following on 5/14/2009 6:28 AM: > I am studying the book of "Apache OFBiz Development The Beginners Tutorial". > In page 31, when I clicked Submit Order, the Order Confirmation screen did > not show up and there was an error message "[Fatal Error] :-1:-1: Premature > end of file." in the console; I also saw the error message below in log > file. I tried different Shipping Method but still got error in this step. > > Your help or suggestion would be appreciated. I am using the release 4.0 of > ofbiz. > > Regards, > Zhou > > ... > 2009-05-04 21:27:10,582 (http-0.0.0.0-8443-Processor3) [ > UspsServices.java:1347:INFO ] USPS response: > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > UspsServices.java:191:INFO ] > ---- exception report > ---------------------------------------------------------- > Exception: org.ofbiz.shipment.thirdparty.usps.UspsRequestException > Message: Error reading request Document from a String: Premature end of > file. > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.shipment.thirdparty.usps.UspsRequestException: Error reading > request Document from a String: Premature end of file. > org.ofbiz.shipment.thirdparty.usps.UspsServices.sendUspsRequest(UspsServices.java:1353) > org.ofbiz.shipment.thirdparty.usps.UspsServices.uspsRateInquire(UspsServices.java:189) > 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:597) > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91) > org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java:233) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java:93) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > bsh.Reflect.constructObject(Reflect.java:679) > bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102) > bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94) > bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) > bsh.BSHAssignment.eval(BSHAssignment.java:58) > bsh.BSHBlock.eval(BSHBlock.java:79) > bsh.BSHBlock.eval(BSHBlock.java:44) > bsh.BSHIfStatement.eval(BSHIfStatement.java:48) > bsh.Interpreter.evalParsedScript(Interpreter.java:1104) > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) > org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:387) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > 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:248) > 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:619) > -------------------------------------------------------------------------------- > > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > ServiceDispatcher.java:419:ERROR] Service Error [uspsRateInquire]: Error > sending request for USPS Domestic Rate Calculation service: Error reading > request Document from a String: Premature end of file. > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > TransactionUtil.java:255: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:254) > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:423) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java:233) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java:93) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > bsh.Reflect.constructObject(Reflect.java:679) > bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102) > bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94) > bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) > bsh.BSHAssignment.eval(BSHAssignment.java:58) > bsh.BSHBlock.eval(BSHBlock.java:79) > bsh.BSHBlock.eval(BSHBlock.java:44) > bsh.BSHIfStatement.eval(BSHIfStatement.java:48) > bsh.Interpreter.evalParsedScript(Interpreter.java:1104) > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) > org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:387) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > 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:248) > 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:619) > ... > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
In reply to this post by zhou zhou
A good question for all errors like this is: is the error causing a problem that the user sees, or is it just something in the log? In this case it is happening because the USPS configuration is not setup with credentials and such, but is enabled by default. The impact on the UI is that the estimates prices for USPS packages will not include the online estimate. If it's not bothering you, do nothing. If it is bothering you then disable it by removing the store shipment settings for it in the Catalog Manager, or go through the configuration of the USPS online rate estimate. You mentioned you are using the release4.0 branch, and this is true there and for more recent code as well (although the error message has been improved since then). -David On May 14, 2009, at 7:28 AM, zhou zhou wrote: > I am studying the book of "Apache OFBiz Development The Beginners > Tutorial". > In page 31, when I clicked Submit Order, the Order Confirmation > screen did > not show up and there was an error message "[Fatal Error] :-1:-1: > Premature > end of file." in the console; I also saw the error message below in > log > file. I tried different Shipping Method but still got error in this > step. > > Your help or suggestion would be appreciated. I am using the release > 4.0 of > ofbiz. > > Regards, > Zhou > > ... > 2009-05-04 21:27:10,582 (http-0.0.0.0-8443-Processor3) [ > UspsServices.java:1347:INFO ] USPS response: > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > UspsServices.java:191:INFO ] > ---- exception report > ---------------------------------------------------------- > Exception: org.ofbiz.shipment.thirdparty.usps.UspsRequestException > Message: Error reading request Document from a String: Premature end > of > file. > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.shipment.thirdparty.usps.UspsRequestException: Error reading > request Document from a String: Premature end of file. > org > .ofbiz > .shipment > .thirdparty.usps.UspsServices.sendUspsRequest(UspsServices.java:1353) > org > .ofbiz > .shipment > .thirdparty.usps.UspsServices.uspsRateInquire(UspsServices.java:189) > 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:597) > org > .ofbiz > .service > .engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91) > org > .ofbiz > .service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: > 344) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: > 211) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java: > 150) > org > .ofbiz > .order > .shoppingcart > .shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java: > 233) > org > .ofbiz > .order > .shoppingcart > .shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) > org > .ofbiz > .order > .shoppingcart > .shipping > .ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java: > 93) > org > .ofbiz > .order > .shoppingcart > .shipping > .ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > sun > .reflect > .NativeConstructorAccessorImpl > .newInstance(NativeConstructorAccessorImpl.java:39) > sun > .reflect > .DelegatingConstructorAccessorImpl > .newInstance(DelegatingConstructorAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > bsh.Reflect.constructObject(Reflect.java:679) > bsh > .BSHAllocationExpression > .constructObject(BSHAllocationExpression.java:102) > bsh > .BSHAllocationExpression > .objectAllocation(BSHAllocationExpression.java:94) > bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) > bsh.BSHAssignment.eval(BSHAssignment.java:58) > bsh.BSHBlock.eval(BSHBlock.java:79) > bsh.BSHBlock.eval(BSHBlock.java:44) > bsh.BSHIfStatement.eval(BSHIfStatement.java:48) > bsh.Interpreter.evalParsedScript(Interpreter.java:1104) > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) > org.ofbiz.widget.screen.ModelScreenAction > $Script.runAction(ModelScreenAction.java:387) > org > .ofbiz > .widget > .screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:237) > org > .ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: > 134) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) > org > .ofbiz > .widget > .screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java: > 78) > org > .ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java: > 643) > org > .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java: > 427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > 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: > 248) > 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:619) > -------------------------------------------------------------------------------- > > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > ServiceDispatcher.java:419:ERROR] Service Error [uspsRateInquire]: > Error > sending request for USPS Domestic Rate Calculation service: Error > reading > request Document from a String: Premature end of file. > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > TransactionUtil.java:255: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:254) > org > .ofbiz > .entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: > 423) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: > 211) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java: > 150) > org > .ofbiz > .order > .shoppingcart > .shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java: > 233) > org > .ofbiz > .order > .shoppingcart > .shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) > org > .ofbiz > .order > .shoppingcart > .shipping > .ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java: > 93) > org > .ofbiz > .order > .shoppingcart > .shipping > .ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > sun > .reflect > .NativeConstructorAccessorImpl > .newInstance(NativeConstructorAccessorImpl.java:39) > sun > .reflect > .DelegatingConstructorAccessorImpl > .newInstance(DelegatingConstructorAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > bsh.Reflect.constructObject(Reflect.java:679) > bsh > .BSHAllocationExpression > .constructObject(BSHAllocationExpression.java:102) > bsh > .BSHAllocationExpression > .objectAllocation(BSHAllocationExpression.java:94) > bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) > bsh.BSHAssignment.eval(BSHAssignment.java:58) > bsh.BSHBlock.eval(BSHBlock.java:79) > bsh.BSHBlock.eval(BSHBlock.java:44) > bsh.BSHIfStatement.eval(BSHIfStatement.java:48) > bsh.Interpreter.evalParsedScript(Interpreter.java:1104) > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) > org.ofbiz.widget.screen.ModelScreenAction > $Script.runAction(ModelScreenAction.java:387) > org > .ofbiz > .widget > .screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) > org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:237) > org > .ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: > 134) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) > org > .ofbiz > .widget > .screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java: > 78) > org > .ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java: > 643) > org > .ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java: > 427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > 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: > 248) > 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:619) > ... |
In reply to this post by zhou zhou
my apologies,
Note to self read the complete email next time org.ofbiz.shipment.thirdparty.usps.UspsServices.sendUspsRequest(UspsServices.java:1353) is the error. looking at the code it is trying to get a tracking number for a package. not sure how far you got in the setup for UPS I am not familiar with the book so if you can give a URL to where you are in ofbiz, that would help immensely. BJ Freeman sent the following on 5/14/2009 9:54 AM: > what version of ofbiz are you running > release ver 4.0 > Release 09.04 > or the Trunk? > if the trunk what Svn version? > > zhou zhou sent the following on 5/14/2009 6:28 AM: >> I am studying the book of "Apache OFBiz Development The Beginners Tutorial". >> In page 31, when I clicked Submit Order, the Order Confirmation screen did >> not show up and there was an error message "[Fatal Error] :-1:-1: Premature >> end of file." in the console; I also saw the error message below in log >> file. I tried different Shipping Method but still got error in this step. >> >> Your help or suggestion would be appreciated. I am using the release 4.0 of >> ofbiz. >> >> Regards, >> Zhou >> >> ... >> 2009-05-04 21:27:10,582 (http-0.0.0.0-8443-Processor3) [ >> UspsServices.java:1347:INFO ] USPS response: >> 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ >> UspsServices.java:191:INFO ] >> ---- exception report >> ---------------------------------------------------------- >> Exception: org.ofbiz.shipment.thirdparty.usps.UspsRequestException >> Message: Error reading request Document from a String: Premature end of >> file. >> ---- stack trace >> --------------------------------------------------------------- >> org.ofbiz.shipment.thirdparty.usps.UspsRequestException: Error reading >> request Document from a String: Premature end of file. >> org.ofbiz.shipment.thirdparty.usps.UspsServices.sendUspsRequest(UspsServices.java:1353) >> org.ofbiz.shipment.thirdparty.usps.UspsServices.uspsRateInquire(UspsServices.java:189) >> 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:597) >> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91) >> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) >> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) >> org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java:233) >> org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) >> org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java:93) >> org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> bsh.Reflect.constructObject(Reflect.java:679) >> bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102) >> bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94) >> bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) >> bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) >> bsh.BSHAssignment.eval(BSHAssignment.java:58) >> bsh.BSHBlock.eval(BSHBlock.java:79) >> bsh.BSHBlock.eval(BSHBlock.java:44) >> bsh.BSHIfStatement.eval(BSHIfStatement.java:48) >> bsh.Interpreter.evalParsedScript(Interpreter.java:1104) >> org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) >> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:387) >> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) >> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237) >> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) >> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78) >> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) >> 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:248) >> 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:619) >> -------------------------------------------------------------------------------- >> >> 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ >> ServiceDispatcher.java:419:ERROR] Service Error [uspsRateInquire]: Error >> sending request for USPS Domestic Rate Calculation service: Error reading >> request Document from a String: Premature end of file. >> 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ >> TransactionUtil.java:255: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:254) >> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:236) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:423) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) >> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) >> org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate(ShippingEvents.java:233) >> org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(ShippingEvents.java:172) >> org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates(ShippingEstimateWrapper.java:93) >> org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(ShippingEstimateWrapper.java:70) >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> bsh.Reflect.constructObject(Reflect.java:679) >> bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102) >> bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94) >> bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) >> bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) >> bsh.BSHAssignment.eval(BSHAssignment.java:58) >> bsh.BSHBlock.eval(BSHBlock.java:79) >> bsh.BSHBlock.eval(BSHBlock.java:44) >> bsh.BSHIfStatement.eval(BSHIfStatement.java:48) >> bsh.Interpreter.evalParsedScript(Interpreter.java:1104) >> org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) >> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:387) >> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:117) >> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:237) >> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) >> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:78) >> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) >> 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:248) >> 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:619) >> ... >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
In reply to this post by zhou zhou
I have also met this problem,have you solved it?
I have no idea to this now.
|
Hi Zhou Zhou,
What is delivery method that you choose? Besides, pls write direct to my email address, I think it is not appropriate to put it in this mailing list. Thanks. Charles TJ -----Original Message----- From: onwind [mailto:[hidden email]] Sent: 12 Juni 2009 10:02 To: [hidden email] Subject: Re: Premature end of file I have also met this problem,have you solved it? I have no idea to this now. zhou zhou wrote: > > I am studying the book of "Apache OFBiz Development The Beginners > Tutorial". > In page 31, when I clicked Submit Order, the Order Confirmation screen did > not show up and there was an error message "[Fatal Error] :-1:-1: > Premature > end of file." in the console; I also saw the error message below in log > file. I tried different Shipping Method but still got error in this step. > > Your help or suggestion would be appreciated. I am using the release 4.0 > of > ofbiz. > > Regards, > Zhou > > ... > 2009-05-04 21:27:10,582 (http-0.0.0.0-8443-Processor3) [ > UspsServices.java:1347:INFO ] USPS response: > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > UspsServices.java:191:INFO ] > ---- exception report > ---------------------------------------------------------- > Exception: org.ofbiz.shipment.thirdparty.usps.UspsRequestException > Message: Error reading request Document from a String: Premature end of > file. > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.shipment.thirdparty.usps.UspsRequestException: Error reading > request Document from a String: Premature end of file. > .java:1353) > org.ofbiz.shipment.thirdparty.usps.UspsServices.uspsRateInquire(UspsServices .java:189) > 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:597) > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngin e.java:91) > org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java: 53) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate (ShippingEvents.java:233) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(Sh ippingEvents.java:172) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates( ShippingEstimateWrapper.java:93) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(Shippin gEstimateWrapper.java:70) > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > bsh.Reflect.constructObject(Reflect.java:679) > bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102 ) > bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94 ) > bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) > bsh.BSHAssignment.eval(BSHAssignment.java:58) > bsh.BSHBlock.eval(BSHBlock.java:79) > bsh.BSHBlock.eval(BSHBlock.java:44) > bsh.BSHIfStatement.eval(BSHIfStatement.java:48) > bsh.Interpreter.evalParsedScript(Interpreter.java:1104) > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) > org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction .java:387) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.ja va:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelSc reenWidget.java:237) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandl er.java:78) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > javax.servlet.http.HttpServlet.service(HttpServlet.java:615) > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va: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.processC onnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------- ------ > > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > ServiceDispatcher.java:419:ERROR] Service Error [uspsRateInquire]: Error > sending request for USPS Domestic Rate Calculation service: Error reading > request Document from a String: Premature end of file. > 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ > TransactionUtil.java:255:ERROR] > ---- exception report > ---------------------------------------------------------- > [TransactionUtil.rollback] > Exception: java.lang.Exception > Message: Stack Trace > ---- stack trace > --------------------------------------------------------------- > java.lang.Exception: Stack Trace > 54) > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:2 36) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:423) > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate (ShippingEvents.java:233) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(Sh ippingEvents.java:172) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates( ShippingEstimateWrapper.java:93) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(Shippin gEstimateWrapper.java:70) > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > bsh.Reflect.constructObject(Reflect.java:679) > bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102 ) > bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94 ) > bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) > bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) > bsh.BSHAssignment.eval(BSHAssignment.java:58) > bsh.BSHBlock.eval(BSHBlock.java:79) > bsh.BSHBlock.eval(BSHBlock.java:44) > bsh.BSHIfStatement.eval(BSHIfStatement.java:48) > bsh.Interpreter.evalParsedScript(Interpreter.java:1104) > org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) > org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction .java:387) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.ja va:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelSc reenWidget.java:237) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandl er.java:78) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > javax.servlet.http.HttpServlet.service(HttpServlet.java:615) > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va: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.processC onnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) > java.lang.Thread.run(Thread.java:619) > ... > > -- View this message in context: http://www.nabble.com/Premature-end-of-file-tp23540624p23992133.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
In reply to this post by zhou zhou
if you have knowledge of the book and want to field question here I
don't see a problem with that. SELC Sales Div sent the following on 6/12/2009 1:26 AM: > Hi Zhou Zhou, > > What is delivery method that you choose? > > Besides, pls write direct to my email address, > I think it is not appropriate to put it in this > mailing list. > > Thanks. > > Charles TJ > > > -----Original Message----- > From: onwind [mailto:[hidden email]] > Sent: 12 Juni 2009 10:02 > To: [hidden email] > Subject: Re: Premature end of file > > > > I have also met this problem,have you solved it? > I have no idea to this now. > > > zhou zhou wrote: >> I am studying the book of "Apache OFBiz Development The Beginners >> Tutorial". >> In page 31, when I clicked Submit Order, the Order Confirmation screen did >> not show up and there was an error message "[Fatal Error] :-1:-1: >> Premature >> end of file." in the console; I also saw the error message below in log >> file. I tried different Shipping Method but still got error in this step. >> >> Your help or suggestion would be appreciated. I am using the release 4.0 >> of >> ofbiz. >> >> Regards, >> Zhou >> >> ... >> 2009-05-04 21:27:10,582 (http-0.0.0.0-8443-Processor3) [ >> UspsServices.java:1347:INFO ] USPS response: >> 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ >> UspsServices.java:191:INFO ] >> ---- exception report >> ---------------------------------------------------------- >> Exception: org.ofbiz.shipment.thirdparty.usps.UspsRequestException >> Message: Error reading request Document from a String: Premature end of >> file. >> ---- stack trace >> --------------------------------------------------------------- >> org.ofbiz.shipment.thirdparty.usps.UspsRequestException: Error reading >> request Document from a String: Premature end of file. >> > org.ofbiz.shipment.thirdparty.usps.UspsServices.sendUspsRequest(UspsServices > .java:1353) > org.ofbiz.shipment.thirdparty.usps.UspsServices.uspsRateInquire(UspsServices > .java:189) >> 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:597) >> > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngin > e.java:91) > org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java: > 53) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:344) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) >> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) >> > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate > (ShippingEvents.java:233) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(Sh > ippingEvents.java:172) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates( > ShippingEstimateWrapper.java:93) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(Shippin > gEstimateWrapper.java:70) >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces > sorImpl.java:39) > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc > torAccessorImpl.java:27) >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> bsh.Reflect.constructObject(Reflect.java:679) >> > bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102 > ) > bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94 > ) >> bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) >> bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) >> bsh.BSHAssignment.eval(BSHAssignment.java:58) >> bsh.BSHBlock.eval(BSHBlock.java:79) >> bsh.BSHBlock.eval(BSHBlock.java:44) >> bsh.BSHIfStatement.eval(BSHIfStatement.java:48) >> bsh.Interpreter.evalParsedScript(Interpreter.java:1104) >> org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) >> > org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction > .java:387) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.ja > va:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelSc > reenWidget.java:237) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) >> > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandl > er.java:78) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:615) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:173) >> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va: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.processC > onnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > a:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > rkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > a:684) >> java.lang.Thread.run(Thread.java:619) >> -------------------------------------------------------------------------- > ------ >> 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ >> ServiceDispatcher.java:419:ERROR] Service Error [uspsRateInquire]: Error >> sending request for USPS Domestic Rate Calculation service: Error reading >> request Document from a String: Premature end of file. >> 2009-05-04 21:27:10,592 (http-0.0.0.0-8443-Processor3) [ >> TransactionUtil.java:255: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:2 > 54) > org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:2 > 36) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:423) >> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) >> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150) >> > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEstimate > (ShippingEvents.java:233) > org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(Sh > ippingEvents.java:172) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstimates( > ShippingEstimateWrapper.java:93) > org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(Shippin > gEstimateWrapper.java:70) >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces > sorImpl.java:39) > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc > torAccessorImpl.java:27) >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> bsh.Reflect.constructObject(Reflect.java:679) >> > bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:102 > ) > bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:94 > ) >> bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:61) >> bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69) >> bsh.BSHAssignment.eval(BSHAssignment.java:58) >> bsh.BSHBlock.eval(BSHBlock.java:79) >> bsh.BSHBlock.eval(BSHBlock.java:44) >> bsh.BSHIfStatement.eval(BSHIfStatement.java:48) >> bsh.Interpreter.evalParsedScript(Interpreter.java:1104) >> org.ofbiz.base.util.BshUtil.runBshAtLocation(BshUtil.java:161) >> > org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction > .java:387) > org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.ja > va:117) > org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelSc > reenWidget.java:237) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:134) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:105) >> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90) >> > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandl > er.java:78) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) >> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) >> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) >> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:615) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:173) >> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va: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.processC > onnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > a:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > rkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > a:684) >> java.lang.Thread.run(Thread.java:619) >> ... >> >> > > -- > View this message in context: > http://www.nabble.com/Premature-end-of-file-tp23540624p23992133.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
Hi BJ,
OK, I will do that. Thanks. Charles TJ -----Original Message----- From: BJ Freeman [mailto:[hidden email]] Sent: 12 Juni 2009 17:17 To: [hidden email] Subject: Re: Premature end of file if you have knowledge of the book and want to field question here I don't see a problem with that. |
Free forum by Nabble | Edit this page |