jsp problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sssk28
    New Member
    • Jun 2007
    • 8

    #1

    jsp problem

    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.jasp er.JasperExcept ion: Exception in JSP: /test/testmysql.jsp:1 2

    9: Connection conn= DriverManager.g etConnection(ur l);
    10: Statement stmt=conn.creat eStatement(Resu ltSet.TYPE_SCRO LL_SENSITIVE,Re sultSet.CONCUR_ UPDATABLE);
    11: String sql="select fname,lname from collector";
    12: ResultSet rs=stmt.execute Query(sql);
    13: while(rs.next() ) {%>
    14: <%=rs.getString (1)%>
    15: <%=rs.getString (2)%>


    Stacktrace:
    org.apache.jasp er.servlet.JspS ervletWrapper.h andleJspExcepti on(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.service( jasper5-compiler-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)

    root cause

    javax.servlet.S ervletException : Error during query: Unexpected Exception: java.io.CharCon versionExceptio n message given: null

    Nested Stack Trace:


    ** BEGIN NESTED EXCEPTION **

    java.io.CharCon versionExceptio n

    STACKTRACE:

    java.io.CharCon versionExceptio n
    at gnu.gcj.convert .Input_iconv.re ad(libgcj.so.7r h)
    at java.lang.Strin g.init(libgcj.s o.7rh)
    at java.lang.Strin g.<init>(libgcj .so.7rh)
    at com.mysql.jdbc. SingleByteChars etConverter.<in it>(SingleByteC harsetConverter .java:153)
    at com.mysql.jdbc. SingleByteChars etConverter.ini tCharset(Single ByteCharsetConv erter.java:108)
    at com.mysql.jdbc. SingleByteChars etConverter.get Instance(Single ByteCharsetConv erter.java:86)
    at com.mysql.jdbc. Connection.getC harsetConverter (Connection.jav a:3471)
    at com.mysql.jdbc. Field.getString FromBytes(Field .java:598)
    at com.mysql.jdbc. Field.getOrigin alTableName(Fie ld.java:546)
    at com.mysql.jdbc. UpdatableResult Set.checkUpdata bility(Updatabl eResultSet.java :266)
    at com.mysql.jdbc. UpdatableResult Set.<init>(Upda tableResultSet. java:134)
    at com.mysql.jdbc. MysqlIO.buildRe sultSetWithRows (MysqlIO.java:2 072)
    at com.mysql.jdbc. MysqlIO.getResu ltSet(MysqlIO.j ava:443)
    at com.mysql.jdbc. MysqlIO.readRes ultsForQueryOrU pdate(MysqlIO.j ava:2040)
    at com.mysql.jdbc. MysqlIO.readAll Results(MysqlIO .java:1443)
    at com.mysql.jdbc. MysqlIO.sqlQuer yDirect(MysqlIO .java:1777)
    at com.mysql.jdbc. Connection.exec SQL(Connection. java:3243)
    at com.mysql.jdbc. Connection.exec SQL(Connection. java:3172)
    at com.mysql.jdbc. Statement.execu teQuery(Stateme nt.java:1197)
    at org.apache.jsp. test.testmysql_ jsp._jspService (testmysql_jsp. java:54)
    at org.apache.jasp er.runtime.Http JspBase.service (jasper5-runtime-5.5.17.jar.so)
    at javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)
    at org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(jasper5-compiler-5.5.17.jar.so)
    at org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(jasper5-compiler-5.5.17.jar.so)
    at org.apache.jasp er.servlet.JspS ervlet.service( jasper5-compiler-5.5.17.jar.so)
    at javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)
    at org.apache.cata lina.core.Appli cationFilterCha in.internalDoFi lter(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Appli cationFilterCha in.doFilter(cat alina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardWrapperValve .invoke(catalin a-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardContextValve .invoke(catalin a-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardHostValve.in voke(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.valves.Err orReportValve.i nvoke(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardEngineValve. invoke(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.connector. CoyoteAdapter.s ervice(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.coyo te.http11.Http1 1Processor.proc ess(tomcat-http-5.5.17.jar.so)
    at org.apache.coyo te.http11.Http1 1BaseProtocol$H ttp11Connection Handler.process Connection(tomc at-http-5.5.17.jar.so)
    at org.apache.tomc at.util.net.Poo lTcpEndpoint.pr ocessSocket(tom cat-util-5.5.17.jar.so)
    at org.apache.tomc at.util.net.Lea derFollowerWork erThread.runIt( tomcat-util-5.5.17.jar.so)
    at org.apache.tomc at.util.threads .ThreadPool$Con trolRunnable.ru n(tomcat-util-5.5.17.jar.so)
    at java.lang.Threa d.run(libgcj.so .7rh)


    ** END NESTED EXCEPTION **


    org.apache.jasp er.runtime.Page ContextImpl.doH andlePageExcept ion(jasper5-runtime-5.5.17.jar.so)
    org.apache.jasp er.runtime.Page ContextImpl.han dlePageExceptio n(jasper5-runtime-5.5.17.jar.so)
    org.apache.jsp. test.testmysql_ jsp._jspService (testmysql_jsp. java:77)
    org.apache.jasp er.runtime.Http JspBase.service (jasper5-runtime-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.service( jasper5-compiler-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)

    root cause

    java.sql.SQLExc eption: Error during query: Unexpected Exception: java.io.CharCon versionExceptio n message given: null

    Nested Stack Trace:


    ** BEGIN NESTED EXCEPTION **

    java.io.CharCon versionExceptio n

    STACKTRACE:

    java.io.CharCon versionExceptio n
    at gnu.gcj.convert .Input_iconv.re ad(libgcj.so.7r h)
    at java.lang.Strin g.init(libgcj.s o.7rh)
    at java.lang.Strin g.<init>(libgcj .so.7rh)
    at com.mysql.jdbc. SingleByteChars etConverter.<in it>(SingleByteC harsetConverter .java:153)
    at com.mysql.jdbc. SingleByteChars etConverter.ini tCharset(Single ByteCharsetConv erter.java:108)
    at com.mysql.jdbc. SingleByteChars etConverter.get Instance(Single ByteCharsetConv erter.java:86)
    at com.mysql.jdbc. Connection.getC harsetConverter (Connection.jav a:3471)
    at com.mysql.jdbc. Field.getString FromBytes(Field .java:598)
    at com.mysql.jdbc. Field.getOrigin alTableName(Fie ld.java:546)
    at com.mysql.jdbc. UpdatableResult Set.checkUpdata bility(Updatabl eResultSet.java :266)
    at com.mysql.jdbc. UpdatableResult Set.<init>(Upda tableResultSet. java:134)
    at com.mysql.jdbc. MysqlIO.buildRe sultSetWithRows (MysqlIO.java:2 072)
    at com.mysql.jdbc. MysqlIO.getResu ltSet(MysqlIO.j ava:443)
    at com.mysql.jdbc. MysqlIO.readRes ultsForQueryOrU pdate(MysqlIO.j ava:2040)
    at com.mysql.jdbc. MysqlIO.readAll Results(MysqlIO .java:1443)
    at com.mysql.jdbc. MysqlIO.sqlQuer yDirect(MysqlIO .java:1777)
    at com.mysql.jdbc. Connection.exec SQL(Connection. java:3243)
    at com.mysql.jdbc. Connection.exec SQL(Connection. java:3172)
    at com.mysql.jdbc. Statement.execu teQuery(Stateme nt.java:1197)
    at org.apache.jsp. test.testmysql_ jsp._jspService (testmysql_jsp. java:54)
    at org.apache.jasp er.runtime.Http JspBase.service (jasper5-runtime-5.5.17.jar.so)
    at javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)
    at org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(jasper5-compiler-5.5.17.jar.so)
    at org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(jasper5-compiler-5.5.17.jar.so)
    at org.apache.jasp er.servlet.JspS ervlet.service( jasper5-compiler-5.5.17.jar.so)
    at javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)
    at org.apache.cata lina.core.Appli cationFilterCha in.internalDoFi lter(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Appli cationFilterCha in.doFilter(cat alina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardWrapperValve .invoke(catalin a-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardContextValve .invoke(catalin a-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardHostValve.in voke(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.valves.Err orReportValve.i nvoke(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.core.Stand ardEngineValve. invoke(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.cata lina.connector. CoyoteAdapter.s ervice(catalina-5.5.17.jar.sovg hioe.so)
    at org.apache.coyo te.http11.Http1 1Processor.proc ess(tomcat-http-5.5.17.jar.so)
    at org.apache.coyo te.http11.Http1 1BaseProtocol$H ttp11Connection Handler.process Connection(tomc at-http-5.5.17.jar.so)
    at org.apache.tomc at.util.net.Poo lTcpEndpoint.pr ocessSocket(tom cat-util-5.5.17.jar.so)
    at org.apache.tomc at.util.net.Lea derFollowerWork erThread.runIt( tomcat-util-5.5.17.jar.so)
    at org.apache.tomc at.util.threads .ThreadPool$Con trolRunnable.ru n(tomcat-util-5.5.17.jar.so)
    at java.lang.Threa d.run(libgcj.so .7rh)


    ** END NESTED EXCEPTION **


    com.mysql.jdbc. Connection.exec SQL(Connection. java:3296)
    com.mysql.jdbc. Connection.exec SQL(Connection. java:3172)
    com.mysql.jdbc. Statement.execu teQuery(Stateme nt.java:1197)
    org.apache.jsp. test.testmysql_ jsp._jspService (testmysql_jsp. java:54)
    org.apache.jasp er.runtime.Http JspBase.service (jasper5-runtime-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.service( jasper5-compiler-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-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.
  • sssk28
    New Member
    • Jun 2007
    • 8

    #2
    problem with getSting() function

    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.jasp er.JasperExcept ion: Exception in JSP: /test/index2.jsp:113

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


    Stacktrace:
    org.apache.jasp er.servlet.JspS ervletWrapper.h andleJspExcepti on(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.service( jasper5-compiler-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)

    root cause

    java.io.CharCon versionExceptio n
    gnu.gcj.convert .Input_iconv.re ad(libgcj.so.7r h)
    java.lang.Strin g.init(libgcj.s o.7rh)
    java.lang.Strin g.<init>(libgcj .so.7rh)
    com.mysql.jdbc. SingleByteChars etConverter.<in it>(SingleByteC harsetConverter .java:153)
    com.mysql.jdbc. SingleByteChars etConverter.ini tCharset(Single ByteCharsetConv erter.java:108)
    com.mysql.jdbc. SingleByteChars etConverter.get Instance(Single ByteCharsetConv erter.java:86)
    com.mysql.jdbc. Connection.getC harsetConverter (Connection.jav a:3471)
    com.mysql.jdbc. Field.getString FromBytes(Field .java:598)
    com.mysql.jdbc. Field.getName(F ield.java:502)
    com.mysql.jdbc. ResultSet.build IndexMapping(Re sultSet.java:61 5)
    com.mysql.jdbc. ResultSet.findC olumn(ResultSet .java:946)
    com.mysql.jdbc. ResultSet.getSt ring(ResultSet. java:5613)
    org.apache.jsp. test.index2_jsp ._jspService(in dex2_jsp.java:1 62)
    org.apache.jasp er.runtime.Http JspBase.service (jasper5-runtime-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-servlet-2.4-api-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(jasper5-compiler-5.5.17.jar.so)
    org.apache.jasp er.servlet.JspS ervlet.service( jasper5-compiler-5.5.17.jar.so)
    javax.servlet.h ttp.HttpServlet .service(tomcat 5-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.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      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.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        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

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by JosAH
          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 .

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            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.

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by Motoma
              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!

              Comment

              • JosAH
                Recognized Expert MVP
                • Mar 2007
                • 11453

                #8
                Originally posted by r035198x
                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 ;-)

                Comment

                • JosAH
                  Recognized Expert MVP
                  • Mar 2007
                  • 11453

                  #9
                  Originally posted by r035198x
                  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

                  Comment

                  • r035198x
                    MVP
                    • Sep 2006
                    • 13225

                    #10
                    Originally posted by JosAH
                    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.

                    Comment

                    • JosAH
                      Recognized Expert MVP
                      • Mar 2007
                      • 11453

                      #11
                      Originally posted by r035198x
                      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 ;-)

                      Comment

                      Working...