Hi, I am trying to call create method of the entiy bean (CMP). I get following exception.
------------------------------------------------------------------------------------------------------- 10:55:12,443 ERROR [STDERR] javax.ejb.CreateException: Could not create entity:java.lang.ClassCastException 10:55:12,443 ERROR [STDERR] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityComma nd.java:146) 10:55:12,453 ERROR [STDERR] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createEntity(JAWSPersistenceManager .java:255) 10:55:12,453 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:2 08) 10:55:12,453 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedC onnectionInterceptor.java:269) 10:55:12,453 ERROR [STDERR] at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:581) 10:55:12,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 10:55:12,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 10:55:12,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10:55:12,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324) 10:55:12,453 ERROR [STDERR] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:10 43) 10:55:12,453 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizati onInterceptor.java:197) 10:55:12,463 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedCon nectionInterceptor.java:214) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor. java:89) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor. java:28) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:98) 10:55:12,463 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92) 10:55:12,473 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) 10:55:12,473 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInte rceptor.java:93) 10:55:12,473 ERROR [STDERR] at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:483) 10:55:12,473 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:720) 10:55:12,473 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.ja va:293) 10:55:12,473 ERROR [STDERR] at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) 10:55:12,473 ERROR [STDERR] at $Proxy30.create(Unknown Source) ------------------------------------------------------------------------------------------------------ create method is defined in following way. in local interface. public ProcessLogLocal create(Integer processHistoryId, String processType, int processId, String processName, ProcessInfo processInfo, String executionServer, EnvInfo envVarDetails, int executionCount, java.util.Date startTime, java.util.Date endTime, int userId, StringParameter processParameter, String errorMsg ) throws CreateException; Please let me know what could be the reason for this error? Is it something to do with Objects used for blob columns . The desc for Oracle DB table this entity refers is as below. Name Null? Type ----------------------------------------- -------- ---------------------------- PROCESS_TYPE NOT NULL VARCHAR2(5) PROCESS_ID NUMBER(3) PROCESS_NAME VARCHAR2(50) PROCESS_INFO NOT NULL BLOB EXECUTION_SERVER NOT NULL VARCHAR2(25) ENV_VAR_DETAILS BLOB EXECUTION_COUNT NUMBER(2) START_TIME NOT NULL DATE END_TIME NOT NULL DATE USER_ID NOT NULL NUMBER(5) PROCESS_PARAMETER BLOB ERROR_MSG VARCHAR2(50) PROCESS_HISTORY_ID NOT NULL NUMBER Do I have to do special handling for these BLOB columns ? Please advice Thanks =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
