Problem with JBoss Scheduler. Please help me!!!
fighter79 May 13, 2006 2:50 PMHi.
I have a problem with the JBoss scheduler.
I follow these phases:
1- Create a session bean that implements Schedulable.
2- Implement the method "perform" and put there the code to be executed by Scheduler
3- Create a jboss-service.xml and put this file in a sar file.
Then during of deploy return me this error:
ERROR [Scheduler$Listener] Handling a Scheduler call failed
java.lang.NullPointerException
at org.jboss.mx.loading.UnifiedClassLoader.findResources(UnifiedClassLoader.java:395)
at java.lang.ClassLoader.getResources(ClassLoader.java:851)
at com.sun.naming.internal.VersionHelper12$5.run(VersionHelper12.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.naming.internal.VersionHelper12.getResources(VersionHelper12.java:142)
at com.sun.naming.internal.ResourceManager.getApplicationResources(ResourceManager.java:468)
at com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:159)
at javax.naming.InitialContext.init(InitialContext.java:215)
at javax.naming.InitialContext.(InitialContext.java:175)
at sistemiMW.ejb.RestartTimerBean.perform(RestartTimerBean.java:114)
at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1263)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
at $Proxy8.handleNotification(Unknown Source)
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:98)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:83)
at javax.management.timer.Timer.sendNotifications(Timer.java:441)
at javax.management.timer.Timer.access$000(Timer.java:31)
at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612)
at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:240)
In method perform i call a business method of an entity bean.
Any ideas to solving this problem?
Please help me.....
Thank you.