geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jklcom99 <jeff_k...@yahoo.com>
Subject Re: javax.jms.JMSException: Failed to build body from bytes
Date Tue, 16 Sep 2008 18:50:28 GMT

contextClassLoader in MDB,

******* Thread.currentThread().getContextClassLoader() =
[org.apache.geronimo.kernel.classloader.JarFileClassLoader
id=appJMS/1.0/rar]

[java] javax.jms.JMSException: Failed to build body from bytes. Reason:
java.io.IOException:

=============================
As for the jdom error, here is the stack trace:

Error while starting; GBean is now in the FAILED state:
abstractName="myApp/1.0/car?J2EEApplication=myApp/1.0/car,j2eeType=GBean,name=RMI_Startup"java.lang.LinkageError:
loading constraint violation: loader
"org/apache/geronimo/kernel/classloader/JarFileClassLoader@308a308a"
previously initiated loading for a different type with name
"org/jdom/Document" defined by loader
"org/apache/geronimo/kernel/classloader/JarFileClassLoader@6c206c2"
     [java] 	at java.lang.ClassLoader.defineClassImpl(Native Method)
     [java] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
     [java] 	at java.security.SecureClassLoader.defineClass(Unknown Source)
     [java] 	at
org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52)
     [java] 	at
org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308)
     [java] 	at
java.security.AccessController.doPrivileged(AccessController.java:284)
     [java] 	at
org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260)
     [java] 	at
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:430)
     [java] 	at
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
     [java] 	at
app.console.config.ConfigXMLBundle.load(ConfigXMLBundle.java:247)
     [java] 	at
app.server.geronimo.RMIStartup.setupRmiObjects(RMIStartup.java:212)
     [java] 	at app.server.geronimo.RMIStartup.start(RMIStartup.java:119)
     [java] 	at app.server.geronimo.RMIStartup.doStart(RMIStartup.java:379)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
     [java] 	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
     [java] 	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
     [java] 	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
     [java] 	at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
     [java] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:39)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:612)
     [java] 	at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
     [java] 	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
     [java] 	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
     [java] 	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
     [java] 	at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$54000bc6.startConfiguration(<generated>)
     [java] 	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:162)
     [java] 	at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:79)
     [java] 	at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
     [java] 	at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
     [java] 	at
org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
     [java] 11:33:29,315 WARN  [BasicLifecycleMonitor] Exception occured
while notifying listener
     [java] java.lang.LinkageError: loading constraint violation: loader
"org/apache/geronimo/kernel/classloader/JarFileClassLoader@308a308a"
previously initiated loading for a different type with name
"org/jdom/Document" defined by loader
"org/apache/geronimo/kernel/classloader/JarFileClassLoader@6c206c2"
     [java] 	at java.lang.ClassLoader.defineClassImpl(Native Method)
     [java] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
     [java] 	at java.security.SecureClassLoader.defineClass(Unknown Source)
     [java] 	at
org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52)
     [java] 	at
org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308)
     [java] 	at
java.security.AccessController.doPrivileged(AccessController.java:284)
     [java] 	at
org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260)
     [java] 	at
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:430)
     [java] 	at
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278)
     [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
     [java] 	at
app.console.config.ConfigXMLBundle.load(ConfigXMLBundle.java:247)
     [java] 	at
app.server.geronimo.RMIStartup.setupRmiObjects(RMIStartup.java:212)
     [java] 	at app.server.geronimo.RMIStartup.start(RMIStartup.java:119)
     [java] 	at app.server.geronimo.RMIStartup.doStart(RMIStartup.java:379)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
     [java] 	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
     [java] 	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
     [java] 	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
     [java] 	at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
     [java] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:39)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:612)
     [java] 	at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
     [java] 	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
     [java] 	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
     [java] 	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
     [java] 	at
org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$54000bc6.startConfiguration(<generated>)
     [java] 	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:162)
     [java] 	at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:79)
     [java] 	at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
     [java] 	at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
     [java] 	at
org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
     [java] 



Kevan Miller wrote:
> 
> 
> On Sep 16, 2008, at 11:24 AM, jklcom99 wrote:
> 
>>
>> Kevan,
>>
>> I'm in a process of adding all dependencies to appJMS module.  I'm  
>> getting
>> the following error even with
>>        <hidden-classes>
>>            <filter>org.jdom</filter>
>>        </hidden-classes>
>>
>> j2eeType=GBean,name=RMI_Startup"java.lang.LinkageError: loading  
>> constraint
>> violation: loader
>> "org/apache/geronimo/kernel/classloader/JarFileClassLoader@78ea78ea"
>> previously initiated loading for a different type with name
>> "org/jdom/Document" defined by loader
>> "org/apache/geronimo/kernel/classloader/JarFileClassLoader@5de95de9"
> 
> Heh. I've never seen that before... What's the stacktrace for the Error?
> 
>>
>>
>> By the way,
>> It has the correct id
>> [org.apache.geronimo.kernel.config.MultiParentClassLoader
>> id=test/ear/1.0/car] right before the message gets sent by
>> javax.jms.MessageProducer.
> 
> The ClassLoader problem wouldn't be in your MessageProducer, it will  
> be in your MDB. We need to know the contextClassLoader when  
> onMessage() is invoked on your MDB.
> 
> --kevan
> 
> 

-- 
View this message in context: http://www.nabble.com/javax.jms.JMSException%3A-Failed-to-build-body-from-bytes-tp18404327s134p19518194.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message