Re: An FYI - java.lang.OutOfMemoryError

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

Re: An FYI - java.lang.OutOfMemoryError

BJ Freeman
try running
ant run
or
startofbiz.bat for windows
or
startofbiz.sh for linux


Ruth Hoffman sent the following on 6/11/2009 8:42 AM:

> 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
>
>

--
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.

Reply | Threaded
Open this post in threaded view
|

Re: An FYI - java.lang.OutOfMemoryError

Ruth Hoffman-2
Thanks BJ
I'm pretty sure I can overcome this problem...(I've been using OFBiz of
several years now.) Not to insult anyone - I just wanted to let you guys
know that the README instructions do not give the desired results. IMHO,
the project shouldn't be putting out pre-packaged code with instructions
that don't work as advertised. It's just not good for business. But
then, that is just my humble opinion.

Regards,
Ruth
BJ Freeman wrote:

> try running
> ant run
> or
> startofbiz.bat for windows
> or
> startofbiz.sh for linux
>
>
> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
>  
>> 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
If you go the build.ofbiz.org page - where the directions are that I put up there - have the following command:

java -Xmx256M -jar ofbiz.jar

If you do this, it works fine.  That being said, it's not the same as the startofbiz.sh script, so if all are in favor, then we should change that.  Where do you get your instructions from Ruth?

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

o:801.649.6594
f:801.649.6595

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

> Thanks BJ
> I'm pretty sure I can overcome this problem...(I've been using OFBiz
> of
> several years now.) Not to insult anyone - I just wanted to let you
> guys
> know that the README instructions do not give the desired results.
> IMHO,
> the project shouldn't be putting out pre-packaged code with
> instructions
> that don't work as advertised. It's just not good for business. But
> then, that is just my humble opinion.
>
> Regards,
> Ruth
> BJ Freeman wrote:
> > try running
> > ant run
> > or
> > startofbiz.bat for windows
> > or
> > startofbiz.sh for linux
> >
> >
> > Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
> >  
> >> 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

Adrian Crum
In the README file. Fixed, rev 783833.

-Adrian

Tim Ruppert wrote:

> If you go the build.ofbiz.org page - where the directions are that I put up there - have the following command:
>
> java -Xmx256M -jar ofbiz.jar
>
> If you do this, it works fine.  That being said, it's not the same as the startofbiz.sh script, so if all are in favor, then we should change that.  Where do you get your instructions from Ruth?
>
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6595
>
> ----- "Ruth Hoffman" <[hidden email]> wrote:
>
>> Thanks BJ
>> I'm pretty sure I can overcome this problem...(I've been using OFBiz
>> of
>> several years now.) Not to insult anyone - I just wanted to let you
>> guys
>> know that the README instructions do not give the desired results.
>> IMHO,
>> the project shouldn't be putting out pre-packaged code with
>> instructions
>> that don't work as advertised. It's just not good for business. But
>> then, that is just my humble opinion.
>>
>> Regards,
>> Ruth
>> BJ Freeman wrote:
>>> try running
>>> ant run
>>> or
>>> startofbiz.bat for windows
>>> or
>>> startofbiz.sh for linux
>>>
>>>
>>> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
>>>  
>>>> 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

Ruth Hoffman-2
In reply to this post by Tim Ruppert
Hi Tim:
I just followed the directions in the README file in the root directory
created by the unzip of the download. I suggest someone change the
README file to reflect your correction. IMHO, newbies, downloading and
test riding OFBiz for the first time - will not tolerate looking in 2 or
3 places to figure this out - they will go to the README file first and
if that isn't correct - they will move on to the next open source ERP
package.  At least newbies that have a Unix background (because they are
familiar with READMEs).

Ruth
Tim Ruppert wrote:

> If you go the build.ofbiz.org page - where the directions are that I put up there - have the following command:
>
> java -Xmx256M -jar ofbiz.jar
>
> If you do this, it works fine.  That being said, it's not the same as the startofbiz.sh script, so if all are in favor, then we should change that.  Where do you get your instructions from Ruth?
>
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6595
>
> ----- "Ruth Hoffman" <[hidden email]> wrote:
>
>  
>> Thanks BJ
>> I'm pretty sure I can overcome this problem...(I've been using OFBiz
>> of
>> several years now.) Not to insult anyone - I just wanted to let you
>> guys
>> know that the README instructions do not give the desired results.
>> IMHO,
>> the project shouldn't be putting out pre-packaged code with
>> instructions
>> that don't work as advertised. It's just not good for business. But
>> then, that is just my humble opinion.
>>
>> Regards,
>> Ruth
>> BJ Freeman wrote:
>>    
>>> try running
>>> ant run
>>> or
>>> startofbiz.bat for windows
>>> or
>>> startofbiz.sh for linux
>>>
>>>
>>> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
>>>  
>>>      
>>>> 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

