Announcement Announcement Module
Collapse
No announcement yet.
Batch Job Reloads Automatically Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Batch Job Reloads Automatically

    Hi All,
    i am using Spring and Quartz combination to trigger some batch jobs which are axis2 1.3 services.
    i am facing a wiered issue.
    My batch job application reloads on its own and that too after getting a response from one of the Axis2 service. my log is as below.

    The strnage thing i could see is Spring is not able to find a class org.apache.commons.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 httpclient.wire.content  - << "000-05:00&lt;/InsertDate>&lt;/Line>&lt;Line>&lt;XX.Invoice.Line.UserArea>&lt;XX.ShippedQuantity uom="EA">-2&lt;/XX.ShippedQuantity>&lt;/XX.Invoice.Line.UserArea>&lt;Version>1&lt;/Versi"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "[\r]"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "[\n]"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "3"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "d"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "2"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "[\r]"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "[\n]"
    2008-05-08 14:20:26,356 [DefaultQuartzScheduler_Worker-9] DEBUG httpclient.wire.content  - << "on>&lt;LineNumber>0002&lt;/LineNumber>&lt;OrderItem>&lt;ItemIds>&lt;Id>21-3870&lt;/Id>&lt;/ItemIds>&lt;/OrderItem>&lt;OrderQuantity uom="EA">-2&lt;/OrderQuantity>&lt;UnitPrice currency="USD">6.29&lt;/UnitPrice>&lt;ExtendedPrice currency="USD">-9.02&lt;/ExtendedPrice>&lt;TotalAmount currency="USD">-12.58&lt;/TotalAmount>&lt;InsertDate>2008-05-06T23:59:59.000-05:00&lt;/InsertDate>&lt;/Line>&lt;Line>&lt;XX.Invoice.Line.UserArea>&lt;XX.ShippedQuantity uom="EA">-2&lt;/XX.ShippedQuantity>&lt;/XX.Invoice.Line.UserArea>&lt;Version>1&lt;/Version>&lt;LineNumber>0003&lt;/LineNumber>&lt;OrderItem>&lt;ItemIds>&lt;Id>21-1030&lt;/Id>&lt;/ItemIds>&lt;/OrderItem>&lt;OrderQuantity uom="EA">-2&lt;/OrderQuantity>&lt;UnitPrice currency="USD">3.79&lt;/UnitPrice>&lt;ExtendedPrice currency="USD">-7.2&lt;/ExtendedPrice>&lt;TotalAmount currency="USD">-7.58&lt;/TotalAmount>&lt;InsertDate>2008-05-06T23:59:59.000-05:00&lt;/InsertDate>&lt;/Line>&lt;/Invoice></tns:InvoiceXML></tns:Data>"
    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.springframework.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.springframework.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.springframework.beans.factory.xml.PluggableSchemaResolver  - Loading schema mappings from [META-INF/spring.schemas]
    2008-05-08 14:21:06,618 [WrapperListener_start_runner] DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver  - Loaded schema mappings: {http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}
    2008-05-08 14:21:06,618 [WrapperListener_start_runner] INFO  org.springframework.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.springframework.beans.factory.xml.DefaultDocumentLoader  - Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]
    2008-05-08 14:21:06,930 [WrapperListener_start_runner] DEBUG org.springframework.beans.factory.xml.BeansDtdResolver  - Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath: spring-beans.dtd

  • #2
    It's actually not very clear what you are trying to do here. What do you mean exactly by "trigger some batch jobs which are axis2 1.3 services," and "job application reloads"? 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.

    Comment


    • #3
      I am using a Java wrapper service as a batch job.
      http://wrapper.tanukisoftware.org/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.

      Comment


      • #4
        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?

        Comment


        • #5
          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.

          Comment

          Working...
          X