It looks like it can't match up the data types in the database to
the data types in your EJB.  Are you using a jaws.xml file or just
accepting the defaults?  What database are you using?  You may need to
specify the DB in jaws.xml so it uses the correct variable mappings.

Aaron

On Mon, 4 Sep 2000, Sascha Matzke wrote:
> Hello,
> 
> On Mon, Sep 04, 2000 at 11:27:41AM +0200, Sascha Matzke wrote:
> > I also have a testclient which sucessfully gets creates an Unit, sets
> > and gets the name (which is also sucessfully saved in the
> > database). When I try to call setBooks(Book[] ba) I get an 
> > 
> > java.lang.reflect.UndeclaredThrowableException
> 
> Ok, maybe I should take a look at my classdefinitions first... I
> simply forgot to implement Serializable in the Book class. Now I'am
> able to set/save an Array of Book. But when I try to load the Bean
> (using findByPrimaryKey()) I get the following exceptions:
> 
> [JAWS] Load command executing: SELECT books,id,name FROM UnitBean WHERE id=?
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=1
> [JAWS] Got result: idx=1, value=[B@6391c4, class=[B, JDBCtype=LONGVARBINARY
> [UnitBean] commiting
> [UnitBean] Load failed; nested exception is: 
> java.rmi.ServerException: Load failed; nested exception is: 
> java.lang.IllegalArgumentException: field type mismatch
> [Default] java.rmi.ServerException: Load failed; nested exception is: 
> java.rmi.ServerException: Load failed; nested exception is: 
> java.lang.IllegalArgumentException: field type mismatch
> [Default] java.rmi.ServerException: Load failed; nested exception is: 
> java.lang.IllegalArgumentException: field type mismatch
> at java.lang.reflect.Field.set(Native Method)[Default] 
>java.lang.IllegalArgumentException: field type mismatch
> at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setCMPFieldValue(JDBCCommand.java:567)
> at 
>org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(JDBCLoadEntityCommand.java:199)
> at 
>org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndHandleResult(JDBCQueryCommand.java:59)
> at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:122)
> at 
>org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:93)
> at 
>org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistenceManager.java:150)
> at 
>org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:205)
> at 
>org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:166)
> at 
>org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:106)
> at org.jboss.ejb.plugins.TxInterceptor.invokeNext(TxInterceptor.java:128)
> at org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxInterceptor.java:189)
> at org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:96)
> at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:140)
> at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:156)
> at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:320)
> at 
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:202)
> at 
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
> at sun.rmi.transport.Transport$1.run(Transport.java:142)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:139)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
> at java.lang.Thread.run(Thread.java:484)
> 
> Sascha
> -- 
> .-> Sascha Matzke - [EMAIL PROTECTED] ------------------------.
> |   Macht kaputt was euch kaputt macht...                    |
> |                                       Ton Steine Scherben  |
> `-- On this earth for  24 years,  326 days  <----------------'
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]
> 



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to