Ruth Hoffman-2
In reply to this post by Adrian Crum
Hi Adrian:
Thanks. For my own edification, when does that get rolled into the
default download packaged README?
Thanks again,
Ruth
Adrian Crum wrote:

> In the README file. Fixed, rev 783833.
>
> -Adrian
>
> Tim Ruppert wrote:
>> If you go the build.ofbiz.org page - where the directions are that I
>> put up there - have the following command:
>>
>> java -Xmx256M -jar ofbiz.jar
>>
>> If you do this, it works fine.  That being said, it's not the same as
>> the startofbiz.sh script, so if all are in favor, then we should
>> change that.  Where do you get your instructions from Ruth?
>>
>> Cheers,
>> Tim
>> --
>> Tim Ruppert
>> HotWax Media
>> http://www.hotwaxmedia.com
>>
>> o:801.649.6594
>> f:801.649.6595
>>
>> ----- "Ruth Hoffman" <[hidden email]> wrote:
>>
>>> Thanks BJ
>>> I'm pretty sure I can overcome this problem...(I've been using OFBiz
>>> of several years now.) Not to insult anyone - I just wanted to let you
>>> guys know that the README instructions do not give the desired results.
>>> IMHO, the project shouldn't be putting out pre-packaged code with
>>> instructions that don't work as advertised. It's just not good for
>>> business. But then, that is just my humble opinion.
>>>
>>> Regards,
>>> Ruth
>>> BJ Freeman wrote:
>>>> try running
>>>> ant run
>>>> or
>>>> startofbiz.bat for windows
>>>> or
>>>> startofbiz.sh for linux
>>>>
>>>>
>>>> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
>>>>  
>>>>> 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
Thanks!

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

o:801.649.6594
f:801.649.6595

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

> Hi Adrian:
> Thanks. For my own edification, when does that get rolled into the
> default download packaged README?
> Thanks again,
> Ruth
> Adrian Crum wrote:
> > In the README file. Fixed, rev 783833.
> >
> > -Adrian
> >
> > Tim Ruppert wrote:
> >> If you go the build.ofbiz.org page - where the directions are that
> I
> >> put up there - have the following command:
> >>
> >> java -Xmx256M -jar ofbiz.jar
> >>
> >> If you do this, it works fine.  That being said, it's not the same
> as
> >> the startofbiz.sh script, so if all are in favor, then we should
> >> change that.  Where do you get your instructions from Ruth?
> >>
> >> Cheers,
> >> Tim
> >> --
> >> Tim Ruppert
> >> HotWax Media
> >> http://www.hotwaxmedia.com
> >>
> >> o:801.649.6594
> >> f:801.649.6595
> >>
> >> ----- "Ruth Hoffman" <[hidden email]> wrote:
> >>
> >>> Thanks BJ
> >>> I'm pretty sure I can overcome this problem...(I've been using
> OFBiz
> >>> of several years now.) Not to insult anyone - I just wanted to let
> you
> >>> guys know that the README instructions do not give the desired
> results.
> >>> IMHO, the project shouldn't be putting out pre-packaged code with
> >>> instructions that don't work as advertised. It's just not good for
>
> >>> business. But then, that is just my humble opinion.
> >>>
> >>> Regards,
> >>> Ruth
> >>> BJ Freeman wrote:
> >>>> try running
> >>>> ant run
> >>>> or
> >>>> startofbiz.bat for windows
> >>>> or
> >>>> startofbiz.sh for linux
> >>>>
> >>>>
> >>>> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
> >>>>  
> >>>>> 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

Adrian Crum
In reply to this post by Ruth Hoffman-2
I believe those zip files are created every night. Btw, thanks for
pointing that out!

-Adrian

Ruth Hoffman wrote:

