Strange crash on a production server - please help

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

Strange crash on a production server - please help

Florin Popa
Hello all,

I have the following problem on a production environment (Ofbiz 4.x)

2009-12-09 20:24:11,026 (default-invoker-Thread-153) [        
JobInvoker.java:267:ERROR] Problems reading values from
serviceengine.xml file [java.lang.NumberFormatException: null]. Using
defaults.
2009-12-09 20:24:11,026 (default-invoker-Thread-151) [        
JobInvoker.java:267:ERROR] Problems reading values from
serviceengine.xml file [java.lang.NumberFormatException: For input
string: ""]. Using defaults.


more detailed:

java.lang.NullPointerException
Exception in thread "default-invoker-Thread-270"
java.lang.IllegalArgumentException: type: -1
        at
org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source)
        at
org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown
Source)
        at
org.apache.xerces.dom.DeferredElementNSImpl.synchronizeChildren(Unknown
Source)
2009-12-09 21:15:11,365 (default-invoker-Thread-267) [        
JobInvoker.java:267:ERROR] Problems reading values from
serviceengine.xml file [java.lang.NumberFormatException: For input
string: ""]. Using defaults.
        at org.apache.xerces.dom.ParentNode.getFirstChild(Unknown Source)
        at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:425)
        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)


In the past, it happened really seldom but since yesterday it is more
and more often. As soon as it crashes, there is no chance to do anything
in the web application, it simply needs a restart.

Any quick help would be greatly appreciated,
 Best regards,
  Flopa
Reply | Threaded
Open this post in threaded view
|

Re: Strange crash on a production server - please help

Scott Gray-2
Hi Florin,

What does your serviceengine.xml file look like, specifically the  
thread-pool configurations, it should look something like this:
         <thread-pool send-to-pool="pool"
                      purge-job-days="4"
                      failed-retry-min="3"
                      ttl="18000000"
                      wait-millis="750"
                      jobs="10"
                      min-threads="5"
                      max-threads="15"
                      poll-enabled="true"
                      poll-db-millis="20000">
             <run-from-pool name="pool"/>
         </thread-pool>

Is your ttl attribute present and a valid string representation of a  
long?

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 12/12/2009, at 12:19 AM, Florin Popa wrote:

> Hello all,
>
> I have the following problem on a production environment (Ofbiz 4.x)
>
> 2009-12-09 20:24:11,026 (default-invoker-Thread-153)  
> [         JobInvoker.java:267:ERROR] Problems reading values from  
> serviceengine.xml file [java.lang.NumberFormatException: null].  
> Using defaults.
> 2009-12-09 20:24:11,026 (default-invoker-Thread-151)  
> [         JobInvoker.java:267:ERROR] Problems reading values from  
> serviceengine.xml file [java.lang.NumberFormatException: For input  
> string: ""]. Using defaults.
>
>
> more detailed:
>
> java.lang.NullPointerException
> Exception in thread "default-invoker-Thread-270"  
> java.lang.IllegalArgumentException: type: -1
>       at  
> org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown  
> Source)
>       at  
> org
> .apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown  
> Source)
>       at  
> org
> .apache.xerces.dom.DeferredElementNSImpl.synchronizeChildren(Unknown  
> Source)
> 2009-12-09 21:15:11,365 (default-invoker-Thread-267)  
> [         JobInvoker.java:267:ERROR] Problems reading values from  
> serviceengine.xml file [java.lang.NumberFormatException: For input  
> string: ""]. Using defaults.
>       at org.apache.xerces.dom.ParentNode.getFirstChild(Unknown  
> Source)
>       at org.ofbiz.base.util.UtilXml.firstChildElement(UtilXml.java:
> 425)
>       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)
>
>
> In the past, it happened really seldom but since yesterday it is  
> more and more often. As soon as it crashes, there is no chance to do  
> anything in the web application, it simply needs a restart.
>
> Any quick help would be greatly appreciated,
> Best regards,
> Flopa


smime.p7s (4K) Download Attachment