Announcement Announcement Module
Collapse
No announcement yet.
Problem with upgrade from 1.2.2 to 1.2.3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with upgrade from 1.2.2 to 1.2.3

    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.

    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>
    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:
    7/27/05 13&#58;56&#58;42&#58;898 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;42,867 DEBUG    JndiTemplate - Looking up JNDI object with name &#91;eis/ECICICS&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;351 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,320 DEBUG JndiLocatorSupport - Located object with JNDI name &#91;eis/ECICICS&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;367 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,351 DEBUG AbstractAutowireCapableBeanFactory - Invoking BeanPostProcessors after initialization of bean 'JCAConnectionFactory'
    &#91;7/27/05 13&#58;56&#58;43&#58;398 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,367 DEBUG AbstractBeanFactory - Calling code asked for FactoryBean instance for name 'JCAConnectionFactory'
    &#91;7/27/05 13&#58;56&#58;43&#58;429 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,398 DEBUG AbstractBeanFactory - Returning cached instance of singleton bean 'JCAConnectionFactory'
    &#91;7/27/05 13&#58;56&#58;43&#58;445 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,429 DEBUG AbstractBeanFactory - Bean with name 'JCAConnectionFactory' is a factory bean
    &#91;7/27/05 13&#58;56&#58;43&#58;476 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,445 INFO  AbstractBeanFactory - Creating shared instance of singleton bean 'accountDao'
    &#91;7/27/05 13&#58;56&#58;43&#58;507 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,476 DEBUG AbstractAutowireCapableBeanFactory - Creating instance of bean 'accountDao' with merged definition &#91;Root bean with class &#91;AccountDAO&#93; defined in ServletContext resource &#91;/WEB-INF/config/ServerContext.xml&#93;&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;523 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,507 DEBUG AbstractAutowireCapableBeanFactory - Invoking BeanPostProcessors before instantiation of bean 'accountDao'
    &#91;7/27/05 13&#58;56&#58;43&#58;554 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,523 DEBUG CachedIntrospectionResults - Getting BeanInfo for class &#91;AccountDAO&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;617 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,585 DEBUG CachedIntrospectionResults - Caching PropertyDescriptors for class &#91;AccountDAO&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;632 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,617 DEBUG CachedIntrospectionResults - Found property 'cciTemplate' of type &#91;org.springframework.jca.cci.core.CciTemplate&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;663 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,632 DEBUG CachedIntrospectionResults - Found property 'class' of type &#91;java.lang.Class&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;679 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,663 DEBUG CachedIntrospectionResults - Found property 'connectionFactory' of type &#91;javax.resource.cci.ConnectionFactory&#93;
    &#91;7/27/05 13&#58;56&#58;43&#58;710 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,679 DEBUG CachedIntrospectionResults - Class &#91;AccountDAO&#93; is cache-safe
    &#91;7/27/05 13&#58;56&#58;43&#58;742 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,710 DEBUG BeanDefinitionValueResolver - Resolving reference from property 'connectionFactory' in bean 'accountDao' to bean 'JCAConnectionFactory'
    &#91;7/27/05 13&#58;56&#58;43&#58;757 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,742 DEBUG CollectionFactory - Creating java.util.LinkedHashSet
    &#91;7/27/05 13&#58;56&#58;43&#58;788 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,757 DEBUG AbstractBeanFactory - Returning cached instance of singleton bean 'JCAConnectionFactory'
    &#91;7/27/05 13&#58;56&#58;43&#58;804 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,788 DEBUG AbstractBeanFactory - Bean with name 'JCAConnectionFactory' is a factory bean
    &#91;7/27/05 13&#58;56&#58;43&#58;867 CDT&#93; 29522952 SystemOut     O 2005-07-27 13&#58;56&#58;43,820 DEBUG BeanWrapperImpl - Could not read previous value of property 'connectionFactory
    java.lang.reflect.InvocationTargetException
    Caused by&#58; 
    java.lang.NullPointerException
    	at java.lang.Throwable.<init>&#40;Throwable.java&#41;
    	at java.lang.Throwable.<init>&#40;Throwable.java&#58;73&#41;
    	at java.lang.NullPointerException.<init>&#40;NullPointerException.java&#58;60&#41;
    	at org.springframework.jca.cci.core.support.CciDaoSupport.getConnectionFactory&#40;CciDaoSupport.java&#58;72&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java&#58;79&#41;
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java&#58;41&#41;
    	at java.lang.reflect.Method.invoke&#40;Method.java&#58;386&#41;
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue&#40;BeanWrapperImpl.java&#58;836&#41;
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue&#40;BeanWrapperImpl.java&#58;734&#41;
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValue&#40;BeanWrapperImpl.java&#58;886&#41;
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValues&#40;BeanWrapperImpl.java&#58;913&#41;
    	at org.springframework.beans.BeanWrapperImpl.setPropertyValues&#40;BeanWrapperImpl.java&#58;902&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues&#40;AbstractAutowireCapableBeanFactory.java&#58;967&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean&#40;AbstractAutowireCapableBeanFactory.java&#58;768&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean&#40;AbstractAutowireCapableBeanFactory.java&#58;330&#41;
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean&#40;AbstractBeanFactory.java&#58;226&#41;
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean&#40;AbstractBeanFactory.java&#58;147&#41;
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons&#40;DefaultListableBeanFactory.java&#58;275&#41;
    	at org.springframework.context.support.AbstractApplicationContext.refresh&#40;AbstractApplicationContext.java&#58;317&#41;
    	at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh&#40;AbstractRefreshableWebApplicationContext.java&#58;134&#41;
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext&#40;ContextLoader.java&#58;230&#41;
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext&#40;ContextLoader.java&#58;156&#41;
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized&#40;ContextLoaderListener.java&#58;48&#41;
    	at com.ibm.ws.webcontainer.srt.WebGroup.notifyServletContextCreated&#40;WebGroup.java&#58;1707&#41;
    	at com.ibm.ws.webcontainer.webapp.WebApp.init&#40;WebApp.java&#58;279&#41;
    	at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp&#40;WebGroup.java&#58;392&#41;
    	at com.ibm.ws.webcontainer.srt.WebGroup.init&#40;WebGroup.java&#58;211&#41;
    	at com.ibm.ws.webcontainer.WebContainer.addWebApplication&#40;WebContainer.java&#58;1005&#41;
    	at com.ibm.ws.runtime.component.WebContainerImpl.install&#40;WebContainerImpl.java&#58;136&#41;
    	at com.ibm.ws.runtime.component.WebContainerImpl.start&#40;WebContainerImpl.java&#58;356&#41;
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start&#40;ApplicationMgrImpl.java&#58;505&#41;
    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart&#40;DeployedApplicationImpl.java&#58;808&#41;
    	at com.ibm.ws.runtime.component.DeployedModuleImpl.start&#40;DeployedModuleImpl.java&#58;354&#41;
    	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start&#40;DeployedApplicationImpl.java&#58;578&#41;
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication&#40;ApplicationMgrImpl.java&#58;299&#41;
    	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start&#40;ApplicationMgrImpl.java&#58;256&#41;
    	at com.ibm.ws.runtime.component.ContainerImpl.startComponents&#40;ContainerImpl.java&#58;536&#41;
    	at com.ibm.ws.runtime.component.ContainerImpl.start&#40;ContainerImpl.java&#58;413&#41;
    	at com.ibm.ws.runtime.component.ApplicationServerImpl.start&#40;ApplicationServerImpl.java&#58;136&#41;
    	at com.ibm.ws.runtime.component.ContainerImpl.startComponents&#40;ContainerImpl.java&#58;536&#41;
    	at com.ibm.ws.runtime.component.ContainerImpl.start&#40;ContainerImpl.java&#58;413&#41;
    	at com.ibm.ws.runtime.component.ServerImpl.start&#40;ServerImpl.java&#58;183&#41;
    	at com.ibm.ws.runtime.WsServer.start&#40;WsServer.java&#58;128&#41;
    	at com.ibm.ws.runtime.WsServer.main&#40;WsServer.java&#58;225&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java&#58;79&#41;
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java&#58;41&#41;
    	at java.lang.reflect.Method.invoke&#40;Method.java&#58;386&#41;
    	at com.ibm.ws.bootstrap.WSLauncher.main&#40;WSLauncher.java&#58;105&#41;
    	at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run&#40;ServerRunnerV5.java&#58;97&#41;

    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]

  • #2
    Sounds like the problem I encountered, too. I already created a JIRA issue.

    Regards,
    Andreas

    Comment


    • #3
      This has already been addressed for 1.2.4. Please give one of the next nightly snapshots a try if you have the chance, and let me know whether you're still experiencing that logged exception.

      BTW, this exception is just logged at debug level and can usually safely be ignored. It just indicates that the previous value of a property couldn't be read, which is an expected case.

      Juergen

      Comment


      • #4
        Juergen,
        I've grabbed the nightly from 07/30 and I am still experiencing the error showing as logged in DEBUG mode. When switching to a higher logger level I do not see the exception. I've also verified that things are getting injected properly and working as expected. I just see that ugly stack trace when the server loads the application context.

        Thanks

        Comment


        • #5
          That snapshot didn't include the changes yet. We have issues with our nightly builds currently, not picking up current CVS contents.

          Anyway, please try a newer 1.2.4 snapshot once it is available. It clearly needs to be marked as 1.2.4, else it won't contain any of the changes.

          Juergen

          Comment


          • #6
            Will do. Thanks. I'll report back when I've grabbed a snapshot and tried it out.

            Comment


            • #7
              FYI, a current 1.2.4 snapshot is now available! Please give it a try when you have the chance...

              Juergen

              Comment


              • #8
                Juergen,
                I've brought down the spring-framework-1.2.4-build.320-20050803 build and no more error when running with the logger level set to DEBUG. Things are working as expected.

                Thanks!

                Comment


                • #9
                  Thanks for giving the snapshot a try - good to know that it works for you now :-)

                  Juergen

                  Comment

                  Working...
                  X