FYI, the problem was that Pranas Baliuka compiled his own driver from the sources and the property files "messages.properties" and "messages_de.properties" which contains the language specific error messages couldn't be found within the classpath. The correct place for the property files within the package hierarchy is com/sap/dbtech/jdbc.
Regards, Marco ---------------------------------------------- Marco PASKAMP SAP DB, SAP Labs Berlin > -----Original Message----- > From: Paskamp, Marco > Sent: Donnerstag, 3. April 2003 14:58 > To: 'Pranas Baliuka'; [EMAIL PROTECTED] > Subject: RE: [JDBC] Prepared Statement Bug > > > Hello, > a JDBC-Trace (http://sapdb.2scale.net/moin.cgi/JdbcTrace) and > the version of the driver would be very helpful. > > Thanks, > Marco > ---------------------------------------------- > Marco PASKAMP > SAP DB, SAP Labs Berlin > > -----Original Message----- > From: Pranas Baliuka [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 3. April 2003 15:43 > To: [EMAIL PROTECTED] > Subject: [JDBC] Prepared Statement Bug > > > Invalid handling of Exceptions in JDBC: > > Environment (SAP DB 7.4): > ... > // INVALID SQL > String insertSQL = INSERT INTO<TABLE_NAME> VALUES(?,?)"; > PreparedStatement stmt = connection.prepareStatement(insertSQL); > ... > -------------------------------------------------------------- > ------------------------------------------------------- > Result: > Exception thrown: > java.lang.NullPointerException > at > com.sap.dbtech.util.MessageTranslator.translate(MessageTransla > tor.java:134) > at > com.sap.dbtech.util.MessageTranslator.translate(MessageTransla > tor.java:95) > at > com.sap.dbtech.jdbc.exceptions.DatabaseException.<init>(Databa > seException.java:47) > at > com.sap.dbtech.jdbc.packet.ReplyPacket.createException(ReplyPa > cket.java:69) > at > com.sap.dbtech.jdbc.ConnectionSapDB.throwSQLError(ConnectionSa > pDB.java:720) > > SQLException must be thrown! > _______________________________________________ > sapdb.general mailing list > [EMAIL PROTECTED] > http://listserv.sap.com/mailman/listinfo/sapdb.general > _______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general
