Home » Open Source » Programming Interfaces » Lob read/write functions called while another read/write is in progress: getBytes() (Oracle 11.2.0.3, linux)
Lob read/write functions called while another read/write is in progress: getBytes() [message #634192] Thu, 05 March 2015 08:31 Go to next message
gary.d
Messages: 2
Registered: March 2015
Junior Member
I occur the SQLException as below that throwed by Oracle jdbc driver in our app. I think the exception is a internal exception of oracle.
How to avoid the exception in my app, who knows? The issue has confused me for a long time, I am crazing!

If anybody knows, please tell me, thanks a lot!

ENV:Oracle 11.2.0.3+JDK1.7+Hibernate(4.1.9 final)+C3p0(0.9.5)+Ojdbc6(11.2.0.2)
-----------------------------------------------------------
java.io.IOException: Lob read/write functions called while another read/write is in progress: getBytes()
java.io.IOException: Lob read/write functions called while another read/write is in progress: getBytes()
at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java:412)
at oracle.jdbc.driver.OracleBufferedStream.readInternal(OracleBufferedStream.java:461)
at oracle.jdbc.driver.OracleBufferedStream.read(OracleBufferedStream.java:408)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2873)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:664)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
at java.util.XMLUtils.getLoadingDoc(XMLUtils.java:102)
at java.util.XMLUtils.load(XMLUtils.java:74)
at java.util.Properties.loadFromXML(Properties.java:868)
at onlyTest.BlobOperator$AutoBLWOExecutionThread.run(BlobOperator.java:224)
Caused by: java.sql.SQLException: Lob read/write functions called while another read/write is in progress: getBytes()
at oracle.jdbc.driver.T4CConnection.getBytes(T4CConnection.java:4167)
at oracle.sql.BLOB.getBytes(BLOB.java:685)
at oracle.jdbc.driver.OracleBlobInputStream.needBytes(OracleBlobInputStream.java:372)
Re: Lob read/write functions called while another read/write is in progress: getBytes() [message #634193 is a reply to message #634192] Thu, 05 March 2015 08:42 Go to previous messageGo to next message
gazzag
Messages: 1119
Registered: November 2010
Location: Bedwas, UK
Senior Member
Do you have access to the database alert log?
Re: Lob read/write functions called while another read/write is in progress: getBytes() [message #634194 is a reply to message #634193] Thu, 05 March 2015 08:45 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
I see no evidence that Oracle database is involved with details posted above.

What is the specific JAVA statement that throws this error stack?
Re: Lob read/write functions called while another read/write is in progress: getBytes() [message #634195 is a reply to message #634194] Thu, 05 March 2015 09:04 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
http://stackoverflow.com/questions/23370468/error-saving-and-getting-blob-from-database-sql-oracle
Re: Lob read/write functions called while another read/write is in progress: getBytes() [message #634231 is a reply to message #634193] Fri, 06 March 2015 01:30 Go to previous message
gary.d
Messages: 2
Registered: March 2015
Junior Member
thank you all.
I try it now, thanks again
Previous Topic: PHP-OCI interface
Next Topic: ODBC Connection Fails connection to Oracle 10g database
Goto Forum:
  


Current Time: Sat Dec 21 09:44:50 CST 2024