> Hi Adrian:
> Thanks. For my own edification, when does that get rolled into the
> default download packaged README?
> Thanks again,
> Ruth
> Adrian Crum wrote:
>> In the README file. Fixed, rev 783833.
>>
>> -Adrian
>>
>> Tim Ruppert wrote:
>>> If you go the build.ofbiz.org page - where the directions are that I
>>> put up there - have the following command:
>>>
>>> java -Xmx256M -jar ofbiz.jar
>>>
>>> If you do this, it works fine.  That being said, it's not the same as
>>> the startofbiz.sh script, so if all are in favor, then we should
>>> change that.  Where do you get your instructions from Ruth?
>>>
>>> Cheers,
>>> Tim
>>> --
>>> Tim Ruppert
>>> HotWax Media
>>> http://www.hotwaxmedia.com
>>>
>>> o:801.649.6594
>>> f:801.649.6595
>>>
>>> ----- "Ruth Hoffman" <[hidden email]> wrote:
>>>
>>>> Thanks BJ
>>>> I'm pretty sure I can overcome this problem...(I've been using OFBiz
>>>> of several years now.) Not to insult anyone - I just wanted to let you
>>>> guys know that the README instructions do not give the desired results.
>>>> IMHO, the project shouldn't be putting out pre-packaged code with
>>>> instructions that don't work as advertised. It's just not good for
>>>> business. But then, that is just my humble opinion.
>>>>
>>>> Regards,
>>>> Ruth
>>>> BJ Freeman wrote:
>>>>> try running
>>>>> ant run
>>>>> or
>>>>> startofbiz.bat for windows
>>>>> or
>>>>> startofbiz.sh for linux
>>>>>
>>>>>
>>>>> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
>>>>>  
>>>>>> 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

BJ Freeman
In reply to this post by BJ Freeman
I know you have been around almost is not longer than I.
no insult was intended.
thanks.

Ruth Hoffman sent the following on 6/11/2009 9:02 AM:

> Thanks BJ
> I'm pretty sure I can overcome this problem...(I've been using OFBiz of
> several years now.) Not to insult anyone - I just wanted to let you guys
> know that the README instructions do not give the desired results. IMHO,
> the project shouldn't be putting out pre-packaged code with instructions
> that don't work as advertised. It's just not good for business. But
> then, that is just my humble opinion.
>
> Regards,
> Ruth
> BJ Freeman wrote:
>> try running
>> ant run
>> or
>> startofbiz.bat for windows
>> or
>> startofbiz.sh for linux
>>
>>
>> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
>>  
>>> 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
>>>
>>>
>>>    
>>
>>  
>
>

--
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.

Reply | Threaded
Open this post in threaded view
|

Re: An FYI - java.lang.OutOfMemoryError

Tim Ruppert
In reply to this post by Adrian Crum
Yeah - tomorrow's download will have the updated README file - thanks Ruth and Adrian.

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

o:801.649.6594
f:801.649.6595

----- "Adrian Crum" <[hidden email]> wrote:

> I believe those zip files are created every night. Btw, thanks for
> pointing that out!
>
> -Adrian
>
> Ruth Hoffman wrote:
> > Hi Adrian:
> > Thanks. For my own edification, when does that get rolled into the
> > default download packaged README?
> > Thanks again,
> > Ruth
> > Adrian Crum wrote:
> >> In the README file. Fixed, rev 783833.
> >>
> >> -Adrian
> >>
> >> Tim Ruppert wrote:
> >>> If you go the build.ofbiz.org page - where the directions are that
> I
> >>> put up there - have the following command:
> >>>
> >>> java -Xmx256M -jar ofbiz.jar
> >>>
> >>> If you do this, it works fine.  That being said, it's not the same
> as
> >>> the startofbiz.sh script, so if all are in favor, then we should
> >>> change that.  Where do you get your instructions from Ruth?
> >>>
> >>> Cheers,
> >>> Tim
> >>> --
> >>> Tim Ruppert
> >>> HotWax Media
> >>> http://www.hotwaxmedia.com
> >>>
> >>> o:801.649.6594
> >>> f:801.649.6595
> >>>
> >>> ----- "Ruth Hoffman" <[hidden email]> wrote:
> >>>
> >>>> Thanks BJ
> >>>> I'm pretty sure I can overcome this problem...(I've been using
> OFBiz
> >>>> of several years now.) Not to insult anyone - I just wanted to
> let you
> >>>> guys know that the README instructions do not give the desired
> results.
> >>>> IMHO, the project shouldn't be putting out pre-packaged code
> with
> >>>> instructions that don't work as advertised. It's just not good
> for
> >>>> business. But then, that is just my humble opinion.
> >>>>
> >>>> Regards,
> >>>> Ruth
> >>>> BJ Freeman wrote:
> >>>>> try running
> >>>>> ant run
> >>>>> or
> >>>>> startofbiz.bat for windows
> >>>>> or
> >>>>> startofbiz.sh for linux
> >>>>>
> >>>>>
> >>>>> Ruth Hoffman sent the following on 6/11/2009 8:42 AM:
> >>>>>  
> >>>>>> 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
|

Custom entity ID generator

Deyan Tsvetanov
In reply to this post by Ruth Hoffman-2
Hi list,

