473,416 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

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 1823
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

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

Similar topics

11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
18
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: =?Utf-8?B?am8uZWw=?= | last post by:
Hello All, I am developing an Input Methop (IM) for PocketPC / Windows Mobile (PPC/WM). On some devices the IM will not start. The IM appears in the IM-List but when it is selected from the...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
9
by: AceKnocks | last post by:
I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.