facebook

The server encountered an internal error () that prevented i

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #256335 Reply

    vamsi_t
    Member

    The following error occured while executing the jsp page.

    Actually i am coding and compiling it on windows on hostng it on linux server.
    —————————————————————————————–

    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: /dbjsp.jsp:123

    120: Session sess1=FirstSessionFactory.currentSession();
    121: String hql=”from Employee order by Ename”;
    122: Query qry=sess1.createQuery(hql);
    123: List emplist=qry.list();
    124: Object emparray[]=emplist.toArray();
    125: if( emparray.length>0 )
    126: for(int i=0;i<emparray.length;i++){

    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    root cause

    org.hibernate.exception.GenericJDBCException: Cannot open connection
    org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)
    org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)
    org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
    org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:301)
    org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110)
    org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88)
    org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162)
    org.hibernate.loader.Loader.doQuery(Loader.java:390)
    org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
    org.hibernate.loader.Loader.doList(Loader.java:1593)
    org.hibernate.loader.Loader.list(Loader.java:1577)
    org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
    org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
    org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
    org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
    org.apache.jsp.dbjsp_jsp._jspService(dbjsp_jsp.java:174)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

    Somebody help me please

    thanks

    vamsi

    #256414 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    #256427 Reply

    Haris Peco
    Member

    Vamsi,

    It looks that your hibernate cfg.xml file haven’t good jdbc connection information
    Please check your cfg.xml settings and try if it work in db explorer

    Thanks
    Peco

    #256501 Reply

    vamsi_t
    Member

    Thanks . It is working now

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: The server encountered an internal error () that prevented i

You must be logged in to post in the forum log in