Hi Guys,
I'm getting "java.lang.IllegalArgumentException: object is not an instance
of declaring class" in a webapplication. I think it's something to do with
the way CLOB is handled in Cayenne 3.0M4. The full stack trace is at the
bottom. I tried the Jboss-Oracle combination and I don't get this exception
on Jboss.
*The environment details are:*
Database – 10g
App server – Weblogic 9.2.2 on Solaris 10
Driver – Oracle Thin driver
Can you guys please advise on what are the likely cause of this?
Thanks a lot in advance.
Cheers,
Parth
*Exception:*
####<Jul 7, 2008 12:01:19 PM EST> <Error> <HTTP> <sxde108> <Server1>
<[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default
(self-tuning)'> <<WLS Kernel>> <> <> <1215396079795> <BEA-101020>
<[weblogic.servlet.internal.WebAppServletContex..438298 - appName: 'fcl',
name: 'fcl.war', context-path: '/fcl'] Servlet failed with Exception
org.apache.cayenne.CayenneRuntimeException: [v.3.0M4 May 18 2008 15:29:33]
Commit Exception
at
org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:1192)
at
org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:1066)
at
com.avoka.fcl.service.ErrorLogService.logException(ErrorLogService.java:89)
at
com.avoka.fcl.servlet.BaseServlet.handleException(BaseServlet.java:144)
at
com.avoka.fcl.servlet.BaseServlet.handleRequest(BaseServlet.java:130)
at com.avoka.fcl.servlet.BaseServlet.doGet(BaseServlet.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
com.avoka.fcl.servlet.RemoteUserFilter.doFilter(RemoteUserFilter.java:51)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
com.avoka.fcl.servlet.DataContextFilter.doFilter(DataContextFilter.java:239)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
java.lang.IllegalArgumentException: object is not an instance of declaring
class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.cayenne.dba.oracle.OracleLOBBatchAction.writeClob(OracleLOBBatchAction.java:307)
at
org.apache.cayenne.dba.oracle.OracleLOBBatchAction.processLOBRow(OracleLOBBatchAction.java:197)
at
org.apache.cayenne.dba.oracle.OracleLOBBatchAction.performAction(OracleLOBBatchAction.java:127)
at
org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:58)
at
org.apache.cayenne.access.DataNode.performQueries(DataNode.java:230)
at
org.apache.cayenne.access.DataDomainFlushAction.runQueries(DataDomainFlushAction.java:227)
at
org.apache.cayenne.access.DataDomainFlushAction.flush(DataDomainFlushAction.java:145)
at
org.apache.cayenne.access.DataDomain.onSyncFlush(DataDomain.java:821)
at
org.apache.cayenne.access.DataDomain$2.transform(DataDomain.java:788)
at
org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:847)
at org.apache.cayenne.access.DataDomain.onSync(DataDomain.java:785)
at
org.apache.cayenne.access.DataContext.flushToParent(DataContext.java:1164)
at
org.apache.cayenne.access.DataContext.commitChanges(DataContext.java:1066)
at
com.avoka.fcl.service.ErrorLogService.logException(ErrorLogService.java:89)
at
com.avoka.fcl.servlet.BaseServlet.handleException(BaseServlet.java:144)
at
com.avoka.fcl.servlet.BaseServlet.handleRequest(BaseServlet.java:130)
at com.avoka.fcl.servlet.BaseServlet.doGet(BaseServlet.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
com.avoka.fcl.servlet.RemoteUserFilter.doFilter(RemoteUserFilter.java:51)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
com.avoka.fcl.servlet.DataContextFilter.doFilter(DataContextFilter.java:239)
at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>
This archive was generated by hypermail 2.0.0 : Mon Jul 07 2008 - 20:06:53 EDT