469,898 Members | 1,611 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

jsp problem

8
i have installed fedora core 6 and i am getting following error:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Exception in JSP: /test/testmysql.jsp:12

9: Connection conn= DriverManager.getConnection(url);
10: Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SE NSITIVE,ResultSet.CONCUR_UPDATABLE);
11: String sql="select fname,lname from collector";
12: ResultSet rs=stmt.executeQuery(sql);
13: while(rs.next()) {%>
14: <%=rs.getString(1)%>
15: <%=rs.getString(2)%>


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServletWrapper.servic e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.service(jaspe r5-compiler-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)

root cause

javax.servlet.ServletException: Error during query: Unexpected Exception: java.io.CharConversionException message given: null

Nested Stack Trace:


** BEGIN NESTED EXCEPTION **

java.io.CharConversionException

STACKTRACE:

java.io.CharConversionException
at gnu.gcj.convert.Input_iconv.read(libgcj.so.7rh)
at java.lang.String.init(libgcj.so.7rh)
at java.lang.String.<init>(libgcj.so.7rh)
at com.mysql.jdbc.SingleByteCharsetConverter.<init>(S ingleByteCharsetConverter.java:153)
at com.mysql.jdbc.SingleByteCharsetConverter.initChar set(SingleByteCharsetConverter.java:108)
at com.mysql.jdbc.SingleByteCharsetConverter.getInsta nce(SingleByteCharsetConverter.java:86)
at com.mysql.jdbc.Connection.getCharsetConverter(Conn ection.java:3471)
at com.mysql.jdbc.Field.getStringFromBytes(Field.java :598)
at com.mysql.jdbc.Field.getOriginalTableName(Field.ja va:546)
at com.mysql.jdbc.UpdatableResultSet.checkUpdatabilit y(UpdatableResultSet.java:266)
at com.mysql.jdbc.UpdatableResultSet.<init>(Updatable ResultSet.java:134)
at com.mysql.jdbc.MysqlIO.buildResultSetWithRows(Mysq lIO.java:2072)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:4 43)
at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate (MysqlIO.java:2040)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java :1443)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :1777)
at com.mysql.jdbc.Connection.execSQL(Connection.java: 3243)
at com.mysql.jdbc.Connection.execSQL(Connection.java: 3172)
at com.mysql.jdbc.Statement.executeQuery(Statement.ja va:1197)
at org.apache.jsp.test.testmysql_jsp._jspService(test mysql_jsp.java:54)
at org.apache.jasper.runtime.HttpJspBase.service(jasp er5-runtime-5.5.17.jar.so)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
at org.apache.jasper.servlet.JspServletWrapper.servic e(jasper5-compiler-5.5.17.jar.so)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(jasper5-compiler-5.5.17.jar.so)
at org.apache.jasper.servlet.JspServlet.service(jaspe r5-compiler-5.5.17.jar.so)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardWrapperValve.invo ke(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardContextValve.invo ke(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardHostValve.invoke( catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.valves.ErrorReportValve.invoke (catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardEngineValve.invok e(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.connector.CoyoteAdapter.servic e(catalina-5.5.17.jar.sovghioe.so)
at org.apache.coyote.http11.Http11Processor.process(t omcat-http-5.5.17.jar.so)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(tomcat-http-5.5.17.jar.so)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(tomcat-util-5.5.17.jar.so)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(tomcat-util-5.5.17.jar.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(tomcat-util-5.5.17.jar.so)
at java.lang.Thread.run(libgcj.so.7rh)


** END NESTED EXCEPTION **


org.apache.jasper.runtime.PageContextImpl.doHandle PageException(jasper5-runtime-5.5.17.jar.so)
org.apache.jasper.runtime.PageContextImpl.handlePa geException(jasper5-runtime-5.5.17.jar.so)
org.apache.jsp.test.testmysql_jsp._jspService(test mysql_jsp.java:77)
org.apache.jasper.runtime.HttpJspBase.service(jasp er5-runtime-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
org.apache.jasper.servlet.JspServletWrapper.servic e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.service(jaspe r5-compiler-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)

root cause

java.sql.SQLException: Error during query: Unexpected Exception: java.io.CharConversionException message given: null

Nested Stack Trace:


** BEGIN NESTED EXCEPTION **

java.io.CharConversionException

STACKTRACE:

java.io.CharConversionException
at gnu.gcj.convert.Input_iconv.read(libgcj.so.7rh)
at java.lang.String.init(libgcj.so.7rh)
at java.lang.String.<init>(libgcj.so.7rh)
at com.mysql.jdbc.SingleByteCharsetConverter.<init>(S ingleByteCharsetConverter.java:153)
at com.mysql.jdbc.SingleByteCharsetConverter.initChar set(SingleByteCharsetConverter.java:108)
at com.mysql.jdbc.SingleByteCharsetConverter.getInsta nce(SingleByteCharsetConverter.java:86)
at com.mysql.jdbc.Connection.getCharsetConverter(Conn ection.java:3471)
at com.mysql.jdbc.Field.getStringFromBytes(Field.java :598)
at com.mysql.jdbc.Field.getOriginalTableName(Field.ja va:546)
at com.mysql.jdbc.UpdatableResultSet.checkUpdatabilit y(UpdatableResultSet.java:266)
at com.mysql.jdbc.UpdatableResultSet.<init>(Updatable ResultSet.java:134)
at com.mysql.jdbc.MysqlIO.buildResultSetWithRows(Mysq lIO.java:2072)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:4 43)
at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate (MysqlIO.java:2040)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java :1443)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java :1777)
at com.mysql.jdbc.Connection.execSQL(Connection.java: 3243)
at com.mysql.jdbc.Connection.execSQL(Connection.java: 3172)
at com.mysql.jdbc.Statement.executeQuery(Statement.ja va:1197)
at org.apache.jsp.test.testmysql_jsp._jspService(test mysql_jsp.java:54)
at org.apache.jasper.runtime.HttpJspBase.service(jasp er5-runtime-5.5.17.jar.so)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
at org.apache.jasper.servlet.JspServletWrapper.servic e(jasper5-compiler-5.5.17.jar.so)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(jasper5-compiler-5.5.17.jar.so)
at org.apache.jasper.servlet.JspServlet.service(jaspe r5-compiler-5.5.17.jar.so)
at javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardWrapperValve.invo ke(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardContextValve.invo ke(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardHostValve.invoke( catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.valves.ErrorReportValve.invoke (catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.core.StandardEngineValve.invok e(catalina-5.5.17.jar.sovghioe.so)
at org.apache.catalina.connector.CoyoteAdapter.servic e(catalina-5.5.17.jar.sovghioe.so)
at org.apache.coyote.http11.Http11Processor.process(t omcat-http-5.5.17.jar.so)
at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(tomcat-http-5.5.17.jar.so)
at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(tomcat-util-5.5.17.jar.so)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(tomcat-util-5.5.17.jar.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(tomcat-util-5.5.17.jar.so)
at java.lang.Thread.run(libgcj.so.7rh)


** END NESTED EXCEPTION **


com.mysql.jdbc.Connection.execSQL(Connection.java: 3296)
com.mysql.jdbc.Connection.execSQL(Connection.java: 3172)
com.mysql.jdbc.Statement.executeQuery(Statement.ja va:1197)
org.apache.jsp.test.testmysql_jsp._jspService(test mysql_jsp.java:54)
org.apache.jasper.runtime.HttpJspBase.service(jasp er5-runtime-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
org.apache.jasper.servlet.JspServletWrapper.servic e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.service(jaspe r5-compiler-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Jun 15 '07 #1
10 1603
sssk28
8
when i run my jsp project on Fedora core 6 with jsp 2.0 and with mysql database i get following problem:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Exception in JSP: /test/index2.jsp:113

110:
111: <%
112: while(rs1.next())
113: {family=rs1.getString("family");
114: {
115: %>
116: <option value="<%=family%>"><%=family%></option>;


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServletWrapper.servic e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.service(jaspe r5-compiler-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)

root cause

java.io.CharConversionException
gnu.gcj.convert.Input_iconv.read(libgcj.so.7rh)
java.lang.String.init(libgcj.so.7rh)
java.lang.String.<init>(libgcj.so.7rh)
com.mysql.jdbc.SingleByteCharsetConverter.<init>(S ingleByteCharsetConverter.java:153)
com.mysql.jdbc.SingleByteCharsetConverter.initChar set(SingleByteCharsetConverter.java:108)
com.mysql.jdbc.SingleByteCharsetConverter.getInsta nce(SingleByteCharsetConverter.java:86)
com.mysql.jdbc.Connection.getCharsetConverter(Conn ection.java:3471)
com.mysql.jdbc.Field.getStringFromBytes(Field.java :598)
com.mysql.jdbc.Field.getName(Field.java:502)
com.mysql.jdbc.ResultSet.buildIndexMapping(ResultS et.java:615)
com.mysql.jdbc.ResultSet.findColumn(ResultSet.java :946)
com.mysql.jdbc.ResultSet.getString(ResultSet.java: 5613)
org.apache.jsp.test.index2_jsp._jspService(index2_ jsp.java:162)
org.apache.jasper.runtime.HttpJspBase.service(jasp er5-runtime-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
org.apache.jasper.servlet.JspServletWrapper.servic e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(jasper5-compiler-5.5.17.jar.so)
org.apache.jasper.servlet.JspServlet.service(jaspe r5-compiler-5.5.17.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Jun 15 '07 #2
Motoma
3,237 Expert 2GB
I have moved this thread to the Java forum with the hopes that the experts there will be able to provide you with more help than those in the Linux forum.
Jun 19 '07 #3
JosAH
11,448 Expert 8TB
Have you installed Sun's jdk and jre? I suspect that gnu's implementation doesn't
supply the character encoding it was looking for.

kind regards,

Jos
Jun 19 '07 #4
r035198x
13,262 8TB
Have you installed Sun's jdk and jre? I suspect that gnu's implementation doesn't
supply the character encoding it was looking for.

kind regards,

Jos
I believe you are right .
Jun 19 '07 #5
Motoma
3,237 Expert 2GB
I have moved this question to the Java forum with the hopes that the experts there will be able to provide you with a solution to your problem.
Jun 19 '07 #6
r035198x
13,262 8TB
I have moved this question to the Java forum with the hopes that the experts there will be able to provide you with a solution to your problem.
Don't get confused folks, 2 threads merged into one!
Jun 19 '07 #7
JosAH
11,448 Expert 8TB
Don't get confused folks, 2 threads merged into one!
People repeat themselves when they're under stress.
People repeat themselves when they're under stress.

kind regards,

Jos ;-)
Jun 19 '07 #8
JosAH
11,448 Expert 8TB
I believe you are right .
Given that humongous stack trace it's the only conclusion I can come up with.
Let's wait for the OP and see.

kind regards,

Jos
Jun 19 '07 #9
r035198x
13,262 8TB
People repeat themselves when they're under stress.
People repeat themselves when they're under stress.

kind regards,

Jos ;-)
If anyone is under stress right now I suggest they take time to crack this.
Jun 19 '07 #10
JosAH
11,448 Expert 8TB
If anyone is under stress right now I suggest they take time to crack this.
Nah, I'm not under stress and I'm way too lazy to stare at an almost random
sequence of bits that can be almost anything.

kind regards,

Jos ;-)
Jun 19 '07 #11

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Kostatus | last post: by
117 posts views Thread by Peter Olcott | last post: by
18 posts views Thread by Ian Stanley | last post: by
28 posts views Thread by Jon Davis | last post: by
6 posts views Thread by Ammar | last post: by
2 posts views Thread by Mike Collins | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.