Hi,
it has been on this list loads of times: the Oracle driver has a problem
with the xLOB types.
see: http://wamoz.com/JDBC_and_Oracle_LOB.asp
Burkhard
----- Original Message -----
From: "Sen Alexey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 08, 2001 12:21 PM
Subject: [JBoss-user] Jboss-2.2.2_tomcat-3.2.2 with two BLOB on Oracle 8.1.6
problem. H elp please!
> Hi all,
> I have trouble to create EJB object with two binary attributes that mapped
> to ORACLE's BLOB.
> On HypersonicSQL my code works fine. But with Oracle I've got
(server.log):
> ------------ server.log ----------------
> ...
> [JAWS] Create command executing: INSERT INTO ThePaymentGate
> (thumb,port,hostname,keyExchangeCertificate,brandID,signatureCertificate)
> VALUES (?,?,?,?,?,?)
> [JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value=NULL
> [JAWS] Set parameter: idx=2, jdbcType=INTEGER, value=0
> [JAWS] Set parameter: idx=3, jdbcType=VARCHAR, value=NULL
> [JAWS] Set parameter: idx=4, jdbcType=JAVA_OBJECT, value=...<skipped long
> valid data>
> [JAWS] Set parameter: idx=5, jdbcType=VARCHAR, value=Zolotaya Korona
> [JAWS] Set parameter: idx=6, jdbcType=JAVA_OBJECT, value=...<skipped long
> valid data>
> [JAWS] Rows affected = 1
> [TheEMerchantkeeper] BEAN EXCEPTION:null
> [TheEMerchantkeeper] java.lang.reflect.UndeclaredThrowableException:
> javax.transaction.HeuristicRollbackException
> [TheEMerchantkeeper] at
> org.jboss.tm.TxCapsule.checkHeuristics(TxCapsule.java:1341)
> [TheEMerchantkeeper] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:375)
> [TheEMerchantkeeper] at
> org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:318)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
> a:164)
> [TheEMerchantkeeper] at
> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
> [TheEMerchantkeeper] at
> org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
> nerInvoker.java:436)
> [TheEMerchantkeeper] at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
> [TheEMerchantkeeper] at $Proxy16.create(Unknown Source)
> [TheEMerchantkeeper] at
>
com.ftc.set.control.ejb.StateMachine.handleGatewayEvent(StateMachine.java:26
> 1)
> [TheEMerchantkeeper] at
> com.ftc.set.control.ejb.StateMachine.handleEvent(StateMachine.java:70)
> [TheEMerchantkeeper] at
>
com.ftc.set.control.ejb.EMerchantkeeperEJB.handleEvent(EMerchantkeeperEJB.ja
> va:86)
> [TheEMerchantkeeper] at java.lang.reflect.Method.invoke(Native Method)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulS
> essionContainer.java:570)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
> 0)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
> ionInstanceInterceptor.java:209)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:226)
> [TheEMerchantkeeper] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> [TheEMerchantkeeper] at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
> 326)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
> nvoker.java:482)
> [TheEMerchantkeeper] at
>
org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe
> ssionProxy.java:150)
> [TheEMerchantkeeper] at $Proxy11.handleEvent(Unknown Source)
> [TheEMerchantkeeper] at
>
com.ftc.set.control.web.ProxyController.handleEvent(ProxyController.java:67)
> [TheEMerchantkeeper] at
>
com.ftc.set.control.web.RequestProcessor.processRequest(RequestProcessor.jav
> a:96)
> [TheEMerchantkeeper] at
> com.ftc.set.control.web.MainServlet.doGet(MainServlet.java:233)
> [TheEMerchantkeeper] at
> com.ftc.set.control.web.MainServlet.doPost(MainServlet.java:315)
> [TheEMerchantkeeper] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> [TheEMerchantkeeper] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> [TheEMerchantkeeper] at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> [TheEMerchantkeeper] at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> [TheEMerchantkeeper] at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> [TheEMerchantkeeper] at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> [TheEMerchantkeeper] at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> [TheEMerchantkeeper] at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
> [TheEMerchantkeeper] at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> [TheEMerchantkeeper] at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> [TheEMerchantkeeper] at java.lang.Thread.run(Unknown Source)
> ------------------------------------------------------------------
>
> ------- jboss.properties -----------------
> jboss.xa.xidclass=oracle.jdbc.xa.OracleXid
> ------------------------------------------
>
> --------- jaws.xml -----------------------
> <?xml version="1.0" encoding="UTF-8"?>
>
> <jaws>
> <datasource>java:/EMerchantDB</datasource>
> <type-mapping>Oracle8</type-mapping>
> <debug>true</debug>
>
> <enterprise-beans>
> <entity>
> <ejb-name>ThePaymentGate</ejb-name>
> <remove-table>true</remove-table>
> <cmp-field>
> <field-name>brandID</field-name>
> <sql-type>VARCHAR(80)</sql-type>
> </cmp-field>
> <cmp-field>
> <field-name>hostname</field-name>
> <sql-type>VARCHAR(80)</sql-type>
> </cmp-field>
> <cmp-field>
> <field-name>thumb</field-name>
> <sql-type>VARCHAR(80)</sql-type>
> </cmp-field>
> <cmp-field>
> <field-name>keyExchangeCertificate</field-name>
> <jdbc-type>JAVA_OBJECT</jdbc-type>
> <sql-type>BLOB</sql-type>
> </cmp-field>
> <cmp-field>
> <field-name>signatureCertificate</field-name>
> <jdbc-type>JAVA_OBJECT</jdbc-type>
> <sql-type>BLOB</sql-type>
> </cmp-field>
> </entity>...
> -------------------------------------------------
>
> -------------- jboss.jcml----------------
> ...
> <mbean code="org.jboss.jdbc.XADataSourceLoader"
> name="DefaultDomain:service=XADataSource,name=EMerchantDB">
> <attribute name="PoolName">EMerchantDB</attribute>
> <attribute
>
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l</attribute>
> <attribute name="Properties"></attribute>
> <attribute
> name="URL">jdbc:oracle:thin:@172.16.1.15:1521:sand</attribute>
> <attribute name="GCMinIdleTime">1200000</attribute>
> <attribute name="JDBCUser">yyy</attribute>
> <attribute name="MaxSize">10</attribute>
> <attribute name="Password">xxx</attribute>
> <attribute name="GCEnabled">false</attribute>
> <attribute name="InvalidateOnError">false</attribute>
> <attribute name="TimestampUsed">false</attribute>
> <attribute name="Blocking">true</attribute>
> <attribute name="GCInterval">120000</attribute>
> <attribute name="IdleTimeout">1800000</attribute>
> <attribute name="IdleTimeoutEnabled">false</attribute>
> <attribute name="LoggingEnabled">false</attribute>
> <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
> <attribute name="MinSize">0</attribute>
> </mbean>
> ...
> -----------------------------------------
>
> What's wrong? Will you show me the way to solve my problem?
>
> My configuration:
> Windows 2000
> JBoss-2.2.2_Tomcat-3.2.2
> Thin JDBC driver from Oracle (classes12.zip)
> ORACLE 8.1.6.3 (on remote host)
>
>
> Thanks in advance
> Alexey Sen
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user