-
1. Re: Prepared Statements
hstech Oct 17, 2001 12:11 AM (in response to khenneuse)Hi Kent,
I had a similar problem with Interbase. My problem was because of a misformed SQL statement. Can you post your SQL statement, code snippets, and the table meta data.
Cheers,
Aaron. -
2. Re: Prepared Statements
lairdchris Oct 18, 2001 4:55 AM (in response to khenneuse)I have the same problem after accessing a field of a container managed entity bean.
I'm using Jboss with an Informix database.
Has anybody an idea?
Here's the log output:
JAWS - findByZahl command executing: SELECT id FROM Christian WHERE zahl=?
JAWS - Set parameter: idx=1, jdbcType=INTEGER, value=4711
Christian - Activated bean Christian with id = 1
JAWS - Load command executing: SELECT datum,name,zahl,kleinezahl,id FROM Christian WHERE id=?
JAWS - Set parameter: idx=1, jdbcType=INTEGER, value=1
JAWS - Store command executing: UPDATE Christian SET datum=?,name=?,zahl=?,kleinezahl=?,id=? WHERE id=?
JAWS - java.sql.SQLException: Unable to create PreparedStatement!
JAWS - at java.sql.SQLException.(SQLException.java:84)
JAWS - at org.opentools.minerva.jdbc.xa.wrapper.XAClientConnection.prepareStatement(XAClientConnection.java:169)
JAWS - at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:158)
...