Tobias wrote:
>
> Hi!
> As I have to get that thing running before our next deadline which is
> approaching fast, I'd like to try some more things myself instead of
> sitting here and waiting for the solutuion from Sebastien (I DON'T want
> to hurry you, Sebastien :-) ).
It's ok, everybody is in a hurry :-)
> So what can I do myself ?
> Do you think it's a mapping problem ?
See below.
> > > [JAWS] Load command executing: SELECT
> > > aString,otherField,aLong,aBoolean,aDouble,anInt FROM nextgen_EntityPK
> > > WHERE aBoolean=? AND anInt=? AND aLong=? AND aDouble=? AND aString=?
> > > [JAWS] Set parameter: idx=1, jdbcType=CHAR, value=true
> > > [JAWS] Set parameter: idx=2, jdbcType=INTEGER, value=10
> > > [JAWS] Set parameter: idx=3, jdbcType=BIGINT, value=100
> > > [JAWS] Set parameter: idx=4, jdbcType=DOUBLE, value=100.0
> > > [JAWS] Set parameter: idx=5, jdbcType=VARCHAR, value=Marc
> > > [JAWS] Got result: idx=1, value=Marc, class=java.lang.String,
> > > JDBCtype=VARCHAR
> > > [JAWS] Got result: idx=2, value=4, class=java.lang.Integer,
> > > JDBCtype=INTEGER
> > > [JAWS] Got result: idx=3, value=100.0, class=java.lang.Double,
> > > JDBCtype=BIGINT
> > > [nextgen.EntityPK] commiting
> > > [nextgen.EntityPK] Load failed; nested exception is:
> > > java.rmi.ServerException: Load failed; nested exception is:
> > > java.lang.IllegalArgumentException: argument type mismatch
> > [nextgen.EntityPK] Load failed; nested exception is:
> > java.rmi.ServerException: Load failed; nested exception is:
> > java.lang.IllegalArgumentException: argument type mismatch
> > [Default] java.rmi.ServerException: Load failed; nested exception is:
> > java.rmi.ServerException: Load failed; nested exception is:
> > java.lang.IllegalArgumentException: argument type mismatch
> > [Default] java.rmi.ServerException: Load failed; nested exception is:
> > java.lang.IllegalArgumentException: argument type mismatch
> > at java.lang.reflect.Field.set(Native Method)
> > at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setCMPFieldValue(JDBCC
> > ommand.java:567)
> > at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult
> > (JDBCLoadEntityCommand.java:199)[Default]
> > java.lang.IllegalArgumentException: argument type mismatch
> >
> > at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementA
> > ndHandleResult(JDBCQueryCommand.java:59)
> > at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCComman
> > d.java:122)
> > at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBC
> > LoadEntityCommand.java:93)
> > at
> > org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSP
> > ersistenceManager.java:150)
> > at
> > org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersiste
> > nceManager.java:205)
> > at
> > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(Enti
> tySynchronizationInterceptor.java:166)
> > at
> > org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInsta
> > nceInterceptor.java:106)
> > at
> > org.jboss.ejb.plugins.TxInterceptor.invokeNext(TxInterceptor.java:128)
> > at
> > org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxIntercep
<snip>
> > > The test suite stops after this exception.
> > >
> > > Could it be, that I am still using some wrong mappings ? How to map
> > > boolean when no BIT is available ?
What version of jboss are you running? The number lines in your
stacktrace do not correspond to the latest cvs sources and this
particular section of JDBCCommand has changed lately: Aaron Mulder added
code 3 days ago to use ResultSet.getBoolean() instead of the generic
getObject().
Since your mapping is CHAR(5), and if your jdbc driver is correctly
implemented (ie ResultSet.getBoolean() can understand CHAR(5)), this
should solve your problem.
If not, you will have to hack JDBCommand.getResultObject() to detect
your particular configuration (yes, it's dirty).
Hope this helps,
Sebastien
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]