Bugs item #995985, was opened at 2004-07-22 15:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=995985&group_id=22866

Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Nicolas (cnico)
Assigned to: Nobody/Anonymous (nobody)
Summary: NPE in LoadMgr3 for SAR redeployment.

Initial Comment:
It is perhaps a similar problem to the bug "[ 973565 ]
NPE when redeploying root context" in terms of class
loader.
This problem is reproductible on JBOSS 3.2.6RC1 with a
jdk 1.4.

The problem is that a NullPointerException is raised at
execution time when redeploying a SAR archive that uses
the scheduler plugin.

I did an example class that shows simply the problem.
In the attached zip there is both source (eclipse
project) and sar archive.
The problem appears on a standard installation of JBOSS
3.2.6RC1.
To reproduce it : 
1) start JBOSS
2) deploy testsar.sar (it works without NPE)
3) undeploy testsar.sar
4) redeploy testsar.sar (exactly the same) : the
following exception is raised :
java.lang.NullPointerException
        at
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:143)
        at
org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:178)
        at
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:132)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at
org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:42)
        at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:119)
        at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:96)
        at testsar.TestSar.doWork(TestSar.java:50)
        at testsar.TestSar.perform(TestSar.java:44)
        at
org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1263)
        at
sun.reflect.GeneratedMethodAccessor44.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)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=995985&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to