I have a problem with the new 1.2.3 release. We have a pretty simple configuration as you can see below. We are using JCA to connect to CICS.
When I use the 1.2.2 release we have no problems at all. However, when we switch and use the 1.2.3 release we get this error.Code:<beans> <bean id="JCAConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="eis/ECICICS" /> </bean> <bean id="accountDao" class="AccountDAO"> <property name="connectionFactory"> <ref local="JCAConnectionFactory" /> </property> </bean> </beans>
Code:7/27/05 13:56:42:898 CDT] 29522952 SystemOut O 2005-07-27 13:56:42,867 DEBUG JndiTemplate - Looking up JNDI object with name [eis/ECICICS] [7/27/05 13:56:43:351 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,320 DEBUG JndiLocatorSupport - Located object with JNDI name [eis/ECICICS] [7/27/05 13:56:43:367 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,351 DEBUG AbstractAutowireCapableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'JCAConnectionFactory' [7/27/05 13:56:43:398 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,367 DEBUG AbstractBeanFactory - Calling code asked for FactoryBean instance for name 'JCAConnectionFactory' [7/27/05 13:56:43:429 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,398 DEBUG AbstractBeanFactory - Returning cached instance of singleton bean 'JCAConnectionFactory' [7/27/05 13:56:43:445 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,429 DEBUG AbstractBeanFactory - Bean with name 'JCAConnectionFactory' is a factory bean [7/27/05 13:56:43:476 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,445 INFO AbstractBeanFactory - Creating shared instance of singleton bean 'accountDao' [7/27/05 13:56:43:507 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,476 DEBUG AbstractAutowireCapableBeanFactory - Creating instance of bean 'accountDao' with merged definition [Root bean with class [AccountDAO] defined in ServletContext resource [/WEB-INF/config/ServerContext.xml]] [7/27/05 13:56:43:523 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,507 DEBUG AbstractAutowireCapableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'accountDao' [7/27/05 13:56:43:554 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,523 DEBUG CachedIntrospectionResults - Getting BeanInfo for class [AccountDAO] [7/27/05 13:56:43:617 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,585 DEBUG CachedIntrospectionResults - Caching PropertyDescriptors for class [AccountDAO] [7/27/05 13:56:43:632 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,617 DEBUG CachedIntrospectionResults - Found property 'cciTemplate' of type [org.springframework.jca.cci.core.CciTemplate] [7/27/05 13:56:43:663 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,632 DEBUG CachedIntrospectionResults - Found property 'class' of type [java.lang.Class] [7/27/05 13:56:43:679 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,663 DEBUG CachedIntrospectionResults - Found property 'connectionFactory' of type [javax.resource.cci.ConnectionFactory] [7/27/05 13:56:43:710 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,679 DEBUG CachedIntrospectionResults - Class [AccountDAO] is cache-safe [7/27/05 13:56:43:742 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,710 DEBUG BeanDefinitionValueResolver - Resolving reference from property 'connectionFactory' in bean 'accountDao' to bean 'JCAConnectionFactory' [7/27/05 13:56:43:757 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,742 DEBUG CollectionFactory - Creating java.util.LinkedHashSet [7/27/05 13:56:43:788 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,757 DEBUG AbstractBeanFactory - Returning cached instance of singleton bean 'JCAConnectionFactory' [7/27/05 13:56:43:804 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,788 DEBUG AbstractBeanFactory - Bean with name 'JCAConnectionFactory' is a factory bean [7/27/05 13:56:43:867 CDT] 29522952 SystemOut O 2005-07-27 13:56:43,820 DEBUG BeanWrapperImpl - Could not read previous value of property 'connectionFactory java.lang.reflect.InvocationTargetException Caused by: java.lang.NullPointerException at java.lang.Throwable.<init>(Throwable.java) at java.lang.Throwable.<init>(Throwable.java:73) at java.lang.NullPointerException.<init>(NullPointerException.java:60) at org.springframework.jca.cci.core.support.CciDaoSupport.getConnectionFactory(CciDaoSupport.java:72) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41) at java.lang.reflect.Method.invoke(Method.java:386) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:836) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:734) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:886) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:913) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:902) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:967) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:768) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:330) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48) at com.ibm.ws.webcontainer.srt.WebGroup.notifyServletContextCreated(WebGroup.java:1707) at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:279) at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:392) at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:211) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:1005) at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:136) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183) at com.ibm.ws.runtime.WsServer.start(WsServer.java:128) at com.ibm.ws.runtime.WsServer.main(WsServer.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41) at java.lang.reflect.Method.invoke(Method.java:386) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105) at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
As you can see this is running in Websphere 5.1 For now we are reverting back to 1.2.2. Until then, is this a bug? Oh, one last thing to note, the
AccountDAO extends org.springframework.jca.cci.core.support.CciDaoSup port.
Thanks[/code]


Reply With Quote