-- Jeanfrancois
Nicolas Fabry wrote:
What is strange is that exactly the same program is running on another PC (but with Windows XP -- I don't think the problem is that one). Thus, Is it really the java code the problem?
----- Original Message ----- From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 05, 2003 3:18 PM Subject: RE: Problem with JSP to access XML files
communication, and may contain information that is confidential, proprietaryHowdy, You're call setErrorHandler with a null argument (exh) is null. That's why the error happens. Make sure you have an actual error handler that's not null before you call that method.
Yoav Shapira Millennium ChemInformatics
prevented-----Original Message----- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 3:14 PM To: Tomcat Users List Subject: Re: Problem with JSP to access XML files
(xpert is a package for all my classes)
I put in attachements the differents files who are responsibles of this error. The error appears in the method LoadXML in the DocXML.java file
the line wich is the cause of this problem is : myReader.setErrorHandler(exh);
Thank you very much for your help
----- Original Message ----- From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 05, 2003 2:50 PM Subject: RE: Problem with JSP to access XML files
-----------------------------------------------------------------------Howdy, Post the relevant part of Users.java and DocXML.java.
Yoav Shapira Millennium ChemInformatics
written in-----Original Message----- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: Problem with JSP to access XML files
Hello,
I have a problem since one week.
I have to upgrade an existing system working with JSP and XML files.
There is a login page written in .jsp and the login/password are
a XML file.lines of
Any time I try tu access the system (by loggin), a compilation error
appear.
I'm using TOMCAT 4.1.29 and J2SDK 1.4.1_05.
It's a little bit long, but you can have a look just to the firsts
the ROOT CAUSE (and the exception)
HTTP Status 500 -
----
- ----
type Exception report
message
description The server encountered an internal error () that
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)itorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jfrom fulfilling this request.
exception
org.apache.jasper.JasperException
at
ava:org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
2
54)
at
)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
atioorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
n
FilterChain.java:247)
at
terCorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
h
ain.java:193)
at
ve.jorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
a
va:256)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:643)
at
480)org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
ve.jorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
a
va:191)
at
invoorg.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
k
eNext(StandardPipeline.java:643)
at
rBasorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
e
.java:494)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:641)
at
480)org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
17)org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
at
a:18org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
0
)
at
invoorg.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
k
eNext(StandardPipeline.java:643)
at
alveorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
.
java:171)
at
invoorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
k
eNext(StandardPipeline.java:641)
at
a:17org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
2
)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:641)
at
480)org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
.javorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
a
:174)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:643)
at
480)
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.xerces.parsers.AbstractSAXParser.setErrorHandler(Unknownorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7at
81)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
at
Connorg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
e
ction(Http11Protocol.java:549)
at
89)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
at
l.ja
v a:666) at java.lang.Thread.run(Thread.java:536)
root cause
java.lang.NullPointerException
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)Source)
at xpert.DocXML.loadXML(DocXML.java:80)
at xpert.Users.checkLogin(Users.java:39)
at org.apache.jsp.measurer_jsp._jspService(measurer_jsp.java:57)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jat javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
ava:org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
2
10)
at
)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
atioorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
n
FilterChain.java:247)
at
terCorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
h
ain.java:193)
at
ve.jorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
a
va:256)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:643)
at
480)org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
ve.jorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
a
va:191)
at
invoorg.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
k
eNext(StandardPipeline.java:643)
at
rBasorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
e
.java:494)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:641)
at
480)org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
17)org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
at
a:18org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
0
)
at
invoorg.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
k
eNext(StandardPipeline.java:643)
at
alveorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
.
java:171)
at
invoorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
k
eNext(StandardPipeline.java:641)
at
a:17org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
2
)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:641)
at
480)org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
.javorg.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
a
:174)
at
invoorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
k
eNext(StandardPipeline.java:643)
at
480)
atorg.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
useorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7at
81)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
at
Connorg.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
e
ction(Http11Protocol.java:549)
at
89)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
at
l.ja-----------------------------------------------------------------------
v a:666) at java.lang.Thread.run(Thread.java:536)
----
- ----
Apache Tomcat/4.1.29
It's maybe cause of the reference of the XML file. Have I to put
c:\path_to_wath_I_want or file://c:/path_to_wath_I_want? Have I to
to---------------------------------------------------------------------relatives links or not? The XML file is like this :
<?xml version="1.0" encoding="UTF-8" ?> - <!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Alexandre (Alexandre) --> - <users xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./Xsd/users.xsd"> <user login="nicolas" pswd="nicolas" status="admin" /> </users>
Really thanks to help me resolve this problem
Nicolas Fabry
communication, and may contain information that is confidential,To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business
proprietary
and/or privileged. This e-mail is intended only for the individual(s)
whom it is addressed, and may not be saved, copied, printed, disclosedor
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
