Re: [Fwd: Re: JobInvoker crashes while reading serviceengine.xml]
Hi Florin, Could you please explain the steps how to achieve "stop reading the xml file every time the configuration is needed and instead store them within the JobInvoker upon creation. .." or perhaps up to this time you have got a better solution? I would appreciate if you could share it. Thank you. -- View this message in context: http://ofbiz.135035.n4.nabble.com/Fwd-Re-JobInvoker-crashes-while-reading-serviceengine-xml-tp1572137p4550312.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: [Fwd: Re: JobInvoker crashes while reading serviceengine.xml]
Thanks, very good idea. I did this today and it seems better I ask myself if there are other XML files which are read so frequent?! Are they? regards, Florin On Sat, Feb 27, 2010 at 7:57 PM, Scott Gray wrote: > The easiest fix IMO is to stop reading the xml file every time the > configuration is needed and instead store them within the JobInvoker upon > creation. > > Regards > Scott > > On 27/02/2010, at 10:53 AM, Florin Popa wrote: > > > I would help any way needed in order to reproduce it and fix. > > It happens in a random way, it has nothing to do with the current load of > the server, sometimes could be every 10 mins and sometimes could not happen > for several hours. > > The only thing that helped by now was that resourceLoader cache cleaning > which I do now from a shell script calling the web admin url. > > > > regards, > > Florin > > > > ---- Original Message > > Subject: Re: JobInvoker crashes while reading serviceengine.xml > > Date: Sat, 27 Feb 2010 10:50:05 -0700 > > From: Scott Gray > > Reply-To: user@ofbiz.apache.org > > To: user@ofbiz.apache.org > > References: <514483.50970...@web63102.mail.re1.yahoo.com> > > > > > > > > I can't offer much in the way of details but I have seen this problem in > more recent revisions (< 1 year old) from time to time. > > > > Regards > > Scott > > > > HotWax Media > > http://www.hotwaxmedia.com > > > > On 27/02/2010, at 10:18 AM, Adrian Crum wrote: > > > >> Florin, > >> That revision is prior to Release 9.04 - so I don't know if you will > find much support for it. I will look into it if I find time. It might be > better for you to update your version. > >> -Adrian > >> --- On Sat, 2/27/10, Florin Popa wrote: > >>> From: Florin Popa > >>> Subject: Re: JobInvoker crashes while reading serviceengine.xml > >>> To: user@ofbiz.apache.org > >>> Date: Saturday, February 27, 2010, 8:08 AM > >>> Hello Adrian, > >>> Here it is: Checked out revision 691692. > >>> Last occurrence on the production server is this morning: > >>> 2010-02-27 08:21:14,209 (default-invoker-Thread-325) > >>> [JobInvoker.java:267:ERROR] Problems > >>> reading values from serviceengine.xml file > >>> [java.lang.NumberFormatException: For input string: ""]. > >>> Using defaults. > >>> Thanks, > >>> Florin > >>>> Florin > >>>> Could you give me the revision number? > >>>> -Adrian > >>>> --- On Sat, 2/27/10, Florin Popa > >>> wrote: > >>>> > >>>>> From: Florin Popa > >>>>> Subject: Re: JobInvoker crashes while reading > >>> serviceengine.xml > >>>>> To: user@ofbiz.apache.org > >>>>> Date: Saturday, February 27, 2010, 3:42 AM > >>>>> Hello Adrian, > >>>>> No, I did not touch the content of that xml file. > >>> It is the > >>>>> original one. > >>>>> Right now there is a shell script watching the log > >>> file. If > >>>>> it encounters that error I clear the cache you > >>> recommended. > >>>>> How can I help you identifying/reproducing the > >>> problem? > >>>>> regards, > >>>>> Florin > >>>>> > >>>>>> Florin, > >>>>>> I have been unable to duplicate your problem. > >>> Have you > >>>>>> > >>>>> changed the contents of serviceengine.xml? That is > >>> the only > >>>>> thing I can think of that would cause the error > >>> message you > >>>>> are getting. > >>>>> > >>>>>> -Adrian > >>>>>> --- On Wed, 2/24/10, Adrian Crum > >>>>>> > >>>>> wrote: > >>>>> > >>>>>> > >>>>>>> From: Adrian Crum > >>>>>>> Subject: Re: JobInvoker crashes while > >>> reading > >>>>>>> > >>>>> serviceengine.xml > >>>>> > >>>>>>> To: user@ofbiz.apache.org > >>>>>>> Date: Wednesday, February 24, 2010, 1:06 > >>> PM > >>>>>>> Florin, > >>>>>>> Th
Re: JobInvoker crashes while reading serviceengine.xml
Hello David, I am sorry, but your assumption with development settings instead of production settings is wrong. I read many times that document regarding production settings. I fight for more than 2 months with an unstable production system so I did most of the things found wherever. cache.properties has even comments inside which suggest the difference between the 2 modes. Any kind of help would be kindly appreciated. Maybe a list of the XMLs (more not one) which are parsed very often and which actually could be parsed only once for the whole live (hope longer) of a running instance. regards, florin On Sat, Feb 27, 2010 at 10:03 PM, David E Jones wrote: > > As for performance... it sounds like you have not turned off the cache > clear settings (everything clears every 10 seconds by default for > development purposes). > > I recommend following the Production Setup Guide and commenting out the > cache timeouts in the cache.properties file. > > I hate to say it, but it's amazing how often people deploy OFBiz without > even reading the docs, and little things like this are expected. I've seen > large-scale sites go into product and get hammered because they didn't do > this 5 minute change, and then they think I'm some sort of miracle worker > when I point to the problem. > > Docs are there for a reason! The Business and Production Setup Guides are > absolutely vital and no one should do anything with OFBiz before reading > them. Follow the doc links from the ofbiz home page (ofbiz.apache.org) and > you'll find they are prominently featured... and for a reason! > > -David > > > On Feb 27, 2010, at 10:50 AM, Florin Popa wrote: > > > Hello Adrian, > > > > I expected such an answer. Actually I had another emails thread on that > topic of update to the latest version. > > But such a thing is not possible because we developed on top of that > version for almost 2 years by now. > > We hardly succeeded to update connection pooling to DBCP but a full > update is impossible - because of the missing compatibilities newer > version did not really consider that older ones might already be used in > production. > > > > Overall, I started to have a bad feeling about entire framework... the > performance itself is really bad.. Maybe next days we will have one more > attempt to make a bit cleaning on the source code (default one from ofbiz) > so that performance could be improved. > > I noticed for example very very often reading of several configuration > XML files which really does not make sense... because no one could change > them at runtime... as well as I am not sure about the entire caching > mechanism... > > > > > > regards, > > Florin > >> Florin, > >> > >> That revision is prior to Release 9.04 - so I don't know if you will > find much support for it. I will look into it if I find time. It might be > better for you to update your version. > >> > >> -Adrian > >> > >> --- On Sat, 2/27/10, Florin Popa wrote: > >> > >> > >>> From: Florin Popa > >>> Subject: Re: JobInvoker crashes while reading serviceengine.xml > >>> To: user@ofbiz.apache.org > >>> Date: Saturday, February 27, 2010, 8:08 AM > >>> Hello Adrian, > >>> > >>> Here it is: Checked out revision 691692. > >>> > >>> Last occurrence on the production server is this morning: > >>> > >>> 2010-02-27 08:21:14,209 (default-invoker-Thread-325) > >>> [ JobInvoker.java:267:ERROR] Problems > >>> reading values from serviceengine.xml file > >>> [java.lang.NumberFormatException: For input string: ""]. > >>> Using defaults. > >>> > >>> Thanks, > >>> Florin > >>> > >>>> Florin > >>>> > >>>> Could you give me the revision number? > >>>> > >>>> -Adrian > >>>> > >>>> --- On Sat, 2/27/10, Florin Popa > >>>> > >>> wrote: > >>> > >>>> > >>>>> From: Florin Popa > >>>>> Subject: Re: JobInvoker crashes while reading > >>>>> > >>> serviceengine.xml > >>> > >>>>> To: user@ofbiz.apache.org > >>>>> Date: Saturday, February 27, 2010, 3:42 AM > >>>>> Hello Adrian, > >>>>> > >>>>> No, I did not touch the content of that xml file. > >>>>> > >>> It is the > >>>
Re: [Fwd: Re: JobInvoker crashes while reading serviceengine.xml]
The easiest fix IMO is to stop reading the xml file every time the configuration is needed and instead store them within the JobInvoker upon creation. Regards Scott On 27/02/2010, at 10:53 AM, Florin Popa wrote: > I would help any way needed in order to reproduce it and fix. > It happens in a random way, it has nothing to do with the current load of the > server, sometimes could be every 10 mins and sometimes could not happen for > several hours. > The only thing that helped by now was that resourceLoader cache cleaning > which I do now from a shell script calling the web admin url. > > regards, > Florin > > Original Message ---- > Subject: Re: JobInvoker crashes while reading serviceengine.xml > Date: Sat, 27 Feb 2010 10:50:05 -0700 > From: Scott Gray > Reply-To: user@ofbiz.apache.org > To: user@ofbiz.apache.org > References: <514483.50970...@web63102.mail.re1.yahoo.com> > > > > I can't offer much in the way of details but I have seen this problem in more > recent revisions (< 1 year old) from time to time. > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > > On 27/02/2010, at 10:18 AM, Adrian Crum wrote: > >> Florin, >> That revision is prior to Release 9.04 - so I don't know if you will find >> much support for it. I will look into it if I find time. It might be better >> for you to update your version. >> -Adrian >> --- On Sat, 2/27/10, Florin Popa wrote: >>> From: Florin Popa >>> Subject: Re: JobInvoker crashes while reading serviceengine.xml >>> To: user@ofbiz.apache.org >>> Date: Saturday, February 27, 2010, 8:08 AM >>> Hello Adrian, >>> Here it is: Checked out revision 691692. >>> Last occurrence on the production server is this morning: >>> 2010-02-27 08:21:14,209 (default-invoker-Thread-325) >>> [JobInvoker.java:267:ERROR] Problems >>> reading values from serviceengine.xml file >>> [java.lang.NumberFormatException: For input string: ""]. >>> Using defaults. >>> Thanks, >>> Florin >>>> Florin >>>> Could you give me the revision number? >>>> -Adrian >>>> --- On Sat, 2/27/10, Florin Popa >>> wrote: >>>> >>>>> From: Florin Popa >>>>> Subject: Re: JobInvoker crashes while reading >>> serviceengine.xml >>>>> To: user@ofbiz.apache.org >>>>> Date: Saturday, February 27, 2010, 3:42 AM >>>>> Hello Adrian, >>>>> No, I did not touch the content of that xml file. >>> It is the >>>>> original one. >>>>> Right now there is a shell script watching the log >>> file. If >>>>> it encounters that error I clear the cache you >>> recommended. >>>>> How can I help you identifying/reproducing the >>> problem? >>>>> regards, >>>>> Florin >>>>> >>>>>> Florin, >>>>>> I have been unable to duplicate your problem. >>> Have you >>>>>> >>>>> changed the contents of serviceengine.xml? That is >>> the only >>>>> thing I can think of that would cause the error >>> message you >>>>> are getting. >>>>> >>>>>> -Adrian >>>>>> --- On Wed, 2/24/10, Adrian Crum >>>>>> >>>>> wrote: >>>>> >>>>>> >>>>>>> From: Adrian Crum >>>>>>> Subject: Re: JobInvoker crashes while >>> reading >>>>>>> >>>>> serviceengine.xml >>>>> >>>>>>> To: user@ofbiz.apache.org >>>>>>> Date: Wednesday, February 24, 2010, 1:06 >>> PM >>>>>>> Florin, >>>>>>> Thank you for the information. I believe >>> there >>>>>>> >>>>> might be a >>>>> >>>>>>> problem in the way things are cached. I >>> will look >>>>>>> >>>>> into it >>>>> >>>>>>> further. >>>>>>> For now, if clearing the cache solves your >>> problem >>>>>>> >>>>> then go >>>>> >>>>>>> ahead and do t
[Fwd: Re: JobInvoker crashes while reading serviceengine.xml]
I would help any way needed in order to reproduce it and fix. It happens in a random way, it has nothing to do with the current load of the server, sometimes could be every 10 mins and sometimes could not happen for several hours. The only thing that helped by now was that resourceLoader cache cleaning which I do now from a shell script calling the web admin url. regards, Florin Original Message Subject:Re: JobInvoker crashes while reading serviceengine.xml Date: Sat, 27 Feb 2010 10:50:05 -0700 From: Scott Gray Reply-To: user@ofbiz.apache.org To: user@ofbiz.apache.org References: <514483.50970...@web63102.mail.re1.yahoo.com> I can't offer much in the way of details but I have seen this problem in more recent revisions (< 1 year old) from time to time. Regards Scott HotWax Media http://www.hotwaxmedia.com On 27/02/2010, at 10:18 AM, Adrian Crum wrote: Florin, That revision is prior to Release 9.04 - so I don't know if you will find much support for it. I will look into it if I find time. It might be better for you to update your version. -Adrian --- On Sat, 2/27/10, Florin Popa wrote: From: Florin Popa Subject: Re: JobInvoker crashes while reading serviceengine.xml To: user@ofbiz.apache.org Date: Saturday, February 27, 2010, 8:08 AM Hello Adrian, Here it is: Checked out revision 691692. Last occurrence on the production server is this morning: 2010-02-27 08:21:14,209 (default-invoker-Thread-325) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: For input string: ""]. Using defaults. Thanks, Florin Florin Could you give me the revision number? -Adrian --- On Sat, 2/27/10, Florin Popa wrote: From: Florin Popa Subject: Re: JobInvoker crashes while reading serviceengine.xml To: user@ofbiz.apache.org Date: Saturday, February 27, 2010, 3:42 AM Hello Adrian, No, I did not touch the content of that xml file. It is the original one. Right now there is a shell script watching the log file. If it encounters that error I clear the cache you recommended. How can I help you identifying/reproducing the problem? regards, Florin Florin, I have been unable to duplicate your problem. Have you changed the contents of serviceengine.xml? That is the only thing I can think of that would cause the error message you are getting. -Adrian --- On Wed, 2/24/10, Adrian Crum wrote: From: Adrian Crum Subject: Re: JobInvoker crashes while reading serviceengine.xml To: user@ofbiz.apache.org Date: Wednesday, February 24, 2010, 1:06 PM Florin, Thank you for the information. I believe there might be a problem in the way things are cached. I will look into it further. For now, if clearing the cache solves your problem then go ahead and do that. The long term solution will be to find out what is causing the problem and fix it. -Adrian Florin Popa wrote: Now I can confirm it fixes the problem. While I do that clear cache for resourceLoader I get few lines similar with the ones mentioned before, like 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. BUT the main advantage is that server does not fully crash and it recovers well. I do those calls on regular bases every 10 mins.. I only ask myself if (depending on the number of concurrent users) it needs to be done more often?! Could reach other side effects by doing it more often? Best regards, Florin I still need to know if that fixed the problem. If it did, then we need to look into it further to get it fixed. -Adrian Florin Popa wrote: Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it ev
Re: JobInvoker crashes while reading serviceengine.xml
I can't offer much in the way of details but I have seen this problem in more recent revisions (< 1 year old) from time to time. Regards Scott HotWax Media http://www.hotwaxmedia.com On 27/02/2010, at 10:18 AM, Adrian Crum wrote: > Florin, > > That revision is prior to Release 9.04 - so I don't know if you will find > much support for it. I will look into it if I find time. It might be better > for you to update your version. > > -Adrian > > --- On Sat, 2/27/10, Florin Popa wrote: > >> From: Florin Popa >> Subject: Re: JobInvoker crashes while reading serviceengine.xml >> To: user@ofbiz.apache.org >> Date: Saturday, February 27, 2010, 8:08 AM >> Hello Adrian, >> >> Here it is: Checked out revision 691692. >> >> Last occurrence on the production server is this morning: >> >> 2010-02-27 08:21:14,209 (default-invoker-Thread-325) >> [ >>JobInvoker.java:267:ERROR] Problems >> reading values from serviceengine.xml file >> [java.lang.NumberFormatException: For input string: ""]. >> Using defaults. >> >> Thanks, >> Florin >>> Florin >>> >>> Could you give me the revision number? >>> >>> -Adrian >>> >>> --- On Sat, 2/27/10, Florin Popa >> wrote: >>> >>> >>>> From: Florin Popa >>>> Subject: Re: JobInvoker crashes while reading >> serviceengine.xml >>>> To: user@ofbiz.apache.org >>>> Date: Saturday, February 27, 2010, 3:42 AM >>>> Hello Adrian, >>>> >>>> No, I did not touch the content of that xml file. >> It is the >>>> original one. >>>> Right now there is a shell script watching the log >> file. If >>>> it encounters that error I clear the cache you >> recommended. >>>> How can I help you identifying/reproducing the >> problem? >>>> >>>> regards, >>>> Florin >>>> >>>>> Florin, >>>>> >>>>> I have been unable to duplicate your problem. >> Have you >>>>> >>>> changed the contents of serviceengine.xml? That is >> the only >>>> thing I can think of that would cause the error >> message you >>>> are getting. >>>> >>>>> -Adrian >>>>> >>>>> --- On Wed, 2/24/10, Adrian Crum >>>>> >>>> wrote: >>>> >>>>> >>>>>> From: Adrian Crum >>>>>> Subject: Re: JobInvoker crashes while >> reading >>>>>> >>>> serviceengine.xml >>>> >>>>>> To: user@ofbiz.apache.org >>>>>> Date: Wednesday, February 24, 2010, 1:06 >> PM >>>>>> Florin, >>>>>> >>>>>> Thank you for the information. I believe >> there >>>>>> >>>> might be a >>>> >>>>>> problem in the way things are cached. I >> will look >>>>>> >>>> into it >>>> >>>>>> further. >>>>>> >>>>>> For now, if clearing the cache solves your >> problem >>>>>> >>>> then go >>>> >>>>>> ahead and do that. The long term solution >> will be >>>>>> >>>> to find >>>> >>>>>> out what is causing the problem and fix >> it. >>>>>> >>>>>> -Adrian >>>>>> >>>>>> >>>>>> Florin Popa wrote: >>>>>> >> >>>>>>> Now I can confirm it fixes the >> problem. While >>>>>>> >> >>>> I do >>>> >>>>>>> >> >>>>>> that clear cache for resourceLoader I get >> few >>>>>> >>>> lines similar >>>> >>>>>> with the ones mentioned before, like >>>>>> >> >>>>>>> 2010-02-23 21:27:09,238 >>>>>>> >> >>>> (default-invoker-Thread-498) >>>> >>>>>>> >> >>>>>
Re: JobInvoker crashes while reading serviceengine.xml
Hello Adrian, Here it is: Checked out revision 691692. Last occurrence on the production server is this morning: 2010-02-27 08:21:14,209 (default-invoker-Thread-325) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: For input string: ""]. Using defaults. Thanks, Florin Florin Could you give me the revision number? -Adrian --- On Sat, 2/27/10, Florin Popa wrote: From: Florin Popa Subject: Re: JobInvoker crashes while reading serviceengine.xml To: user@ofbiz.apache.org Date: Saturday, February 27, 2010, 3:42 AM Hello Adrian, No, I did not touch the content of that xml file. It is the original one. Right now there is a shell script watching the log file. If it encounters that error I clear the cache you recommended. How can I help you identifying/reproducing the problem? regards, Florin Florin, I have been unable to duplicate your problem. Have you changed the contents of serviceengine.xml? That is the only thing I can think of that would cause the error message you are getting. -Adrian --- On Wed, 2/24/10, Adrian Crum wrote: From: Adrian Crum Subject: Re: JobInvoker crashes while reading serviceengine.xml To: user@ofbiz.apache.org Date: Wednesday, February 24, 2010, 1:06 PM Florin, Thank you for the information. I believe there might be a problem in the way things are cached. I will look into it further. For now, if clearing the cache solves your problem then go ahead and do that. The long term solution will be to find out what is causing the problem and fix it. -Adrian Florin Popa wrote: Now I can confirm it fixes the problem. While I do that clear cache for resourceLoader I get few lines similar with the ones mentioned before, like 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. BUT the main advantage is that server does not fully crash and it recovers well. I do those calls on regular bases every 10 mins.. I only ask myself if (depending on the number of concurrent users) it needs to be done more often?! Could reach other side effects by doing it more often? Best regards, Florin I still need to know if that fixed the problem. If it did, then we need to look into it further to get it fixed. -Adrian Florin Popa wrote: Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it every 30 mins maybe Many thanks, Florin Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "d
Re: JobInvoker crashes while reading serviceengine.xml
Florin Could you give me the revision number? -Adrian --- On Sat, 2/27/10, Florin Popa wrote: > From: Florin Popa > Subject: Re: JobInvoker crashes while reading serviceengine.xml > To: user@ofbiz.apache.org > Date: Saturday, February 27, 2010, 3:42 AM > Hello Adrian, > > No, I did not touch the content of that xml file. It is the > original one. > Right now there is a shell script watching the log file. If > it encounters that error I clear the cache you recommended. > How can I help you identifying/reproducing the problem? > > regards, > Florin > > Florin, > > > > I have been unable to duplicate your problem. Have you > changed the contents of serviceengine.xml? That is the only > thing I can think of that would cause the error message you > are getting. > > > > -Adrian > > > > --- On Wed, 2/24/10, Adrian Crum > wrote: > > > > > >> From: Adrian Crum > >> Subject: Re: JobInvoker crashes while reading > serviceengine.xml > >> To: user@ofbiz.apache.org > >> Date: Wednesday, February 24, 2010, 1:06 PM > >> Florin, > >> > >> Thank you for the information. I believe there > might be a > >> problem in the way things are cached. I will look > into it > >> further. > >> > >> For now, if clearing the cache solves your problem > then go > >> ahead and do that. The long term solution will be > to find > >> out what is causing the problem and fix it. > >> > >> -Adrian > >> > >> > >> Florin Popa wrote: > >> > >>> Now I can confirm it fixes the problem. While > I do > >>> > >> that clear cache for resourceLoader I get few > lines similar > >> with the ones mentioned before, like > >> > >>> 2010-02-23 21:27:09,238 > (default-invoker-Thread-498) > >>> > >> [ > JobInvoker.java:267:ERROR] Problems > >> reading values from serviceengine.xml file > >> [java.lang.NumberFormatException: null]. Using > defaults. > >> > >>> BUT the main advantage is that server does not > fully > >>> > >> crash and it recovers well. I do those calls on > regular > >> bases every 10 mins.. > >> > >>> I only ask myself if (depending on the number > of > >>> > >> concurrent users) it needs to be done more often?! > Could > >> reach other side effects by doing it more often? > >> > >>> Best regards, > >>> Florin > >>> > >>>> I still need to know if that fixed the > problem. If > >>>> > >> it did, then we need to look into it further to > get it > >> fixed. > >> > >>>> -Adrian > >>>> > >>>> Florin Popa wrote: > >>>> > >>>>> Hello Adrian, > >>>>> > >>>>> Many thanks. Now I have the first > feeling that > >>>>> > > >> it really helps! > >> > >>>>> It can be checked only in the evening > because > >>>>> > > >> during the day I am doing clear all cache on > regular basees > >> for other other reasons (external process making > updates to > >> products and lucene index) > >> > >>>>> So now I did it manually, I need > further to > >>>>> > > >> integrate it into a cronjob doing it every 30 mins > maybe > >> > >>>>> Many thanks, > >>>>> Florin > >>>>> > > >>>>>> Florin, > >>>>>> > >>>>>> The next time you have that > problem, try > >>>>>> > > >> clearing the "resource.ResourceLoaders" cache and > see if the > >> problem goes away. > >> > >>>>>> -Adrian > >>>>>> > >>>>>> Florin Popa wrote: > >>>>>> > > >>>>>>> Hello all, > >>>>>>> > >>>>>>> I think I tried before to ask > that > >>>>>>> > > >> question, but I would retry because it becomes a > critical > >> issue in production. > >> > >>>
Re: JobInvoker crashes while reading serviceengine.xml
Hello Adrian, No, I did not touch the content of that xml file. It is the original one. Right now there is a shell script watching the log file. If it encounters that error I clear the cache you recommended. How can I help you identifying/reproducing the problem? regards, Florin Florin, I have been unable to duplicate your problem. Have you changed the contents of serviceengine.xml? That is the only thing I can think of that would cause the error message you are getting. -Adrian --- On Wed, 2/24/10, Adrian Crum wrote: From: Adrian Crum Subject: Re: JobInvoker crashes while reading serviceengine.xml To: user@ofbiz.apache.org Date: Wednesday, February 24, 2010, 1:06 PM Florin, Thank you for the information. I believe there might be a problem in the way things are cached. I will look into it further. For now, if clearing the cache solves your problem then go ahead and do that. The long term solution will be to find out what is causing the problem and fix it. -Adrian Florin Popa wrote: Now I can confirm it fixes the problem. While I do that clear cache for resourceLoader I get few lines similar with the ones mentioned before, like 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. BUT the main advantage is that server does not fully crash and it recovers well. I do those calls on regular bases every 10 mins.. I only ask myself if (depending on the number of concurrent users) it needs to be done more often?! Could reach other side effects by doing it more often? Best regards, Florin I still need to know if that fixed the problem. If it did, then we need to look into it further to get it fixed. -Adrian Florin Popa wrote: Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it every 30 mins maybe Many thanks, Florin Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java
Re: JobInvoker crashes while reading serviceengine.xml
Florin, I have been unable to duplicate your problem. Have you changed the contents of serviceengine.xml? That is the only thing I can think of that would cause the error message you are getting. -Adrian --- On Wed, 2/24/10, Adrian Crum wrote: > From: Adrian Crum > Subject: Re: JobInvoker crashes while reading serviceengine.xml > To: user@ofbiz.apache.org > Date: Wednesday, February 24, 2010, 1:06 PM > Florin, > > Thank you for the information. I believe there might be a > problem in the way things are cached. I will look into it > further. > > For now, if clearing the cache solves your problem then go > ahead and do that. The long term solution will be to find > out what is causing the problem and fix it. > > -Adrian > > > Florin Popa wrote: > > Now I can confirm it fixes the problem. While I do > that clear cache for resourceLoader I get few lines similar > with the ones mentioned before, like > > > > 2010-02-23 21:27:09,238 (default-invoker-Thread-498) > [ > JobInvoker.java:267:ERROR] Problems > reading values from serviceengine.xml file > [java.lang.NumberFormatException: null]. Using defaults. > > > > BUT the main advantage is that server does not fully > crash and it recovers well. I do those calls on regular > bases every 10 mins.. > > > > I only ask myself if (depending on the number of > concurrent users) it needs to be done more often?! Could > reach other side effects by doing it more often? > > > > Best regards, > > Florin > >> I still need to know if that fixed the problem. If > it did, then we need to look into it further to get it > fixed. > >> > >> -Adrian > >> > >> Florin Popa wrote: > >>> Hello Adrian, > >>> > >>> Many thanks. Now I have the first feeling that > it really helps! > >>> It can be checked only in the evening because > during the day I am doing clear all cache on regular basees > for other other reasons (external process making updates to > products and lucene index) > >>> So now I did it manually, I need further to > integrate it into a cronjob doing it every 30 mins maybe > >>> > >>> Many thanks, > >>> Florin > >>>> Florin, > >>>> > >>>> The next time you have that problem, try > clearing the "resource.ResourceLoaders" cache and see if the > problem goes away. > >>>> > >>>> -Adrian > >>>> > >>>> Florin Popa wrote: > >>>>> Hello all, > >>>>> > >>>>> I think I tried before to ask that > question, but I would retry because it becomes a critical > issue in production. > >>>>> > >>>>> The Ofbiz instance runs fine for > several ours and unexpectedly I can see these lines below in > the log file. As soon as it starts with those exceptions, I > need to restart the instance because nothing works further. > >>>>> I can say that I never developed any > additional/new Ofbiz Job and I also stopped some of them > which I was sure that are never used for my purposes. > >>>>> I also tried to upgrade the parser, > but nothing helps by now: > >>>>> > >>>>> > >>>>> > >>>>> Exception in thread > "default-invoker-Thread-499" java.lang.NullPointerException > >>>>> at > org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown > Source) > >>>>> at > org.apache.xerces.dom.ElementImpl.getNodeName(Unknown > Source) > >>>>> at > org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) > >>>>> 2010-02-23 21:27:09,238 > (default-invoker-Thread-497) [ > JobInvoker.java:267:ERROR] Problems > reading values from serviceengine.xml file > [java.lang.NumberFormatException: null]. Using defaults. > >>>>> at > org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) > > >>>>> at > org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) > > >>>>> at > org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) > > >>>>> at > org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) > >>>>> at > org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) > >>>>> at > java.lang.Thread.run(Thread.java:619) > >>>>
Re: JobInvoker crashes while reading serviceengine.xml
Again, many thanks for the clue. If time will be enough we can also have a look for the reason.. I am not sure how deep inside the code should it be... I also noticed few services which were by default running and actually not needed for our purposes. Is anywhere a list of all those default started services? Best regards, Florin Florin, Thank you for the information. I believe there might be a problem in the way things are cached. I will look into it further. For now, if clearing the cache solves your problem then go ahead and do that. The long term solution will be to find out what is causing the problem and fix it. -Adrian Florin Popa wrote: Now I can confirm it fixes the problem. While I do that clear cache for resourceLoader I get few lines similar with the ones mentioned before, like 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. BUT the main advantage is that server does not fully crash and it recovers well. I do those calls on regular bases every 10 mins.. I only ask myself if (depending on the number of concurrent users) it needs to be done more often?! Could reach other side effects by doing it more often? Best regards, Florin I still need to know if that fixed the problem. If it did, then we need to look into it further to get it fixed. -Adrian Florin Popa wrote: Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it every 30 mins maybe Many thanks, Florin Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException:
Re: JobInvoker crashes while reading serviceengine.xml
Florin, Thank you for the information. I believe there might be a problem in the way things are cached. I will look into it further. For now, if clearing the cache solves your problem then go ahead and do that. The long term solution will be to find out what is causing the problem and fix it. -Adrian Florin Popa wrote: Now I can confirm it fixes the problem. While I do that clear cache for resourceLoader I get few lines similar with the ones mentioned before, like 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. BUT the main advantage is that server does not fully crash and it recovers well. I do those calls on regular bases every 10 mins.. I only ask myself if (depending on the number of concurrent users) it needs to be done more often?! Could reach other side effects by doing it more often? Best regards, Florin I still need to know if that fixed the problem. If it did, then we need to look into it further to get it fixed. -Adrian Florin Popa wrote: Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it every 30 mins maybe Many thanks, Florin Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values
Re: JobInvoker crashes while reading serviceengine.xml
Now I can confirm it fixes the problem. While I do that clear cache for resourceLoader I get few lines similar with the ones mentioned before, like 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. BUT the main advantage is that server does not fully crash and it recovers well. I do those calls on regular bases every 10 mins.. I only ask myself if (depending on the number of concurrent users) it needs to be done more often?! Could reach other side effects by doing it more often? Best regards, Florin I still need to know if that fixed the problem. If it did, then we need to look into it further to get it fixed. -Adrian Florin Popa wrote: Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it every 30 mins maybe Many thanks, Florin Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-T
Re: JobInvoker crashes while reading serviceengine.xml
I still need to know if that fixed the problem. If it did, then we need to look into it further to get it fixed. -Adrian Florin Popa wrote: Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it every 30 mins maybe Many thanks, Florin Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems readi
Re: JobInvoker crashes while reading serviceengine.xml
Hello Adrian, Many thanks. Now I have the first feeling that it really helps! It can be checked only in the evening because during the day I am doing clear all cache on regular basees for other other reasons (external process making updates to products and lucene index) So now I did it manually, I need further to integrate it into a cronjob doing it every 30 mins maybe Many thanks, Florin Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,745 (default-invoker-Thread
Re: JobInvoker crashes while reading serviceengine.xml
Florin, The next time you have that problem, try clearing the "resource.ResourceLoaders" cache and see if the problem goes away. -Adrian Florin Popa wrote: Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,745 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,745 (default-invoker-Threa
JobInvoker crashes while reading serviceengine.xml
Hello all, I think I tried before to ask that question, but I would retry because it becomes a critical issue in production. The Ofbiz instance runs fine for several ours and unexpectedly I can see these lines below in the log file. As soon as it starts with those exceptions, I need to restart the instance because nothing works further. I can say that I never developed any additional/new Ofbiz Job and I also stopped some of them which I was sure that are never used for my purposes. I also tried to upgrade the parser, but nothing helps by now: Exception in thread "default-invoker-Thread-499" java.lang.NullPointerException at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData(Unknown Source) at org.apache.xerces.dom.ElementImpl.getNodeName(Unknown Source) at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:436) 2010-02-23 21:27:09,238 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. at org.ofbiz.service.config.ServiceConfigUtil.getXmlRootElement(ServiceConfigUtil.java:48) at org.ofbiz.service.config.ServiceConfigUtil.getElement(ServiceConfigUtil.java:55) at org.ofbiz.service.config.ServiceConfigUtil.getElementAttr(ServiceConfigUtil.java:63) at org.ofbiz.service.job.JobInvoker.getTTL(JobInvoker.java:265) at org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:255) at java.lang.Thread.run(Thread.java:619) 2010-02-23 21:27:09,238 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,238 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,239 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,991 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:09,992 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,745 (default-invoker-Thread-498) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,744 (default-invoker-Thread-497) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 21:27:10,745 (default-invoker-Thread-496) [ JobInvoker.java:267:ERROR] Problems reading values from serviceengine.xml file [java.lang.NumberFormatException: null]. Using defaults. 2010-02-23 2