  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | RES: URGENT, PLEASE. The old Bug with bean cache? | RES: URGENT, PLEASE. The old Bug with bean cache? 2003-09-25 - By Jose Euclides da Silva Junior - DATAPREVRJ
Back HERE IS THE ERROR MESSAGE . Thanks in advance, Euclides.
The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException  at org.apache.jasper.servlet.JspServletWrapper (JspServletWrapper.java:2 48) at org.apache.jasper.servlet.JspServlet (JspServlet.java:295) at org.apache.jasper.servlet.JspServlet (JspServlet.java:241) at javax.servlet.http.HttpServlet (HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher (ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher (ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher (ApplicationDispatcher .java:356) at BancoServlet.recuperaDicaTopico(BancoServlet.java:370) at BancoServlet.service(BancoServlet.java:228) at javax.servlet.http.HttpServlet (HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain (Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve (StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline (StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase (ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve (StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline (StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase (ContainerBase.java:995) at org.apache.catalina.core.StandardContext (StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve (StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve (ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline (StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase (ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve (StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline (StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase (ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter (CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor (Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread (Thread.java:536)
root cause
java.lang.NullPointerException  at org.apache.jsp.rodrigo2_jsp._jspService(rodrigo2_jsp.java:228) at org.apache.jasper.runtime.HttpJspBase (HttpJspBase.java:137) at javax.servlet.http.HttpServlet (HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper (JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet (JspServlet.java:295) at org.apache.jasper.servlet.JspServlet (JspServlet.java:241) at javax.servlet.http.HttpServlet (HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher (ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher (ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher (ApplicationDispatcher .java:356) at BancoServlet.recuperaDicaTopico(BancoServlet.java:370) at BancoServlet.service(BancoServlet.java:228) at javax.servlet.http.HttpServlet (HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain (Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve (StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline (StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase (ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve (StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline $StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline (StandardPipeline.java:480)
HERE IS WHERE TOMCAT SHOWS THE ERROR.
The bean name is dica. I made a test, putting a line with a condition like this: if (dica == null) // NEW ! System.out.println("valorrr"+dica.getteDescricaodica()); and this condition is true when this app runs!!! Why? __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___ __ ____ ____ ____ ___
System.out.println(" passei no getatribute " + autorizacao); for(int i = 0;pega.hasNext()&&i<10;i++) { dica = (Dica)pega.next(); int limite = 0; if (dica == null) // NEW ! System.out.println("valorrr"+dica.getteDescricaodica()); if (dica.getteDescricaodica().length() <= 40 ) limite = dica.getteDescricaodica().length(); else limite = 40; if (limite == 0) limite = 1; if ( autorizacao == null ) { %> <font class="Style_1"><a href=# onClick='javascript:window.open("http://wtrjo210/apresentaDica.jsp?num=<%=pa gina_atual%>&pos=<%=i+1%>","","width=640,height=450,resizable=no,location=no ,status=no,scrollbars=no,left=0,top=0");'><b><%=dica.getnomeDica()%></b></a> </font> <% } else { %> <font class="Style_1"><a href=# onClick='javascript:window.open("http://wtrjo210/apresentaaltDica.jsp?num=<% =pagina_atual%>&pos=<%=i+1%>","","width=640,height=450,resizable=no,location =no,status=no,scrollbars=no,left=0,top=0");'><b><%=dica.getnomeDica()%></b>< /a></font> <% } %> <font class="Style_1"> <i><%=dica.getNmAutor()%></i></font>
<br> <font class="Style_1"><%=dica.getteDescricaodica().substring(0,limite)%>...</font>
<br> <% }
-- --Mensagem original-- -- De: Shapira, Yoav [mailto:Yoav.Shapira@(protected)] Enviada em: quinta-feira, 25 de setembro de 2003 11:53 Para: Tomcat Users List Assunto: RE: URGENT, PLEASE. The old Bug with bean cache?
Howdy, You should post the logs with the full error and your relevant source code.
Yoav Shapira Millennium ChemInformatics
>-- --Original Message-- -- >From: Jose Euclides da Silva Junior - DATAPREVRJ >[mailto:Jose.Euclides@(protected)] >Sent: Thursday, September 25, 2003 10:40 AM >To: 'tomcat-user@(protected)' >Subject: URGENT, PLEASE. The old Bug with bean cache? > >Hi gurus, >a little helping hand, please! I have updated my bean and so, i have put >this new bean version in right package. However, the problem begins >whenever a new bean object is created (instanced) by a servlet and >captured >by a jsp later. The browser returns me error - 500. Probably, i guess my >TomCat 4.1.18 is working with old bean version, instead of the newer. What >should i do? >Euclides. > >-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ >To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) >For additional commands, e-mail: tomcat-user-help@(protected)
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |