Re: Datasources in Shark

Vladimir Puskas <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
Hello Monique

you wrote:
> Oops!
> Sorry, it was our fault: Somehow the dods-runtime.jar file from version 
> 1.0.1 fall among the files from 1.1-2. When we removed it everything 
> went well with the "standard" Oracle connection. Unfortunately we are 
> still not able to make Shark to use datasuorce. Run fails with the 
> following error:
> 
> SharkEngineManager -> Shark engine is being initialized ...
> ...
> 2005-07-12 08:57:52,601: SharkUtilities -> synchronizing XPDL cache
> version:1118762756000
> 2005-07-12 08:57:52,804: Problem while initializing caches !!!
> java.lang.ClassCastException
>        at 
> com.lutris.appserver.server.sql.oracle.OracleDriverDependencies.readBlob(OracleDriverDependencies.java:69) 
> 
>        at 
> org.enhydra.shark.repositorypersistence.data.XPDLDataDO.initFromResultSet(XPDLDataDO.java:3297) 
> 
> Has anyone met similar problem?

To be honest we haven't tried this combination (oracle-data source).

Because Oracle has peculiar way of reading and storing BLOBs
OracleDriverDependences was introduced - in line 69 it directly casts
java.sql.ResultSet into oracle.jdbc.OracleResultSet to perform BLOB
extraction... It's now obvious ResultSet coming form data-source doesn't
fit this. With Enhydra/Tomcat it is 
org.apache.tomcat.dbcp.dbcp.DelegatingResultSet and AFAICS you're using 
WebLogic...

Thread on [1] might be helpful, but I doubt we can provide general 
enough solution, due to proposed casting to Commons DBPC classes.

[1] http://forum.java.sun.com/thread.jspa?threadID=492989&messageID=2319777


regards
-- 
Vlada
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.