You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by A Sorvoja <so...@yahoo.com.au> on 2005/08/14 12:07:38 UTC

Re: J2EEStore configuration for Oracle throwing Reflection Error

We fixed our problem as already reported in <a
href="http://issues.apache.org/bugzilla/show_bug.cgi?id=36137">bug
#36317<a/>. The bug report also includes a possible
fix  for Slide to manage the blob access of the
Weblogic datasource.

--- A Sorvoja <so...@yahoo.com.au> wrote:

> I am trying to setup Slide 2.1 to connect to Oracle
> using WLS 8.1. Slide.war deploys ok and it can
> connect
> to Oracle database. However when I am trying to
> write
> a BLOB file, then Slide is throwing Reflection Error
> from OracleRDBMSAdapter.
>  
> Slide.war has been deployed to Weblogic 8.1.2.
> Oracle
> version is 9.0.2.5 and I have set up a connection
> pool
> using the Oracle thin drivers -
> oracle.jdbc.driver.OracleDriver - from odbjc14.jar
> for
> 9.0.2.5. 
>  
> Odd thing is that if I set the nodestore classname
> to
> JDBCStore instead of J2EEStore and I use the same
> OracleRDBMSAdapter adapter class then blobs are
> added
> to Oracle. The problem is that I will need to
> configure WLS to use its connection pool for the
> security reasons so I have to use J2EEStore. Is
> there
> any fix for this to get J2EEStore to work?
>  
> Cheers,
> Antti
>  
> Domain.xml settings for store:
> <store name="OracleStore">
>  <nodestore
>
classname="org.apache.slide.store.impl.rdbms.J2EEStore">
>      <parameter
> name="datasource">jdbc/SlideSpike</parameter>
>      <parameter
>
name="adapter">org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter</parameter>
>      <parameter name="compress">false</parameter>
>  </nodestore>
>  <securitystore>
>      <reference store="nodestore"/>
>  </securitystore>
>  <lockstore>
>      <reference store="nodestore"/>
>  </lockstore>
>  <revisiondescriptorsstore>
>      <reference store="nodestore"/>
>  </revisiondescriptorsstore>
>  <revisiondescriptorstore>
>      <reference store="nodestore"/>
>  </revisiondescriptorstore>
>  <contentstore>
>      <reference store="nodestore"/>
>  </contentstore>
> </store>
>  
> error stack: 
> <20/07/2005 11:08:20 AM GMT+10:00> <Notice>
> <WebLogicServer> <BEA-000355> <Thread
> "ListenThread.Default" listening on port 7001, ip
> address *.*>
> 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:324)
>         at
>
org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter.storeContent(OracleRDBMSAdapter.java:142)
>         at
>
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeRevisionContent(StandardRDBMSAdapter.java:1101)
>         at
>
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeRevisionContent(StandardRDBMSAdapter.java:1065)
>         at
>
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.storeRevisionContent(AbstractRDBMSStore.java:843)
>         at
>
org.apache.slide.store.AbstractStore.storeRevisionContent(AbstractStore.java:1387)
>         at
>
org.apache.slide.store.ExtendedStore.storeRevisionContent(ExtendedStore.java:533)
>         at
>
org.apache.slide.content.ContentImpl.store(ContentImpl.java:1018)
>         at
>
org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:270)
>         at
>
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:405)
>         at
>
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
>         at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
>         at
>
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>         at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>         at
>
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141)
>         at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>         at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
>         at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
>         at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
>         at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
>         at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
>         at
>
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>         at
>
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> 20 Jul 2005 11:08:44 -
>
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter
> - ERROR - java.io.IOException: Reflection error
> java.io.IOException: Reflection error
>         at
>
org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter.storeContent(OracleRDBMSAdapter.java:145)
>         at
>
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeRevisionContent(StandardRDBMSAdapter.java:1101)
>         at
>
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeRevisionContent(StandardRDBMSAdapter.java:1065)
>         at
>
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.storeRevisionContent(AbstractRDBMSStore.java:843)
>         at
>
org.apache.slide.store.AbstractStore.storeRevisionContent(AbstractStore.java:1387)
>         at
>
org.apache.slide.store.ExtendedStore.storeRevisionContent(ExtendedStore.java:533)
>         at
>
org.apache.slide.content.ContentImpl.store(ContentImpl.java:1018)
>         at
>
org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:270)
>         at
>
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:405)
>         at
>
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
>         at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
>         at
>
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>         at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>         at
>
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141)
>         at
>
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
>         at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
>         at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
>         at
>
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
>         at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
>         at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
>         at
>
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>         at
>
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> java.io.IOException: Reflection error
>         at
>
org.apache.slide.store.impl.rdbms.OracleRDBMSAdapter.storeContent(OracleRDBMSAdapter.java:145)
>         at
>
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeRevisionContent(StandardRDBMSAdapter.java:1101)
>         at
>
org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter.storeRevisionContent(StandardRDBMSAdapter.java:1065)
>         at
>
org.apache.slide.store.impl.rdbms.AbstractRDBMSStore.storeRevisionContent(AbstractRDBMSStore.java:843)
>         at
>
org.apache.slide.store.AbstractStore.storeRevisionContent(AbstractStore.java:1387)
>         at
>
org.apache.slide.store.ExtendedStore.storeRevisionContent(ExtendedStore.java:533)
>         at
>
org.apache.slide.content.ContentImpl.store(ContentImpl.java:1018)
>         at
>
org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:270)
>         at
>
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod.java:405)
>         at
>
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155)
>         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
>
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
>         at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
> 
=== message truncated ===


Send instant messages to your online friends http://au.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org