I'd like to use a custom ID generator - for instance rather to start
from 10000 and increment by 10 I'd like to start from 0, increment by 1
leaving no empty values and probably append some other rules - like to
reset to 0 in the beginning of each year and prefix the returned ID by
the current year.

Example:

 200900001
 200900002
 ....
 200932110
 ....
 201000001    <--- a new year starts.

I know it may sound pretty dumb, but the law makers in some countries
are not so smart.

So - could somebody give me some hints - is it possible to specify a
custom ID generator per field typed "id-ne" in the entitymodel.xml ?

Thanks in advance,
Deyan

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

David E. Jones-2

Take a look at the party/organization accounting preferences in the  
Accounting Manager. If you're looking for this sort of sequencing for  
invoices, orders, etc then it is already supported.

-David


On Jun 13, 2009, at 5:44 AM, Deyan Tsvetanov wrote:

> Hi list,
>
> I'd like to use a custom ID generator - for instance rather to start
> from 10000 and increment by 10 I'd like to start from 0, increment  
> by 1
> leaving no empty values and probably append some other rules - like to
> reset to 0 in the beginning of each year and prefix the returned ID by
> the current year.
>
> Example:
>
> 200900001
> 200900002
> ....
> 200932110
> ....
> 201000001    <--- a new year starts.
>
> I know it may sound pretty dumb, but the law makers in some countries
> are not so smart.
>
> So - could somebody give me some hints - is it possible to specify a
> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
>
> Thanks in advance,
> Deyan
>

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

Deyan Tsvetanov
In reply to this post by Deyan Tsvetanov
Looks like the best way to do it is to use the GenericDelegator but with
a custom org.ofbiz.entity.util.SequenceUtil ...

On Sat, 2009-06-13 at 14:44 +0300, Deyan Tsvetanov wrote:

> Hi list,
>
> I'd like to use a custom ID generator - for instance rather to start
> from 10000 and increment by 10 I'd like to start from 0, increment by 1
> leaving no empty values and probably append some other rules - like to
> reset to 0 in the beginning of each year and prefix the returned ID by
> the current year.
>
> Example:
>
>  200900001
>  200900002
>  ....
>  200932110
>  ....
>  201000001    <--- a new year starts.
>
> I know it may sound pretty dumb, but the law makers in some countries
> are not so smart.
>
> So - could somebody give me some hints - is it possible to specify a
> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
>
> Thanks in advance,
> Deyan
>

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

BJ Freeman
In reply to this post by Ruth Hoffman-2
the problem is not in the Entity, since they are already id-ne for ID's
but the code that gets the next ID number.

I believe you are thinking in Database terms where the you can specify
the type on increment. Ofbiz does not use such database features.

David mentioned a away to accomplish this so maybe he will respond on
this one.


Deyan Tsvetanov sent the following on 6/13/2009 4:44 AM:

> Hi list,
>
> I'd like to use a custom ID generator - for instance rather to start
> from 10000 and increment by 10 I'd like to start from 0, increment by 1
> leaving no empty values and probably append some other rules - like to
> reset to 0 in the beginning of each year and prefix the returned ID by
> the current year.
>
> Example:
>
>  200900001
>  200900002
>  ....
>  200932110
>  ....
>  201000001    <--- a new year starts.
>
> I know it may sound pretty dumb, but the law makers in some countries
> are not so smart.
>
> So - could somebody give me some hints - is it possible to specify a
> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
>
> Thanks in advance,
> Deyan
>
>

--
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.

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

BJ Freeman
In reply to this post by Deyan Tsvetanov
Organization GL Settings >Available Internal
Organizations>Company>Setup>Accounting Preferences

David E Jones sent the following on 6/13/2009 5:15 AM:

>
> Take a look at the party/organization accounting preferences in the
> Accounting Manager. If you're looking for this sort of sequencing for
> invoices, orders, etc then it is already supported.
>
> -David
>
>
> On Jun 13, 2009, at 5:44 AM, Deyan Tsvetanov wrote:
>
>> Hi list,
>>
>> I'd like to use a custom ID generator - for instance rather to start
>> from 10000 and increment by 10 I'd like to start from 0, increment by 1
>> leaving no empty values and probably append some other rules - like to
>> reset to 0 in the beginning of each year and prefix the returned ID by
>> the current year.
>>
>> Example:
>>
>> 200900001
>> 200900002
>> ....
>> 200932110
>> ....
>> 201000001    <--- a new year starts.
>>
>> I know it may sound pretty dumb, but the law makers in some countries
>> are not so smart.
>>
>> So - could somebody give me some hints - is it possible to specify a
>> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
>>
>> Thanks in advance,
>> Deyan
>>
>
>

