Could you do this on the class and the instance that aren't compatible:
com.uwyn.ecalendar.elements.Version.class.getClassLoader().getClass ().getName();
com.uwyn.ecalendar.elements.Version.class.getClassLoader().hashCode();
instance.getClass().getClassLoader().getClass().getName();
instance.getClass().getClassLoader().hashCode();

On 6-dec-05, at 15:56, Raoul Pierre wrote:

Geert,

Ok, then you either have two versions of that class, either the same class is loaded by different classloaders. Can you get the class's classloader's classname and again the instance hashcode?


The Bozo class doesn't extend any other class and is only called by Home class. No other Bozo class. Only

<bean id="appBozoTarget"
     class="com.uwyn.ecalendar.elements.Bozo"/>
    in applicationContext2.xml

Then:

6 déc. 2005 15:50:20 org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:8008
6 déc. 2005 15:50:20 org.mortbay.util.Container start
INFO: Started [EMAIL PROTECTED]
6 déc. 2005 15:50:20 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
6 déc. 2005 15:50:20 org.mortbay.jetty.servlet.ServletHandler $Context log
INFO: Loading Spring root WebApplicationContext
6 déc. 2005 15:50:21 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from ServletContext resource [/ WEB-INF/applicationContext2.xml] 6 déc. 2005 15:50:21 org.springframework.context.support.AbstractRefreshableApplicationCont ext refreshBeanFactory INFO: Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory d efining beans [appBozoTarget]; root of BeanFactory hierarchy 6 déc. 2005 15:50:21 org.springframework.context.support.AbstractApplicationContext refresh INFO: 1 beans defined in application context [Root WebApplicationContext] 6 déc. 2005 15:50:21 org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
6 déc. 2005 15:50:21 org.springframework.context.support.AbstractApplicationContext initMessageSource INFO: Unable to locate MessageSource with name 'messageSource': using default [EMAIL PROTECTED] 6 déc. 2005 15:50:21 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [EMAIL PROTECTED] 02928] 6 déc. 2005 15:50:21 org.springframework.ui.context.support.UiApplicationContextUtils initThemeSource INFO: No ThemeSource found for [Root WebApplicationContext]: using ResourceBundleThemeSource 6 déc. 2005 15:50:21 org.springframework.beans.factory.support.DefaultListableBeanFactory p reInstantiateSingletons INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [appBozoTarget]; root of BeanFactory hierarchy] 6 déc. 2005 15:50:21 org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'appBozoTarget'
[com.uwyn.ecalendar.elements.Bozo] ctor, classloader: com.uwyn.rife.engine.EngineClassLoader 6 déc. 2005 15:50:22 org.springframework.web.context.ContextLoader initWebApplicationContext INFO: Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext 6 déc. 2005 15:50:22 org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 1797 ms
6 déc. 2005 15:50:45 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from file [c:\DEV\Rife\rife- popsuite\web\WEB-INF\applicationContext2.xml] 6 déc. 2005 15:50:45 org.springframework.context.support.AbstractRefreshableApplicationCont ext refreshBeanFactory INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;h ashCode=31147154]: org.springframework.beans.factory.support.DefaultListableBeanFactory d efining beans [appBozoTarget]; root of BeanFactory hierarchy 6 déc. 2005 15:50:45 org.springframework.context.support.AbstractApplicationContext refresh INFO: 1 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;h ashCode=31147154] 6 déc. 2005 15:50:45 org.springframework.context.support.AbstractApplicationContext initMessageSource INFO: Unable to locate MessageSource with name 'messageSource': using default [EMAIL PROTECTED] 6 déc. 2005 15:50:45 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [EMAIL PROTECTED] 429d7] 6 déc. 2005 15:50:45 org.springframework.beans.factory.support.DefaultListableBeanFactory p reInstantiateSingletons INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [appBozoTarget]; root of BeanFactory hierarchy] 6 déc. 2005 15:50:45 org.springframework.beans.factory.support.AbstractBeanFactory getBean
INFO: Creating shared instance of singleton bean 'appBozoTarget'
[com.uwyn.ecalendar.elements.Bozo] ctor, classloader: sun.misc.Launcher$AppClassLoader [com.uwyn.ecalendar.elements.Bozo] ctor, classloader: com.uwyn.rife.engine.EngineClassLoader [com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, bean hashcode: 15470939 [com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, direct hashcode: 6789355 [com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, bean classloader type/hashcode: sun.misc.Launcher$AppClassLoader / 20120943 [com.uwyn.rife.jumpstart.elements.pub.Home] Bozo class, direct classloader type/hashcode: com.uwyn.rife.engine.EngineClassLoader / 20812788


Pierre



_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to