I get the following exception when I use the HelloSapDB.java example:

Exception in thread "main"
com.sap.dbtech.jdbc.exceptions.DatabaseException: [-4008]: Message not
available
        at
com.sap.dbtech.jdbc.packet.ReplyPacket.createException(ReplyPacket.java:69)
        at
com.sap.dbtech.jdbc.ConnectionSapDB.throwSQLError(ConnectionSapDB.java:748)
        at
com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:422)
        at
com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:316)
        at
com.sap.dbtech.jdbc.ConnectionSapDB.doConnect(ConnectionSapDB.java:268)
        at
com.sap.dbtech.jdbc.ConnectionSapDB.<init>(ConnectionSapDB.java:79)
        at com.sap.dbtech.jdbc.DriverSapDB.connect(DriverSapDB.java:199)
        at java.sql.DriverManager.getConnection(DriverManager.java:517)
        at java.sql.DriverManager.getConnection(DriverManager.java:177)
        at HelloSAPDB.main(HelloSAPDB.java:54)

Here are the details about my config:
1. running sapdb 7.4 on linux (RedHat 8.0); have installed all 7 rpms for
linux (server, independent s/w, web tools, interfaces, precompiler and
sampledb)
2. i used the dbmcli to start the db before running the example
3. i had to change the dbname from TST to TST74 to start the db through
dbmcli
4. i have tried to run this example as user DBM/DBM and TEST/TEST both,
nothing works (i.e. I get the same exception as above)
5. i definitely have the jdbc jar in my classpath
6. for some reason, i am not able to run ireport.py script. I searched for
files under /opt/sapdb, but did not find this file. Am I missing something
here?

If someone could tell me why I am not able to connect through JDBC to the
db, I would greatly appreciate it. The exception above does not have any
message in it and I am not able to make much of it.

Thanks in advance,
Tanu

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to