--
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.

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

Deyan Tsvetanov
Exactly, I knew I've seen it somewhere :)
"Enforced Sequence (no gaps, per organization)"

Thanks guys,
I'll have a look at it.

Another question: do you have any idea how this enforced sequence might
behave in case of two ofbiz servers - in a cluster or sharing a
database ?

My goal is to generate IDs without absolutely any gaps.

Another very important requirement is that the order of the record's
CREATED_DATE should match the order of the IDs. It is not possible to go
back and fill a gap.

Example:

A good example:
   ID          |           CREATED_DATE
---------------------------------------------
    1          |            1 June  9:00 AM
    2          |            1 June 10:00 AM

A bad example:

   ID          |           CREATED_DATE
---------------------------------------------
    1          |            1 June 10:00 AM
    2          |            1 June  9:00 AM


I already have an idea of a workaround,
but I'll investigate the enforced sequence first.

Thanks again,
Deyan



On Sat, 2009-06-13 at 05:42 -0700, BJ Freeman wrote:

> Organization GL Settings >Available Internal
> Organizations>Company>Setup>Accounting Preferences
>
> David E Jones sent the following on 6/13/2009 5:15 AM:
> >
> > Take a look at the party/organization accounting preferences in the
> > Accounting Manager. If you're looking for this sort of sequencing for
> > invoices, orders, etc then it is already supported.
> >
> > -David
> >
> >
> > On Jun 13, 2009, at 5:44 AM, Deyan Tsvetanov wrote:
> >
> >> Hi list,
> >>
> >> I'd like to use a custom ID generator - for instance rather to start
> >> from 10000 and increment by 10 I'd like to start from 0, increment by 1
> >> leaving no empty values and probably append some other rules - like to
> >> reset to 0 in the beginning of each year and prefix the returned ID by
> >> the current year.
> >>
> >> Example:
> >>
> >> 200900001
> >> 200900002
> >> ....
> >> 200932110
> >> ....
> >> 201000001    <--- a new year starts.
> >>
> >> I know it may sound pretty dumb, but the law makers in some countries
> >> are not so smart.
> >>
> >> So - could somebody give me some hints - is it possible to specify a
> >> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
> >>
> >> Thanks in advance,
> >> Deyan
> >>
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

Jacques Le Roux
Administrator
This has been already dicussed many times. You may find information using MarMail or Nable, some threads are even very detailled

Good luck

Jacques

From: "Deyan Tsvetanov" <[hidden email]>

> Exactly, I knew I've seen it somewhere :)
> "Enforced Sequence (no gaps, per organization)"
>
> Thanks guys,
> I'll have a look at it.
>
> Another question: do you have any idea how this enforced sequence might
> behave in case of two ofbiz servers - in a cluster or sharing a
> database ?
>
> My goal is to generate IDs without absolutely any gaps.
>
> Another very important requirement is that the order of the record's
> CREATED_DATE should match the order of the IDs. It is not possible to go
> back and fill a gap.
>
> Example:
>
> A good example:
>   ID          |           CREATED_DATE
> ---------------------------------------------
>    1          |            1 June  9:00 AM
>    2          |            1 June 10:00 AM
>
> A bad example:
>
>   ID          |           CREATED_DATE
> ---------------------------------------------
>    1          |            1 June 10:00 AM
>    2          |            1 June  9:00 AM
>
>
> I already have an idea of a workaround,
> but I'll investigate the enforced sequence first.
>
> Thanks again,
> Deyan
>
>
>
> On Sat, 2009-06-13 at 05:42 -0700, BJ Freeman wrote:
>> Organization GL Settings >Available Internal
>> Organizations>Company>Setup>Accounting Preferences
>>
>> David E Jones sent the following on 6/13/2009 5:15 AM:
>> >
>> > Take a look at the party/organization accounting preferences in the
>> > Accounting Manager. If you're looking for this sort of sequencing for
>> > invoices, orders, etc then it is already supported.
>> >
>> > -David
>> >
>> >
>> > On Jun 13, 2009, at 5:44 AM, Deyan Tsvetanov wrote:
>> >
>> >> Hi list,
>> >>
>> >> I'd like to use a custom ID generator - for instance rather to start
>> >> from 10000 and increment by 10 I'd like to start from 0, increment by 1
>> >> leaving no empty values and probably append some other rules - like to
>> >> reset to 0 in the beginning of each year and prefix the returned ID by
>> >> the current year.
>> >>
>> >> Example:
>> >>
>> >> 200900001
>> >> 200900002
>> >> ....
>> >> 200932110
>> >> ....
>> >> 201000001    <--- a new year starts.
>> >>
>> >> I know it may sound pretty dumb, but the law makers in some countries
>> >> are not so smart.
>> >>
>> >> So - could somebody give me some hints - is it possible to specify a
>> >> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
>> >>
>> >> Thanks in advance,
>> >> Deyan
>> >>
>> >
>> >
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

