Could not get java.sql.Clob to write to exception - Weblogic

This is a discussion on Could not get java.sql.Clob to write to exception - Weblogic ; This error has been reported in this group before, but there is no resolution posted. Does anyone have any ideas what this is? I am on Weblogic 7 and Oracle 9i. I am using the weblogic dbms-column-type OracleClob. I have ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Could not get java.sql.Clob to write to exception

  1. Could not get java.sql.Clob to write to exception

    This error has been reported in this group before, but there is no
    resolution posted. Does anyone have any ideas what this is? I am on
    Weblogic 7 and Oracle 9i. I am using the weblogic dbms-column-type
    OracleClob.

    I have a basic table, with a CLOB field that allows null. I am trying
    to use CMP to create a record in the table. I have the correct
    permissions of Select/Insert/Update. I get the following stack trace
    (trimmed and cleaned for security reasons):

    <010049> method: ejbPostCreate: java.sql.SQLException: Could
    not get java.sql.Clob to write to
    java.sql.SQLException: Could not get java.sql.Clob to write to
    at com.someone.audit.ejb.WebAuditLogBean_1epcub__WebL ogic_CMP_RDBMS.__WL_set_auditDataForOutput(WebAudi tLogBean_
    1epcub__WebLogic_CMP_RDBMS.java:2138)
    at com.someone.audit.ejb.WebAuditLogBean_1epcub__WebL ogic_CMP_RDBMS.__WL_create(WebAuditLogBean_1epcub_ _WebLogic
    _CMP_RDBMS.java:1612)
    at com.someone.audit.ejb.WebAuditLogBean_1epcub__WebL ogic_CMP_RDBMS.ejbPostCreate(WebAuditLogBean_1epcu b__WebLog
    ic_CMP_RDBMS.java:1522)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.manager.DBManager.create(DBManager. java:1023)
    at weblogic.ejb20.manager.DBManager.localCreate(DBMan ager.java:904)
    at weblogic.ejb20.internal.EntityEJBLocalHome.create( EntityEJBLocalHome.java:180)
    at com.someone.audit.ejb.WebAuditLogBean_1epcub_Local HomeImpl.create(WebAuditLogBean_1epcub_LocalHomeIm pl.java:8
    2)
    at com.someone.audit.ejb.AuditConsumerBean.onMessage( AuditConsumerBean.java:98)
    at weblogic.ejb20.internal.MDListener.execute(MDListe ner.java:377)
    at weblogic.ejb20.internal.MDListener.transactionalOn Message(MDListener.java:311)
    at weblogic.ejb20.internal.MDListener.onMessage(MDLis tener.java:286)
    at weblogic.jms.client.JMSSession.onMessage(JMSSessio n.java:2351)
    at weblogic.jms.client.JMSSession.execute(JMSSession. java:2267)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:234)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:210)
    >



    Please help, I need to have this ready on a very short timeline (like
    today).

  2. Re: Could not get java.sql.Clob to write to exception

    Please reply to my email address at "fullej@hotmail.com" with any responses.

    I have fought this all day, with no luck - any help would be greatly appreciated.

    Thanks,
    Josh Fuller

    fullej@hotmail.com (Josh Fuller) wrote in message news:...
    > This error has been reported in this group before, but there is no
    > resolution posted. Does anyone have any ideas what this is? I am on
    > Weblogic 7 and Oracle 9i. I am using the weblogic dbms-column-type
    > OracleClob.
    >
    > I have a basic table, with a CLOB field that allows null. I am trying
    > to use CMP to create a record in the table. I have the correct
    > permissions of Select/Insert/Update. I get the following stack trace
    > (trimmed and cleaned for security reasons):
    >
    > <010049> > method: ejbPostCreate: java.sql.SQLException: Could
    > not get java.sql.Clob to write to
    > java.sql.SQLException: Could not get java.sql.Clob to write to
    > at com.someone.audit.ejb.WebAuditLogBean_1epcub__WebL ogic_CMP_RDBMS.__WL_set_auditDataForOutput(WebAudi tLogBean_
    > 1epcub__WebLogic_CMP_RDBMS.java:2138)
    > at com.someone.audit.ejb.WebAuditLogBean_1epcub__WebL ogic_CMP_RDBMS.__WL_create(WebAuditLogBean_1epcub_ _WebLogic
    > _CMP_RDBMS.java:1612)
    > at com.someone.audit.ejb.WebAuditLogBean_1epcub__WebL ogic_CMP_RDBMS.ejbPostCreate(WebAuditLogBean_1epcu b__WebLog
    > ic_CMP_RDBMS.java:1522)
    > at java.lang.reflect.Method.invoke(Native Method)
    > at weblogic.ejb20.manager.DBManager.create(DBManager. java:1023)
    > at weblogic.ejb20.manager.DBManager.localCreate(DBMan ager.java:904)
    > at weblogic.ejb20.internal.EntityEJBLocalHome.create( EntityEJBLocalHome.java:180)
    > at com.someone.audit.ejb.WebAuditLogBean_1epcub_Local HomeImpl.create(WebAuditLogBean_1epcub_LocalHomeIm pl.java:8
    > 2)
    > at com.someone.audit.ejb.AuditConsumerBean.onMessage( AuditConsumerBean.java:98)
    > at weblogic.ejb20.internal.MDListener.execute(MDListe ner.java:377)
    > at weblogic.ejb20.internal.MDListener.transactionalOn Message(MDListener.java:311)
    > at weblogic.ejb20.internal.MDListener.onMessage(MDLis tener.java:286)
    > at weblogic.jms.client.JMSSession.onMessage(JMSSessio n.java:2351)
    > at weblogic.jms.client.JMSSession.execute(JMSSession. java:2267)
    > at weblogic.kernel.ExecuteThread.execute(ExecuteThrea d.java:234)
    > at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:210)
    > >

    >
    >
    > Please help, I need to have this ready on a very short timeline (like
    > today).


+ Reply to Thread