Announcement Announcement Module
Collapse
No announcement yet.
scheduler issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • scheduler issue

    Hi All,

    I am implementing Scheduler (Quartz) for my spring Batch Application.
    I am using the same scheduler example in Spring Batch Application.
    When running the scheduler its giving the following exception, please help me to resolve this. Thanks in Advance.

    Feb 5, 2009 11:23:22 AM org.quartz.core.QuartzScheduler start
    INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    Config Path = file:///C:\\BatchCheck\\INPUT\\far_eks_mkoor.txt
    PATH INP FILE file:///C:\\BatchCheck\\INPUT\\far_eks_mkoor_2009-02-05.txt
    Feb 5, 2009 11:24:01 AM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
    INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@2bf5d97f: display name [org.springframework.context.support.ClassPathXmlAp plicationContext@2bf5d97f]; startup date [Thu Feb 05 11:24:01 CET 2009]; root of context hierarchy
    Feb 5, 2009 11:24:01 AM com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail start
    SEVERE: Job Terminated in error:
    java.lang.ExceptionInInitializerErrornull at org.springframework.core.CollectionFactory.<clinit >(CollectionFactory.java:88)null at org.springframework.core.SimpleAliasRegistry.<init >(SimpleAliasRegistry.java:41)null at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.<init>(DefaultSingletonBeanRe gistry.java:75)null at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.<init>(FactoryBeanRegistrySuppo rt.java:41)null at org.springframework.beans.factory.support.Abstract BeanFactory.<init>(AbstractBeanFactory.java:146)nu ll at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.<init>(AbstractAutowire CapableBeanFactory.java:144)null at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.<init>(AbstractAutowire CapableBeanFactory.java:155)null at org.springframework.beans.factory.support.DefaultL istableBeanFactory.<init>(DefaultListableBeanFacto ry.java:121)null at org.springframework.context.support.AbstractRefres hableApplicationContext.createBeanFactory(Abstract RefreshableApplicationContext.java:176)null at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:121)null at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:423)null at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:353)null at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)null at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:93)null at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.start(FARJobDetail.java:87)null at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.execute(FARJobDetail.java:47)null at org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)null at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:525)nullCaused by: java.lang.NullPointerExceptionnull at org.springframework.core.JdkVersion.<clinit>(JdkVe rsion.java:65)null ... 18 morenulljava.lang.ExceptionInInitializerError
    at org.springframework.core.CollectionFactory.<clinit >(CollectionFactory.java:88)
    at org.springframework.core.SimpleAliasRegistry.<init >(SimpleAliasRegistry.java:41)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.<init>(DefaultSingletonBeanRe gistry.java:75)
    at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.<init>(FactoryBeanRegistrySuppo rt.java:41)
    at org.springframework.beans.factory.support.Abstract BeanFactory.<init>(AbstractBeanFactory.java:146)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.<init>(AbstractAutowire CapableBeanFactory.java:144)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.<init>(AbstractAutowire CapableBeanFactory.java:155)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.<init>(DefaultListableBeanFacto ry.java:121)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.createBeanFactory(Abstract RefreshableApplicationContext.java:176)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:121)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:423)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:353)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:93)
    at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.start(FARJobDetail.java:87)
    at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.execute(FARJobDetail.java:47)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.java:525)
    Caused by: java.lang.NullPointerException
    at org.springframework.core.JdkVersion.<clinit>(JdkVe rsion.java:65)
    ... 18 more

  • #2
    Try to add startup with command line parameter: -Djava.version=1.5.. or whatever version you are running on.

    Geir

    Comment


    • #3
      Still getting the same exception ;-(

      C:\data\ami_ws1\ESS-BATCH-APPS\bin>java -Xms128M -Xmx512M -Djava.version=1.5.0 com.conn.ess.batch.launcher.TestLauncher -Djava.version=1.5.0
      [SimpleThreadPool] Job execution threads will use class loader of thread: main
      [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quart
      z.core.SchedulerSignalerImpl
      [QuartzScheduler] Quartz Scheduler v.1.6.1 created.
      [RAMJobStore] RAMJobStore initialized.
      [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from
      default resource file in Quartz package: 'quartz.properties'
      [StdSchedulerFactory] Quartz scheduler version: 1.6.1
      [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      Config Path = file:///C:\\BatchCheck\\INPUT\\far_eks_mkoor.txt
      PATH INP FILE file:///C:\\BatchCheck\\INPUT\\far_eks_mkoor_2009-02-06.txt
      [BatchLauncher] Job Terminated in error:
      java.lang.ExceptionInInitializerError
      at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:216)
      at org.springframework.core.CollectionFactory.<clinit >(CollectionFactory
      .java:88)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
      at org.springframework.core.SimpleAliasRegistry.<init >(SimpleAliasRegist
      ry.java:41)
      at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistr
      y.<init>(DefaultSingletonBeanRegistry.java:75)
      at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.
      <init>(FactoryBeanRegistrySupport.java:41)
      at org.springframework.beans.factory.support.Abstract BeanFactory.<init>(
      AbstractBeanFactory.java:146)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBean
      Factory.<init>(AbstractAutowireCapableBeanFactory. java:144)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBean
      Factory.<init>(AbstractAutowireCapableBeanFactory. java:155)
      at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
      <init>(DefaultListableBeanFactory.java:121)
      at org.springframework.context.support.AbstractRefres hableApplicationCon
      text.createBeanFactory(AbstractRefreshableApplicat ionContext.java:176)
      at org.springframework.context.support.AbstractRefres hableApplicationCon
      text.refreshBeanFactory(AbstractRefreshableApplica tionContext.java:121)
      at org.springframework.context.support.AbstractApplic ationContext.obtain
      FreshBeanFactory(AbstractApplicationContext.java:4 23)
      at org.springframework.context.support.AbstractApplic ationContext.refres
      h(AbstractApplicationContext.java:353)
      at org.springframework.context.support.ClassPathXmlAp plicationContext.<i
      nit>(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlAp plicationContext.<i
      nit>(ClassPathXmlApplicationContext.java:93)
      at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.start(FARJobD
      etail.java:88)
      at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.execute(FARJo
      bDetail.java:47)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.j
      ava:525)
      Caused by:
      java.lang.NullPointerException
      at org.springframework.core.JdkVersion.<clinit>(JdkVe rsion.java:65)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
      ... 20 more
      java.lang.ExceptionInInitializerError
      at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:216)
      at org.springframework.core.CollectionFactory.<clinit >(CollectionFactory
      .java:88)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
      at org.springframework.core.SimpleAliasRegistry.<init >(SimpleAliasRegist
      ry.java:41)
      at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistr
      y.<init>(DefaultSingletonBeanRegistry.java:75)
      at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.
      <init>(FactoryBeanRegistrySupport.java:41)
      at org.springframework.beans.factory.support.Abstract BeanFactory.<init>(
      AbstractBeanFactory.java:146)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBean
      Factory.<init>(AbstractAutowireCapableBeanFactory. java:144)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBean
      Factory.<init>(AbstractAutowireCapableBeanFactory. java:155)
      at org.springframework.beans.factory.support.DefaultL istableBeanFactory.
      <init>(DefaultListableBeanFactory.java:121)
      at org.springframework.context.support.AbstractRefres hableApplicationCon
      text.createBeanFactory(AbstractRefreshableApplicat ionContext.java:176)
      at org.springframework.context.support.AbstractRefres hableApplicationCon
      text.refreshBeanFactory(AbstractRefreshableApplica tionContext.java:121)
      at org.springframework.context.support.AbstractApplic ationContext.obtain
      FreshBeanFactory(AbstractApplicationContext.java:4 23)
      at org.springframework.context.support.AbstractApplic ationContext.refres
      h(AbstractApplicationContext.java:353)
      at org.springframework.context.support.ClassPathXmlAp plicationContext.<i
      nit>(ClassPathXmlApplicationContext.java:139)
      at org.springframework.context.support.ClassPathXmlAp plicationContext.<i
      nit>(ClassPathXmlApplicationContext.java:93)
      at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.start(FARJobD
      etail.java:88)
      at com.telenor.metro2.conn.ess.batch.launcher.FARJobD etail.execute(FARJo
      bDetail.java:47)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:2 02)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run (SimpleThreadPool.j
      ava:525)
      Caused by: java.lang.NullPointerException
      at org.springframework.core.JdkVersion.<clinit>(JdkVe rsion.java:65)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.j ava:194)
      ... 20 more

      Comment


      • #4
        When i try to run my Batch Application without quartz its working fine. When i schedule it using quartz then only i am facing this issue.

        Comment


        • #5
          Please use code tags when posting any code or stack traces.

          From looking at it, Spring Batch doesn't appear to even be hit. You would probably have the same issue hitting any code. You may want to try posting your question to the core spring forum.

          Comment

          Working...
          X