ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nch <underscore_...@yahoo.com>
Subject Re: spring 2.5.5 and ibatis 2.3.2
Date Mon, 07 Jul 2008 15:04:16 GMT

- I'm developing on windows xp pro, jdk1.6.0_03, apache-ant-1.7.0
- I ran:
cd d:\dev\iBatis 
svn co http://svn.apache.org/repos/asf/ibatis/trunk

cd trunk\java\mapper\mapper2\build
build.bat

- The output:
src.compile:
    [javac] Compiling 202 source files to D:\dev\iBatis\trunk\java\mapper\mapper2\build\work\classes
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\client\SqlMapExecutor.java:18:
warning: [depre
cation] com.ibatis.common.util.PaginatedList in com.ibatis.common.util has been deprecated
    [javac] import com.ibatis.common.util.PaginatedList;
    [javac]                              ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\impl\SqlMapExecutorDelegate.java:21:
wa
rning: [deprecation] com.ibatis.common.util.PaginatedList in com.ibatis.common.util has been
deprecated
    [javac] import com.ibatis.common.util.PaginatedList;
    [javac]                              ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\impl\SqlMapExecutorDelegate.java:34:
wa
rning: [deprecation] com.ibatis.sqlmap.engine.mapping.statement.PaginatedDataList in com.ibatis.sqlmap.engine.mapping.st
atement has been deprecated
    [javac] import com.ibatis.sqlmap.engine.mapping.statement.PaginatedDataList;
    [javac]                                                  ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\impl\SqlMapClientImpl.java:18:
warning:
 [deprecation] com.ibatis.common.util.PaginatedList in com.ibatis.common.util has been deprecated
    [javac] import com.ibatis.common.util.PaginatedList;
    [javac]                              ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\impl\SqlMapClientImpl.java:37:
warning:
 [deprecation] com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient in com.ibatis.sqlmap.engine.impl
has been deprecated
    [javac] public class SqlMapClientImpl implements SqlMapClient, ExtendedSqlMapClient {
    [javac]                                                        ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\impl\SqlMapSessionImpl.java:19:
warning
: [deprecation] com.ibatis.common.util.PaginatedList in com.ibatis.common.util has been deprecated
    [javac] import com.ibatis.common.util.PaginatedList;
    [javac]                              ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\mapping\statement\PaginatedDataList.jav
a:19: warning: [deprecation] com.ibatis.common.util.PaginatedList in com.ibatis.common.util
has been deprecated
    [javac] import com.ibatis.common.util.PaginatedList;
    [javac]                              ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\common\beans\ClassInfo.java:349:
warning: non-varargs
 call of varargs method with inexact argument type for last parameter;
    [javac] cast to java.lang.Object for a varargs call
    [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
    [javac]         return defaultConstructor.newInstance(null);
    [javac]                                               ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\common\jdbc\SimpleDataSource.java:52:
com.ibatis.comm
on.jdbc.SimpleDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>)
in java.
sql.Wrapper
    [javac] public class SimpleDataSource implements DataSource {
    [javac]        ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\impl\SqlMapClientImpl.java:216:
warning
: [deprecation] getDelegate() in com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient has been
deprecated
    [javac]   public SqlMapExecutorDelegate getDelegate() {
    [javac]                                 ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\type\CallableStatementResultSet.java:29
: com.ibatis.sqlmap.engine.type.CallableStatementResultSet is not abstract and does not override
abstract method updateN
Clob(java.lang.String,java.io.Reader) in java.sql.ResultSet
    [javac] public class CallableStatementResultSet implements ResultSet {
    [javac]        ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\type\CallableStatementResultSet.java:32
2: warning: [deprecation] getUnicodeStream(java.lang.String) in java.sql.ResultSet has been
deprecated
    [javac]   public InputStream getUnicodeStream(String columnName) throws SQLException {
    [javac]                      ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\type\CallableStatementResultSet.java:10
6: warning: [deprecation] getBigDecimal(java.lang.String,int) in java.sql.ResultSet has been
deprecated
    [javac]   public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException
{
    [javac]                     ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\type\CallableStatementResultSet.java:31
8: warning: [deprecation] getUnicodeStream(int) in java.sql.ResultSet has been deprecated
    [javac]   public InputStream getUnicodeStream(int columnIndex) throws SQLException {
    [javac]                      ^
    [javac] D:\dev\iBatis\trunk\java\mapper\mapper2\src\com\ibatis\sqlmap\engine\type\CallableStatementResultSet.java:98
: warning: [deprecation] getBigDecimal(int,int) in java.sql.ResultSet has been deprecated
    [javac]   public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
{
    [javac]                     ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 13 warnings

BUILD FAILED
file:D:/dev/iBatis/trunk/java/mapper/mapper2/build/build.xml:97: Compile failed; see the compiler
error output for detai
ls.

Many thanks.



----- Original Message ----
From: Clinton Begin <clinton.begin@gmail.com>
To: user-java@ibatis.apache.org
Sent: Monday, July 7, 2008 4:46:19 PM
Subject: Re: spring 2.5.5 and ibatis 2.3.2

Our source always compiles.   We have a continuous integration server that would alert us
if it didn't. By practice the iBATIS trunk should be releasable if necessary. 

Which JDK/OS are you running?

Clinton


On Mon, Jul 7, 2008 at 8:39 AM, nch <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."

I tried to add the missing method to ExtendedSqlMapClient so, following instructions at http://opensource.atlassian.com/confluence/oss/display/IBATIS/Windows,
I checked out the sources from trunk but they don't compile at this moment or ... at, least,
I was not able to compile them.

Cheers.



----- Original Message ----
From: Clinton Begin <clinton.begin@gmail.com>
To: user-java@ibatis.apache.org
Sent: Monday, July 7, 2008 3:28:31 PM
Subject: Re: spring 2.5.5 and ibatis 2.3.2

Darn, I guess not enough people tested it while it was in Beta.  :-/

Perhaps we need a more formal testing group that can commit to testing the framework before
we release it.  I know Brandon uses Spring and did make a couple of fixes for Spring, but
he's just one person.  

Out of curiosity, why didn't you upgrade or at least test it while in Beta?  

In a nutshell, the answer to your question is this:

  * We've deprecated a lot of internal interfaces in the core of iBATIS 2.3.2, in order to
clean up the code.  One of those interfaces was ExtendedSqlMapClient.

  * Code that used to cast (or othewise use) ExtendedSqlMapClient should now simply use SqlMapClientImpl
(the default implementation behind the SqlMapClient interface).

Cheers,
Clinton


On Mon, Jul 7, 2008 at 2:41 AM, nch <underscore_dot@yahoo.com> wrote:


Hi, there.

I'm trying iBatis 2.3.2 with Spring 2.5.5.
Spring is complaining it can not find method com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient.getMappedStatement
This method was present in iBatis 2.3.0.
Is there a workaround I can take to make it work? 
I need to test this cause it seems proxies coming from iBatis are now serializable, so I can
replicate sessions amont tomcat instances.

Cheers


      
Mime
View raw message