Deyan Tsvetanov
Hi again,

finally I used GenericDelegator.getNextSeqIdLong() when creating
entities.

It does increment the sequence by 1.

However today I noticed, that in the database - sequence_value_item
table  - the seq_id value gets incremented by 10.

The reason is that the org.ofbiz.entity.util.SequenceUtil class creates
a SequenceBank with the default value ot 10 IDs.

This is a MAJOR problem. It would appear if the server dies or gets a
hard restart for some reason ( or even JVM error ) - we'll end up with
gaps.  

I couldn't find any API that forces the SequenceUtil to create a
SequnenceBank sized to 1 . Is there a way to do it ?


Also:

I couldn't find any info in the mail threads regarding this sequencing
mechanism being thread safe.
Although I ran several threads requesting next ID from the same sequence
- and it works OK -  I am not quite convinced what would happen if we
have 2 ofbiz instances running against the same database. Is this setup
supported ?

Thanks in advance,
Deyan

On Sat, 2009-06-13 at 15:27 +0200, Jacques Le Roux wrote:

> This has been already dicussed many times. You may find information using MarMail or Nable, some threads are even very detailled
>
> Good luck
>
> Jacques
>
> From: "Deyan Tsvetanov" <[hidden email]>
> > Exactly, I knew I've seen it somewhere :)
> > "Enforced Sequence (no gaps, per organization)"
> >
> > Thanks guys,
> > I'll have a look at it.
> >
> > Another question: do you have any idea how this enforced sequence might
> > behave in case of two ofbiz servers - in a cluster or sharing a
> > database ?
> >
> > My goal is to generate IDs without absolutely any gaps.
> >
> > Another very important requirement is that the order of the record's
> > CREATED_DATE should match the order of the IDs. It is not possible to go
> > back and fill a gap.
> >
> > Example:
> >
> > A good example:
> >   ID          |           CREATED_DATE
> > ---------------------------------------------
> >    1          |            1 June  9:00 AM
> >    2          |            1 June 10:00 AM
> >
> > A bad example:
> >
> >   ID          |           CREATED_DATE
> > ---------------------------------------------
> >    1          |            1 June 10:00 AM
> >    2          |            1 June  9:00 AM
> >
> >
> > I already have an idea of a workaround,
> > but I'll investigate the enforced sequence first.
> >
> > Thanks again,
> > Deyan
> >
> >
> >
> > On Sat, 2009-06-13 at 05:42 -0700, BJ Freeman wrote:
> >> Organization GL Settings >Available Internal
> >> Organizations>Company>Setup>Accounting Preferences
> >>
> >> David E Jones sent the following on 6/13/2009 5:15 AM:
> >> >
> >> > Take a look at the party/organization accounting preferences in the
> >> > Accounting Manager. If you're looking for this sort of sequencing for
> >> > invoices, orders, etc then it is already supported.
> >> >
> >> > -David
> >> >
> >> >
> >> > On Jun 13, 2009, at 5:44 AM, Deyan Tsvetanov wrote:
> >> >
> >> >> Hi list,
> >> >>
> >> >> I'd like to use a custom ID generator - for instance rather to start
> >> >> from 10000 and increment by 10 I'd like to start from 0, increment by 1
> >> >> leaving no empty values and probably append some other rules - like to
> >> >> reset to 0 in the beginning of each year and prefix the returned ID by
> >> >> the current year.
> >> >>
> >> >> Example:
> >> >>
> >> >> 200900001
> >> >> 200900002
> >> >> ....
> >> >> 200932110
> >> >> ....
> >> >> 201000001    <--- a new year starts.
> >> >>
> >> >> I know it may sound pretty dumb, but the law makers in some countries
> >> >> are not so smart.
> >> >>
> >> >> So - could somebody give me some hints - is it possible to specify a
> >> >> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
> >> >>
> >> >> Thanks in advance,
> >> >> Deyan
> >> >>
> >> >
> >> >
> >>
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

Deyan Tsvetanov
I recall my comment about the sequences thread safety - in case we start
2 ofbiz instances against the same database :)

But the 1st issue remains - configuring the sequence bank size for
specific entities.

