title: Exception: No protocol while reading XML
body: <p>I need to parse xml data from string bufer or string ..i do code as follows.
  here on the line <code>document doc =db.parse(eventXml )</code> ..it throws exception-- plesae find below code and exception .plese help me</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>eventXml = strBuffer.toString();
  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  DocumentBuilder db = dbf.newDocumentBuilder();
  
  Document doc = db.parse(eventXml );
  </code></pre>
  
  <p><strong>Exception</strong></p>
  
  <pre><code> java.net.MalformedURLException: no protocol: &lt;?xml version="1.0" encoding="UTF-8
      " standalone="yes"?&gt;%0A&lt;EventInfo xmlns="http://www.telenet.be/oms/event"&gt;%0A
       &lt;TelenetEventInfo className="be.telenet.oms.events.OmsAsapJsrpNotifyEvent"&gt;%0A
             &lt;SimpleFields&gt;%0A            &lt;SimpleField&gt;%0A                &lt;FieldName&gt;C
      ompletion_Date_Time&lt;/FieldName&gt;%0A                &lt;FieldValue&gt;04/08/2009 08:34:0
      1&lt;/FieldValue&gt;%0A            &lt;/SimpleField&gt;%0A            &lt;SimpleField&gt;%0A
                &lt;FieldName&gt;Originator&lt;/FieldName&gt;%0A                &lt;FieldValue&gt;System
      &lt;/FieldValue&gt;%0A            &lt;/SimpleField&gt;%0A            &lt;SimpleField&gt;%0A
               &lt;FieldName&gt;Status&lt;/FieldName&gt;%0A                &lt;FieldValue&gt;S&lt;/FieldVal
      ue&gt;%0A            &lt;/SimpleField&gt;%0A            &lt;SimpleField&gt;%0A                &lt;
      FieldName&gt;Workorder_ID&lt;/FieldName&gt;%0A                &lt;FieldValue&gt;I00054132231-09
      8&lt;/FieldValue&gt;%0A            &lt;/SimpleField&gt;%0A        &lt;/SimpleFields&gt;%0A
      &lt;ArrayData&gt;%0A            &lt;ArrayNames&gt;%0A                &lt;ArrayName&gt;Parameters&lt;/
      ArrayName&gt;%0A                &lt;ArrayFieldEntry&gt;%0A                    &lt;ArraySubFi
      eld&gt;[0].Parameter_Name&lt;/ArraySubField&gt;%0A                    &lt;ArraySubFieldValue
      &gt;WARNING_TEXT&lt;/ArraySubFieldValue&gt;%0A                &lt;/ArrayFieldEntry&gt;%0A
                &lt;ArrayFieldEntry&gt;%0A                    &lt;ArraySubField&gt;[0].Parameter_v
      alue&lt;/ArraySubField&gt;%0A                    &lt;ArraySubFieldValue&gt;UnknownKeyExcepti
      on-Retrieving a webURL%0A                    for an unknown loginid: a004301&lt;/Ar
      raySubFieldValue&gt;%0A                &lt;/ArrayFieldEntry&gt;%0A                &lt;ArrayF
      ieldEntry&gt;%0A                    &lt;ArraySubField&gt;[1].Parameter_Name&lt;/ArraySubFiel
      d&gt;%0A                    &lt;ArraySubFieldValue&gt;AGED&lt;/ArraySubFieldValue&gt;%0A
               &lt;/ArrayFieldEntry&gt;%0A                &lt;ArrayFieldEntry&gt;%0A
            &lt;ArraySubField&gt;[1].Parameter_value&lt;/ArraySubField&gt;%0A                    &lt;
      ArraySubFieldValue/&gt;%0A                &lt;/ArrayFieldEntry&gt;%0A                &lt;Arr
      ayFieldEntry&gt;%0A                    &lt;ArraySubField&gt;[2].Parameter_Name&lt;/ArraySubF
      ield&gt;%0A                    &lt;ArraySubFieldValue&gt;OPERATION&lt;/ArraySubFieldValue&gt;%0
      A                &lt;/ArrayFieldEntry&gt;%0A                &lt;ArrayFieldEntry&gt;%0A
                    &lt;ArraySubField&gt;[2].Parameter_value&lt;/ArraySubField&gt;%0A
             &lt;ArraySubFieldValue&gt;DEL&lt;/ArraySubFieldValue&gt;%0A                &lt;/ArrayFie
      ldEntry&gt;%0A                &lt;ArrayFieldEntry&gt;%0A                    &lt;ArraySubFiel
      d&gt;[3].Parameter_Name&lt;/ArraySubField&gt;%0A                    &lt;ArraySubFieldValue&gt;S
      USPEND&lt;/ArraySubFieldValue&gt;%0A                &lt;/ArrayFieldEntry&gt;%0A
         &lt;ArrayFieldEntry&gt;%0A                    &lt;ArraySubField&gt;[3].Parameter_value&lt;/A
      rraySubField&gt;%0A                    &lt;ArraySubFieldValue/&gt;%0A                &lt;/Ar
      rayFieldEntry&gt;%0A            &lt;/ArrayNames&gt;%0A        &lt;/ArrayData&gt;%0A        &lt;eve
      ntName&gt;OMS::ASAP::JSRP::Notify&lt;/eventName&gt;%0A        &lt;destination&gt;OSB&lt;/destinati
      on&gt;%0A    &lt;/TelenetEventInfo&gt;%0A&lt;/EventInfo&gt;%0A%0A
              at java.net.URL.&lt;init&gt;(URL.java:537)
              at java.net.URL.&lt;init&gt;(URL.java:434)
              at java.net.URL.&lt;init&gt;(URL.java:383)
              at weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityMan
      ager.java:836)
              at weblogic.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLE
      ntityManager.java:782)
              at weblogic.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XML
      DocumentScannerImpl.java:260)
              at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
      n.java:499)
              at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
      n.java:581)
              at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
              at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java:257)
              at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilder
      Impl.java:201)
              at weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuild
      er.java:149)
              at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
              at Controller.getEvent_Xml(Controller.jpf:822)
              at Controller.GetDetails(Controller.jpf:487)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowCont
      roller.java:1512)
              at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Flow
      Controller.java:1447)
              at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowControl
      ler.java:778)
              at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlo
      wController.java:211)
              at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java
      :608)
              at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
      tProcessor.java:484)
              at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerf
      orm(PageFlowRequestProcessor.java:1504)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
      va:274)
              at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowR
      equestProcessor.java:674)
              at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegi
      sterActionServlet.java:527)
              at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActi
      onServlet.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:1072)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:465)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
      pl.java:348)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:6985)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
      rvletContext.java:3892)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
      pl.java:2766)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
        Closing down all connections...
  
      &lt;Jun 8, 2009 4:03:18 PM IST&gt; &lt;Error&gt; &lt;HTTP&gt; &lt;BEA-101019&gt; &lt;[ServletContext(id=312
      55131,name=ECToolWeb,context-path=/ECToolWeb)] Servlet failed with IOException
      java.net.SocketTimeoutException: Read timed out
              at java.net.SocketInputStream.socketRead0(Native Method)
              at java.net.SocketInputStream.read(SocketInputStream.java:129)
              at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:1
      70)
              at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStr
      eamImpl.java:180)
              at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletR
      equestImpl.java:1339)
              at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Servlet
      RequestImpl.java:1206)
              at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequ
      estImpl.java:1409)
              at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequ
      estImpl.java:1395)
              at com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.getScopedSessio
      nAttrName(ScopedServletUtils.java:301)
              at com.bea.wlw.netui.pageflow.PageFlowUtils.getCurrentActionResolver(Pag
      eFlowUtils.java:496)
              at com.bea.wlw.netui.pageflow.PageFlowUtils.getCurrentPageFlow(PageFlowU
      tils.java:478)
              at com.bea.wlw.netui.pageflow.PageFlowUtils.ensureCurrentPageFlow(PageFl
      owUtils.java:454)
              at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
      er.java:193)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
      va:27)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:6987)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
      rvletContext.java:3892)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
      pl.java:2766)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
      --------------- nested within: ------------------
      weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request:
      '/ECToolWeb/DetailDisplay.jsp' - with nested exception:
      [java.net.SocketTimeoutException: Read timed out]
              at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletR
      equestImpl.java:1364)
              at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Servlet
      RequestImpl.java:1206)
              at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequ
      estImpl.java:1409)
              at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequ
      estImpl.java:1395)
              at com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.getScopedSessio
      nAttrName(ScopedServletUtils.java:301)
              at com.bea.wlw.netui.pageflow.PageFlowUtils.getCurrentActionResolver(Pag
      eFlowUtils.java:496)
              at com.bea.wlw.netui.pageflow.PageFlowUtils.getCurrentPageFlow(PageFlowU
      tils.java:478)
              at com.bea.wlw.netui.pageflow.PageFlowUtils.ensureCurrentPageFlow(PageFl
      owUtils.java:454)
              at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilt
      er.java:193)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
      va:27)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
      n.run(WebAppServletContext.java:6987)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
      dSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
      121)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
      rvletContext.java:3892)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
      pl.java:2766)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
      &gt;
  .
  </code></pre>