ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From De Gaetano Giuseppe <degaet...@PITAGORA.IT>
Subject R: spring 2.5.5 and ibatis 2.3.2
Date Wed, 16 Jul 2008 13:13:47 GMT
I guys,
I have a problem related with the use of spring 2.5.5 and ibatis 2.3.2.
I have been using spring 2.5.1 and ibatis 2.2.0 for a long time and my application was working,
then I decided to update spring and ibatis and I got the following error:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'xxx' defined in class path resource [yyy.xxx.xml]: Invocation of init method failed;
nested exception is java.lang.NoSuchMethodError: com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(Ljava/io/InputStream;Ljava/util/Properties;)Lcom/ibatis/sqlmap/client/SqlMapClient;
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
            at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
            ... 66 more
Caused by: java.lang.NoSuchMethodError: com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(Ljava/io/InputStream;Ljava/util/Properties;)Lcom/ibatis/sqlmap/client/SqlMapClient;
            at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:339)
            at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:292)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
            ... 76 more

Regards
Giuseppe
________________________________
Da: Kai Mütz [mailto:kmuetz@googlemail.com]
Inviato: martedì 15 luglio 2008 20.21
A: user-java@ibatis.apache.org
Oggetto: Re: spring 2.5.5 and ibatis 2.3.2

Does anyone know the solution to IBATIS-419. I am not sure if this issue is really solved/fixed.

Regards, Kai
2008/7/8 nch <underscore_dot@yahoo.com<mailto:underscore_dot@yahoo.com>>:
Hello.
I'd like to know what was the solution to IBATIS-419. Nothing is said about how it was fixed
here https://issues.apache.org/jira/browse/IBATIS-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Regards
----- Original Message ----
From: Kai Mutz <kmuetz@googlemail.com<mailto:kmuetz@googlemail.com>>
To: user-java@ibatis.apache.org<mailto:user-java@ibatis.apache.org>
Sent: Tuesday, July 8, 2008 11:25:55 AM
Subject: RE: spring 2.5.5 and ibatis 2.3.2

nch <mailto:underscore_dot@yahoo.com<mailto:underscore_dot@yahoo.com>> wrote:
> Well, the only reason why I didn't decide to go for 2.3.2 is that I
> was confortable with 2.3.0 untill I found tomcat was not replicating
> sessions (I need this for clustering). So I took a look to 2.3.1
> release notes which explicitly say "# [IBATIS-419] - LazyLoad object
> is not serializable."
>

Is [IBATIS-419] really fixed? I have updated to 2.3.2 yesterday, enabled
lazy loading and got:

org.apache.wicket.util.io<http://org.apache.wicket.util.io.Se>.SerializableChecker$WicketNotSerializableException
: Unable to serialize class:
com.ibatis.sqlmap.engine.mapping.result.loader.LazyResultLoader
Field hierarchy is:
[...]
private java.util.List mypackage.User.roles [class=$Proxy13]
    protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h
[class=com.ibatis.sqlmap.engine.mapping.result.loader.LazyResultLoader]
<----- field that is not serializable

Regards, Kai



Mime
View raw message