Announcement Announcement Module
Collapse
No announcement yet.
Null pointer exception in JdkDynamicAopProxy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Null pointer exception in JdkDynamicAopProxy

    I have just picked up a new version of Spring from CVS (due to new SessionFactoryUtils).

    I am using LocalStatelessSessionProxyFactoryBean to wire up my SLSB with web context. The null pointer occurs in JdkDynamicAopProxy.getProxy(ClassLoader classLoader) since 'this.advisedSupport.getTargetSource().getTargetCl ass()' is null and you call getName on it - in previous Spring version there was no getName call on it, so I didn't get null pointer exception.

    The 'this.advisedSupport.getTargetSource()' is an EmptyTargetSource instance.

    My application.xml looks like this - as in reference docs.
    <bean id="basicSession" class="org.springframework.ejb.access.LocalStatele ssSessionProxyFactoryBean" lazy-init="true" >
    <property name="jndiName"><value>BasicSessionEJB</value></property>
    <property name="businessInterface"><value>com.generalynx.egi da.basic.common.bussines.IBasicSession</value></property>
    </bean>

    What is to do here? Set my targetSource?

    Thanx,
    Ales

    ---------------- exception trace -------------
    2004-10-24 13:51:58,812 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating shared instance of singleton bean 'basicSession'
    2004-10-24 13:51:58,812 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Creating instance of bean 'basicSession' with merged definition [Root bean with class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] defined in resource [/WEB-INF/applicationContext.xml] of ServletContext]
    2004-10-24 13:51:58,812 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Getting BeanInfo for class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2004-10-24 13:51:58,921 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,921 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@7d30b 3{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,937 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,937 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@e62f6 { url=null ,addedOrder=0}
    2004-10-24 13:51:58,937 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,937 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@1560b 81{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,953 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,953 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@a029{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,953 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,953 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@83fff 9{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,968 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,968 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@bb6d8 5{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,968 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,968 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@12cc6 6f{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,968 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,968 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@78b73 f{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@c5cc6 3{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@1036b 16{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@157b7 c1{ url=null ,addedOrder=0}
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:58,984 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@4e045 6{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,000 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,000 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@9f2cf f{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,000 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,000 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@129cf bb{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,000 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,000 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@c821e f{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,015 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,015 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@f1cbd 7{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Caching PropertyDescriptors for class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'businessInterface' of type [class java.lang.Class]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'cacheHome' of type [boolean]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'class' of type [class java.lang.Class]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'jndiEnvironment' of type [class java.util.Properties]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'jndiName' of type [class java.lang.String]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'jndiTemplate' of type [class org.springframework.jndi.JndiTemplate]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'lookupHomeOnStartup' of type [boolean]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'object' of type [class java.lang.Object]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'objectType' of type [class java.lang.Class]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'resourceRef' of type [boolean]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Found property 'singleton' of type [boolean]; editor=[null]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.CachedIntrospectionResul ts] Class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] is cache-safe
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.jndi.JndiObjectLocator.setJndi Name(java.lang.String)] with value [BasicSessionEJB]
    2004-10-24 13:51:59,015 DEBUG [org.springframework.beans.BeanWrapperImpl] Converting String to [class java.lang.Class] using property editor [org.springframework.beans.propertyeditors.ClassEdi tor@a83610]
    2004-10-24 13:51:59,015 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,015 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@e44dd 3{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,031 DEBUG [org.springframework.beans.BeanWrapperImpl] About to invoke write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] on object of class [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean]
    2004-10-24 13:51:59,031 DEBUG [org.springframework.beans.BeanWrapperImpl] Invoked write method [public void org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.setBusinessInterface(java.lang. Class)] with value [interface com.generalynx.egida.basic.common.bussines.IBasicS ession]
    2004-10-24 13:51:59,031 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking BeanPostProcessors before initialization of bean 'basicSession'
    2004-10-24 13:51:59,031 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Invoking afterPropertiesSet() on bean with beanName 'basicSession'
    2004-10-24 13:51:59,031 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [BasicSessionEJB]
    2004-10-24 13:51:59,031 INFO [org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean] Located object with JNDI name [BasicSessionEJB]: value=[BasicSessionEJBHome]
    2004-10-24 13:51:59,031 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,031 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@15c0d 7{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,031 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,031 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@18430 a5{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,046 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,046 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@156a6 be{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,046 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,046 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@147bc 1{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,046 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,046 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@1ef0b 44{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,062 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,062 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@eeb56 0{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,062 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,062 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@7c9b4 6{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,062 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,062 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@175be ef{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@1eaf2 5d{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@15291 2f{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@15e8a 8f{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,078 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@d6466 f{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,093 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,093 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@7c808 d{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,109 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,109 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@19795 0e{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,109 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,109 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@97cb7 0{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,109 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,109 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@5367a f{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,125 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,125 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@10bfe dd{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,125 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,125 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@10e0e db{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,125 INFO [org.springframework.core.CollectionFactory] Using JDK 1.4 collections
    2004-10-24 13:51:59,125 DEBUG [org.springframework.core.CollectionFactory] Creating java.util.IdentityHashMap
    2004-10-24 13:51:59,125 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,125 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@517bc 3{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,140 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,140 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@e6f8d 7{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,140 DEBUG [org.springframework.aop.framework.ProxyFactory] Added new aspect interface: interface com.generalynx.egida.basic.common.bussines.IBasicS ession
    2004-10-24 13:51:59,140 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,140 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@99c4c c{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,140 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,140 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@cfed1 4{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,156 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,156 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@adddd 6{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,156 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,156 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@a1718 e{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,171 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,171 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@3ed3f 5{ url=null ,addedOrder=0}
    2004-10-24 13:51:59,187 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:51:59,187 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@c1c7c 4{ url=null ,addedOrder=0}
    2004-10-24 13:52:00,828 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:52:00,828 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.HeirarchicalLoaderReposit ory3$CacheClassLoader@11c0f9c{ url=null ,addedOrder=0}
    2004-10-24 13:52:00,828 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:52:00,828 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@13044 21{ url=null ,addedOrder=0}
    2004-10-24 13:55:15,750 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Destroying singletons in factory {org.springframework.beans.factory.support.Default ListableBeanFactory defining beans [applicationFactory,languageFactory,org.springframe work.beans.factory.config.MethodInvokingFactoryBea n,modules,org.springframework.beans.factory.config .MethodInvokingFactoryBean#2,viewResolver,exceptio nResolver,currentModuleInterceptor,openSessionInVi ewInterceptor,versionCheckerInterceptor,attacherIn terceptor,sessionAttributeInterceptor,urlMapping,e gidaController,egidaControllerResolver,adeControll er,adeControllerResolver,membersForm,serviceSelect Form,sourceSelectForm,roleSelectForm,userRoleSelec tForm,userModuleSelectForm,tilesConfigurer]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,sessionFactory,basicSession]; root of BeanFactory hierarchy}
    2004-10-24 13:55:15,750 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Retrieving dependent beans for bean 'languageFactory'
    2004-10-24 13:55:15,765 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Retrieving dependent beans for bean 'org.springframework.beans.factory.config.MethodIn vokingFactoryBean'
    2004-10-24 13:55:15,765 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Applying DestructionAwareBeanPostProcessors to bean with name 'org.springframework.beans.factory.config.MethodIn vokingFactoryBean'
    2004-10-24 13:55:15,765 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Applying DestructionAwareBeanPostProcessors to bean with name 'languageFactory'
    2004-10-24 13:55:15,765 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Retrieving dependent beans for bean 'modules'
    2004-10-24 13:55:15,765 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Applying DestructionAwareBeanPostProcessors to bean with name 'modules'
    2004-10-24 13:55:15,765 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Retrieving dependent beans for bean 'applicationFactory'
    2004-10-24 13:55:15,781 DEBUG [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Applying DestructionAwareBeanPostProcessors to bean with name 'applicationFactory'
    2004-10-24 13:55:15,812 INFO [org.springframework.beans.factory.support.DefaultL istableBeanFactory] Destroying inner beans in factory {org.springframework.beans.factory.support.Default ListableBeanFactory defining beans [applicationFactory,languageFactory,org.springframe work.beans.factory.config.MethodInvokingFactoryBea n,modules,org.springframework.beans.factory.config .MethodInvokingFactoryBean#2,viewResolver,exceptio nResolver,currentModuleInterceptor,openSessionInVi ewInterceptor,versionCheckerInterceptor,attacherIn terceptor,sessionAttributeInterceptor,urlMapping,e gidaController,egidaControllerResolver,adeControll er,adeControllerResolver,membersForm,serviceSelect Form,sourceSelectForm,roleSelectForm,userRoleSelec tForm,userModuleSelectForm,tilesConfigurer]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [messageSource,sessionFactory,basicSession]; root of BeanFactory hierarchy}
    2004-10-24 13:55:15,843 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:55:15,859 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.HeirarchicalLoaderReposit ory3$CacheClassLoader@1ddcb{ url=null ,addedOrder=0}
    2004-10-24 13:55:15,859 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
    2004-10-24 13:55:15,859 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.HeirarchicalLoaderRepositor y3@f7ce53, ucl=org.jboss.mx.loading.UnifiedClassLoader3@104c5 8e{ url=null ,addedOrder=0}
    2004-10-24 13:55:15,843 ERROR [org.springframework.web.servlet.DispatcherServlet] Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.beans.factory.config.MethodIn vokingFactoryBean#2' defined in resource [/WEB-INF/egida-servlet.xml] of ServletContext: Can't resolve reference to bean 'basicSession' while setting property 'arguments[0]'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'basicSession' defined in resource [/WEB-INF/applicationContext.xml] of ServletContext: Initialization of bean failed; nested exception is java.lang.NullPointerException: null
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'basicSession' defined in resource [/WEB-INF/applicationContext.xml] of ServletContext: Initialization of bean failed; nested exception is java.lang.NullPointerException: null
    java.lang.NullPointerException
    at org.springframework.aop.framework.JdkDynamicAopPro xy.getProxy(JdkDynamicAopProxy.java:97)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.getProxy(JdkDynamicAopProxy.java:92)
    at org.springframework.aop.framework.ProxyFactory.get Proxy(ProxyFactory.java:66)
    at org.springframework.aop.framework.ProxyFactory.get Proxy(ProxyFactory.java:82)
    at org.springframework.ejb.access.LocalStatelessSessi onProxyFactoryBean.afterPropertiesSet(LocalStatele ssSessionProxyFactoryBean.java:85)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:990)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:275)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:217)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveReference(Abstra ctAutowireCapableBeanFactory.java:898)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveValueIfNecessary (AbstractAutowireCapableBeanFactory.java:832)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveManagedList(Abst ractAutowireCapableBeanFactory.java:918)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.resolveValueIfNecessary (AbstractAutowireCapableBeanFactory.java:836)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:773)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:601)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:258)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:193)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:240)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:230)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:283)
    at org.springframework.web.context.support.XmlWebAppl icationContext.refresh(XmlWebApplicationContext.ja va:131)
    at org.springframework.web.servlet.FrameworkServlet.c reateWebApplicationContext(FrameworkServlet.java:2 81)
    at org.springframework.web.servlet.FrameworkServlet.i nitWebApplicationContext(FrameworkServlet.java:228 )
    at org.springframework.web.servlet.FrameworkServlet.i nitServletBean(FrameworkServlet.java:199)
    at org.springframework.web.servlet.HttpServletBean.in it(HttpServletBean.java:102)
    at javax.servlet.GenericServlet.init(GenericServlet.j ava:211)
    at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1029)
    at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:862)
    at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:4013)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4357)
    at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:823)
    at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:807)
    at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.modeler.BaseModelMBean.invoke(B aseModelMBean.java:503)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:149)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
    at org.apache.catalina.core.StandardContext.init(Stan dardContext.java:5441)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.modeler.BaseModelMBean.invoke(B aseModelMBean.java:503)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:149)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDep loyInternal(TomcatDeployer.java:316)
    at org.jboss.web.tomcat.tc5.TomcatDeployer.performDep loy(TomcatDeployer.java:76)
    at org.jboss.web.AbstractWebDeployer.start(AbstractWe bDeployer.java:320)
    at org.jboss.web.WebModule.startModule(WebModule.java :62)
    at org.jboss.web.WebModule.startService(WebModule.jav a:40)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:271)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:221)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(R eflectedDispatcher.java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:884)
    at $Proxy41.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:414)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(R eflectedDispatcher.java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:176)
    at $Proxy35.start(Unknown Source)
    at org.jboss.web.AbstractWebContainer.start(AbstractW ebContainer.java:363)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:829)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:821)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:641)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:604)
    at sun.reflect.GeneratedMethodAccessor17.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(R eflectedDispatcher.java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.jmx.connector.invoker.InvokerAdaptorServ ice.invoke(InvokerAdaptorService.java:254)
    at sun.reflect.GeneratedMethodAccessor31.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(R eflectedDispatcher.java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:62)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:54)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:82)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:197)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invok e(JRMPInvoker.java:360)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unkno wn Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 48)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:534)
    2004-10-24 13:55:15,875 ERROR [org.jboss.web.localhost.Engine] StandardContext[/egida]StandardWrapper.Throwable
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.beans.factory.config.MethodIn vokingFactoryBean#2' defined in resource [/WEB-INF/egida-servlet.xml] of ServletContext: Can't resolve reference to bean 'basicSession' while setting property 'arguments[0]'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'basicSession' defined in resource [/WEB-INF/applicationContext.xml] of ServletContext: Initialization of bean failed; nested exception is java.lang.NullPointerException: null
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'basicSession' defined in resource [/WEB-INF/applicationContext.xml] of ServletContext: Initialization of bean failed; nested exception is java.lang.NullPointerException: null
    java.lang.NullPointerException
    ...

  • #2
    Ales

    This error was the result of an incorrect logging statement, that didn't allow for the target possibly being null (which is a rare but legitimate case). It was picked up by our test suite and is now fixed in CVS. Please retry your application with the latest code, and thanks for pointing this out!

    Rgds
    Rod

    Comment


    • #3
      NullPointer still appearing on MethodBeforeAdviceInterceptor

      Hi all,

      I am working with Spring v1.2.5, and still getting this NullPointerException when Spring creates my interceptor, but only appears when my log4j config is set to DEBUG or higher for package org.springframework.*.

      Is this bug back from the grave?

      Regards.

      J.

      Comment

      Working...
      X