Hi.
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.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943361#3943361

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943361


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to