Are you using JBoss 3.0.0? If so, upgrade to JBoss 3.0.1. Characters are now converted into strings before setting a parameter, because it breaks oracle.
-dain Saroj Kumar wrote: > Hi All, > > I am using a Java.lang.Character column which is giving me this CLASS > CAST EXCEPTION. > > java.lang.ClassCastException: java.lang.Character > at > oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState > ment.java:2759) > at > oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState > ment.java:2905) > at > org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObject(L > ocalPreparedStatement.java:607) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.setParameter(JDBCUtil.java:156) > at > org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setArgu > mentParameters(JDBCAbstractCMPFieldBridge. > java:283) > at > org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setInst > anceParameters(JDBCAbstractCMPFieldBridge. > java:262) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(JDBC > CreateEntityCommand.java:192) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreat > eEntityCommand.java:131) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreMa > nager.java:450) > at > org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceM > anager.java:253) > at > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createE > ntity(CachedConnectionInterceptor.java:270 > ) > at > org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:579) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > > .... > > Has anybody tried this?// > > TIA, > sAROJ > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- xxxxxxxxxxxxxxxxxxxxxxxx Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user