Forums Register Login

access violation

+Pie Number of slices to send: Send
Does anyone know why I might be getting 'access violation' errors from my jsp pages? I am running ms-sql on win NT4 with Tomcat. A jsp page will sometimes display a resultset from a database table but intermittantly it crashes tomcat and displays :
java.exe Exception: access violation ( at a certain address )
please help!
code is:
<%@ page import = "java.sql.*" %>
<%
//params
String url = "jdbc dbc:callLog";
String username = "root";
String password = "";
String theDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
Class.forName ( theDriver );
Connection conn = DriverManager.getConnection ( url, username, password );
Statement statement = conn.createStatement();
ResultSet rs = statement.executeQuery ( "Select * from clientCompany" );

//display
while ( rs.next())
{
String theName = rs.getString ( "companyName" );
String theAdd1 = rs.getString ( "add1" );

out.println ( theName + ": " + theAdd1 + "<br>" );
}
%>
+Pie Number of slices to send: Send
Have you tried a different driver, other than the jdbc-odbc bridge. It's not very fast, and not a recommended driver. I apologize if there is no other one, but the access violation with a HEX number seems a bit awful.
+Pie Number of slices to send: Send
thanks Mike, I am trying it with a different jdk - I was using jdk1.2.2, now jdk1.3 and the problem seems to have stopped.
Poop goes in a willow feeder. Wipe with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 760 times.
Similar Threads
Invalid user error message
JSP problem
pagination in jsp
Want to create a single user admin login page
Java Beans and JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:43:41.