Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
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
Reply:     1     2  

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 Source code of org.apache.jasper.JasperException
  at
org.apache.jasper.servlet.JspServletWrapper Source code of org.apache.jasper.servlet.JspServletWrapper(JspServletWrapper.java:2
48)
  at
org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:295)
  at org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:241)
  at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher(ApplicationDispatcher.
java:684)
  at
org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher(ApplicationDispatch
er.java:432)
  at
org.apache.catalina.core.ApplicationDispatcher Source code of 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 Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(Application
FilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFilterCh
ain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperValve.ja
va:260)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextValve.ja
va:191)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext(StandardContext.java:2415)
  at
org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.java:180
)
  at
org.apache.catalina.core.StandardPipeline Source code of 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 Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve.java:172
)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve.java
:174)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
  at
org.apache.coyote.tomcat4.CoyoteAdapter Source code of org.apache.coyote.tomcat4.CoyoteAdapter(CoyoteAdapter.java:223)
  at
org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor.java:432)
  at
org.apache.coyote.http11.Http11Protocol Source code of 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 Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
  at java.lang.Thread Source code of java.lang.Thread(Thread.java:536)


root cause

java.lang.NullPointerException Source code of java.lang.NullPointerException
  at org.apache.jsp.rodrigo2_jsp._jspService(rodrigo2_jsp.java:228)
  at
org.apache.jasper.runtime.HttpJspBase Source code of org.apache.jasper.runtime.HttpJspBase(HttpJspBase.java:137)
  at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
  at
org.apache.jasper.servlet.JspServletWrapper Source code of org.apache.jasper.servlet.JspServletWrapper(JspServletWrapper.java:2
04)
  at
org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:295)
  at org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:241)
  at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher(ApplicationDispatcher.
java:684)
  at
org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher(ApplicationDispatch
er.java:432)
  at
org.apache.catalina.core.ApplicationDispatcher Source code of 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 Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
  at
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(Application
FilterChain.java:247)
  at
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFilterCh
ain.java:193)
  at
org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperValve.ja
va:260)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:480)
  at
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
  at
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextValve.ja
va:191)
  at
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline Source code of 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">&nbsp;&nbsp;&nbsp;&nbsp;<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)



©2008 junlu.com - Jax Systems, LLC, U.S.A.