You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/04/05 15:11:34 UTC
DO NOT REPLY [Bug 34302] New: -
Tomcat doesn't read JDK 1.5 correctly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34302>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34302
Summary: Tomcat doesn't read JDK 1.5 correctly
Product: Tomcat 5
Version: 5.5.8
Platform: HP
OS/Version: Windows XP
Status: NEW
Keywords: JDK1.5
Severity: major
Priority: P4
Component: Servlet & JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: vamax27@yahoo.com
I am using JDK 1.5.0_02 b09 and Tomcat 5.5.8. When I run the page I get the
Server Error: java.lang.VerifyError: (class: util/emenuUserLogin, method:
insertDBtest signature: (Ljava/lang/String;)Ljava/lang/String;) Incompatible
object argument for function call
It's a simple login page and string concatenation within the class.
JSP CODE:
<%@ page import="util.mainUserLogin"%>
<%@ page import="java.io.*" %>
<html>
<head>
<title>New Client</title>
</head>
<%
if(request.getMethod().equalsIgnoreCase("post")){
String userId = request.getParameter("ulogin");
String pWord = request.getParameter("upword");
System.out.print(userId);
int i = 0;
mainUserLogin emUL = new mainUserLogin();
String imback = emUL.insertDBtest(userId);
i = 1;
System.out.print(imback);
}
%>
<body>
<table border="0">
<tr>
<td>
<form method="POST" action="">
<p></b><font color="#FF0000" size="4">*</font><font face="Arial"
size="2"><b>denotes required information</b></font></p>
<table border="0" width="100%">
<tr>
<td width="30%" align="right"><font face="Arial"
size="2">Login:</font></td>
<td width="20%" align="left"><input type="text" name="ulogin"
size="20"><font color="#FF0000" size="4">*</font></td>
<td width="30%" align="right"><font face="Arial" size="2"></font></td>
</tr>
<tr>
<td width="30%" align="right"><font face="Arial" size="2">Email
Address:</font></td>
<td width="20%" align="left"> <input type="text" name="upword"
size="20"><font color="#FF0000" size="4">*</font></td>
</tr>
<tr>
<td width="30%" align="right"></td>
<td width="20%" align="left"><input type="submit" value=" Complete
Registration " name="btnAddUser"></td>
<td width="30%" align="right"></td>
<td width="20%" align="left"></td>
</tr>
</table>
</form>
</tr>
</table>
</body>
</html>
*************
Condensed Java Code:
package util;
import java.io.*;
public class mainUserLogin {
public String insertDBtest(String uLogin) throws Exception{
String qry = "select count(clientid) as cnt from main_client "+
"where login = lower('"+ uLogin +"')";
return qry;
}
}
*******************
I'm not sure if this is related to Bugzilla 31777 or not... I don't think it
is, and perhaps there is an easy way for me to get the appropriate JDK and
Tomcat .jar files in sync, however I am new to that part of the programming
world and need some specific instructions... (If this is a duplicate,
shouldn't Tomcat automatically download w/ the corresponding JVM to 1.5 by
now?)
My own work around was to point my compiler back to JDK 1.3, and then
everything works fine on Tomcat, but I would much rather stay on 1.5 and get
Tomcat coordinated.
Hope this makes sense... My apologies if this is a duplicate or there is an
easy answer that I have simply overlooked.
Keep up the good work
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org