An FYI - java.lang.OutOfMemoryError

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

An FYI - java.lang.OutOfMemoryError

Ruth Hoffman-2
To Whomever May Be Minding the Store...

Yesterday I downloaded the most recent version  from the Apache site
(the big "DOWNLOAD OFBIZ" button) and followed the directions in the
README file exactly as stated:

    Welcome to Apache OFBiz!

    If you have a release build all you need to run OFBiz is a 1.5 series
    JDK (not just the JRE, the full J2SDK).

    However if you have downloaded ofbiz from SVN then you should
    load the demo data (strongly advised) with the following command
    on the command line:

    ant run-install

    Once that is properly setup just run the executable jar file
    that comes with OFBiz, which is ofbiz.jar. To do this on the
    command line you would run:

    j_*ava -jar ofbiz.jar*_

    There are also start scripts for Windows and Unix-based
    operating systems, namely startofbiz.bat and startofbiz.sh.

    Once OFBiz starts, you can look at the demo storefront at:
    http://localhost:8080/ecommerce/

That is, I opened a command line and typed in: java -jar ofbiz.jar
I pointed my browser to "http://localhost:8080/ecommerce" with the
following result:

java.lang.OutOfMemoryError: Java heap space
    java.lang.String.substring(String.java:1770)
    java.lang.String.substring(String.java:1735)
    org.apache.xerces.dom.DeferredAttrNSImpl.synchronizeData(Unknown Source)
    org.apache.xerces.dom.AttrImpl.getSpecified(Unknown Source)
    org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown
Source)
    org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source)
    org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:655)
   
org.ofbiz.base.util.UtilProperties.xmlToProperties(UtilProperties.java:779)
   
org.ofbiz.base.util.UtilProperties$ExtendedProperties.<init>(UtilProperties.java:921)
   
org.ofbiz.base.util.UtilProperties.getProperties(UtilProperties.java:539)
   
org.ofbiz.base.util.UtilProperties$UtilResourceBundle.getBundle(UtilProperties.java:850)
   
org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:485)
   ...

FYI - I just wanted to see how well the distribution/download works.
This is just to let you know that its not working so well. At least not
for this instance/version.

Regards,
Ruth

Reply | Threaded
Open this post in threaded view
|

Re: An FYI - java.lang.OutOfMemoryError

Tim Ruppert
My recommendation is that we need to set the min and max values on that java command if we're going to execute it that way.  We should just put in the same values that are in the start scripts.

Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

----- "Ruth Hoffman" <[hidden email]> wrote:

> To Whomever May Be Minding the Store...
>
> Yesterday I downloaded the most recent version  from the Apache site
> (the big "DOWNLOAD OFBIZ" button) and followed the directions in the
> README file exactly as stated:
>
>     Welcome to Apache OFBiz!
>
>     If you have a release build all you need to run OFBiz is a 1.5
> series
>     JDK (not just the JRE, the full J2SDK).
>
>     However if you have downloaded ofbiz from SVN then you should
>     load the demo data (strongly advised) with the following command
>     on the command line:
>
>     ant run-install
>
>     Once that is properly setup just run the executable jar file
>     that comes with OFBiz, which is ofbiz.jar. To do this on the
>     command line you would run:
>
>     j_*ava -jar ofbiz.jar*_
>
>     There are also start scripts for Windows and Unix-based
>     operating systems, namely startofbiz.bat and startofbiz.sh.
>
>     Once OFBiz starts, you can look at the demo storefront at:
>     http://localhost:8080/ecommerce/
>
> That is, I opened a command line and typed in: java -jar ofbiz.jar
> I pointed my browser to "http://localhost:8080/ecommerce" with the
> following result:
>
> java.lang.OutOfMemoryError: Java heap space
>     java.lang.String.substring(String.java:1770)
>     java.lang.String.substring(String.java:1735)
>     org.apache.xerces.dom.DeferredAttrNSImpl.synchronizeData(Unknown
> Source)
>     org.apache.xerces.dom.AttrImpl.getSpecified(Unknown Source)
>    
> org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown
> Source)
>     org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source)
>     org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:655)
>    
> org.ofbiz.base.util.UtilProperties.xmlToProperties(UtilProperties.java:779)
>    
> org.ofbiz.base.util.UtilProperties$ExtendedProperties.<init>(UtilProperties.java:921)
>    
> org.ofbiz.base.util.UtilProperties.getProperties(UtilProperties.java:539)
>    
> org.ofbiz.base.util.UtilProperties$UtilResourceBundle.getBundle(UtilProperties.java:850)
>    
> org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:485)
>    ...
>
> FYI - I just wanted to see how well the distribution/download works.
> This is just to let you know that its not working so well. At least
> not
> for this instance/version.
>
> Regards,
> Ruth