Exception : invalid exceptions file: malformed XML occurs

Hello,

I sometimes recieve this error message in my application.
When I first start the tomcat application works without problem.
After sometime it starts giving this exception and the exception occurs on ALL jsp pages unless I restart the Tomcat.

Do anybody know what this exception occurs?

Thanks…

***********
!Error!
An error occurred in the application program. Please report the following problem to your webmaster.
Error message: invalid exceptions file: malformed XML
Help message:
Exception Type: ApplicationException
Stacktrace:


ApplicationException: invalid exceptions file: malformed XML
org.jdom.JDOMException: Error on line 0: File “null” not found.
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:407)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:499)
at com.softwareag.xtools.xapplication.common.WrapperParserFactory.readXml(WrapperParserFactory.java:152)
at com.softwareag.xtools.xapplication.common.WrapperParserFactory.readXml(WrapperParserFactory.java:67)
at com.softwareag.xtools.xapplication.common.Util.inputToElement(Util.java:307)
at com.softwareag.xtools.xapplication.common.Util.inputToElement(Util.java:282)
at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.(ExceptionDispatcher.java:110)
at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.get(ExceptionDispatcher.java:77)
at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.rethrow(ExceptionDispatcher.java:154)
at com.softwareag.xtools.xapplication.jsp.JspTag.handleException(JspTag.java:310)
at com.softwareag.xtools.xapplication.jsp.JspTag.postProcessing(JspTag.java:279)
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:131)
at _0002fsearch_0002ejspsearch_jsp_1._jspService(_0002fsearch_0002ejspsearch_jsp_1.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause: org.xml.sax.SAXParseException: File “null” not found.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1156)
at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:499)
at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:310)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1034)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:395)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:499)
at com.softwareag.xtools.xapplication.common.WrapperParserFactory.readXml(WrapperParserFactory.java:152)
at com.softwareag.xtools.xapplication.common.WrapperParserFactory.readXml(WrapperParserFactory.java:67)
at com.softwareag.xtools.xapplication.common.Util.inputToElement(Util.java:307)
at com.softwareag.xtools.xapplication.common.Util.inputToElement(Util.java:282)
at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.(ExceptionDispatcher.java:110)
at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.get(ExceptionDispatcher.java:77)
at com.softwareag.xtools.xapplication.jsp.ExceptionDispatcher.rethrow(ExceptionDispatcher.java:154)
at com.softwareag.xtools.xapplication.jsp.JspTag.handleException(JspTag.java:310)
at com.softwareag.xtools.xapplication.jsp.JspTag.postProcessing(JspTag.java:279)
at com.softwareag.xtools.xapplication.jsp.JspTag.doStartTag(JspTag.java:131)
at _0002fsearch_0002ejspsearch_jsp_1._jspService(_0002fsearch_0002ejspsearch_jsp_1.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : Win2k,
WebContainer : Tomcat 3.3
JDK Version : 1.3.1

Hi all,
I found the reason of this exception.
the file exception.xml is necessary to be near the classes.
When I copied this file under WEB-INF\classes\com\softwareag\xtools\xapplication\jsp
I have been able to recieve the appropriate exception message.

Hello,
When I try to open a modify jsp I sometimes get such an exception.
It sometimes occurs sometimes doesnt.
And the exception has no meaning to me :frowning:
Can anybody tell me what this means please ??

Error: 500
Location: /hasta/Back.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at Back_1._jspService(Back_1.java:83)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at Error_1._jspService(Error_1.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at cKontrol_1._jspService(cKontrol_1.java:2073)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NullPointerException
at Back_1._jspService(Back_1.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at Error_1._jspService(Error_1.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at cKontrol_1._jspService(cKontrol_1.java:2073)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

check your work directory in tomcat for the file
with the name Back_1.java. You have most likely some java code embedded that fails. Check line 73 in that file, if that helps.

christian campo

Hello,

for X-Application the invocation of the error page starts if an exception occurred during the processing of a ‘normal’ page.

My proposal to find out the reason for this problem is to execute the following steps.

(1) Remove the link to error page from the jsp page which causes the error. If you click a button of page A.jsp which invokes B.jsp, remove

errorPage="Error.jsp"

from the page directive.

<%@ page language=“java” contentType=“text/html; charset=UTF-8”%>

(2) Invoke the action which caused the exception again. Then, you will see the output of the stack trace which may be useful to analyze the application problem.

(3) Check the behavior of error page if it receives the exception.

- Did you change from X-Application 3.1.1 to 3.1.2?

The reason for your trouble could be that you are using an old error page. How to adapt it is described within the file changelog.txt of X-Application?s root directory.

(4) If you think to have solved the error page problem add its invocation to the page where you removed it.


Bye,
Christian.

Hello Mehmet,

the answers of the two Christians are general tips how to find problems in a JavaServer Page.

In your particular problem I can give you two hints:

1. Problem in Back.jsp
I will put that in a separate topic.
See NullpointerException in Back.jsp

2. Why does the exception occur?
One reason could be that you mixed upper/lower case in the URL.
(e.g. http://localhost:8080/mydir/mypage.jsp instead of http://localhost:8080/Mydir/mypage.jsp)?

You can make sure that Tomcat 3.3 does not accept that mismatch if you add in /conf/server.xml (and serverXapp8081.xml)


It is also possible that your client session timed out.
This can be set in your web.xml file.
I created a separate topic for that tip too: Tip: How to set the client session timeout

Regards, Harald