Announcement Announcement Module
No announcement yet.
Oracle 10 LOB, Websphere 6.1 (OSGi?) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Oracle 10 LOB, Websphere 6.1 (OSGi?)

    I have a Websphere application that tries to insert a new db table row containing a CLOB field. When there is little data to insert, say 2-3K, everything works well. However, for larger data volumes I get the following exception:

    Caused by: java.lang.ClassNotFoundException: oracle.sql.BLOB
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(
    	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(
    	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(
    	at java.lang.ClassLoader.loadClass(
    Here is the Java code:
    	protected String storeReport(Integer reportId, AreBatchReport report) throws XmlMappingException, IOException{
    		StringWriter writer = new StringWriter();
    		// Marshal the XML
    		ObjectFactory fact = new ObjectFactory();
    		marshaller.marshal(fact.createAreBatchReport(report), new StreamResult(writer));
    		// Store it in the DB
    		final int id = reportId.intValue();
    		final String xml = writer.getBuffer().toString();
    		jdbcTemplate.execute(storeXmlQuery, new AbstractLobCreatingPreparedStatementCallback(lobHandler){
    			protected void setValues(PreparedStatement stmt, LobCreator lobCreator)
    					throws SQLException, DataAccessException {
    				lobCreator.setClobAsString(stmt, 1, xml);
    				stmt.setInt(2, id);
    		return xml;
    Here is the Spring config:
    	<beans:bean id="lobHandler" class="">
    		<beans:property name="nativeJdbcExtractor">
    			<beans:bean class=""/>
    I have tried to use DefaultLobHandler instead but it did not help.

    The application refers to that contains among others oracle.sql.BLOB class. It seems that this jar is not used when trying to load the class.

    Furthermore, the stack trace points out org.eclipse.osgi.framework.internal.core.BundleLoa der class. Does it mean that some OSGI configuration should be present to make it work?

  • #2
    Same problem here.
    Did you manage to fix it?