[JAXM] Several call to same servlet does not work

I have a working jaxm client, which works fine. But for test purpose I wanted to send several requests to my server using the same connection.
If I do // Send the message
reply = connection.call(message, endpoint); it works fine.
But if I try this:// Send the message
reply = connection.call(message, endpoint);
// Send it again
reply = connection.call(message, endpoint);the first call success, but the second one crashes and
I get the following exception in my client :java.io.FileNotFoundException: http://localhost:7001/SOAPRPCRouterServlet
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:545)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230)
        at com.sun.xml.messaging.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:203)
        at com.sun.xml.messaging.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:110)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.xml.messaging.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:89)And the following one in my server (weblogic 5.1) :Fri Jan 04 11:13:58 CET 2002:<E> <HTTP> Connection failure
java.net.SocketException: Connection shutdown: JVM_recv in socket input stream read
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:86)
        at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:209)
        at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)I tried to build a new message, but the result is exaclty the same.
Does I do things in the wrong way (maybe connection must be closed and reopen for each message, but I didn't found anything about this in the doc) or is it a bug in JaxM ?

I have a possible suggestion. The reference implementation sends a SOAP message via the HTTP protocol. The standard HTTP protocol approach is to open a connection, perform the operation, and then close the connection. I have a feeling that once you have used the SOAPConnection object to send and retrieve the message, the underlying HTTP connection is automatically closed.HTTP is a stateless protocol so once the server has delivered the request, it closes the connection and has no memory of the reuqest. Hence you cannot send subsequent requests on the same HTTP connection, any attempts to do so result in the errors that you see. What you will have to do is open up a new SOAPConnection object for each new message sent.
Hope this helps.

Similar Messages

  • When you install Premiere Pro as the admin on an iMac the audio functionalities work well but a second admin account on the same machine does not work. What can I do to fix this?

    When you install Premiere Pro as the admin on an iMac the audio functionalities work well but a second admin account on the same machine does not work. What can I do to fix this?

    It is a bad idea to hack computer passwords when you don't own the computer
    Good luck with the school and the parents.

  • HT203712 I have a 2011 tahoe.  My bluetooth functioned properly until I updated my iPhone.  Now the iPhone connects to the Tahoe but when I try to call a number it does not work.  Either it cals the number and has no outgoing or incoming sound or it just

    I have a 2011 tahoe.  My bluetooth functioned properly until I updated my iPhone.  Now the iPhone connects to the Tahoe but when I try to call a number it does not work.  Either it cals the number and has no outgoing or incoming sound or it just says it iis unable to complete the call.

    I would check with the Auto dealer where the vehicle was purchased to check and see when the bluetooth software was last updated on your vehicle. With the vehicle being a 2011 and if the software has not been updated since the dropping of IOS 7 then obviously there will be software incompatibilities.
    Good luck.

  • It seems mapproxy servlet does not work in 11.1.1.2

    Dear Masters,
    I used mapproxy?rtarget= to access mapviewer in JDeveloper 11.1.1.1 and everything was OK but when I switched to 11.1.1.2 mapproxy servlet does not return anything.
    Is there any changes about mapproxy servlet?
    Regards.

    Hi,
    in my web.xml file I see
    <servlet-mapping>
    <servlet-name>MapProxyServlet</servlet-name>
    <url-pattern>/mapproxy/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    Frank

  • Developer 1.6, 2.1 and 6i on the same machine does not work

    I have installed the three versions on the same machine against Oracle 7.3.4 in another node. Each one is installed in a different OracleHome. Version 2.1 and 6i works fine but when I run Forms 1.6 I get a message telling me that it cannot find the fmcus.msb.
    Is trying to find it in the path of the Developer 2.1 and of course it does not work.
    The Oracle Home selector only shows me those corresponding to 2.1 and 6i.
    It is possible some workaround even if running one version at a time.
    Thanks.

    I have installed the three versions on the same machine against Oracle 7.3.4 in another node. Each one is installed in a different OracleHome. Version 2.1 and 6i works fine but when I run Forms 1.6 I get a message telling me that it cannot find the fmcus.msb.
    Is trying to find it in the path of the Developer 2.1 and of course it does not work.
    The Oracle Home selector only shows me those corresponding to 2.1 and 6i.
    It is possible some workaround even if running one version at a time.
    Thanks.

  • I called Verizon prior to travelling abroad and asked to turn roaming on. As of today, 4 days later, I have no service. I do not have a landline to call. GlobalServices email does not work... Does anybody know how to reach customer support via email?

    I called Verizon prior to travelling abroad and asked to turn roaming on. As of today, 4 days later, I have no service. I do not have a landline to call support. GlobalServices email does not work... Does anybody know how to reach customer support via email?

        Hi Florence2014
    I'm so sorry your having issues. Unfortunately there isn't an email for global support. The only way way to reach them while traveling is to call them at 908-559-4899.
    JoeL_VZW
    Follow us on Twitter @VZWSupport

  • Caller ID on TV does not work.

    This feature has become so unreliable that I have had to make several calls and send emails to Verizon.  The last tech promised me that the problem was resolved for ever, but alas, the problem has returned.  No caller ID on TV.  It works OK on my phone displays, but not on the TV.  Did anybody have any luck resolving this issue permanently?  If so, how?
    This issue was last resolved under ticket{edited for privacy} on Oct. 14, 2011.

    PreciousBella wrote:
    My just changed to the Digital Voice and my caller ID is not appearing on my TV screen either.  I asked the tech and they said to make sure the it was enabled.  I did and it was but I am still not getting caller ID on my screen. If anyone has figured out how to make it work, please share. Thanks 
    Worked for me
    http://forums.verizon.com/t5/Home-Phone-Landline-or-Digital/How-to-get-Caller-ID-on-TV-working-again...

  • Web Service Call with Basic Authentication does not work

    If I try to use Basic Authentication in my Web Service Client with the automatically created methods
    setUsername(inUserName)
    setPassword(inPassword)
    setAddress(inAddress)
    the application does not make a call. Did I forget something?
    Is it possible to use "Test Method" with Basic Authentication?
    Thank you.

    Thank you for your answer.
    But: I already read this article. And it doesn't help me.
    I use the following code:
                getMyServiceClient1().setUsername(inUserName);
                getMyServiceClient1().setPassword(inPassword);With this code I always get a java.lang.NullPointerException.
    The methods setUsername and setPassword are definded as follows:
    public void setUsername(String inUserName) {
            myStub._setProperty(Stub.USERNAME_PROPERTY, inUserName);
      public void setPassword(String inPassword) {
            myStub._setProperty(Stub.PASSWORD_PROPERTY, inPassword);
      }But if I look at the methods which are generated automatically by Sun Java Studio Creator I cannot find _setProperty.
    I also found this thread in your forum:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=54773

  • Calling SAP Web Services does not work

    Hi,
    using this little program, I try to get a simple "Hello World" from a webservice in SAP.
    require 'soap/rpc/driver'
    s = SOAP::RPC::Driver.new('http://server:port/sap/bc/srt/rfc/sap/Z_WS_RUBY/', 'urn:sap-com:document:sap:soap:functions:mc-style')
    s.add_method("Z_WS_RUBY", "StringIn" )
    p s.Z_WS_RUBY("World")
    Unfortunately there is an error:
    in `parse_local': unknown namespace qualifier: xml (XSD::NS::FormatError)
         from D:/rubyy/InstantRails/ruby/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:532:in `decode_attrs' ETC
    In the WebService Recorder I find that the call is going through with request:
      <?xml version="1.0" encoding="utf-8" ?>
    - <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <env:Body>
    - <n1:Z_WS_RUBY xmlns:n1="urn:sap-com:document:sap:soap:functions:mc-style" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <StringIn xsi:type="xsd:string">World</StringIn>
      </n1:Z_WS_RUBY>
      </env:Body>
      </env:Envelope>
    but response ist like:
    - <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    - <soap-env:Body>
    - <soap-env:Fault>
      <faultcode>soap-env:Client</faultcode>
      <faultstring xml:lang="en">Operation not supported</faultstring>
      </soap-env:Fault>
      </soap-env:Body>
      </soap-env:Envelope>
    What am I mssing here ?
    Any help is appreciated.
    Regards
    Marcus
    Message was edited by:
            Marcus Schiffer

    Hi,
    I am using SAP WAS Rel. 7.0. SAPWAS is of 0.11.
    Couldnt retype your exact example, but I hope it works with my simple program too.
    I activated the trace, here the result:
    ignored element: Feature
    ignored element: useFeature
    Wire dump:
    = Request
    ! CONNECT TO myserver:myport
    ! CONNECTION ESTABLISHED
    POST /sap/bc/srt/rfc/sap/Z_WS_RUBY?sap-client=800&sap-language=EN HTTP/1.1
    SOAPAction: "urn:sap-com:document:sap:rfc:functions"
    Content-Type: text/xml; charset=utf-8
    Authorization: Basic gzhtfzu=
    User-Agent: SOAP4R/1.5.5 (/146, ruby 1.8.6 (2007-03-13) [i386-mswin32])
    Date: Thu, 14 Jun 2007 08:14:05 GMT
    Content-Length: 332
    Host: myserver:myport
    <?xml version="1.0" encoding="utf-8" ?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <env:Body>
        <n1:ZTestWsRuby xmlns:n1="urn:sap-com:document:sap:rfc:functions">
          <STRINGIN>dd</STRINGIN>
        </n1:ZTestWsRuby>
      </env:Body>
    </env:Envelope>
    = Response
    HTTP/1.1 500 Internal Server Error
    set-cookie: sap-usercontext=sap-language=EN&sap-client=800; path=/
    set-cookie: sap-recorder_sid=%2cc%3dID6-95D8115601C54670F9E2221A00000000--1%2co%3jhggz; path=/; domain=mydomain
    content-type: text/xml; charset=utf-8
    content-length: 264
    sap-srt_id: 20070614/101842/v1.00_final_6.40/466FCFE5847D01C50000000095D81156
    server: SAP Web Application Server (1.0;700)
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">Operation not supported</faultstring></soap-env:Fault></soap-env:Body></soap-env:Envelope>
    The call does not ecven go through to the Function Module in SAP.
    Here is the call that worked from my VB  Program:
    <?xml version="1.0" encoding="utf-8" ?>
    - <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <env:Body>
    - <n1:ZTestWsRuby xmlns:n1="urn:sap-com:document:sap:soap:functions:mc-style" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <STRINGIN xsi:type="xsd:string">wert</STRINGIN>
      </n1:ZTestWsRuby>
      </env:Body>
      </env:Envelope>

  • Linux script call from PL/SQL does not work?

    We are trying to run a simple Linux command using this PL/SQL 10.2 procedure:
    PROCEDURE run_linux_script_from_oracle IS
        BEGIN
          dbms_scheduler.create_job
              job_name=>'runtop',
              job_type=>'executable',
              job_action=>'/vol0/FileLoadDir/Bank/DATA_FILES/spell_check.sh',
              enabled=>true,
              auto_drop=>true
          DBMS_OUTPUT.PUT_LINE('Successful');
        EXCEPTION
          WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('Error: ' || SQLERRM);
        END;The .sh file has this command which works fine when we run in Linux.
    spell /vol0/FileLoadDir/Bank/DATA_FILES/ebill2.fmt_form_strings_.txt > /vol0/FileLoadDir/Bank/DATA_FILES/abcd.txtI get a Successful when I run this command in my SQL*Navigator and a PLS-00225: subprogram or cursor 'ABS' reference is out of scope when I run it in the SQL*Nav in another machine???
    Any help would be greatly appreciated.

    Channa wrote:
    We are trying to run a simple Linux command using this PL/SQL 10.2 procedure:NO, posted procedure below RUNS nothing,
    post code simply CREATE JOB, but does NOT invoke it!
    >
    PROCEDURE run_linux_script_from_oracle IS
    BEGIN
    dbms_scheduler.create_job
    job_name=>'runtop',
    job_type=>'executable',
    job_action=>'/vol0/FileLoadDir/Bank/DATA_FILES/spell_check.sh',
    enabled=>true,
    auto_drop=>true
    DBMS_OUTPUT.PUT_LINE('Successful');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('Error: ' || SQLERRM);
    END;EXCEPTION handler is BUG & should be removed, discarded & 100% eliminated.
    >
    The .sh file has this command which works fine when we run in Linux.
    spell /vol0/FileLoadDir/Bank/DATA_FILES/ebill2.fmt_form_strings_.txt > /vol0/FileLoadDir/Bank/DATA_FILES/abcd.txtI get a Successful when I run this command in my SQL*Navigator and a PLS-00225: subprogram or cursor 'ABS' reference is out of scope when I run it in the SQL*Nav in another machine???What is "ABS" & why/how does it exist in error message?

  • Multiple operation using the same port does not work

    I am trying to have multiple operations on both ports
    here is my wsdl snapshot
         <portType name="CommonAlerter">
              <operation name="initiate">
                   <input message="client:CommonAlerterRequestInitMessage"/>
              </operation>
              <operation name="StartWait">
                   <input message="client:CommonAlerterRequestInitMessage2"/>
              </operation>
              <operation name="StopWait">
                   <input message="client:CommonAlerterRequestInitMessage3"/>
              </operation>
         </portType>
         <portType name="CommonAlerterCallback">
              <operation name="onResult">
                   <input message="client:CommonAlerterResponseMessage"/>
              </operation>
         </portType>
    I just added two new methods "StartWait" and "StopWait" to the default async. template that got generated when I created a new BPEL Project "CommonAlerter"
    Now I call this BPEL process from another BPEL project
    The three methods I call "initiate", "StartWait" and finally "StopWait" are at different stages in my calling BPEL processes. Although "initiate" gets called first.
    When I debug the calling process instance I get an error on the call to "StopWait" which gets called after "StartWait".
    Here is the error message
    Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-08010
    Failed get operation definition.
    Failed to get the WSDL operation definition of "StopWait" in portType "{http://xmlns.oracle.com/CommonAlerter}CommonAlerter".
    Please verify that operation "StopWait" is defined in portType "{http://xmlns.oracle.com/CommonAlerter}CommonAlerter".
    Now I do have this method in my WSDL
    Can some one help.
    My Message part XSD is
         <element name="CommonAlerterProcessInitRequest">
              <complexType>
                   <sequence>
                        <element name="initializeparam" type="string"/>
                   </sequence>
              </complexType>
         </element>
         <element name="CommonAlerterProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
         <element name="CommonAlerterProcessRequest2">
              <complexType>
                   <sequence>
                        <element name="waittime" type="duration"/>
                   </sequence>
              </complexType>
         </element>
         <element name="CommonAlerterProcessRequest3">
              <complexType>
                   <sequence>
                        <element name="stopargument1" type="string"/>
    <element name="stopargument2" type="string"/>
                   </sequence>
              </complexType>
         </element>

    Here are the steps for multi operation synchronous BPEL process :
    1.     Create a new BPEL process and delete request and response activities.
    2.     Now add the porttype/operation in the BPEL process wsdl.
    3.     Start the Process with a Pick activity and click on Create Instance checkbox. Remove the onAlarm branch as we do not need this. In the onMessage branch specify the name of the operation.
    4. Now add onMessage branches to match the number of operations. The flow for each onMessage branch is different. Just make sure that you create a reply activity at the end with the correct operation chosen. So you might end up having multiple return activities.
    Sometimes, a wsdl with multiple operations might not work as expected if the process version is 1.0. So try changing the process version in case you are not getting the expected results.
    Hitesh

  • Express Planning: Call up Planning Round does not work

    Dear all,
    in Express Planning I have set-up a new Planning round.
    When I try to call it up in the portal with the button "Call Up Planning Round", the site cannot be found.
    I get the following error message:
    Page not found or not available
    In the header of the window you can read "http://myserver:50000/?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.sap.pc"
    What can I do to find out, why the page is not there? Is this a customizing error or an installation error?
    Thank you for your advice.
    Best regards Timo

    I found out that my new iPhone has terrible reception, even in places with supposedly good coverage. It turns out that it’s because of certain settings that I didn’t configure properly. After I changed them, all was good again!
    So if your iPhone is like mine and you see “Call Ended” and then “Call Failed” immediately after trying to dial out from your iPhone, even though there’s a good signal (i.e. you can see signal bars, so you are connected to your carrier). Then relax, because there probably is no problem with the phone — you PROBABLY just need to do these 2 steps:
    1) Go to Settings > General > Date and Time. Switch off “Set Automatically” and manually select your hometown (the default is Cupertino). If you dont change it, you will not be able to make outgoing calls. But the wierd part is, you will still be able to receive incoming calls. Once done, manually set the date and time, and restart your iPhone. If you want, you can reset the 2 settings to “Set Automatically” again.
    2) Next, go to Settings > Phone > Show My Caller ID > Switch this to “ON”. Usually with these steps, things should be okay already. If not, you have to turn off “Call Forwarding” and “Call Waiting” as well.
    Hope that helps!

  • Sample Java WebDynPro calling Customer Details BAPI does not work

    Hi,
    I have created a sample application (referring SAP's tutorials for Java WebDynPro) which invokes the BAPI_BUPA_ADDRESS_GETDETAIL Bapi.( for reading Customer Address details)
    I've made only one view which takes in BusinessPartner as the input and a form for the output.
    Have created a model for this purpose and a custom controller.
    I've mapped the appropriate fields for both the contexts of View and the Custom Controller.
    The Application has been built and deployed on the server. The Jco connections have been configured and tested.
    However, Nothing happens when the user enters a business partner input and clicks on the related button to bring up the output.
    This WebDynPro has been designed the exact same way as the SAP provided tutorial at
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
    Code has been implemented in the implementation tabs of the view and the custom controller the same way too.
    Any ideas?
    Thanks,
    Raman

    Implementation tab of Custom Controller
      public void wdDoInit()
        //@@begin wdDoInit()
        Bapi_Bupa_Address_Getdetail_Input input = new Bapi_Bupa_Address_Getdetail_Input();
        wdContext.nodeBapiCall().bind(input);
        input.setBusinesspartner(new String());
        //@@end
      public void executeBapi( )
        //@@begin executeBapi()
        try
             wdContext.currentBapiCallElement().modelObject().execute();
             wdContext.nodeOutput().invalidate();         
        catch (Exception ex)
             ex.printStackTrace();
        //@@end
    Custom Controller Binding With Model
    Context
      *BapiCall
        *Output
           *Bapiadtel $$$
             *Field A
             *Field B and so on
        *BusinessPartner $$$
    Fields marked with $$$ above are mapped to Bapi_Bupa_Address_GetDetail_Input's Bapiadtel and BusinessPartner.
    View Binding with Custom Controller
    Context
      *BapiStart
        *Output
           *Bapiadtel @@@
             *Field A
             *Field B and so on
        *BusinessPartner @@@
    Fields marked with @@@ above are mapped to BapiCall's(Custom Ctrllr) Bapiadtel and BusinessPartner.
    Thanks.

  • HT5787 I have reset my apple id several times but it still does not work.  I have turned off devices and restarted then.  I have written down my password so is know i am entering the correct  identification

    Apple store not allowing me in . Error message claims  invalid password.
    But I have reset password and wrote it down.   This has
    Been going on for 2 months

    Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go.

  • My iPhone seems to be stuck in headphone mode.  I tried plugging in and unplugging the earbuds several times, but it still does not work.  Any other suggestsions?

    My iPhone seems to be stuck in headphone mode.  I already tried plugging and unplugging my headphones, but it still is stuck in headphone mode.  What can I try next?

    I've read other methods but they didn't work for me.
    You can try cleaning the jack with a q tip, blowing into the jack and then pulling in and out the headphones (thi worked for my friend).
    The toothpick trick which i got from this link here : http://science.opposingviews.com/turn-headphone-mode-off-iphones-15782.html
    Ive also heard although it isn't the best, using an air compressor to clean out any gunk in the jack that can help aswell.
    I'm utterly frusturated at this point. I'm just going to go to the Apple Store and see what they have to say. If of these at home remedies don't work i suggest you do to and brace yourself for repair costs.
    Best of luck

Maybe you are looking for