SaxParse Exception

Apologies if this is not related to JRUN, but I'm thinking it
might be? Also hope this posting is accurate, as the preview seems
to be messing up the XML , adding tags that aren't there inside the
DOCTYPE statement, and adding happy faces for some reason... I have
the following small bit of XML and DTD that everyone seems to think
looks pretty clean, but it is generating the error:
PPEdmsNavSvl - Error parsing Edms response XML:
com.indus.icds.exception.PPEdmsException; Exception in class:
PPEdmsXMLPrsr, SAXParseException error, line 1, URL: null, Error
Message: XML document structures must start and end within the same
entity.
The XML shows up in the API log as the response, so I know it
is being received by the API as below (I have added some carriage
returns to make i clearer). Can't for the life of me figure out
what is causing this error. Here is the XML as it shows up in the
API log, followed by the DTD:
Thu Apr 27 10:59:16 MDT 2006 PPEdmsNavSvl: edmsapi_response
XML:
Thu Apr 27 10:59:16 MDT 2006 <?xml version="1.0"
encoding="UTF-8"?>
<!DOCTYPE edmsapi_response SYSTEM "
http://192.168.1.35:8080/edmsidocs/edmsapi_response.dtd">
<edmsapi_response>
<request
session_id="0.8917113203720348,7,10002001,1,0037,012848921100000,"
call="create_folder"></request>
<status success="S" err_code="00" err_msg="EDMS processing
successful."></status>
<url>\\192.168.1.35\imaging\documents\ap_invoices\0\205\/</url>
</edmsapi_response>
Thu Apr 27 10:59:16 MDT 2006 PPEdmsXMLPrsr
PEdmsXMLPrsr(String String)
Thu Apr 27 10:59:16 MDT 2006 PPEdmsNavSvl:BuildHtmlMsg
PPEdmsNavSvl - Error parsing Edms response XML:
com.indus.icds.exception.PPEdmsException;
Exception in class: PPEdmsXMLPrsr,
SAXParseException error, line 1,
URL: null,
Error Message: XML document structures must start and end
within the same entity.
And the DTD:
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY % Release "10.0">
<!ENTITY % Portal "j|J">
<!ENTITY % Call
"attach|detach|attrib_chg|create_cd|create_folder|delete_folder|launch|open_folder|open_f older_view|print|print_list|print_rpt|revise_cd|view">
<!ELEMENT edmsapi_response (request, status, url)>
<!ELEMENT request EMPTY>
<!ATTLIST request
session_id CDATA #REQUIRED
call (%Call
#REQUIRED>
<!ELEMENT status EMPTY>
<!ATTLIST status
success CDATA #REQUIRED
err_code CDATA #REQUIRED
err_msg CDATA #IMPLIED>
<!ELEMENT url (#PCDATA)>
Can anyone see a problem with this? A contractor I work with
tells me it parses OK in other parsers, but for some reason is
having this problem with the SAX parser.
Many TIA!

Well, the happy faces aare still there, but it seems to have
posted the XML accurately....

Similar Messages

  • SAXParser Exception - NEED HELP IT'S URGENT

    Hi, I'm stuck in this, I have this program that works running a script called runPatito.sh
    but everytime I run it it throws me the following error:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXParseException: Parser has reached the entity expansion limit "64,000" set by the Application.
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXParseException: Parser has reached the entity expansion limit &quot;64,000&quot; set by the Application.
    faultActor:
    faultNode:
    faultDetail:
    org.xml.sax.SAXParseException: Parser has reached the entity expansion limit "64,000" set by the Application.
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:251)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:168)
    at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    Now , I've been searching and actually I found that I need to increase the system property "EntityExpansionLimit" but unfortunately I haven't been able to do it...
    I found that I need to run my program with java -DentityExpansionLimit=1000000 and "everything else" as it says in all the forums...
    The script that I'm using have this:
    #!/bin/sh
    java -cp patitoApp-patito-client com.patitoC.patito.PatitoClient cold.xml hot.xml
    My problem here is I don't know where to add that line (-DentityExpansionLimit=1000000) in order for this to work properly.
    I would appreciate some help here...

    Hi before explainig other things I wanted to thank you all for replying this post and for trying to help me...
    There are two scripts involved in the proccess, one is the server and one is the client, both of them are running with the modification suggested, but it does not make any difference...
    I still have the exception of the SAXParser with the 64,000
    I even modified the classes because I'm using DocumentBuildFactory and I put the entityExpansionLimit as a property of the object created as I found it...
    Here's the code of those lines:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setAttribute("http://apache.org/xml/properties/entity-expansion-limit",new Integer("1000000"));
              factory.setAttribute("http://apache.org/xml/properties/elementAttributeLimit",new Integer(20));
    I think I need some more help regarding this problem...

  • SAXParser Exception while viewing the desktop in weblogic portal

    Hi All,
    I have deployed my portal application on weblogic platform 8.1 SP3. i have created a portal and desktop levaraging the .portal file from my portal application,
    view desktop throws a SAXParserException as follows.
    org.xml.sax.SAXParseException: Element type "netuix:desktop" must be followed by either attribute specifications, ">" or "/>".
         at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
         at com.bea.netuix.nf.container.jsp.tags.StreamingControlFactoryBuilder.getNetuixControlFactory(StreamingControlFactoryBuilder.java:166)
         at com.bea.netuix.servlets.manager.PortalServlet.createPortalAccessData(PortalServlet.java:1091)
         at com.bea.netuix.servlets.manager.PortalServlet.getAnonymousPortalAccessData(PortalServlet.java:982)
         at com.bea.netuix.servlets.manager.PortalServlet.getCustomizedPortalAccessData(PortalServlet.java:1044)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessDataForDesktop(PortalServlet.java:949)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessData(PortalServlet.java:841)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1093)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
         at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
         at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<07-Jun-2006 16:46:21 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '8' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423014> <The streaming file not found in the class path, the file name is :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 16:46:22 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '8' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423018> <The UIControl Tree is null for the given request :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 16:46:22 o'clock BST> <Error> <HTTP> <BTG203917> <cgServer> <ExecuteThread: '8' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=16842715,name=SolutionsView,context-path=)] Servlet failed with Exception
    java.lang.IllegalStateException: response already committed
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:394)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:375)
         at com.bea.netuix.servlets.manager.UIServlet.setupJspContext(UIServlet.java:279)
         at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServlet.java:224)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:759)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1093)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
         at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
         at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<07-Jun-2006 16:51:35 o'clock BST> <Error> <Management> <BTG203917> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'> <<WLS Kernel>> <> <BEA-141111> <Failed to update addDeployment for the configuration MBean custbondPlatform:Location=cgServer,Name=cgServer,Type=ServerConfig on server cgServer. javax.management.MBeanExceptionjava.lang.NullPointerException>
    ####<07-Jun-2006 16:51:35 o'clock BST> <Error> <Management> <BTG203917> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'> <<WLS Kernel>> <> <BEA-141111> <Failed to update removeDeployment for the configuration MBean custbondPlatform:Location=cgServer,Name=cgServer,Type=ServerConfig on server cgServer. javax.management.MBeanExceptionjava.lang.NullPointerException>
    ####<07-Jun-2006 16:53:37 o'clock BST> <Error> <Management> <BTG203917> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'> <<WLS Kernel>> <> <BEA-141111> <Failed to update addDeployment for the configuration MBean custbondPlatform:Location=cgServer,Name=cgServer,Type=ServerConfig on server cgServer. javax.management.MBeanExceptionjava.lang.NullPointerException>
    ####<07-Jun-2006 16:53:37 o'clock BST> <Error> <Management> <BTG203917> <cgServer> <ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'> <<WLS Kernel>> <> <BEA-141111> <Failed to update removeDeployment for the configuration MBean custbondPlatform:Location=cgServer,Name=cgServer,Type=ServerConfig on server cgServer. javax.management.MBeanExceptionjava.lang.NullPointerException>
    ####<07-Jun-2006 17:08:32 o'clock BST> <Error> <netuix> <BTG203917> <cgServer> <ExecuteThread: '6' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423080> <Encountered a SAXParseException while parsing control tree :: org.xml.sax.SAXParseException: Element type "netuix:desktop" must be followed by either attribute specifications, ">" or "/>".
    org.xml.sax.SAXParseException: Element type "netuix:desktop" must be followed by either attribute specifications, ">" or "/>".
         at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
         at com.bea.netuix.nf.container.jsp.tags.StreamingControlFactoryBuilder.getNetuixControlFactory(StreamingControlFactoryBuilder.java:166)
         at com.bea.netuix.servlets.manager.PortalServlet.createPortalAccessData(PortalServlet.java:1091)
         at com.bea.netuix.servlets.manager.PortalServlet.getAnonymousPortalAccessData(PortalServlet.java:982)
         at com.bea.netuix.servlets.manager.PortalServlet.getCustomizedPortalAccessData(PortalServlet.java:1044)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessDataForDesktop(PortalServlet.java:949)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessData(PortalServlet.java:841)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<07-Jun-2006 17:08:32 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '6' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423014> <The streaming file not found in the class path, the file name is :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 17:08:32 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '6' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423018> <The UIControl Tree is null for the given request :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 17:08:32 o'clock BST> <Error> <HTTP> <BTG203917> <cgServer> <ExecuteThread: '6' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=16842715,name=SolutionsView,context-path=)] Servlet failed with Exception
    java.lang.IllegalStateException: response already committed
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:394)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:375)
         at com.bea.netuix.servlets.manager.UIServlet.setupJspContext(UIServlet.java:279)
         at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServlet.java:224)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:759)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<07-Jun-2006 17:23:27 o'clock BST> <Error> <Placeholder> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-402001> <Content Error (Placeholder: /placeholders/Campaign.pla). Unknown placeholder '/placeholders/Campaign.pla'>
    ####<07-Jun-2006 17:23:29 o'clock BST> <Error> <netuix> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423080> <Encountered a SAXParseException while parsing control tree :: org.xml.sax.SAXParseException: Element type "netuix:desktop" must be followed by either attribute specifications, ">" or "/>".
    org.xml.sax.SAXParseException: Element type "netuix:desktop" must be followed by either attribute specifications, ">" or "/>".
         at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
         at com.bea.netuix.nf.container.jsp.tags.StreamingControlFactoryBuilder.getNetuixControlFactory(StreamingControlFactoryBuilder.java:166)
         at com.bea.netuix.servlets.manager.PortalServlet.createPortalAccessData(PortalServlet.java:1091)
         at com.bea.netuix.servlets.manager.PortalServlet.getAnonymousPortalAccessData(PortalServlet.java:982)
         at com.bea.netuix.servlets.manager.PortalServlet.getCustomizedPortalAccessData(PortalServlet.java:1044)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessDataForDesktop(PortalServlet.java:949)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessData(PortalServlet.java:841)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1093)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
         at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
         at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<07-Jun-2006 17:23:29 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423014> <The streaming file not found in the class path, the file name is :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 17:23:29 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <subhasridharan> <> <BEA-423018> <The UIControl Tree is null for the given request :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 17:23:29 o'clock BST> <Error> <HTTP> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=16842715,name=SolutionsView,context-path=)] Servlet failed with Exception
    java.lang.IllegalStateException: response already committed
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:394)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:375)
         at com.bea.netuix.servlets.manager.UIServlet.setupJspContext(UIServlet.java:279)
         at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServlet.java:224)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:759)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:316)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.superForward(PageFlowRequestProcessor.java:1301)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor$DefaultHttpRedirector.forward(PageFlowRequestProcessor.java:1317)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1199)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1093)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:650)
         at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:527)
         at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:152)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<07-Jun-2006 17:24:14 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-423014> <The streaming file not found in the class path, the file name is :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 17:24:14 o'clock BST> <Error> <netuix> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-423080> <Encountered a SAXParseException while parsing control tree :: org.xml.sax.SAXParseException: Element type "netuix:desktop" must be followed by either attribute specifications, ">" or "/>".
    org.xml.sax.SAXParseException: Element type "netuix:desktop" must be followed by either attribute specifications, ">" or "/>".
         at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
         at com.bea.netuix.nf.container.jsp.tags.StreamingControlFactoryBuilder.getNetuixControlFactory(StreamingControlFactoryBuilder.java:166)
         at com.bea.netuix.servlets.manager.PortalServlet.createPortalAccessData(PortalServlet.java:1091)
         at com.bea.netuix.servlets.manager.PortalServlet.getAnonymousPortalAccessData(PortalServlet.java:982)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessDataForDesktop(PortalServlet.java:946)
         at com.bea.netuix.servlets.manager.PortalServlet.getPortalAccessData(PortalServlet.java:841)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<07-Jun-2006 17:24:14 o'clock BST> <Warning> <netuix> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-423018> <The UIControl Tree is null for the given request :: /appmanager/SolutionsView/main.>
    ####<07-Jun-2006 17:24:14 o'clock BST> <Error> <HTTP> <BTG203917> <cgServer> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=16842715,name=SolutionsView,context-path=)] Servlet failed with Exception
    java.lang.IllegalStateException: response already committed
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:394)
         at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:375)
         at com.bea.netuix.servlets.manager.UIServlet.setupJspContext(UIServlet.java:279)
         at com.bea.netuix.servlets.manager.UIServlet.processControlTree(UIServlet.java:224)
         at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:759)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    Any help in this regard is appreciated.
    thanks in anticpation

    It looks like that toyr XE database is not running, or the SQLNET listener is not running or not correctly defined. that says the:
    ORA-12516, TNS:listener could not find available handler with matching protocol stack

  • Exception handling problems

    hi folks,
    i have developed one web service in which i have thrown a SoapFault
    exception.i want it to see what happens on the client.i get an exception
    thrown but ,theres some thing called SaxParseException that also appears on
    the client console.also while running the web service i get a message on the
    server console which is like this
    Unable to deploy EJB: Hello from Hellodeepuu.jar:
    Unable to bind a cluster-aware stateless session EJBObject to the name:
    HelloHome_EO. Please ensure
    that the jndi-name in the weblogic-ejb-jar.xml is correct. The error was:
    javax.naming.NameAlreadyBoundException: Can't rebind anything but a
    replica-aware stub to a name tha
    t is currently bound to a replica-aware stub; remaining name ''
    <<no stack trace available>>
    what is this?
    and on the cline side console the xml and the exception is like this
    ------------- RECEIVING XML -------------
    <?xml version="1.0"?>
    <definitions
    targetNamespace="java:com.chase.ccs.webservice.transaction"
    xmlns:tns="java:com.chase.ccs.webservice.transaction"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema targetNamespace='java:com.chase.ccs.webservice.transaction'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    </schema>
    </types>
    <message name="helloRequest">
    </message>
    <message name="helloResponse">
    <part name="return" type="xsd:string" />
    </message>
    <portType name="HelloPortType">
    <operation name="hello">
    <input message="tns:helloRequest"/>
    <output message="tns:helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:HelloPortType"><soap:binding
    style="rpc" transport="http://sc
    hemas.xmlsoap.org/soap/http/"/>
    <operation name="hello">
    <soap:operation soapAction="urn:hello"/>
    <input><soap:body use="encoded" namespace='urn:Hello'
    encodingStyle="http://schemas.xmlsoap.org/soap
    /encoding/"/></input>
    <output><soap:body use="encoded" namespace='urn:Hello'
    encodingStyle="http://schemas.xmlsoap.org/soa
    p/encoding/"/></output>
    </operation>
    </binding>
    <service name="Hello"><documentation>todo</documentation><port
    name="HelloPort" binding="tns:HelloBi
    nding"><soap:address
    location="http://localhost:7001/Hello/Hellouri"/></port></service></definiti
    ons
    >
    -------------- SENDING XML --------------
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
    xmlns:SOAP-ENV='http://schemas.xmlsoap.org/
    soap/envelope/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
    xmlns:xsi='http://www.w3.
    org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:hello
    xmlns:ns0='urn:Hello'
    SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'></ns0:hel
    lo
    </SOAP-ENV:Body></SOAP-ENV:Envelope>------------- RECEIVINGXML -------------
    <?xml version="1.0" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>
    Client
    </faultcode>
    <faultstring>
    java.rmi.RemoteException
    </faultstring>
    <detail>
    Application fault:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    weblogic.soap.SoapFault: faultstring
    ------------- Remote Stack Trace ------------
    detail------------- Local Stack Trace ------------
    weblogic.soap.SoapFault: faultstring
    <<no stack trace available>>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    Scanner has tokens:
    [CHARDATA] (detail------------- Local Stack
    race ------------)
    [SPACE] (
    [CHARDATA] (weblogic.soap.SoapFault: faultstring)
    [SPACE] (
    lt: faultstring
    <n <-- bad character
    ur in exceptionclass org.xml.sax.SAXParseException
    Error at line:18 col:4 '<' expected [?! -- [CDATA[ ]
    at
    weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXE
    lementFactory
    .java:60)
    at
    weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:13
    0)
    at
    weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream
    .java:46)
    at
    weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
    at
    weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
    ava:38)
    at
    weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
    at
    weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
    ava:38)
    at
    weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
    at
    weblogicx.xml.stream.helpers.TextBuilder.process(TextBuilder.java:23)
    at
    weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:194)
    at
    weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:145)
    at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:66)
    at weblogic.soap.codec.Operation.read(Operation.java:97)
    at
    weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:480)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at CountClient.main(CountClient.java:60)
    i am using wl6.1 and rpc style message service.i would appreacite if anyone
    would tell me why i am getting the SaxParse Exception even though i am not
    parsing anything.
    thanx in advance
    deepuu

    hi manoj,
    thanx for the instant reply.
    but in my condition if i want it make it work ,is there any way that i can
    do it.
    deepuu
    "manoj cheenath" <[email protected]> wrote in message
    news:[email protected]...
    In 6.1 the fault->details element in the response is not wrapped in
    CDATA. In some situation (like the one you found) the serialization
    of stack trace to fault->details produce invalid XML. Hence, the
    parser failed.
    This is a bug and i have filed a CR on WSL 6.1.
    regards,
    manoj
    "deepuu" <[email protected]> wrote in message
    news:[email protected]...
    hi folks,
    i have developed one web service in which i have thrown a SoapFault
    exception.i want it to see what happens on the client.i get an
    exception
    thrown but ,theres some thing called SaxParseException that also appearson
    the client console.also while running the web service i get a message onthe
    server console which is like this
    Unable to deploy EJB: Hello from Hellodeepuu.jar:
    Unable to bind a cluster-aware stateless session EJBObject to the name:
    HelloHome_EO. Please ensure
    that the jndi-name in the weblogic-ejb-jar.xml is correct. The error
    was:
    javax.naming.NameAlreadyBoundException: Can't rebind anything but a
    replica-aware stub to a name tha
    t is currently bound to a replica-aware stub; remaining name ''
    <<no stack trace available>>
    what is this?
    and on the cline side console the xml and the exception is like this
    ------------- RECEIVING XML -------------
    <?xml version="1.0"?>
    <definitions
    targetNamespace="java:com.chase.ccs.webservice.transaction"
    xmlns:tns="java:com.chase.ccs.webservice.transaction"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema targetNamespace='java:com.chase.ccs.webservice.transaction'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    </schema>
    </types>
    <message name="helloRequest">
    </message>
    <message name="helloResponse">
    <part name="return" type="xsd:string" />
    </message>
    <portType name="HelloPortType">
    <operation name="hello">
    <input message="tns:helloRequest"/>
    <output message="tns:helloResponse"/>
    </operation>
    </portType>
    <binding name="HelloBinding" type="tns:HelloPortType"><soap:binding
    style="rpc" transport="http://sc
    hemas.xmlsoap.org/soap/http/"/>
    <operation name="hello">
    <soap:operation soapAction="urn:hello"/>
    <input><soap:body use="encoded" namespace='urn:Hello'
    encodingStyle="http://schemas.xmlsoap.org/soap
    /encoding/"/></input>
    <output><soap:body use="encoded" namespace='urn:Hello'
    encodingStyle="http://schemas.xmlsoap.org/soa
    p/encoding/"/></output>
    </operation>
    </binding>
    <service name="Hello"><documentation>todo</documentation><port
    name="HelloPort" binding="tns:HelloBi
    nding"><soap:address
    location="http://localhost:7001/Hello/Hellouri"/></port></service></definiti
    ons
    >
    -------------- SENDING XML --------------
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
    xmlns:SOAP-ENV='http://schemas.xmlsoap.org/
    soap/envelope/'xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
    xmlns:xsi='http://www.w3.
    org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:hello
    xmlns:ns0='urn:Hello'
    SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'></ns0:hel
    lo
    </SOAP-ENV:Body></SOAP-ENV:Envelope>------------- RECEIVINGXML -------------
    <?xml version="1.0" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>
    Client
    </faultcode>
    <faultstring>
    java.rmi.RemoteException
    </faultstring>
    <detail>
    Application fault:
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    weblogic.soap.SoapFault: faultstring
    ------------- Remote Stack Trace ------------
    detail------------- Local Stack Trace ------------
    weblogic.soap.SoapFault: faultstring
    <<no stack trace available>>
    </detail>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    Scanner has tokens:
    [CHARDATA] (detail------------- Local Stack
    race ------------)
    [SPACE] (
    [CHARDATA] (weblogic.soap.SoapFault: faultstring)
    [SPACE] (
    lt: faultstring
    <n <-- bad character
    ur in exceptionclass org.xml.sax.SAXParseException
    Error at line:18 col:4 '<' expected [?! -- [CDATA[ ]
    at
    weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseException(SAXE
    lementFactory
    .java:60)
    at
    weblogic.xml.babel.parsers.StreamParser.streamParseSome(StreamParser.java:13
    0)
    at
    weblogic.xml.babel.parsers.BabelXMLEventStream.parseSome(BabelXMLEventStream
    .java:46)
    at
    weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
    at
    weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
    ava:38)
    at
    weblogicx.xml.stream.SubEventStream.parseSome(SubEventStream.java:48)
    at
    weblogicx.xml.stream.SubElementEventStream.parseSome(SubElementEventStream.j
    ava:38)
    at
    weblogicx.xml.stream.XMLEventStreamBase.hasNext(XMLEventStreamBase.java:135)
    at
    weblogicx.xml.stream.helpers.TextBuilder.process(TextBuilder.java:23)
    at
    weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:194)
    at
    weblogic.soap.codec.SoapEncodingCodec.decode(SoapEncodingCodec.java:145)
    at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:66)
    at weblogic.soap.codec.Operation.read(Operation.java:97)
    at
    weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
    atweblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:480)
    atweblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at CountClient.main(CountClient.java:60)
    i am using wl6.1 and rpc style message service.i would appreacite ifanyone
    would tell me why i am getting the SaxParse Exception even though i am
    not
    parsing anything.
    thanx in advance
    deepuu

  • SAX parser exception : Namespace not supported by SAX parser

    Hi,
    I'm using xslt to transform xml to html. I've downloaded Xalan2J from Apache website and I've used Transformer factory implementation.
    The code works fine through Forte IDE environment where I've mounted jar files xerces.jar, xml-apis.jar, xalan.jar
    The problem occurs when I try to instantiate the same method through JSP page. It throws an exception
    SAXParser exception : Namespace not supported by SAXParser. I'm trying to run the jsp file through jakarta tomcat environment.
    I've included xerces.jar, xml-apis.jar, xalan.jar in my classpath. I fail to understand why namespace support is not available.
    Any help/suggetsions would be appreciated :)
    Thanks

    Hi,
    Yes, In tomcat environment, by default the jar files in the lib directory are set before reading the system classpath which causes a problem. One could replace the xerces.jar with a new jar file and delete parser.jar but that has its own set of problems.
    The other alternative would be to use something like
    System.setProperty("javax.xml.parsers.SAXParserFactory","org.apache.xerces.jaxp.SAXParserFactoryImpl");
    This worked for me..:)

  • Error while running in weblogic

    I get an error when i use weblogic to run a simple hello servlet
    deployment of my.war is successful
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloServlet extends HttpServlet {
        public void service(HttpServletRequest request,
                          HttpServletResponse response)
            throws IOException, ServletException
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
             out.println("<html>");
             out.println("<head>");
             out.println("Hello Servlet");
             out.println("</body>");
             out.println("</html>");
    web.xml is
    <web-app>
    <servlet>
    <servlet-name>my</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>my</servlet-name>
    <url-pattern>run</url-pattern>
    </servlet-mapping>
    </web-app>error on testing the application in weblogic console:(i m using domain poojasdomain)
    <Oct 5, 2006 10:15:40 PM IST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\b
    ea\user_projects\domains\poojasdomain\myserver\upload', Module: 'my']: Deploymen
    t descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParse
    Exception: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 1,
    column 10).>
    i think web.xml is correctly written,what can be the problem?

    finally the error is :....
    <Oct 6, 2006 7:15:29 PM IST> <Error> <HTTP> <BEA-101018> <[ServletContext(id=407
    8341,name=my,context-path=/my)] Servlet failed with ServletException
    javax.servlet.ServletException: [HTTP:101249][ServletContext(id=4078341,name=my,
    context-path=/my)]: Servlet class HelloServlet for servlet my could not be loade
    d because the requested class was not found in the classpath C:\bea\user_project
    s\domains\poojasdomain\myserver\.wlnotdelete\extract\myserver_my_my\my.war;C:\be
    a\user_projects\domains\poojasdomain\.\myserver\.wlnotdelete\extract\myserver_my
    my\jarfiles\wl_cls_gen.jar;C:\bea\user_projects\domains\poojasdomain\.\myserve
    r\.wlnotdelete\extract\myserver_my_my.
    java.lang.UnsupportedClassVersionError: HelloServlet (Unsupported major.minor ve
    rsion 49.0).

  • Org.xml.sax.SAXParseException

    Hi All,
    I am trying to parse an xml file whcih contains some special characters like "&" using DOM parser.
    So, i am gtting the saxparse exception "The reference to entity "T" must end with the ';' delimiter"
    Is there any way to overcome this exception, since i could not modify the xml file to remove the special characters, since it is coming from different application.
    Pls suggest a way to parse this xml file to get the root element?
    My XML contains:
    <P>Net: J^l </P>
    <P>Total: JL'J </P>
    *<P><Figure ActualText="&T ">*
    <ImageData src="images/17PT 07009K_img_1.jpg"/>
    &T </Figure>
    Checked by </P>
    Thanks in advance...

    It appears that this "other application" is generating malformed XML. Apparently its author did not code it to escape ampersands in text elements correctly.
    There is no way for you to parse that. You will have to get the other application fixed.

  • SAX mapping

    Hi,
    I have Java SAX mapping for IDOC-to-JDBC scenario. Sometimes it happens that, XI starts to create first XML SQL message, then in one moment stops(this XML hasn't right structure) and starts with second. With second, XI ends OK, but this has, XML syntactically, OK structure, and it can not be parsed to SQL. JDBC says:
    Error while parsing or executing XML-SQL document: ERROR occured parsing request:com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:2, col:6)(:main:, row=2, col=6) -> com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:2, col:6)
    This is some mix of two messages that should be mapped separatly. has anybody any idea?
    thx
    mario

    Hi Mario,
    This SAX Parser exception generally occurs when some condition is not being satisfied by the message payload when it is being parsed through the SAX Parser..for eg. if some tag in your message has data of greater legth than is specified in the condition in IR it throws a saxparser exception.
    A mapping error is a non-fatal error that occurs during the mapping process.
    The fatal errors are errors such as IOException that interrupt the mapping process and the exception is thrown by the mapping utility.
    For more sax parser exception please refer:
    http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/helpers/DefaultHandler.html
    Hope this will be of help for you.
    Regards,
    Shibani
    *Reward with points if helpful*

  • About weblogic8.1.3

    while starting the weblogic iam getting an error:
    CLASSPATH=C:\bea\JROCKI~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.j
    ar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\common\eval\pointbase
    \lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\
    bea\JROCKI~1\jre\lib\rt.jar;C:\bea\WEBLOG~1\server\lib\webservices.jar;C:\Progra
    m Files\Altova\xmlspy\XMLSpyInterface.jar;.;F:\App;.;C:\Program Files\Apache Sof
    tware Foundation\Tomcat 5.0\common\lib\servlet-api.jar;.;C:\bea\weblogic81\serve
    r\lib\weblogic.jar;.;C:\Program Files\Apache Software Foundation\Tomcat 5.0\comm
    on\lib\tools.jar;.
    PATH=C:\bea\WEBLOG~1\server\bin;C:\bea\JROCKI~1\jre\bin;C:\bea\JROCKI~1\bin;C:\o
    raclexe\app\oracle\product\10.2.0\server\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT
    \System32\Wbem;C:\Program Files\Java\jdk1.5.0_01\bin;.;;C:\bea\WEBLOG~1\server\b
    in\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\[hostname]:[port]\console *
    <Mar 1, 2007 11:27:41 PM GMT+05:30> <Info> <WebLogicServer> <BEA-000377> <Starti
    ng WebLogic Server with BEA WebLogic JRockit(TM) 1.4.2_04 JVM Version ari-31788
    -20040616-1132-win-ia32 from BEA Systems, Inc.>
    <Mar 1, 2007 11:27:41 PM GMT+05:30> <Info> <Configuration Management> <BEA-15001
    6> <This server is being started as the administration server.>
    <Mar 1, 2007 11:27:41 PM GMT+05:30> <Info> <Management> <BEA-141107> <Version: W
    ebLogic Server 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973
    WebLogic XMLX Module 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973 >
    <Mar 1, 2007 11:27:41 PM GMT+05:30> <Notice> <Management> <BEA-140005> <Loading
    domain configuration from configuration repository at C:\bea\user_projects\domai
    ns\inetsolv\.\config.xml.>
    <Mar 1, 2007 11:27:43 PM GMT+05:30> <Notice> <Log Management> <BEA-170019> <The
    server log file C:\bea\user_projects\domains\inetsolv\myserver\myserver.log is o
    pened. All server side log events will be written to this file.>
    <Mar 1, 2007 11:27:45 PM GMT+05:30> <Notice> <Security> <BEA-090082> <Security i
    nitializing using security realm myrealm.>
    <Mar 1, 2007 11:27:45 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000327> <Star
    ting WebLogic Admin Server "myserver" for domain "inetsolv">
    <Mar 1, 2007 11:27:52 PM GMT+05:30> <Warning> <HTTP> <BEA-101248> <[Application:
    'C:\bea\user_projects\domains\inetsolv\applications', Module: 'JSP']: Deploymen
    t descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParse
    Exception: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 2,
    column 10).>
    web.xml is
    <web-app>
    <servlet>
    <servlet-name>UpdateSrv</servlet-name>
    <servlet-class>UpdateSrv</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>UpdateSrv</servlet-name>
    <url-pattern>/servlet/UpdateSrv</url-pattern>
    </servlet-mapping>
    </web-app>
    It is showing web.xml is malformed.
    can u plz help me
    thanQ
    rajesh

    yup, it's malformed alright.
    Check the specs, you're missing everything you need like xsd and dtd references, xml declarations, etc. etc.
    Not that this would run on that old server (probably won't, it likely needs an older version), but this might give you an idea...
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4"
             xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
    </web-app>and yes, all that is REQUIRED by the standard (though some servlet containers might be less than strict about enforcing that).

  • I need help fixing an error i keep getting

    every time i am writing a program i get this error
    Unexpected Exception
    -java.lang.NullPointer Exception
    if anyone can help with this i will be very glad and give you as many dukes as you want.

    i'm using the netbeans IDE and the error always pops up while im typing the program and if i try to close the error box it just pops up again.
    //MilesPerGallon.java Written By:TopDawg
    public class MilesPerGallon{
    public static void main(String[]args){
    int car=0 //when i got to this point the error popped up
    } ^
    the error [org.xml.SAXParse Exception] also happens

  • Xml input encoding

    HI
    How can I set the encoding of my xml file for reading with ODI ?. I have not seen any parameter for the JDBC Url.

    in fact, if the XML file is encoded in utf-8, ODI reads it vithout problem but the problem I have met is the presence of a BOM at the beginning of the file : 3 characters 0xef 0xbb and 0xbf before the first "<". In this case, ODI falls in a SaxParse exception.
    I just wanted to know if there was any well known solution for this kind of issue.
    thanks

  • Singletons and multithreading question

    Hi, I had a class created as a singleton as it was only used in one place. However since Ive now multithreaded the part of the program that calls the singleton code so it could be called twice at the same time.
    If the method being called initializes all its variables within the method, is that method safe to be called in a mutli-threaded env or not ?
    If it in my situation all variables are declared within the method except a precompiled javax.xml.XPathExpression class, the same one is used to parse an Input Source, the input source itself is created within the method. I
    think I am having concurrency problems , (SAXParser Exceptions) and I think it is because of this XPathExpression class but cannot clearly understand why.
    What is the correct solution, I dont want to initilize the XPathExpression within the method because the method is called many times always for the same expression, dropping the singleton and creating new instances of the class on every call would be even worse. I require multithreading to improve concurrency is there a safe Multi Singleton pattern that i should be using ?

    There are two issues:
    a) is the singleton object safe for multithreaded use
    b) how do I safely create a singleton in a multi-threaded application
    The answer to (a) depends on the class. It sounds from your description that you are using an object (the XPathExpression) that might not be thread-safe. I can't tell you if it is or not. Assuming it is not you either need to synchronize this method so that all threads will go through it (and use the expression) one at a time - which may defeat the purpose of multi-threading - or else you need a way to use multiple instances of these expressions in different threads. As I'm not familiar with these classes I can't tell you what you can and can't do concurrently.
    There are a number of answers to (b). Construction via static initialization is the simplest and safest. If you want lazy initialization and the class that holds the reference to the singleton must be loaded even if the singleton isn't needed, then lookup the initialize-on-demand-holder-class idiom (see Josh Bloch's "Effective Java" item 48)

  • Nullpointer exception... any help would be appreciated

    In advance, I apologize for any ignorance which I may obviously have... I'm in the process of learning Java, and am used to C/C++... In any case, I'm running into a nullpointer exception while 'compiling', which I'm having trouble figuring out... I'll list everything below, but this message will be rather long, as I will try to include everything I can. For this reason, I will ask my questions here, at the top:
    1) A null pointer exception, I believe, is generated when something is being referenced which is currently null, for example "a=null; a.b;" yields a null pointer exception. However, is there any other way that one is generated?
    2) Are there methods to figure out what/why something is null other than simply looking at it? As shown below, it seems that just looking at it runs you in a circle from line to line, file to file, which leads you back to the beginning where nothing is actually null... (I'm probably just not seeing it, but that seems to be what's happening to me)
    So now, on to the actual code:
    The following is a printout of the debugging info:
    ~/bin/jdk*/bin/java -classpath classes jamie.Main
    java.lang.NullPointerException
    at jamie.Main.Sys_Log(Main.java:110)
    at jamie.Main.Setup(Main.java:142)
    at jamie.Main.main(Main.java:54)
    Exception in thread "main" java.lang.NullPointerException
    at jamie.Main.Sys_Log(Main.java:110)
    at jamie.Main.Shutdown(Main.java:182)
    at jamie.Main.main(Main.java:92)And a short excerpt of each. (*) indicates line which error originates:
    20    )   private static Log                sys_log;
    108  )   static void Sys_Log(String msg)
    109  )   {
    110*)        sys_log.Log(msg);
    111  )   }
    142*)   Sys_Log("Server warming up...");
    182*)   Sys_Log("Server shutting down...");
    50  )     public static void main(String[] args)
    51  )     {
    52  )          try
    53  )          {
    54*)                Setup();
    85  )     catch(Exception e)
    86  )     {
    87  )          e.printStackTrace(System.out);
    88  )          err_log.Log(e.toString());
    89  )     }
    90  )     finally
    91  )     {
    92*)            Shutdown();
    93  )      }Now, various things that I have tried, and their result (you can probably skip this section, as these were mostly futile efforts):
    What seems odd to me is that the initial error is on line 110, which is the logging function Sys_Log. Since it's a null pointer exception, I would assume that sys_log is null? and thus in calling Log we're generating that error... I'm not entirely sure that that makes sense, though. Additionally, and what I find odd, is that if I change it to what I will list below, I get a slew of other seemingly unrelated problems:
    20    )   private static Log                sys_log;
    108  )   static void Sys_Log(String msg)
    109  )   {
    110#)        if (sys_log!=null)
    111  )        sys_log.Log(msg);
    112  )   }This results in a problem with function Err_Log, which I change the same way, resulting in the following:
    java.lang.NullPointerException
            at jamie.Area_LUL.Load(Area_LUL.java:23)
            at jamie.Main.Setup(Main.java:161)
            at jamie.Main.main(Main.java:55)
    Exception in thread "main" java.lang.NullPointerException
            at jamie.Main.Shutdown(Main.java:186)
            at jamie.Main.main(Main.java:93)In Main.java the following lines are generating the error:
    160  )   lul = new Area_LUL();
    161*)   lul.Load();And in Area_LUL.java I also have the following:
    14  )class Area_LUL implements LoaderUnloader
    15  ){
    16  )    public void Load()
    17  )    {
    18  )        try
    19  )        {
    20  )            areadir = new File("./areas/");
    21  )            SAXParser p = SAXParserFactory.newInstance().newSAXParser();
    22  )
    23*)            for(File curr : areadir.listFiles(new Area_Filter()))
    24  )            {
    25  )                p.parse(curr, new XMLParser());
    26  )            }
    27  )        }Where in the above, the for statement is generating the null pointer exception... which would tell me that areadir is null, however it is defined as new File("./areas/"); Also, lul (defined as new Area_LUL(); is generating the same error, though it is clearly defined in Area_LUL.java at the top of the last excerpt.
    Also, LoaderUnloader is defined in another file as follows:
    interface LoaderUnloader
        void Load();
        void Unload();
    }which are defined in Area_LUL in Area_LUL.java .
    A major theory which I currently have is that the compiler is beginning with my main.java file, and not seeing the class definition in another file, and thus attributing the class obj I create as null, which is causing the error, but I also am not sure if this is possible...
    My imports for Main.java are as follows:
    package jamie;
    import java.io.*;
    import java.util.*;I'm not entirely sure what the package is including, however I do have a jamie.jar file in another directory (../../dist) (could be referencing that?). Also, to compile the source I am using the following command:
    ~/bin/jdk*/bin/java -classpath classes jamie.MainHowever my classpath (I believe) isn't set to include all my files in the given directory. I wouldn't believe that this would be an issue, however if it could possibly be causing this, I can figure out how to set it properly. Also, this should mean I'm starting with Main.java, and perhaps I am right in concluding that it isn't referencing Area_LUL in another file properly, which is setting it as null?
    In any case... Any help would be greatly appreciated. This has been a bit of a struggle for about a month now, trying various resources, moving things around, etc... Thanks so much for your time in reading,
    -Jess

    I'm not able to follow the program flow from your post. Please create a small standalone program that exhibits the problem and post that back here.
    Your assumption re a NPE is correct, that's the only way they're generated.
    There are no "canned" methods to resolve NPEs. The best solution is to put System.out.println statements for all of the involved objects and variables immediately preceeding the error line (in this case, 110) and something will show null. Usually that's enough info to backtrace to the real cause.

  • Java File not found exception

    We get the followign when we navigate to the 'Peoplesoft' domain and then
    add a servlet and attempt to "persist".
    everything else seems to work fine.
    By navigating to the peolesoft domain, we open the default server
    and use "edit other domain" to pull up the console. then navigate to portal ->
    edit descriptors.
    OS is an Win2k Server.
    Thanks in advance for any help.
    ---- Error starts below ------
    java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.(FileInputStream.java:64)
         at java.io.FileInputStream.(FileInputStream.java:95)
         at weblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.java:272)
         at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
         at weblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:598)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy79.persist(Unknown Source)
         at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:78)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException: An error occurred while attempting
    to persist 'WebDescriptor-5' - with nested exception:
    [java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)]
         at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
         at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:80)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date
    Fri Jun 20 14:16:52 CDT 2003
    Console Release Build
    Console Build
    Server Release Build
    6.1.2.0
    Server Build
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product Versions
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
    Server System Properties
    awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogic file.encoding
    = Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts = java.awt.graphicsenv
    = sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar java.class.version
    = 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home = F:\bea\weblogic\jdk131\jre
    java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path = F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora92\bin;C:\Program
    Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
    Files\Dell\OpenManage\Array Manager;C:\Program Files\Dell\OpenManage\oma\bin;C:\Program
    Files\Dell\OpenManage\OMSA\bin;C:\Program Files\Dell\OpenManage\LU\bin;C:\Program
    Files\Dell\OpenManage\RAC\MN;C:\Program Files\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1\CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
    java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory java.naming.factory.url.pkgs
    = weblogic.jndi.factories java.protocol.handler.pkgs = weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|weblogic.net
    java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version
    = 1.3.1-b24 java.security.policy = =F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
    java.specification.name = Java Platform API Specification java.specification.vendor
    = Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = Sun Microsystems
    Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = Java HotSpot(TM)
    Client VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor
    = Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor = Sun
    Microsystems Inc. java.vm.version = 1.3.1-b24 javax.rmi.CORBA.PortableRemoteObjectClass
    = weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass = weblogic.iiop.UtilDelegateImpl
    javax.xml.parsers.DocumentBuilderFactory = weblogic.xml.jaxp.RegistryDocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory = weblogic.xml.jaxp.RegistrySAXParserFactory
    javax.xml.transform.TransformerFactory = weblogic.xml.jaxp.RegistrySAXTransformerFactory
    jmx.implementation.name = JMX RI jmx.implementation.vendor = Sun Microsystems
    jmx.implementation.version = 1.0 jmx.specification.name = Java Management Extensions
    jmx.specification.vendor = Sun Microsystems jmx.specification.version = 1.0 Final
    Release line.separator = org.xml.sax.driver = weblogic.apache.xerces.parsers.SAXParser
    os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ; sun.boot.class.path
    = F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.jar;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\classes
    sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian = little
    sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding = UnicodeLittle user.dir
    = F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackp user.language
    = en user.name = lackp user.region = US user.timezone = America/Chicago weblogic.Domain
    = psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled = true weblogic.security.jaas.Configuration
    = weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy = ./lib/Server.policy
    Request Info
    Protocol: HTTP/1.1
    ServerName: 127.0.0.1
    ServerPort: 7500
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString: MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDescriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: Basic
    ContentType: null
    CharacterEncoding: null
    Locale: en_US
    Method: GET
    Session: weblogic.servlet.internal.session.MemorySessionData@92f6
    RequestedSessionId: 2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500!1056136434604
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: system
    RemoteUser: system
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean = psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=WebDescriptor,WebAppComponent=PORTAL
    Attributes
    wlinternalaction = weblogic.management.console.actions.internal.InternalActionContext@2229ca
    java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user = system
    weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@34fa3c
    weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible;
    MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: true JavscriptHrefs:
    false TableCellClick: true DocumentReloadedOnResize: false DropdownStretchable:
    true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy:
    true PartialToWideTables: false DisabledControlSupported: true weblogic.management.console.helpers.DebugHelper
    = weblogic.management.console.helpers.DebugHelper@27a485 weblogic.management.console.helpers.UnitsHelper
    = weblogic.management.console.helpers.UnitsHelper@46fe47 weblogic.management.console.helpers.UrlHelper
    = weblogic.management.console.helpers.UrlHelper@65ce3c
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Encoding
    = gzip, deflate Accept-Language = en-us Authorization = Basic c3lzdGVtOmdsaXN0ZWFtMDM=
    Connection = Keep-Alive Cookie = JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500
    Host = 127.0.0.1:7500 Referer = http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
    User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

    Editing other domains is a scenario fraught with peril, which is why it was
    deprecated and removed from the console. It looks to me that the error
    message sums up the problem, ther eis no applications directory in the
    peoplesoft domain? Have you tried creating that directory from the file
    system?
    cheers
    mbg
    "Dan" <[email protected]> wrote in message
    news:[email protected]...
    >
    We get the followign when we navigate to the 'Peoplesoft' domain and then
    add a servlet and attempt to "persist".
    everything else seems to work fine.
    By navigating to the peolesoft domain, we open the default server
    and use "edit other domain" to pull up the console. then navigate toportal ->
    edit descriptors.
    OS is an Win2k Server.
    Thanks in advance for any help.
    ---- Error starts below ------
    java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(FileInputStream.java:64)
    at java.io.FileInputStream.(FileInputStream.java:95)
    atweblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.
    java:272)
    at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
    atweblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:
    598)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    .java:636)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
    21)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy79.persist(Unknown Source)
    atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
    perform(DoPersistTopLevelDescriptorAction.java:78)
    atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:171)
    atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
    et.java:91)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException: An error occurredwhile attempting
    to persist 'WebDescriptor-5' - with nested exception:
    [java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)]
    at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
    atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
    perform(DoPersistTopLevelDescriptorAction.java:80)
    atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:171)
    atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
    et.java:91)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date
    Fri Jun 20 14:16:52 CDT 2003
    Console Release Build
    Console Build
    Server Release Build
    6.1.2.0
    Server Build
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product Versions
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
    Server System Properties
    awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogicfile.encoding
    = Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts =java.awt.graphicsenv
    = sun.awt.Win32GraphicsEnvironment java.awt.printerjob =sun.awt.windows.WPrinterJob
    java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jarjava.class.version
    = 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home =F:\bea\weblogic\jdk131\jre
    java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path =F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora9
    2\bin;C:\Program
    Files\Oracle\jre\1.3.1\bin;C:\ProgramFiles\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
    ;C:\Program
    Files\Dell\OpenManage\Array Manager;C:\ProgramFiles\Dell\OpenManage\oma\bin;C:\Program
    Files\Dell\OpenManage\OMSA\bin;C:\ProgramFiles\Dell\OpenManage\LU\bin;C:\Program
    Files\Dell\OpenManage\RAC\MN;C:\ProgramFiles\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1
    \CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
    java.naming.factory.initial = weblogic.jndi.WLInitialContextFactoryjava.naming.factory.url.pkgs
    = weblogic.jndi.factories java.protocol.handler.pkgs =weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|
    weblogic.net
    java.runtime.name = Java(TM) 2 Runtime Environment, Standard Editionjava.runtime.version
    = 1.3.1-b24 java.security.policy ==F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
    java.specification.name = Java Platform API Specificationjava.specification.vendor
    = Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = SunMicrosystems
    Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug =
    http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = JavaHotSpot(TM)
    Client VM java.vm.specification.name = Java Virtual Machine Specificationjava.vm.specification.vendor
    = Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor= Sun
    Microsystems Inc. java.vm.version = 1.3.1-b24javax.rmi.CORBA.PortableRemoteObjectClass
    = weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass= weblogic.iiop.UtilDelegateImpl
    javax.xml.parsers.DocumentBuilderFactory =weblogic.xml.jaxp.RegistryDocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory =weblogic.xml.jaxp.RegistrySAXParserFactory
    javax.xml.transform.TransformerFactory =weblogic.xml.jaxp.RegistrySAXTransformerFactory
    jmx.implementation.name = JMX RI jmx.implementation.vendor = SunMicrosystems
    jmx.implementation.version = 1.0 jmx.specification.name = Java ManagementExtensions
    jmx.specification.vendor = Sun Microsystems jmx.specification.version =1.0 Final
    Release line.separator = org.xml.sax.driver =weblogic.apache.xerces.parsers.SAXParser
    os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ;sun.boot.class.path
    =F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.ja
    r;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\c
    lasses
    sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian =little
    sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding =UnicodeLittle user.dir
    = F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackpuser.language
    = en user.name = lackp user.region = US user.timezone = America/Chicagoweblogic.Domain
    = psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled =true weblogic.security.jaas.Configuration
    = weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy =./lib/Server.policy
    >
    >
    Request Info
    Protocol: HTTP/1.1
    ServerName: 127.0.0.1
    ServerPort: 7500
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString:MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDe
    scriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: Basic
    ContentType: null
    CharacterEncoding: null
    Locale: en_US
    Method: GET
    Session:weblogic.servlet.internal.session.MemorySessionData@92f6
    RequestedSessionId:2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7
    500!9500!1056136434604
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: system
    RemoteUser: system
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean =psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=We
    bDescriptor,WebAppComponent=PORTAL
    >
    Attributes
    wlinternalaction =weblogic.management.console.actions.internal.InternalActionContext@2229ca
    java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user =system
    weblogic.management.console.catalog.Catalog =weblogic.management.console.catalog.XmlCatalog@34fa3c
    weblogic.management.console.helpers.BrowserHelper = User-Agent:Mozilla/4.0 (compatible;
    MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: trueJavscriptHrefs:
    false TableCellClick: true DocumentReloadedOnResize: falseDropdownStretchable:
    true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported:true TableBorderFancy:
    true PartialToWideTables: false DisabledControlSupported: trueweblogic.management.console.helpers.DebugHelper
    = [email protected]nagement.console.helpers.UnitsHelper
    = [email protected]nagement.console.helpers.UrlHelper
    = weblogic.management.console.helpers.UrlHelper@65ce3c
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*Accept-Encoding
    = gzip, deflate Accept-Language = en-us Authorization = Basicc3lzdGVtOmdsaXN0ZWFtMDM=
    Connection = Keep-Alive Cookie =JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1
    620044925!7500!9500
    Host = 127.0.0.1:7500 Referer =http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
    User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT5.0)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

  • Help - Premature end of file Exception while using saaj

    Hi Everyone,
    I have written a sample saaj client, with a string as an attachment and trying to send it to a servlet as shown in the example below:
    * SaajClient.java
    * Created on June 23, 2004, 5:49 PM
    * @author Krishna Menon
    import javax.xml.soap.*;
    import javax.xml.messaging.URLEndpoint;
    public class SaajClient {
    public SaajClient() throws Exception
    try{
    SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
    SOAPPart soapPart = soapMessage.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPHeader header = envelope.getHeader();
    SOAPBody body = envelope.getBody();
    header.detachNode();
    String str = "Something a;alskdjf;laksjdfl;akjsdf;lk ;alskdjfl;asjdfl;ajk ;kdls a;kl";
    if(soapMessage != null)
    AttachmentPart attachment = soapMessage.createAttachmentPart();
    attachment.setContentType("text/plain");
    attachment.setContent(str,"text/plain");
    attachment.setContentId("Sample_String");
    soapMessage.addAttachmentPart(attachment);
    soapMessage.saveChanges();
    SOAPConnection connection = SOAPConnectionFactory.newInstance().createConnection();
    URLEndpoint endpoint = new URLEndpoint("http://10.2.1.132:8080/WebServices/servlet/AttachmentReceiver");
    SOAPMessage response = connection.call(soapMessage,endpoint);
    response.writeTo(System.out);
    }catch(Exception e)
    System.out.println("Caught in constructor");
    e.printStackTrace();
    public static void main(String args[])
    try
    SaajClient client = new SaajClient();
    }catch(Exception e)
    e.printStackTrace();
    When I run the above program, it is giving the following exception:
    Caught in constructor
    javax.xml.soap.SOAPException: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:110)
    at SaajClient.<init>(SaajClient.java:58)
    at SaajClient.main(SaajClient.java:74)
    Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:1753)
    at org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:105)
    ... 2 more
    Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1139)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
    ... 7 more
    If anybody has a solution for it, please post it here.
    Thanks in advance,
    With Regards,
    Krishna Menon. B.

    Hi
    Actually the problem is not with the client but with the servlet I think. In the servlet, I am able to retrieve the attachment and print its content. After receiving the Message, I am creating a new message and populating its body with a new child element and returning the message back to the client. Just Before returning the message, I am getting the Axis Fault error in the log file. I am giving the code for the Servlet I have used below:
    * AttachmentReceiver.java
    * Created on June 23, 2004, 7:11 PM
    * @author Krishna Menon
    import java.util.Iterator;
    import javax.servlet.ServletException;
    import javax.xml.messaging.JAXMServlet;
    import javax.xml.messaging.ReqRespListener;
    import javax.xml.soap.AttachmentPart;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPFactory;
    * Servlet that accepts a SOAP message and looks through
    * its attachments before sending the SOAP part of the message
    * to the console and sending back a response
    * @author Krishna Menon
    public class AttachmentReceiver extends JAXMServlet implements ReqRespListener {
    private MessageFactory fac;
    public void init() throws ServletException {
    try {
    fac = MessageFactory.newInstance();
    catch( Exception ex ) {
    System.out.println("In AttachmentReceiver init");
    ex.printStackTrace();
    throw new ServletException( ex );
    // This is the application code for handling the message.. Once the
    // message is received the application can retrieve the soap part, the
    // attachment part if there are any, or any other information from the
    // message.
    public SOAPMessage onMessage( SOAPMessage message ) {
    System.out.println( "On message called in receiving servlet" );
    try {
    System.out.println( "\nMessage Received: " );
    System.out.println( "\n============ start ============\n" );
    // dump out attachments
    System.out.println( "Number of Attachments: " + message.countAttachments() );
    int i = 1;
    for( Iterator it = message.getAttachments(); it.hasNext(); i++ ) {
    AttachmentPart ap = (AttachmentPart) it.next();
    System.out.println( "Attachment #" + i + " content type : " +
    ap.getContentType() );
    System.out.println("Attachment Content ::"+ap.getContent());
    // dump out the SOAP part of the message
    SOAPPart soapPart = message.getSOAPPart();
    System.out.println( "SOAP Part of Message:\n\n" + soapPart );
    System.out.println( "\n============ end ===========\n" );
    SOAPMessage msg = fac.createMessage();
    SOAPEnvelope env = msg.getSOAPPart().getEnvelope();
    SOAPFactory soapFactory = SOAPFactory.newInstance();
    System.out.println("Before getBody");
    env.getBody().addChildElement(soapFactory.createName("MessageResponse")).addTextNode("From Attachment Servlet"+"\nYour Attachment Received");
    System.out.println("After getBody");
    //addChildElement("MessageResponse").addTextNode("From Attachment Servlet"+"\nYour Attachment Received");
    msg.saveChanges();
    System.out.println("After Msg Save Changes");
    return msg;
    catch( Exception e ) {
    System.out.println("From OnMessage() of AttachmentReceiver");
    e.printStackTrace();
    return null;
    This is generating the following series of errors in the catalina.out (Tomcat4.1 error log ) file:
    On message called in receiving servlet
    Message Received:
    ============ start ============
    Number of Attachments: 1
    Attachment #1 content type : text/plain
    SOAP Part of Message:
    org.apache.axis.SOAPPart@16fdac
    ============ end ===========
    - java.io.IOException:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace: java.lang.ClassCastException
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:173)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:783)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
         at org.apache.axis.Message.writeTo(Message.java:440)
         at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassCastException
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:272)
         at org.apache.axis.Message.writeTo(Message.java:440)
         at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:173)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:509)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:783)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
         ... 33 more

Maybe you are looking for

  • Upgraded from iphoto9 to iphoto11 using ilife dvd, now it wont open!

    i had iphoto 9 (i think) on mac and i just put ilife 11 dvd in to update the apps especially iphoto to 11. now every new and updated app seems to open fine except iphoto (the only one i use of course)- it wont open and says i need to update software

  • If fomatted output then no sum

    Hi, I've been searching the forum for an answer but I found them a bit too advanced for me.. (this is my second day w/htmldb) I have a report based on a query, if I have to_char() for formatting in the numeric columns then the sum of them don't work.

  • Failed To Start Because (I) Cancelled The Connection

    I've been having issues with video chatting for probably the last year. I occasionally get it to work, but most of the time I get a plethora of error messages. The one I'm currently getting is that I canceled the connection. My router: AMBIT DOCSIS 2

  • How to best clean your (my) iPhone touch screen?

    Hi all, I've had a total of two touch screen mobile phones in my life: a Samsung Jet and my current iPhone 4, and with the former, keeping the screen clean was quite an ordeal, as it acted like a magnet for finger marks, but at least when I wiped it

  • Garageband mixing and mastering

    hey all, I am looking to outsource my mixing and mastering needs. i am wondering if you know of anyone who will mix and master garageband files. not just anyone of course, but someone who knows what they're doing, a reputable studio, or mastering hou