|
|
Batch Job Reloads Automatically
mons.collections.map.LinkedMap and another strnage thing is if i rerun my job it runs smoothly.. so it is very unprdictable behavior....
as you can see in the log it is not the real exception as i could also find on google people saying this is just a msg and we have to ignore it.
but my problem is why the appliation should reload again.
and as this is unprdictable behavior i cant find a soution.
any help or suggestions will be appreaciated.Code:
2008-05-08 14:20:26,262 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;000-05:00amp;lt;/InsertDategt;amp;lt;/Linegt;amp;lt;Linegt;amp;lt;XX.Invoice.Line.UserAreagt;amp;lt;XX.ShippedQuantity uom=quot;EAquot;gt;-2amp;lt;/XX.ShippedQuantitygt;amp;lt;/XX.Invoice.Line.UserAreagt;amp;lt;Versiongt;1amp;lt;/Versiquot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;[\r]quot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;[\n]quot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;3quot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;dquot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;2quot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;[\r]quot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;[\n]quot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG fromclient.wire.content - lt;lt; quot;ongt;amp;lt;LineNumbergt;0002amp;lt;/LineNumbergt;amp;lt;OrderItemgt;amp;lt;ItemIdsgt;amp;lt;Idgt;21-3870amp;lt;/Idgt;amp;lt;/ItemIdsgt;amp;lt;/OrderItemgt;amp;lt;OrderQuantity uom=quot;EAquot;gt;-2amp;lt;/OrderQuantitygt;amp;lt;UnitPrice currency=quot;USDquot;gt;6.29amp;lt;/UnitPricegt;amp;lt;ExtendedPrice currency=quot;USDquot;gt;-9.02amp;lt;/ExtendedPricegt;amp;lt;TotalAmount currency=quot;USDquot;gt;-12.58amp;lt;/TotalAmountgt;amp;lt;InsertDategt;2008-05-06T23:59:59.000-05:00amp;lt;/InsertDategt;amp;lt;/Linegt;amp;lt;Linegt;amp;lt;XX.Invoice.Line.UserAreagt;amp;lt;XX.ShippedQuantity uom=quot;EAquot;gt;-2amp;lt;/XX.ShippedQuantitygt;amp;lt;/XX.Invoice.Line.UserAreagt;amp;lt;Versiongt;1amp;lt;/Versiongt;amp;lt;LineNumbergt;0003amp;lt;/LineNumbergt;amp;lt;OrderItemgt;amp;lt;ItemIdsgt;amp;lt;Idgt;21-1030amp;lt;/Idgt;amp;lt;/ItemIdsgt;amp;lt;/OrderItemgt;amp;lt;OrderQuantity uom=quot;EAquot;gt;-2amp;lt;/OrderQuantitygt;amp;lt;UnitPrice currency=quot;USDquot;gt;3.79amp;lt;/UnitPricegt;amp;lt;ExtendedPrice currency=quot;USDquot;gt;-7.2amp;lt;/ExtendedPricegt;amp;lt;TotalAmount currency=quot;USDquot;gt;-7.58amp;lt;/TotalAmountgt;amp;lt;InsertDategt;2008-05-06T23:59:59.000-05:00amp;lt;/InsertDategt;amp;lt;/Linegt;amp;lt;/Invoicegt;lt;/tns:InvoiceXMLgt;lt;/tns atagt;quot;
2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG com.XX.rebateautomation.service.InvoiceServiceImpl - Got response from invoice service
2008-05-08 14:21:06,571 [WrapperListener_start_runner] DEBUG org..util.ClassUtils - Class [org.apache.commons.collections.map.LinkedMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: org.apache.commons.collections.map.LinkedMap
2008-05-08 14:21:06,571 [WrapperListener_start_runner] DEBUG org..util.ClassUtils - Class [edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap2008-05-08 14:21:06,618 [WrapperListener_start_runner] DEBUG org..beans.factory.xml.PluggableSchemaResolver - Loading schema mappings from [META-INF/spring.schemas]
2008-05-08 14:21:06,618 [WrapperListener_start_runner] DEBUG org..beans.factory.xml.PluggableSchemaResolver - Loaded schema mappings: {schema/aop/spring-aop-2.0.xsd=org//aop/config/spring-aop-2.0.xsd, schema/util/spring-util.xsd=org//beans/factory/xml/spring-util-2.0.xsd, schema/util/spring-util-2.0.xsd=org//beans/factory/xml/spring-util-2.0.xsd, schema/jee/spring-jee.xsd=org//ejb/config/spring-jee-2.0.xsd, schema/beans/spring-beans.xsd=org//beans/factory/xml/spring-beans-2.0.xsd, schema/lang/spring-lang-2.0.xsd=org//scripting/config/spring-lang-2.0.xsd, schema/tx/spring-tx-2.0.xsd=org//transaction/config/spring-tx-2.0.xsd, schema/lang/spring-lang.xsd=org//scripting/config/spring-lang-2.0.xsd, schema/tool/spring-tool.xsd=org//beans/factory/xml/spring-tool-2.0.xsd, schema/aop/spring-aop.xsd=org//aop/config/spring-aop-2.0.xsd, schema/tx/spring-tx.xsd=org//transaction/config/spring-tx-2.0.xsd, schema/tool/spring-tool-2.0.xsd=org//beans/factory/xml/spring-tool-2.0.xsd, schema/jee/spring-jee-2.0.xsd=org//ejb/config/spring-jee-2.0.xsd, schema/beans/spring-beans-2.0.xsd=org//beans/factory/xml/spring-beans-2.0.xsd}
2008-05-08 14:21:06,618 [WrapperListener_start_runner] INFO org..beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [rebateAutomationContext.xml]
2008-05-08 14:21:06,633 [WrapperListener_start_runner] DEBUG org..beans.factory.xml.DefaultDocumentLoader - Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]
2008-05-08 14:21:06,930 [WrapperListener_start_runner] DEBUG org..beans.factory.xml.BeansDtdResolver - Found beans DTD [dtd/spring-beans.dtd] in classpath: spring-beans.dtdIt's actually not very clear what you are trying to do here. What do you mean exactly by quot;trigger some batch jobs which are axis2 1.3 services,quot; and quot;job application reloadsquot;? How is the job implemented and deployed? How is it launched (where is the JobLauncher)? If you post some configuration and a more detailed description of what is going on it might be easier to suggest what to look at next.
I am using a Java wrapper service as a batch job.
do...imple-win.html
this service has a conroller class (application specific) which is called by the wrapper at some schedule time.
this class in turn calls the Axis2 services say X to get some data and then forwards this data (XML data) to another axis2 service say Y.
the X, Y and 3 more axis2 ervices are deployed in Tomcat 6 container in JAVA 6 env.on some other machine.
the Y service then calls other 3 services and processes the data.
after completion it returns back to the Batch Job.
now my problem as mentioned above is when the batch job gets XML from X service and it trys to extract data and send it to Y service.
The job gets restarted automatically. i.e. spring againn loads context file and reinstanticates the bean. which is very very wiered.
i can see the same logs which were present when the batch job is installed and started.
the behaviour is very wiered as i havent seen anythig restarting on its own w/o throwing any exception.
How about if you run the job from a plain old Java main or unit test. Does that work? Who is responsible for creating the application context in your case?
Yes the thing is application works fine.
even if u do it by running it through main method.
but the behavior of this error is very unpredictable.
it happens after 2 - 3 hrs. |
|