SocketException reading request, ignored in Tomcat !

In my application I get sometimes the following Exception :
ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
     at java.net.SocketInputStream.socketRead(Native Method)
     at java.net.SocketInputStream.read(SocketInputStream.java:86)
     at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
     at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
     at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.java:115)
     at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInputStream.java:106)
     at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputStream.java:128)
     at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
     at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:129)
     at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:195)
     at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
     at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
     at java.lang.Thread.run(Thread.java:484)
The Exception occurs not everytime.
What I am doing is storing some objects in the request object and in the session.
thanks andi

Im having something similiar...
2002-01-31 12:53:19 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.socketAvailable(Compiled Code)
at java.net.PlainSocketImpl.available(Compiled Code)
at java.net.SocketInputStream.available(Compiled Code)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Any Idea ?? Thanks !

Similar Messages

  • Error reading request connection reset

    hello,
    i am facing this error(Error reading request connection reset) when i press the submit button of the JSP file. This JSP is a sign-in page consisting of 6 fields and the "submit" button. Data is to be checked first then entered to the database....
    If anyone can help, please reply as soon as possible

    The workaround for this is to change the browser settings. The browser can be configured to communicate with a proxy server in two ways. The first method is
    to manually provide the URL of the proxy server for the browser to talk to. The other way is to provide a Java Script file with a .pac extension to tell the browser
    what proxy to communicate with. In either case the browser can be told to ignore the proxy for calls made to certain URI which could also be on the local
    machine or in the same subnet.
    The Exception that Tomcat throws occurs when the browser is directed to contact the server directly without going through the proxy. This exception does not
    occur if the browser is set to use the proxy for all types of URI.
    This can be done in two ways:
    1. Manually:
    a. For Netscape Browser : Go to Edit-preferences-Advanced-Proxies, select manual, click the view button, enter the appropriate proxy entry into each of the
    boxes, Leave the "No Proxy for:" entry blank.
    b. For Internet Explorer : Go to tools-internet options, click on the connections tab, click on LAN settings button, Check the use proxy server option, Enter the
    appropriate proxy URL and port number, Uncheck the "Byepass proxy for local addresses" option
    2. Automatic: Through the .pac file
    a. For Netscape:
    function FindProxyForURL(url, host) {
    return "PROXY_URL_1", "PROXY_URL_2", ... ;
    b. For Internet Explorer:
    function FindProxyForURL(url, host) {
    return "PROXY_URL_1", "PROXY_URL_2", ... ;
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • Error:SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. --- There is an error in XML document (1, 447). --- Input string was not in a correct format.

    Hi All,
        We have a scenario of FTP-->PI---> Webservice.  While triggering the data in the FTP, it is failing in the PI with the below error
    SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 447). ---> Input string was not in a correct format.
    Can you please help?

    Hi Raja- It seems to be a data quality issue.
    Check for the value @ 1447 position in the xml message that you are trying to send to web service..
    may be a date filed/decimal value which is not in expected format.

  • Batch reading request doesn't prefix field names by table name

    A batch reading request doesn't prefix field names by table name and I've got a AmbigiousException which is normal because there is the same fields in the 2 tables.
    The following code :
    //call a ReadAllQuery and return a list of AffaireImpl
    List<Affaire> listeAffaire =  affaireDao.getAffaireCorrespondantes(lccJrd, lnaAnnee, lnaOrdre, lcNataffCode, lnaNoSuite);
    for (Affaire affaire : listeAffaire) {
       //there is a one to Many mapping on Affaire to Dossier, with Transparent Indirection, Read-Ony and Batch Reading
       //this metod generate the wrong batch reading method
       List<Dossier> listeDossiers = affaire.getDossier();
    generates the following requests:
    ReadAllQuery(eu.curia.litige.model.AffaireImpl) --
    SELECT * FROM LA_AFF WHERE ( ((LCC_JRD = 'C') AND (LNA_ANNEE = 8)) AND (LNA_ORDRE = 8))
    ReadAllQuery(eu.curia.litige.model.DossierImpl) --
    SELECT t0.*
    FROM LA_DOSSIER t0, LA_AFF t1
    WHERE
    (((t0.LNA_NO_SUITE = t1.LNA_NO_SUITE) AND ((t0.LCC_JRD = t1.LCC_JRD) AND ((t0.LC_NATAFF_CODE = t1.LC_NATAFF_CODE) AND ((t0.LNA_ANNEE = t1.LNA_ANNEE) AND (t0.LNA_ORDRE = t1.LNA_ORDRE)))))
    AND UPPER(LCC_JRD) = 'C' AND UPPER(LNA_ORDRE) = '8' AND UPPER(LNA_ANNEE) = '8')+
    but the request should be :
    SELECT t0.*
    FROM LA_DOSSIER t0, LA_AFF t1
    WHERE
    (((t0.LNA_NO_SUITE = t1.LNA_NO_SUITE) AND ((t0.LCC_JRD = t1.LCC_JRD) AND ((t0.LC_NATAFF_CODE = t1.LC_NATAFF_CODE) AND ((t0.LNA_ANNEE = t1.LNA_ANNEE) AND (t0.LNA_ORDRE = t1.LNA_ORDRE)))))
    AND t1.LCC_JRD = 'C' AND t1.LNA_ORDRE = '8' AND t1.LNA_ANNEE = '8')+
    It's strange because this is the only place the batch reading doesn't prefix and uses a UPPER.
    For now we have disabled the batch reading, but it decreases the performanes (the list of affaire can be hudge).
    Any Idea?
    We use TopLink 10.1.3 on a Oracle 10g Database.
    Edited by: krampstudio on 2 déc. 2011 07:40
    Edited by: krampstudio on Dec 7, 2011 11:57 AM

    Here the mapping (I've also remove the tags of some of the direct mapping fields to simplify the reading)
         <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
             <opm:class>eu.curia.litige.model.AffaireImpl</opm:class>
             <opm:alias>Affaire</opm:alias>
             <opm:primary-key>
                <opm:field table="LA_AFF" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LCC_JRD" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LNA_ANNEE" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                <opm:field table="LA_AFF" name="LNA_ORDRE" xsi:type="opm:column"/>
             </opm:primary-key>
             <opm:events xsi:type="toplink:event-policy"/>
             <opm:querying xsi:type="toplink:query-policy">
                <toplink:does-exist-query xsi:type="toplink:does-exist-query">
                   <toplink:existence-check>check-database</toplink:existence-check>
                </toplink:does-exist-query>
             </opm:querying>
             <opm:attribute-mappings>
                <opm:attribute-mapping xsi:type="toplink:one-to-many-mapping">
                   <opm:attribute-name>dossier</opm:attribute-name>
                   <opm:read-only>true</opm:read-only>
                   <opm:get-method>getDossier</opm:get-method>
                   <opm:set-method>setDossier</opm:set-method>
                   <opm:reference-class>eu.curia.litige.model.DossierImpl</opm:reference-class>
                   <opm:target-foreign-key>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LCC_JRD" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LCC_JRD" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LNA_ANNEE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LNA_ANNEE" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LNA_ORDRE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LNA_ORDRE" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                      </opm:field-reference>
                      <opm:field-reference>
                         <opm:source-field table="LA_DOSSIER" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                         <opm:target-field table="LA_AFF" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                      </opm:field-reference>
                   </opm:target-foreign-key>
                   <toplink:batch-reading>true</toplink:batch-reading>
                   <toplink:container xsi:type="toplink:list-container-policy">
                      <toplink:collection-type>oracle.toplink.indirection.IndirectList</toplink:collection-type>
                   </toplink:container>
                   <toplink:indirection xsi:type="toplink:transparent-collection-indirection-policy"/>
                   <toplink:selection-query xsi:type="toplink:read-all-query">
                      <toplink:container xsi:type="toplink:list-container-policy">
                         <toplink:collection-type>oracle.toplink.indirection.IndirectList</toplink:collection-type>
                      </toplink:container>
                   </toplink:selection-query>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lccJrd</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LCC_JRD" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lcNataffCode</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LC_NATAFF_CODE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lnaAnnee</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LNA_ANNEE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lnaNoSuite</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LNA_NO_SUITE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
                <opm:attribute-mapping xsi:type="toplink:direct-mapping">
                   <opm:attribute-name>lnaOrdre</opm:attribute-name>
                   <opm:field table="LA_AFF" name="LNA_ORDRE" xsi:type="opm:column"/>
                </opm:attribute-mapping>
             </opm:attribute-mappings>
             <toplink:descriptor-type>independent</toplink:descriptor-type>
             <toplink:caching>
                <toplink:cache-invalidation-policy xsi:type="toplink:time-to-live-cache-invalidation-policy">
                   <toplink:time-to-live>30000</toplink:time-to-live>
                </toplink:cache-invalidation-policy>
             </toplink:caching>
             <toplink:instantiation/>
             <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
             <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
             <toplink:tables>
                <toplink:table name="LA_AFF"/>
             </toplink:tables>
          </opm:class-mapping-descriptor>

  • Reading request using ServletRequest.getInputStream() and getParameter()

    Hi,
    I have following problem: I have to read request using getInputStream()-method, because there might be an attachment in the form. Problem is that I have to read same request using ServletRequest.getParameter()-method. As it is said in API-documentation using getInputStream may interfere execution of ServletRequest.getParameter()-method. An so it does.
    Tomi

    You need to use the methods supplied by the
    MultipartRequest class to read in the parameters of
    the form because once you create a MultipartRequest
    object it reads in all the attachments and form
    parameters and then closes the input stream, so you
    can't use the 'getParameter' method of the HttpServlet
    class anymore.Exactly but then you have to define every jsp-page <form enctype="multipart/data-form" >. That's big problem because we are not using always multipart/data-form. Not always even post-method. However we are always using same servlet. This MultipartRequest-class assumes that it's multipart form.
    Tomi
    >
    The MultipartRequest has methods called
    'getParameter','getParameterNames', etc. that mimic
    the method names of the ServletRequest class. See the
    API doc below:
    http://www.servlets.com/cos/javadoc/com/oreilly/servlet
    MultipartRequest.html

  • Server was unable to read request. RuntimeFaultMessage

    Hi, I'm trying to orchestate a .Net web service that receives a String... the String that this .Net web service receives is called "xml" and it represents a xml like this "<rc><ho>hjh</ho><h><h1>hj>/h1><h2>hjh</h2></h></rc>"
    When I instantiate the call of this web service through BPEL I get this error:
    web_rc_asmx (ReporteRC) (faulted)
    [2004/09/22 12:31:04] "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown. Less
    faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    code: {Client}
    summary: {Server was unable to read request. --> There is an error in XML document (3, 114). --> 'Element' is an invalid node type. Line 3, position 114.}
    parts: {{}}
    The xml string that receives is good because I have tried it directry from the web service page.. or even calling it from an stub/skeleton.. Any idea what could be wrong???
    Thanks a lot,
    PAOLA LINARES

    this is the Bpel file:
    <!-- PAOLAPRO BPEL Process [Generated by the Oracle BPEL Designer] -->
    <process name="PAOLAPRO" targetNamespace="http://oracle.com" suppressJoinFailure="yes" xmlns:tns="http://oracle.com" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:ns0="http://tempuri.org/">
         <!-- ================================================================= -->
         <!-- PARTNERLINKS -->
         <!-- List of services participating in this BPEL process -->
         <!-- ================================================================= -->
         <partnerLinks>
              <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
              <partnerLink name="client" partnerLinkType="tns:PAOLAPRO" myRole="PAOLAPROProvider" partnerRole="PAOLAPRORequester"/>
              <partnerLink name="ReporteRC" partnerLinkType="ns0:WSInfRCSoapLink" partnerRole="WSInfRCSoapProvider"/>
         </partnerLinks>
         <!-- ================================================================= -->
         <!-- VARIABLES -->
         <!-- List of messages and XML documents used within this BPEL process -->
         <!-- ================================================================= -->
         <variables>
              <!-- Reference to the message passed as input during initiation -->
              <variable name="input" messageType="tns:PAOLAPRORequestMessage"/>
              <!-- Reference to the message that will be sent back to the
    requester during callback
    -->
              <variable name="output" messageType="tns:PAOLAPROResponseMessage"/>
              <variable messageType="ns0:ReporteRCSoapIn" name="IN_"/>
              <variable messageType="ns0:ReporteRCSoapOut" name="OUT_"/>
         </variables>
         <!-- ================================================================= -->
         <!-- ORCHESTRATION LOGIC -->
         <!-- Set of activities coordinating the flow of messages across the -->
         <!-- services integrated within this business process -->
         <!-- ================================================================= -->
         <sequence name="main">
              <!-- Receive input from requestor.
    Note: This maps to operation defined in PAOLAPRO.wsdl
    -->
              <receive name="receiveInput" partnerLink="client" portType="tns:PAOLAPRO" operation="initiate" variable="input" createInstance="yes"/>
              <!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
              <scope name="scope-1">
                   <sequence>
                        <assign name="assign-1">
                             <copy>
                                  <from variable="input" part="payload" query="/tns:PAOLAPRORequest/tns:input">
                                  </from>
                                  <to variable="IN_" part="parameters" query="/ns0:ReporteRC/ns0:xml"/>
                             </copy>
                        </assign>
                        <invoke name="invoke-1" partnerLink="ReporteRC" portType="ns0:WSInfRCSoap" operation="ReporteRC" inputVariable="IN_" outputVariable="OUT_"/>
                   </sequence>
              </scope>
              <invoke name="callbackClient" partnerLink="client" portType="tns:PAOLAPROCallback" operation="onResult" inputVariable="output"/>
         </sequence>
    </process>
    WSDL file:
    <?xml version="1.0"?>
    <definitions name="PAOLAPRO"
    targetNamespace="http://oracle.com"
    xmlns:tns="http://oracle.com"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    >
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    TYPE DEFINITION - List of services participating in this BPEL process
    The default output of the BPEL designer uses strings as input and
    output to the BPEL Process. But you can define or import any XML
    Schema type and us them as part of the message types.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <types>
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="http://oracle.com"
    xmlns="http://www.w3.org/2001/XMLSchema"
    >
    <element name="PAOLAPRORequest">
    <complexType>
    <sequence>
    <element name="input" type="string" />
    </sequence>
    </complexType>
    </element>
    <element name="PAOLAPROResponse">
    <complexType>
    <sequence>
    <element name="result" type="string"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    MESSAGE TYPE DEFINITION - Definition of the message types used as
    part of the port type defintions
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <message name="PAOLAPRORequestMessage">
    <part name="payload" element="tns:PAOLAPRORequest"/>
    </message>
    <message name="PAOLAPROResponseMessage">
    <part name="payload" element="tns:PAOLAPROResponse"/>
    </message>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PORT TYPE DEFINITION - A port type groups a set of operations into
    a logical service unit.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <!-- portType implemented by the PAOLAPRO BPEL process -->
    <portType name="PAOLAPRO">
    <operation name="initiate">
    <input message="tns:PAOLAPRORequestMessage"/>
    </operation>
    </portType>
    <!-- portType implemented by the requester of PAOLAPRO BPEL process
    for asynchronous callback purposes
    -->
    <portType name="PAOLAPROCallback">
    <operation name="onResult">
    <input message="tns:PAOLAPROResponseMessage"/>
    </operation>
    </portType>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PARTNER LINK TYPE DEFINITION
    the PAOLAPRO partnerLinkType binds the provider and
    requester portType into an asynchronous conversation.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <plnk:partnerLinkType name="PAOLAPRO">
    <plnk:role name="PAOLAPROProvider">
    <plnk:portType name="tns:PAOLAPRO"/>
    </plnk:role>
    <plnk:role name="PAOLAPRORequester">
    <plnk:portType name="tns:PAOLAPROCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    WSINFRCWrapper.wsdl:
    <?xml version="1.0" encoding="utf-8"?>
    <definitions
         targetNamespace="http://tempuri.org/"
         xmlns:tns="http://tempuri.org/"
         xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
         >
         <import location="http://boinfrcs/wsdcrc/wsinfrc.asmx?WSDL"/>
         <plnk:partnerLinkType name="WSInfRCSoapLink">
              <plnk:role name="WSInfRCSoapProvider">
                   <plnk:portType name="tns:WSInfRCSoap" />
              </plnk:role>
         </plnk:partnerLinkType>     
    </definitions>
    This is the XML String:
    <RC><registro_control><tipo_llamado asin="false"/><usuario><id_usuario>xxx</id_usuario><clave>yyy</clave></usuario><documento tipo_documento="3988"><id_documento>1234</id_documento><NombreRegistro>solicitud_informacion</NombreRegistro></documento><cliente><nit>860001942-8</nit></cliente><solicitud><id_solicitud>5425</id_solicitud><url_respuesta>http://sevidor:puerto/RaizVirtual/ModuloTransmision/recibirEnvio.asp</url_respuesta><id_usuario_remoto>idUsuario</id_usuario_remoto><clave_usuario_remoto>claveUsuario</clave_usuario_remoto></solicitud></registro_control><Informacion><Dolar>2700</Dolar><Bolivar>1.38</Bolivar></Informacion><Cliente><Id>8913379</Id><TipoId>3</TipoId></Cliente></RC>
    and this is the Error:
    04/09/28 10:15:34 AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultString: Server was unable to read request. --> There is an error in XML do
    cument (3, 114). --> 'Element' is an invalid node type. Line 3, position 114.
    faultActor: null
    faultDetail:
    04/09/28 10:15:34 Server was unable to read request. --> There is an error in XM
    L document (3, 114). --> 'Element' is an invalid node type. Line 3, position 114
    04/09/28 10:15:34 at org.apache.axis.message.SOAPFaultBuilder.endElement(S
    OAPFaultBuilder.java:135)
    04/09/28 10:15:34 at org.apache.axis.encoding.DeserializationContextImpl.e
    ndElement(DeserializationContextImpl.java:942)
    04/09/28 10:15:34 at org.apache.xerces.parsers.AbstractSAXParser.endElemen
    t(Unknown Source)
    04/09/28 10:15:34 at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanE
    ndElement(Unknown Source)
    04/09/28 10:15:34 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
    $FragmentContentDispatcher.dispatch(Unknown Source)
    04/09/28 10:15:34 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
    .scanDocument(Unknown Source)
    04/09/28 10:15:34 at org.apache.xerces.parsers.XML11Configuration.parse(Un
    known Source)
    04/09/28 10:15:34 at org.apache.xerces.parsers.XML11Configuration.parse(Un
    known Source)
    04/09/28 10:15:34 at org.apache.xerces.parsers.XMLParser.parse(Unknown Sou
    rce)
    04/09/28 10:15:34 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unk
    nown Source)
    04/09/28 10:15:34 at javax.xml.parsers.SAXParser.parse(Unknown Source)
    04/09/28 10:15:34 at org.apache.axis.encoding.DeserializationContextImpl.p
    arse(DeserializationContextImpl.java:232)
    04/09/28 10:15:34 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.j
    ava:547)
    04/09/28 10:15:34 at org.apache.axis.Message.getSOAPEnvelope(Message.java:
    377)
    04/09/28 10:15:34 at org.apache.axis.client.Call.invokeEngine(Call.java:21
    72)
    04/09/28 10:15:34 at org.apache.axis.client.Call.invoke(Call.java:2138)
    04/09/28 10:15:34 at org.apache.axis.client.Call.invoke(Call.java:1308)
    04/09/28 10:15:34 at org.apache.wsif.providers.collaxa.axis.WSIFOperation_
    ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:1892)
    04/09/28 10:15:34 at org.apache.wsif.providers.collaxa.axis.WSIFOperation_
    ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1451)
    04/09/28 10:15:34 at org.apache.wsif.providers.collaxa.axis.WSIFOperation_
    ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1022)
    04/09/28 10:15:34 at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIF
    InvocationHandler.java:306)
    04/09/28 10:15:34 at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvo
    cationManager.java:250)
    04/09/28 10:15:34 at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvo
    cationManager.java:133)
    04/09/28 10:15:34 at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invok
    e(BPELInvokeWMP.java:518)
    04/09/28 10:15:34 at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__execu
    teStatements(BPELInvokeWMP.java:276)
    04/09/28 10:15:34 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
    rm(BPELActivityWMP.java:175)
    04/09/28 10:15:34 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
    beEngine.java:3244)
    04/09/28 10:15:34 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
    eEngine.java:1664)
    04/09/28 10:15:34 at com.collaxa.cube.engine.dispatch.message.instance.Per
    formMessageHandler.handleLocal(PerformMessageHandler.java:75)
    04/09/28 10:15:34 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eLocalMessage(DispatchHelper.java:84)
    04/09/28 10:15:34 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM
    emory(DispatchHelper.java:137)
    04/09/28 10:15:34 at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEng
    ine.java:5318)
    04/09/28 10:15:34 at com.collaxa.cube.engine.CubeEngine.createAndInvoke(Cu
    beEngine.java:1192)
    04/09/28 10:15:34 at com.collaxa.cube.engine.delivery.DeliveryService.hand
    leInvoke(DeliveryService.java:480)
    04/09/28 10:15:34 at com.collaxa.cube.engine.bean.DeliveryBean.handleInvok
    e(DeliveryBean.java:307)
    04/09/28 10:15:34 at IDeliveryLocalBean_StatelessSessionBeanWrapper16.hand
    leInvoke(IDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1764)
    04/09/28 10:15:34 at com.collaxa.cube.engine.dispatch.message.invoke.Invok
    eInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:36)
    04/09/28 10:15:34 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
    eMessage(DispatchHelper.java:62)
    04/09/28 10:15:34 at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.
    process(BaseScheduledWorker.java:72)

  • EJB 3.0 - problem reading request parameters

    I'm looking at Spring and TopLink integration and deploying with the EJB 3.0 version. I ran into problems when trying to retrieve a parameter from a request. Since I could not see anything wrong, I deployed with Tomcat and the code executed correctly.
    The simple case below illustrates the problem:
    <%@ page session="false"%>
    <%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0" prefix="req" %>
    <html>
    <head>
    <title>PetClinic :: a Spring Framework demonstration</title>
    </head>
    <body>
    The ID parameter is: <req:parameter name="id"/>
    </body>
    </html>
    Running with http://localhost:8080/sto12/welcomeURL.htm?id=foo causes foo to be displayed in Tomcat but not in OC4J EJB 3.0. Why is this?
    Thanks
    Mike

    Sorry, I tried to submit the problem in a simplified form and I can see I've just made it more confusing. Let me try again.
    Spring ships with a Petclinic sample. The Spring Toplink integration work has provided new classes that allow the Petclinic example to be deployed using Toplink as the object relational mapping. I have it running using Tomcat, but have had problems using OC4J EJB 3.0.
    In the sample app, there is a JSP that allows surname to be entered, which then calls code to search for Owners with a match on surname. That code treats no matches, one match and many matches differently.
    In the case of no matches, the JSP simply displays a message saying no matches found. In the case of many matches, it uses another JSP to display a list of Owners, from which the desired one is selected. The selected one is then displayed by a further JSP on which updates can be made. Where only one match with surname is found, the selection JSP is bypassed.
    Behind the scenes when obtaining the list of matching Owners, the Toplink code simply obtains a list. When one is selected, a further Toplink access is used which returns the selected Owner by reading via the primary key selected from the list. The essence of the problem is that there is a single piece of code in the sample that makes the Toplink call to read by primary key. When called in one scenario, it works, in the other it does not.
    Where that code is invoked as a result of the user selecting from a list, it is the JSP POSTing the selected Owner that transmits the primary key to the code. The code obtains the key from the request and everything works fine.
    Where only one Owner is found, a redirect is done with the key added as a parameter. When the same code as above attempts the retrieve the key, it is unable to do so ie it returns null and the subsequent Toplink call fails.
    Since the above obscures the problem, I played around with two of the JSPs provided - welcome.jsp and index.jsp. In the sample, index.jsp is included in the web.xml under <welcome-file-list> and hence is used when the app is started. It simply redirects to welcome.jsp. (I believe the reason is that all requests go via the Spring DispatcherServlet and are forwarded to the appropriate JSP depending on configuration - hence the comment that they are "virtual").
    When I put code in the index.jsp to display an id parameter and start it with an id provided, it displays the id parameter. When I let the index.jsp simply redirect to welcome.jsp (with an id included and welcome.jsp changed to display the value)it does not display the value.
    I'm sorry this has become a long post. The gist seems to be that I can't extract parameters from requests that have been redirected. As I said at the top of this note, this is not the case with Tomcat - I can run the same code there and retrieve parameters from a request, whether it has been redirected or not. I've posted in this forum because I believe the problem is with OC4J not with Spring or Toplink. I could be wrong.
    Any suggestions are very welcome.
    Mike

  • Default request encoding in tomcat 4.0.6 (urgent)

    Hi all,
    I developed a web application which supports japanese characters. The configuration is apache, tomcat 3.3.1, mysql.In this configuration the application works fine.
    I tranferred the application to tomcat 4.0.6, now the japanese characters are displayed as ????. But the characters retrieved from the db are displaying correctly, the characters which are read from the text field are displaying like ??? (I set all the charset properly, this same code working correctly in the above configuration).
    I think in tomcat 3.3.1 server.xml file has <DecodeInterceptor /> tag to decode all the request in the given encoding, I used <DecodeInterceptor defaultEncoding="Shift_JIS" /> in tomcat 3.3.1, like this is any tags availabe to configure tomcat 4.0.6 or any otherway to decode the request. Please give me your suggestions, its very urgent because I am in the deadline of this project.
    Thanx in advance
    Regards,
    Pandiaraj

    You could try running the server from a Japanese or UTF-8 locale (depending on what encoding you are expecting from the client). This should change the default behaviour (when the browser doesn't explicitly say what encoding it is using).
    But if the charset was set properly when the form was served, then the browsers should be sending back the same charset with its Content-type header, so Tomcat 4 should automatically use the right encoding IIRC.

  • IPhone "erase data" request ignored

    My iPhone got stolen and went offline. I went and ordered an "Erase Data" request through iCloud, and it said that it'll get deleted as soon as the device is online.
    iPhone did not have a pass code...
    I also initiated "sign out of all sessions" through gmail, so that it won't be possible to read my mail and reset iCloud password...
    So the next day I get an email that my iCloud password was reset. The thief disabled FindMyIphone by following the reset password link for iCloud. Through gmail account logs, I saw that he entered my email using the regular Mail app which DID NOT sign out same as all other google account sessions...
    I don't get it. How is it even possible that the iphone didn't get erased and the thief simply used it regularly without issues - checking Mail, etc ? Is it because of no pass code ? Or is there some bypasses to basically ignore/cancel the erase request ?

    Not sure what you mean by that, but again, unless you changed your mail password, they could still have accessed it.
    They probably cancelled the request by signing out of iCloud, which they can do since they now know your password. If they sent the password reset request before you sent the remote wipe request, they would be able to get online to read the mail and it wouldn't be wiped.

  • Portal application can't read request info

    hi all,
    i use  portal application for change portal user's infos.but when i sent request info,
    request.getServletRequest().getInputStream() method is cutting my sending line after 90. character.
    in R3 side i use HTTP_POST function and fill request info (table paramater).
    i tried to send 2 line(less than 90 character) in request info, but i can't read second line in java code.
    Is IPortalComponentRequest accept only 90 character ?
    how can i solve this problem , any idea ?
    my code is below, variable "str" is filling only first 90 character;
         protected void doOnNodeReady(
                   IPortalComponentRequest request,
                   IEvent event) {
         String str = "";
         try {
              InputStream is = request.getServletRequest().getInputStream();
              InputStreamReader isr = new InputStreamReader(is);
              int c;
              while ((c = isr.read()) > -1) {
              str = str + (char) c;
                } catch (java.io.IOException ex) {
                 str = "Error accessing input stream";
    thanks

    New discovery...If I shut down all instances of IE on my machine, then reopen my test form, it works. Once. The second time I try it I get the same peculiar behavior again, until I again shut down all instances of IE.

  • FILENOTFOUNDEXCEPTION while reading property files in Tomcat 6------Help me

    Hi All
    I am planning to migrate my web application from iplanet 4.1 to tomcat 6. In this process I need to read the properties files initially.
    for eg: i got the property files in a iPlanet:
    Config directory---
    abc.properties.---
    abc.log--
    In tomcat I configured them in web.xml saying that.
    <servlet>
    <servlet-name>ABC</servlet-name>
    <servlet-class>com.ijk.abc</servlet-class>
    <init-param>
    <param-name>Loan</param-name>
    <param-value>/WEB-INF/config</param-value>
    </init-param>
    <init-param>
    <param-name>loan.props</param-name>
    <param-value>/WEB-INF/config/abc.props</param-value>
    </init-param>
    <init-param>
    <param-name>loan.log</param-name>
    <param-value>/WEB-INF/config/abc.log</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>ABC</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>
    I need to read initially all the property files and then proceed.
    While configuring in this way, it am getting error saying that
    abc.props or abc.log..............(FILE NOT FOUND EXCEPTION)
    Can anyone suggest me how to configure them.
    Thanks in Advance.

    Thanks for your response, Actually we dont have the source code for that because it is very old code, but i m using decompiler in which i can get some informtaion.
    OS used for iPlanet is Unix but now I need to deploy this application in tomcat in windows server 2003.
    Servlet clss:
    SERVLET CLASS:
    Class com.ijk.abc implements extends HttpServlet  implements PropertyKeys
    private IClickManager m_im;
    public void init(ServletConfig paramServletConfig)
        throws ServletException
        Utils.info("Servlet initialization");
        try {
          super.init(paramServletConfig);
          Utils.info("ServerInfo: " + getServletContext().getServerInfo());
          PGroup localPGroup = this.m_im.claimPG();
          Utils.trace("Got " + localProcessorGroup + " for initialization");
          this.m_im.gatherProperties(localProcessorGroup);-----------this is where it is calling the property files.
          this.m_im.freePG(localPGroup);
          Utils.trace("Released " + localPGroup + " for new Properties");
          localPGroup = this.m_im.claimPG();
          Utils.trace("Got " + localPGroup + " for new Properties");
          try
            ConHandler localDBHandler = (ConHandler)localPGroup.getDBHandler("config.dbhandler");
            this.m_im.setNumPGs(localDBHandler.getNumPGroups());
          catch (Exception localException1) {
            Utils.info("NON FATAL ERROR: failed to set number of PGs", localException1);
          try
            Session.createAndStartSessionTask(localPGroup);
            localPGroup.resumeAllTasks();
          catch (Exception localException2) {
            Utils.info("NON FATAL ERROR: failed to start tasks", localException2);
          this.m_im.freePG(localPGroup);
          Utils.trace("Released " + localPGroup + " for initialization");
          Utils.info("Servlet initialization finished");
        catch (FatalServletError localFatalServletError) {
          Utils.error("FatalServletError: ", localFatalServletError);
          throw new UnavailableException(this, localFatalServletError.toString());
        catch (Error localError) {
          Utils.error("Error: ", localError);
          throw localError;
    ==========================================================
    public void gatherProperties(ProcessorGroup paramProcessorGroup)
        Object localObject;
        this.m_props.clear();
        String str1 = this.m_servlet.getInitParameter("loan.dir");
        if (str1 == null) {
          str1 = System.getProperty("server.root", System.getProperty("user.dir", "."));
        this.m_props.put("loan.dir", str1);
        String str2 = this.m_servlet.getInitParameter("abc.log");
        setLogFile(str2);
        try
          String str3 = this.m_servlet.getInitParameter("abc.props");
          if (str3 == null)
            str3 = "abc.props";
          localObject = str1 + File.separator + str3;
          Utils.info("Reading properties from file: " + ((String)localObject));
          Utils.loadProperties(this.m_props, new BufferedInputStream(new FileInputStream((String)localObject)));
        catch (IOException localIOException) {
          Utils.info("NON FATAL WARNING: Could not read props file", localIOException);--while running i m getting this error
        Utils.info("Reading properties from Servlet Parameters");
        Enumeration localEnumeration = this.m_servlet.getInitParameterNames();
        while (localEnumeration.hasMoreElements()) {
          localObject = (String)localEnumeration.nextElement();
          this.m_props.put(localObject, this.m_servlet.getInitParameter((String)localObject));
        Utils.info("Reading properties from DB");
        try {
          localObject = (ConDBHandler)paramProcessorGroup.getDBHandler("config.dbhandler");
          String str5 = ((ConDBHandler)localObject).getPropertiesFile();
          Utils.loadProperties(this.m_props, new ByteArrayInputStream(str5.getBytes()));
        catch (Exception localException) {
          Utils.info("NON FATAL WARNING: Could not read props file", localIOException);--while running i m getting this error
        String str4 = this.m_props.getProperty("smtp.host");
        if (str4 != null) MailUtils.setSMTPHost(str4.trim());
        if (str2 == null) {
          str2 = this.m_props.getProperty("abc.log");
          setLogFile(str2);
         runInitializers(paramPGroup);
        Utils.info("New Properties:", this.m_props);
        this.m_rroots = StringUtils.getPathsFromList(this.m_props.getProperty("resource.path", "/com/loan/resources/:/"));
        clearAllPGs();
    =================================================================
    the above is the servlet class and the method which is using to read the property files from root directory in Unix.
    ie../opt/mywebapp/loan/abc.props,abc.log
    loan is the directory in which two property files are placed.
    i just want to where to place property files in tomcat so that its going to read the property files.
    Right now, i placing it in the WEBAPPS/MYWEBAPPLICATION/WEB-INF/LOAN/abc.props,abc.logs.
    Its giving me errors such as FILENOTFOUNDEXCEPTION or cannot read the property files.
    The main problem is ...I donot have the complete source code. while decompiling i m not able view complete source code.
    Please help me regarding this.........
    Thanks in advance.

  • ABAP report to read request details in data-target and delete

    Hi,
    Is there any abap report which I can run in background to read all request details (Request ID, Date) in a data target?
    And any ABAP report which can delete a particular request?
    Regards
    Vikrant

    Hi Vikrant,
    You can check Table RSREQDONE and RSREQICODS for all details about requests.
    About deletion you can try with standard function in InfoPackage when uploading.
    Ciao.
    Riccardo.

  • Servlet Filter - Reading Request Error

    I have a servlet filter that sits in front of a webservice servlet (AXIS) - what I want the filter to do is to look at the content of the ServletRequest and if a particular string is located in the request, I want to call another service. Everything works just fine except (isin't there always an execept) that when I execute the following code in the filter:
    BufferedReader inReader = request.getReader();
    String line = null;
    StringBuffer sbuf = new StringBuffer();
    // Read the current request into a buffer
    while((line = inReader.readLine()) != null) {
    sbuf.append(line);
    sbuf.append("\n\r");
    if (sbuf.toString().indexOf("mystring") > -1) {
    // I do some code
    } else {
    chain.doFilter(request, wrapper);
    When I execute this code, at the chain.doFilter I get an "java.lang.IllegalStateException: getReader() has already been called for this request"
    I know that this is because I obtained the Reader from the request. But my question is - How can I look at the request string so that I can evaluate it and not have this exception thrown..
    Thx in advance...

    My guess is that when you do the chain.doFilter you pass the request to another resource that then tries to access the request.getInputStream method.
    From the JavaDocs:
    getReader
    public java.io.BufferedReader getReader()
    throws java.io.IOException
    Retrieves the body of the request as character data using a BufferedReader. The reader translates the character data according to the character encoding used on the body. Either this method or getInputStream() may be called to read the body, not both.
    Returns:
    a BufferedReader containing the body of the request
    Throws:
    java.io.UnsupportedEncodingException - if the character set encoding used is not supported and the text cannot be decoded
    IllegalStateException - if getInputStream() method has been called on this request
    java.io.IOException - if an input or output exception occurred

  • How to read request body in a servlet

    Hi,
    can u please tell me how to read data from http request body?
    thanks in advance

    [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]

  • Problem to read  config file when tomcat used as service

    hi,
    I have an advanced installer developed for an application and the application is working fine when
    my tomcat is used in "manual" mode.But when tomcat is used in "Automatic" mode(as a service)
    I'm unable to login into my application, may be unable to read the config.xml....
    can any one please help me out with a solution.
    Regards,
    Vardhan

    hi,
    I got a solution.Jst change the mode of tomcat and restart the system.
    It's working and pls provide with any other solution if you have..
    thanx,
    Vardhan

Maybe you are looking for

  • IPod Cannot Restore or Be Recognized

    Having lots of issues with my iPod. Normally, once in awhile my ipod will get an error when putting music or videos on it, which causes errors when I plug it into the computer that it prompts me to fix by scanning for errors - but the iPod will work

  • Can't Install AIR on Mac OS 10.6

    I keep getting this message. "An error occurred while installing Adobe AIR. Installation may not be allowed by your administrator. Please contact your administrator." I trashed out AIR folder in Framework, uninstall AIR from Utilities, and re-install

  • After stand-by mode screen turns green or the graphics get messy - Satellite M100-165

    When i leave my laptop for more than 20 minutes on stand by mode and i try to activate it again the screen turns green or the graphics get messy. In order to work i have to reset and turn on again. Does anybody know what can i do about this issue? Th

  • Acrobat 9.0 version installation / download

    How can I install / download an older Acrobat 9.0 version I had purchased on my new computer?

  • Video won't load

    Went to support and searched iPhoto: transfering photos from camera. Brings up a video with click to play button. Click: button changes to play again. Video won't start. If I do the same with Firefox it works fune. Copied URL. Paste into real player