What are the field types in this bean? I had ClassCastExceptions while saving an object (blob). I have seen a message from Dain (on web forums) that oracle OCI driver might fix that. He was not sure.
-- azfar ----- Original Message ----- From: "Todd M Benge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 9:43 AM Subject: Re: [JBoss-user] Error Saving Entity with Oracle > I changed the type mappings in jaws.xml and standardjaws.xml to Oracle8 > but am still seeing the same error. For some reason, it is only when > creating a new entity. Saving an existing entity seems to work fine. > We're using the classes12.zip from Oracle. Has anyone else seen a > similar problem? > > Thanks, > > Todd > > saroj kumar wrote: > > >May be the DATA TYPE mapping is incorrect in dd. > > > >-----Original Message----- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]] On Behalf Of Todd M > >Benge > >Sent: Wednesday, November 27, 2002 5:39 AM > >To: [EMAIL PROTECTED] > >Subject: [JBoss-user] Error Saving Entity with Oracle > > > > > >Hi, > > > >I'm running into troubles when saving an entity bean in Oracle 8.1.7. > > The same code works properly when the datasource is a MS SQL Server > >database. The following exception is displayed in the log file. I'd > >appreciate any tips. > > > >Thanks. > > > >Todd > > > >2002-11-26 16:50:20,619 ERROR [org.jboss.ejb.GlobalTxEntityMap] Store > >failed on entity: NetworkElementBean > >java.rmi.ServerException: Store failed; nested exception is: > > java.lang.ClassCastException > > at > >org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStore > >EntityCommand.java:100) > > at > >org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersis > >tenceManager.java:301) > > at > >org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceMa > >nager.java:458) > > at > >org.jboss.resource.connectionmanager.CachedConnectionInterceptor.storeEn > >tity(CachedConnectionInterceptor.java:388) > > at > >org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:708) > > at > >org.jboss.ejb.GlobalTxEntityMap.syncEntities(GlobalTxEntityMap.java:99) > > at > >org.jboss.ejb.GlobalTxEntityMap$GlobalTxEntityMapCleanup.beforeCompletio > >n(GlobalTxEntityMap.java:168) > > at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1394) > > at org.jboss.tm.TxCapsule.commit(TxCapsule.java:364) > > at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:73) > > at > >org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor > >CMT.java:201) > > at > >org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) > > at > >org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav > >a:130) > > at > >org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203) > > at > >org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer > >.java:313) > > at org.jboss.ejb.Container.invoke(Container.java:712) > > at > >org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) > > at > >org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:381 > >) > > at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) > > at > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > >Impl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > >sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) > > at sun.rmi.transport.Transport$1.run(Transport.java:148) > > at java.security.AccessController.doPrivileged(Native Method) > > at sun.rmi.transport.Transport.serviceCall(Transport.java:144) > > at > >sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) > > at > >sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja > >va:701) > > at java.lang.Thread.run(Thread.java:536) > >Caused by: java.lang.ClassCastException > > at > >oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState > >ment.java:1959) > > at > >oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState > >ment.java:2052) > > at > >org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObject(L > >ocalPreparedStatement.java:607) > > at > >org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.jav > >a:351) > > at > >org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.setParameters(JDB > >CStoreEntityCommand.java:133) > > at > >org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java > >:175) > > at > >org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStore > >EntityCommand.java:96) > > ... 27 more > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Get the new Palm Tungsten T > >handheld. Power & Color in a compact size! > >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > >_______________________________________________ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Get the new Palm Tungsten T > >handheld. Power & Color in a compact size! > >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > >_______________________________________________ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
