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:onwin...@gmail.com]
Sent: 12 Juni 2009 10:02
To: user@ofbiz.apache.org
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.

Reply via email to