The Server Encountered an Internal Error

Sometimes, when testing your Visual Web application, you might get a page with the following unhelpful error:

HTTP Status 500 -

type Status report

message

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

To find out what the real problem, go back to the NetBeans IDE and click the tab for the server's log (usually in the same area as the output window). There, you will find a more helpful description of the error. For example, you might see:

Dec 21, 2006 5:24:21 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
javax.faces.el.PropertyNotFoundException: java.lang.RuntimeException:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 
'org.apache.derby.jdbc.ClientDriver'
In this particular case, I had not made the database driver available to the server. I resolved the problem by copying my database's JDBC3 compliant driver to the server's common library folder. With the Tomcat server, this would be something like apache-tomcat-5.5.17\\common\\lib.

If the error is a programming error, such as a class cast error, you can search through the error output for the name of your page. If such line exists in the output, it will show the line number of the erroneous statement. Look for the names of your managed beans as well.

You can send diagnostic statements to the log from your page beans and managed beans by calling log("put your message here").

Comments:

How about this? I´ll get a lot of 500 error codes when developing in VWP environment. But nothing is written in the log-files!!! Thanks Thomas

Posted by Thomas on February 01, 2007 at 07:54 PM PST #

THis is what mine says can you help me?? Type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Cannot open connection org.infohazard.maverick.ctl.Throwaway2.go(Throwaway2.java:51) org.infohazard.maverick.flow.ThrowawayControllerAdapter.go(ThrowawayControllerAdapter.java:54) org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:66) org.infohazard.maverick.Dispatcher.service(Dispatcher.java:345) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) 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.AbstractBatcher.openConnection(AbstractBatcher.java:384) org.hibernate.jdbc.JDBCContext.connect(JDBCContext.java:141) org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:88) org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49) org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19) org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:204) org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1007) com.games.web.ctl.ControllerAuth.login(ControllerAuth.java:45) com.games.web.ctl.LoginSubmit.perform(LoginSubmit.java:57) org.infohazard.maverick.ctl.ThrowawayBean2.go(ThrowawayBean2.java:44) org.infohazard.maverick.ctl.Throwaway2.go(Throwaway2.java:47) org.infohazard.maverick.flow.ThrowawayControllerAdapter.go(ThrowawayControllerAdapter.java:54) org.infohazard.maverick.flow.CommandBase.go(CommandBase.java:66) org.infohazard.maverick.Dispatcher.service(Dispatcher.java:345) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

Posted by Tara on March 17, 2007 at 02:05 AM PDT #

Thanks man!! I have the same problem.

Posted by Luis on November 30, 2007 at 12:53 PM PST #

Post a Comment:
Comments are closed for this entry.
About

divas

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today