[OFBiz] Users - Blank page when checking out
Paul Pound
paul at peincor.com
Fri Mar 4 13:21:27 EST 2005
What I have done a couple of times now and always with the same result is
Create a new database in postgres tell the entityengine.xml to use it and
Run ant -install
At this point everything works fine.
Set Default Currency Uom Id to CAD
Change the Default Locale String to en_CAN also tried it with en_CAD and CAN also left it as the default
Create a catalog.
At this point things go weird I get class cast exceptions when trying to add categories or products or even update the store info.
If I stop ofbiz and set the default Currency in the general properties and then restart I can then add categories and products etc. ok.
I can then go to the ecommerce app and see the products and categories and add them to my cart but when I checkout I get a blank page at checkoutoptions.
Could this be caused by mismatched currency and Locale?
I initially started with version 3.0 and it seemed to work great with no problems.
I included a stack trace with the first message I sent.
Has anyone used the lastest builds with a currency other than USD and if so what are the correct settings for Canada?
Best regards,
Paul
-----Original Message-----
From: users-bounces at lists.ofbiz.org [mailto:users-bounces at lists.ofbiz.org] On Behalf Of David E. Jones
Sent: March 4, 2005 12:53 PM
To: OFBiz Users / Usage Discussion (High Traffic)
Subject: Re: [OFBiz] Users - Blank page when checking out
It sounds like there is a bug somewhere. If you are getting a blank page then there are probably exceptions and other messages in the console or log. Did you happen to capture any of those as you were seeing this? Or do you have a set of steps to consistently reproduce this?
-David
On Mar 4, 2005, at 10:18 AM, Paul Pound wrote:
Thanks Ray,
I think things are working better now. I did not bother changing it there in the first place as I think I was a little mislead by the documentation where it states
"Currency, Locale Settings
Currency settings may be configured in the following configuration file:
${ofbiz install dir}/framework/common/config/general.properties
Default Currency Code (must exist in Uom table, three letter code, see
seed data in the CurrencyData.xml file): currency.uom.id.default=USD
Default Country Code (must exist in Geo table, is three letter ISO country
code, see seed data in the GeoData.xml file): country.geo.id.default=USA
Note that these settings can be overridden for a Store in the Edit Product
Store page."
Note the last line where it says they can be overridden but it seems to get everything to work correctly it has to be set in the properties file.
This is from the new production setup guide.
Best regards,
Paul
-----Original Message-----
From: users-bounces at lists.ofbiz.org [mailto:users-bounces at lists.ofbiz.org] On Behalf Of Ray
Sent: March 4, 2005 7:42 AM
To: OFBiz Users / Usage Discussion (High Traffic)
Subject: Re: [OFBiz] Users - Blank page when checking out
You should also look in "general.properties" as it has a
"currency.uom.id.default" value along with geo defaults. Found in
framework\common\config in the latest SVN.
Ray
Paul Pound wrote:
If I change the Default Currency Uom Id from USD to CAD for a store what
else and where do I have to make changes. I could be wrong but this
seems to be the start of all my problems.
Best regards,
Paul
-----Original Message-----
From: users-bounces at lists.ofbiz.org
[mailto:users-bounces at lists.ofbiz.org] On Behalf Of Paul Pound
Sent: March 2, 2005 10:30 PM
To: 'OFBiz Users / Usage Discussion (High Traffic)'
Subject: RE: [OFBiz] Users - Blank page when checking out
I just set up a new database in postgres and updated the
entityengine.xml to use the new database and then ran ant install and I
can now complete an order (with the demo data). Don't know what I did
to screw it up? Thanks for your help.
Paul
-----Original Message-----
From: users-bounces at lists.ofbiz.org
[mailto:users-bounces at lists.ofbiz.org] On Behalf Of David E. Jones
Sent: March 2, 2005 9:22 PM
To: OFBiz Users / Usage Discussion (High Traffic)
Subject: Re: [OFBiz] Users - Blank page when checking out
Paul,
Sorry about that, I didn't look into it very close. The service would
be called as soon as you select an address which causes the page to
reload and calculate the amounts for each shipment method...
I'm not sure what is different in your installation. Perhaps you can't
get to the internet from the machine it's running on (though I haven't
run into this in that situation)? Or perhaps you have some of the
configuration changed? Try an "svn st" or "svn diff" in the ofbiz
directory to see what has been changed.
-David
On Mar 2, 2005, at 7:58 PM, Paul Pound wrote:
Thanks for the information. I will take a look at the setup guide.
The
only thing is I do not get to the stage in the checkout process where
I
get to choose a shipping method. I think this is the stage where I am
getting the blank page.
Paul
-----Original Message-----
From: users-bounces at lists.ofbiz.org
[mailto:users-bounces at lists.ofbiz.org] On Behalf Of David E. Jones
Sent: March 2, 2005 8:19 PM
To: OFBiz Users / Usage Discussion (High Traffic)
Subject: Re: [OFBiz] Users - Blank page when checking out
Paul,
Here is the error message, as you seem to have isolated:
================================
Exception: org.ofbiz.shipment.thirdparty.usps.UspsRequestException
Message: Error reading request Document from a String: Premature end
of
file.
================================
This is an issue with the USPS stuff. The service to get the rates in
real time during check out is setup by default, but not configured in
the properties file. So, try checking out with a UPS or other shipment
method.
Also, you can see the Production Setup Guide (on the Online Info page
of the Undersun Consulting site) for details about all of this.
-David
On Mar 2, 2005, at 7:14 PM, Tuan Ngo wrote:
Two questions:
1. What RDMBS are you using?
2. What JDBC driver are you using?
I ran into a somewhat similar problem with JDTS driver for SQL server
before.
Regards,
tuan
-----Original Message-----
From: users-bounces at lists.ofbiz.org
[mailto:users-bounces at lists.ofbiz.org]On Behalf Of Paul Pound
Sent: Wednesday, March 02, 2005 3:58 PM
To: users at lists.ofbiz.org
Subject: [OFBiz] Users - Blank page when checking out
When I try to check out everything seems ok until I click next on
where
shall we ship it. It then trys to load checkoutoptions but all it
comes
up with is blank page. I am using the the source files from two
nights
ago from subversion. The build seem to go ok, I ran the install
target
using ant. I was able to add products, categories, catalogs, parties
with no problems. From the stack trace it looks like it is trying to
read a file or something to get UPS rates. I am very new to ofbiz so
it
is probably something I have not setup correctly. If someone could
point me in the right direction I would appreciate it. I have
attached
the whole stacktrace as a zip file.
Thanks,
Paul
---- 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(UspsSer
v
ices.java:1307)
org.ofbiz.shipment.thirdparty.usps.UspsServices.uspsRateInquire(UspsSer
v
ices.java:184)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
Impl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJava
E
ngine.java:101)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.
j
ava:63)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:337)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getExternalShipEst
i
mate(ShippingEvents.java:241)
org.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstima
t
e(ShippingEvents.java:181)
org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.loadEstim
a
tes(ShippingEstimateWrapper.java:105)
org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper.<init>(Sh
i
ppingEstimateWrapper.java:82)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor
A
ccessorImpl.java:39)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon
s
tructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
bsh.Reflect.constructObject(Reflect.java:679)
bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.jav
a
:102)
bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.ja
v
a: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:169)
org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenA
c
tion.java:381)
org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenActi
o
n.java:115)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(Mo
d
elScreenWidget.java:207)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java
:
101)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:78)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:63)
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetView
H
andler.java:107)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:
5
42)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:
34
5)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:186)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:85)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:237)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
e.java:214)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
e.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.
java:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
526
)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
1
48)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
82
5)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C
onnection(Http11Protocol.java:738)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoin
t
.java:526)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollo
w
erWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
.java:684)
java.lang.Thread.run(Thread.java:534)
-----------------------------------------------------------------------
-
--------
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.ofbiz.org
http://lists.ofbiz.org/mailman/listinfo/users
More information about the Users
mailing list