Back Forum Reply New

PropertyAccessExceptionsException in quartz scheduler.

Code:
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: PropertyAccessExceptionsException (1 errors)]     at org.quartz.core.JobRunShell.run(JobRunShell.java:214)     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)    * Nested Exception (Underlying Cause) ---------------    PropertyAccessExceptionsException (1 errors)    org..beans.MethodInvocationException: Property 'methodInvoker' threw exception; nested exception is com.sun.enterprise.InvocationException    Caused by:    com.sun.enterprise.InvocationException     at com.sun.enterprise.distributedtx.UserTransactionImpl.getStatus(UserTransactionImpl.java:249)     at org..transaction.jta.JtaTransactionManager.isExistingTransaction(JtaTransactionManager.java:605)     at org..transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:294)     at org..transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:234)     at org..transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:93)     at org..aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)     at org..aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)     at $Proxy32.toString(Unknown Source)     at java.lang.String.valueOf(String.java:2615)     at java.lang.StringBuffer.append(StringBuffer.java:220)     at org..scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.setMethodInvoker(MethodInvokingJobDetailFactoryBean.java:190)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:585)     at org..beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:737)     at org..beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:575)     at org..beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)     at org..beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:68)     at org..scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:85)     at org.quartz.core.JobRunShell.run(JobRunShell.java:203)     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
I use JtaTransactionManager.
Any body can help me?

Seems that you have a configuration problem regarding the methodInvoker property (though I'm not sure the exception is thrown from Sun TM getStatus() method - probably it uses a lazy bean).
What is your configuration?gt;


Originally Posted by Costin LeauSeems that you have a configuration problem regarding the methodInvoker property (though I'm not sure the exception is thrown from Sun TM getStatus() method - probably it uses a lazy bean).
What is your configuration?gt;

Exception throw only in glassfish.

My config:Code:
lt;bean id=quot;commentsIndexOptimizeJobquot; class=quot;org..scheduling.quartz.MethodInvokingJobDetailFactoryBeanquot;gt;       lt;property name=quot;targetObjectquot; ref=quot;commentsSearchManagerquot;/gt;       lt;property name=quot;targetMethodquot; value=quot;indexOptimizequot;/gt;       lt;property name=quot;concurrentquot; value=quot;falsequot;/gt;lt;/beangt;

lt;bean id=quot;commentsCronTriggerquot; class=quot;org..scheduling.quartz.CronTriggerBeanquot;gt;       lt;property name=quot;jobDetailquot; ref=quot;commentsIndexOptimizeJobquot; /gt;       lt;property name=quot;cronExpressionquot; value=quot;0 0 0 * * ?quot; /gt;
lt;/beangt;

lt;bean class=quot;org..scheduling.quartz.SchedulerFactoryBeanquot;gt;       lt;property name=quot;triggersquot;gt;lt;listgt;    lt;ref bean=quot;commentsCronTriggerquot; /gt;    lt;!--ref bean=quot;simpleTriggerquot;/--gt;lt;/listgt;       lt;/propertygt;lt;/beangt;
¥
Back Forum Reply New