*
The moose likes JDBC and the fly likes database exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "database exception" Watch "database exception" New topic
Author

database exception

Bala Raju Mandala
Ranch Hand

Joined: Sep 21, 2006
Posts: 40
Hi All,

Can anybody tell me why this kind of exception thrown.

Unable to upload file to database;

oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)

oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)

oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)

oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)

oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)

oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:791)

oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1109)

oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)

oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2973)
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The text of that message doesn't read like an Oracle error at all - Oracle doesn't know anything about files, only BLOBs. Can you post the code that causes it?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Bala Raju Mandala
Ranch Hand

Joined: Sep 21, 2006
Posts: 40
i am sorry for giving the limited information. The message "unable to upload file" is added by me to find exception in logger.

this is the original exception thrown,

oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)

oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)

oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)

oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)

oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)

oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:791)

oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1109)

oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)

oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2973)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: database exception