I suggest adding a new column in SequenceValueItem - bank_size.
If it is set to 0 than SequenceUtil will not create a SequenceBank for
that entity but will read the current seq_id from the database instead.
This is needed to ensure there will be no gaps in the sequence IDs for
entities that do require no gaps because of legal requirements in some
countries :)

-- deyan


On Mon, 2009-06-22 at 17:30 +0300, Deyan Tsvetanov wrote:

> Hi again,
>
> finally I used GenericDelegator.getNextSeqIdLong() when creating
> entities.
>
> It does increment the sequence by 1.
>
> However today I noticed, that in the database - sequence_value_item
> table  - the seq_id value gets incremented by 10.
>
> The reason is that the org.ofbiz.entity.util.SequenceUtil class creates
> a SequenceBank with the default value ot 10 IDs.
>
> This is a MAJOR problem. It would appear if the server dies or gets a
> hard restart for some reason ( or even JVM error ) - we'll end up with
> gaps.  
>
> I couldn't find any API that forces the SequenceUtil to create a
> SequnenceBank sized to 1 . Is there a way to do it ?
>
>
> Also:
>
> I couldn't find any info in the mail threads regarding this sequencing
> mechanism being thread safe.
> Although I ran several threads requesting next ID from the same sequence
> - and it works OK -  I am not quite convinced what would happen if we
> have 2 ofbiz instances running against the same database. Is this setup
> supported ?
>
> Thanks in advance,
> Deyan
>
> On Sat, 2009-06-13 at 15:27 +0200, Jacques Le Roux wrote:
> > This has been already dicussed many times. You may find information using MarMail or Nable, some threads are even very detailled
> >
> > Good luck
> >
> > Jacques
> >
> > From: "Deyan Tsvetanov" <[hidden email]>
> > > Exactly, I knew I've seen it somewhere :)
> > > "Enforced Sequence (no gaps, per organization)"
> > >
> > > Thanks guys,
> > > I'll have a look at it.
> > >
> > > Another question: do you have any idea how this enforced sequence might
> > > behave in case of two ofbiz servers - in a cluster or sharing a
> > > database ?
> > >
> > > My goal is to generate IDs without absolutely any gaps.
> > >
> > > Another very important requirement is that the order of the record's
> > > CREATED_DATE should match the order of the IDs. It is not possible to go
> > > back and fill a gap.
> > >
> > > Example:
> > >
> > > A good example:
> > >   ID          |           CREATED_DATE
> > > ---------------------------------------------
> > >    1          |            1 June  9:00 AM
> > >    2          |            1 June 10:00 AM
> > >
> > > A bad example:
> > >
> > >   ID          |           CREATED_DATE
> > > ---------------------------------------------
> > >    1          |            1 June 10:00 AM
> > >    2          |            1 June  9:00 AM
> > >
> > >
> > > I already have an idea of a workaround,
> > > but I'll investigate the enforced sequence first.
> > >
> > > Thanks again,
> > > Deyan
> > >
> > >
> > >
> > > On Sat, 2009-06-13 at 05:42 -0700, BJ Freeman wrote:
> > >> Organization GL Settings >Available Internal
> > >> Organizations>Company>Setup>Accounting Preferences
> > >>
> > >> David E Jones sent the following on 6/13/2009 5:15 AM:
> > >> >
> > >> > Take a look at the party/organization accounting preferences in the
> > >> > Accounting Manager. If you're looking for this sort of sequencing for
> > >> > invoices, orders, etc then it is already supported.
> > >> >
> > >> > -David
> > >> >
> > >> >
> > >> > On Jun 13, 2009, at 5:44 AM, Deyan Tsvetanov wrote:
> > >> >
> > >> >> Hi list,
> > >> >>
> > >> >> I'd like to use a custom ID generator - for instance rather to start
> > >> >> from 10000 and increment by 10 I'd like to start from 0, increment by 1
> > >> >> leaving no empty values and probably append some other rules - like to
> > >> >> reset to 0 in the beginning of each year and prefix the returned ID by
> > >> >> the current year.
> > >> >>
> > >> >> Example:
> > >> >>
> > >> >> 200900001
> > >> >> 200900002
> > >> >> ....
> > >> >> 200932110
> > >> >> ....
> > >> >> 201000001    <--- a new year starts.
> > >> >>
> > >> >> I know it may sound pretty dumb, but the law makers in some countries
> > >> >> are not so smart.
> > >> >>
> > >> >> So - could somebody give me some hints - is it possible to specify a
> > >> >> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
> > >> >>
> > >> >> Thanks in advance,
> > >> >> Deyan
> > >> >>
> > >> >
> > >> >
> > >>
> > >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: Custom entity ID generator

