aspose file tools
The moose likes Java in General and the fly likes Occaisonal org.xml.sax.SAXException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Occaisonal org.xml.sax.SAXException" Watch "Occaisonal org.xml.sax.SAXException" New topic
Author

Occaisonal org.xml.sax.SAXException

Doshi Milan
Ranch Hand

Joined: May 29, 2001
Posts: 112
Hello,

Our application, has of late started giving a weird error occasionally. It is observed that this error is thrown sometimes : org.xml.sax.SAXException: Invalid element in �. When we try to create an XML request(i.e Serialize).

I know, most common reasons would be a mismatch in Class file with respect to WSDL, or wrong entry in wsdd file etc. But this is what is happening:

�The application works most of the time and the SAX exception is NOT encountered.
�Suddenly, we see tons of these errors generated.
�We restart the server and everything looks ok, i.e the application starts working as expected. No more SAX errors...

My understanding is that:

There is NO issue with the classes generated, WSDD or the WSDL file as it works most of the time. It does NOT look like a web services related issue and hence I have not posted it in �Web servcies� forum.

Now, what I am not sure is...what prompts this very strange behaviour? Is it Serializaton issue (i.e runtime JVM) , can it be something related to our server / hardware etc? I have no clue ...

Kindly advice.

Thanks in advance,
Milan


The error stacktrace :

[code]
java.lang.reflect.InvocationTargetException: com.wellsfargo.uw.perform.EcprXmlException: org.xml.sax.SAXException: Invalid element in com.wellsfargo.service.provider.ecpr.shared.memento2004.AccountInfo_Type - rpmAccountIndicator error going to the server at com.wellsfargo.uw.perform.StreamlinedAddressChange.getSacAddresses(StreamlinedAddressChange.java:61) at java.lang.reflect.Method.invoke(Native Method) at com.epiphany.shr.ecs.access.java.JavaPort.makeCall(JavaPort.java:139) at com.epiphany.shr.ecs.components.Port.makeCall(Port.java:226) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:301) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:316) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponseParameter(EAIAccess.java:231) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponse(EAIAccess.java:135) at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:67) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ecs.exceptions.EEWSRuntimeException: Exception when calling com.wellsfargo.uw.perform.StreamlinedAddressChange.null() at com.epiphany.shr.ecs.access.java.JavaPort.makeCall(JavaPort.java:142) at com.epiphany.shr.ecs.components.Port.makeCall(Port.java:226) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:301) at com.epiphany.shr.ecs.components.Port.invoke(Port.java:316) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponseParameter(EAIAccess.java:231) at com.epiphany.shr.ecs.access.eai.EAIAccess.getSyncResponse(EAIAccess.java:135) at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:67) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ecs.access.eai.EAINoResponseReceived: Exception while invoking external system method. at com.epiphany.shr.mi.webservices.WSProviderImpl.invokeMethod(WSProviderImpl.java:70) at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:363) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.data.dp.exception.DPException: Exception while performing a QUERY operation. at com.epiphany.shr.mi.shr.MIProviderImpl.query(MIProviderImpl.java:385) at com.epiphany.shr.util.async.EAIRunnable.internalRun(EAIRunnable.java(Compiled Code)) at com.epiphany.shr.util.threadpool.LocalBlockingRunnableWithTimeout.run(LocalBlockingRunnableWithTimeout.java:119) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:513)com.epiphany.shr.ui.view.tags.EpiTagException: System exception while firing customization extensions at com.epiphany.shr.ui.view.tags.FormTag.fireExtensions(FormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.FormTag.doEpnyStartTag(FormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.EpnyBodyTagSupport.doStartTag(EpnyBodyTagSupport.java(Compiled Code)) at org.apache.jsp._Sales_5F_Detail_5F_Shell_5F_F0A6224493564E619CDF3AD54FD3301C._jspService(_Sales_5F_Detail_5F_Shell_5F_F0A6224493564E619CDF3AD54FD3301C.java:105) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includePage(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includeForm(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.UseFormTag.doEpnyEndTag(UseFormTag.java(Compiled Code)) at com.epiphany.shr.ui.view.tags.EpnyBodyTagSupport.doEndTag(EpnyBodyTagSupport.java(Compiled Code)) at org.apache.jsp._root._jspService(_root.java:570) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includePage(ControllerServlet.java(Compiled Code)) at com.epiphany.shr.ui.controller.ControllerServlet.includeScreen(ControllerServlet.java:1716) at com.epiphany.shr.ui.controller.ControllerServlet.process(ControllerServlet.java:1495) at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:531) at com.epiphany.shr.ui.controller.EpnyServlet.doPost(EpnyServlet.java:396) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at com.epiphany.shr.ui.controller.EpnyServlet.service(EpnyServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java(Compiled Code)) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java(Inlined Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java(Compiled Code)) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java(Compiled Code)) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
[code]
[ October 26, 2006: Message edited by: Doshi Milan ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12324
    
    1
It could be something as simple as a single invalid character such as the notorious "smart" punctuation that copying and pasting from MS Word documents can insert.

Your code might be able to get more useful information out of that SAXException by catching it early and looking at the embedded exception (if any).

If the embedded exception is a SAXParseException you may be able to get a line and column position in the input text.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Occaisonal org.xml.sax.SAXException
 
Similar Threads
Struts to Portlet fails
IStrutsPrepareRender fails ...
WebServicesFault - java.net.ConnectException
Conversion Error setting value ''{0}'' for ''{1}''
Unable to locate classes at runtime ???