BJ Freeman
In reply to this post by Jacques Le Roux
take a look at
accounting>globalGLSettings>Assign GL Account> Accounting Preferences
Invoice Sequence



Deyan Tsvetanov sent the following on 6/22/2009 7:30 AM:

> Hi again,
>
> finally I used GenericDelegator.getNextSeqIdLong() when creating
> entities.
>
> It does increment the sequence by 1.
>
> However today I noticed, that in the database - sequence_value_item
> table  - the seq_id value gets incremented by 10.
>
> The reason is that the org.ofbiz.entity.util.SequenceUtil class creates
> a SequenceBank with the default value ot 10 IDs.
>
> This is a MAJOR problem. It would appear if the server dies or gets a
> hard restart for some reason ( or even JVM error ) - we'll end up with
> gaps.  
>
> I couldn't find any API that forces the SequenceUtil to create a
> SequnenceBank sized to 1 . Is there a way to do it ?
>
>
> Also:
>
> I couldn't find any info in the mail threads regarding this sequencing
> mechanism being thread safe.
> Although I ran several threads requesting next ID from the same sequence
> - and it works OK -  I am not quite convinced what would happen if we
> have 2 ofbiz instances running against the same database. Is this setup
> supported ?
>
> Thanks in advance,
> Deyan
>
> On Sat, 2009-06-13 at 15:27 +0200, Jacques Le Roux wrote:
>> This has been already dicussed many times. You may find information using MarMail or Nable, some threads are even very detailled
>>
>> Good luck
>>
>> Jacques
>>
>> From: "Deyan Tsvetanov" <[hidden email]>
>>> Exactly, I knew I've seen it somewhere :)
>>> "Enforced Sequence (no gaps, per organization)"
>>>
>>> Thanks guys,
>>> I'll have a look at it.
>>>
>>> Another question: do you have any idea how this enforced sequence might
>>> behave in case of two ofbiz servers - in a cluster or sharing a
>>> database ?
>>>
>>> My goal is to generate IDs without absolutely any gaps.
>>>
>>> Another very important requirement is that the order of the record's
>>> CREATED_DATE should match the order of the IDs. It is not possible to go
>>> back and fill a gap.
>>>
>>> Example:
>>>
>>> A good example:
>>>   ID          |           CREATED_DATE
>>> ---------------------------------------------
>>>    1          |            1 June  9:00 AM
>>>    2          |            1 June 10:00 AM
>>>
>>> A bad example:
>>>
>>>   ID          |           CREATED_DATE
>>> ---------------------------------------------
>>>    1          |            1 June 10:00 AM
>>>    2          |            1 June  9:00 AM
>>>
>>>
>>> I already have an idea of a workaround,
>>> but I'll investigate the enforced sequence first.
>>>
>>> Thanks again,
>>> Deyan
>>>
>>>
>>>
>>> On Sat, 2009-06-13 at 05:42 -0700, BJ Freeman wrote:
>>>> Organization GL Settings >Available Internal
>>>> Organizations>Company>Setup>Accounting Preferences
>>>>
>>>> David E Jones sent the following on 6/13/2009 5:15 AM:
>>>>> Take a look at the party/organization accounting preferences in the
>>>>> Accounting Manager. If you're looking for this sort of sequencing for
>>>>> invoices, orders, etc then it is already supported.
>>>>>
>>>>> -David
>>>>>
>>>>>
>>>>> On Jun 13, 2009, at 5:44 AM, Deyan Tsvetanov wrote:
>>>>>
>>>>>> Hi list,
>>>>>>
>>>>>> I'd like to use a custom ID generator - for instance rather to start
>>>>>> from 10000 and increment by 10 I'd like to start from 0, increment by 1
>>>>>> leaving no empty values and probably append some other rules - like to
>>>>>> reset to 0 in the beginning of each year and prefix the returned ID by
>>>>>> the current year.
>>>>>>
>>>>>> Example:
>>>>>>
>>>>>> 200900001
>>>>>> 200900002
>>>>>> ....
>>>>>> 200932110
>>>>>> ....
>>>>>> 201000001    <--- a new year starts.
>>>>>>
>>>>>> I know it may sound pretty dumb, but the law makers in some countries
>>>>>> are not so smart.
>>>>>>
>>>>>> So - could somebody give me some hints - is it possible to specify a
>>>>>> custom ID generator per field typed "id-ne" in the entitymodel.xml ?
>>>>>>
>>>>>> Thanks in advance,
>>>>>> Deyan
>>>>>>
>>>>>
>
>

--
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.

12