ClassCastException when calling SOAP adapter

Hello,
I created a Web service interface to an ABAP RFC
via XI and a corresponding communication channel
(SOAP/HTTP to a specific message interface with data
types, message types, mappings etc. defined in the
integration repository). Sending SOAP messages
and receiving the correct replies works fine.
However, when I transport the relevant objects
from our test system to the consolidation system
by exporting and then importing via the file system
(all objects of the software component in the integration
repository, all objects of the communication scenario
in the integration directory), the
ClassCastException given below is returned
when sending the same SOAP messages
to the consolidation system. Other SOAP interfaces
work, but the one I imported does not.
Unfortunately, the request neither shows up in
the XmlMonitor nor in MessageMonitoring in the
Runtime workbench, so I do not get a further
indication what actually went wrong.
Questions:
- Has anyone had a similar problem or the same
  error message? If so, what was the cause?
- Does anyone (maybe from SAP) know what exactly
  happens in the mentioned code line where the
  exception is thrown?
- Where could I look to find further information
  about the error?
System information:
- SAP BASE 6.40, XI 3.0 with Service Pack 15
Thanks + Cheers,
  Guido
<?xml version='1.0'?>
<!-- see the documentation -->
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
  <SOAP:Body>
    <SOAP:Fault>
      <faultcode>SOAP:Server</faultcode>
      <faultstring>Server Error</faultstring>
      <detail>
        <s:SystemError xmlns:s='http://sap.com/xi/WebService/xi2.0'>
          <context>XIAdapter</context>
          <code>ClassCastException</code>
          <text><![CDATA[
java.lang.ClassCastException
     at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:227)
     at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0.process(ModuleProcessorLocalLocalObjectImpl0.java:103)
     at com.sap.aii.af.mp.soap.web.MessageServlet.callModuleProcessor(MessageServlet.java:159)
     at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:383)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
          ]]></text>
        </s:SystemError>
      </detail>
    </SOAP:Fault>
  </SOAP:Body>
</SOAP:Envelope>

Hi,
looking to the stack trace provided by i found this
>>at java.security.AccessController.doPrivileged(Native >>Method)
this means that you have defined assigned users for the business service in configuration directory.
Make sure the client is making the webservice call using that specific user.
cheers,
naveen

Similar Messages

  • EJB Errors When Calling SOAP Adapter

    <b>Scenario</b> We are using XML Spy to call a Message Interface exposed through a SOAP Communications Channel. That is, an outbound adapter. We are running XI Version 3.0, SP9 with patches.
    <b>The location is our URL is</b>
    <soap:address location="http://sapxidev:50000/XISOAPAdapter/MessageServlet?channel=:Taxpayer:Sender_SOAP&version=3.0&Sender.Service=Taxpayer&Interface=urn%3Ador.state.fl.us%5ESUTARC_Verification_Sync_Out_MI" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
    The respone is <b>com.sap.aii.af.mp.module.ModuleException</b>
    The server logs indicate three relevant error messages:
    <b>Message 1</b>
    Failed to set up the adapter for channel c67c0ccb7f583d7693678bb1288644ff;
    caused by java.lang.Exception: Bubble configuration error: parameter 'XI.InterfaceNamespace' is missing
    <b>Message 2</b>
    the required parameter XI.InterfaceNamespace is missing
    <b>Message 3</b>
    Path to object does not exist at localejbs, the whole lookup name is ejbContexts/sap.com/com.sap.aii.af.app/ModuleProcessorBean/localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean.
    Any ideas?
    Thanks in advance!

    HI Paul,
    did you put a default namespace and interface name in the SOAP Adapter config of the communication channel in the IB?
    It is under the Default XI Parameter in the SOAP Adapter.
    That should solve this problem, don´t ask me why it says Default if is is mandatory.
    Cheers
    Stefan

  • Exception when calling SOAP Lookup-API async

    Hello,
    i'm calling a SOAP-Comunication Channel (Lookup-API) out of my MessageMapping. The WebService Called is <u>asynchron</u> because i just send some data and i don't care about the result. The WebService itselfs is implemented on our XI. In other words: we call us self.
    In order to call my WebService asynchronous, i added <i>&QualityOfService=ExactlyOnce</i> at the end of the URL. The SOAP-Action is:
    <i>http://sap.com/xi/WebService/soap1.1</i>
    The problem is: the WebService works perfekt! But: in my mapping i get
    nevertheless the following exception:
    Errorcom.sap.aii.mapping.lookup.LookupException: Exception during processing the payload.Problem when calling an adapter by using communication channel SOAP_Receiver_SetIdocStatusAsync (Party: , Service: SetIdocStatus, Object ID: f6b1ce38e9fa332cba4eb1a6f0a3e17f) null com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel SOAP_Receiver_SetIdocStatusAsync (Party: , Service: SetIdocStatus, Object ID: f6b1ce38e9fa332cba4eb1a6f0a3e17f) null at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.process(AdapterProxyLocal.java:96) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.call(SystemAccessorInternal.java:47) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:141) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:74) at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169) at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211) at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Root Cause: com.sap.aii.af.service.api.AFException at com.sap.aii.af.service.api.AdapterAccess.call(AdapterAccess.java:122) at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.process(AdapterProxyLocal.java:87) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.call(SystemAccessorInternal.java:47) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:141) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:74) at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169) at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211) at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    The problem is: i don't know how to check for the HTTP-Header, because
    my call
    <i>SOAPOutPayload = accessor.call(payload);</i>
    throws the mentioned exception, even though it works behind the scene.
    Is it possible to check for the HTTP-Response-Code in the catch block?
    We want to avoid an synchronous scenario because we don't need the result and the WebService is rather slow.

  • PI 7.0: Error when calling an adapter by using communication channel

    Hello Experts,
    We have a mapping scenario for ERP -> PI -> web service. Few details from ERP will be sent via PI to Web service. 
    Once the web service authenticates, token and sign will be generated. Here an RFC adapter is  used for configuring the RFC receiver communication channel and provided the ERP system logon details at the RFC client parameter.
    An error is received as mentioned below.
    Error while lookup Exception during processing the payload.Problem when calling an adapter by using communication channel CC_Rcvr_RFC_Lookup_TokenSign (Party: , Service: BS_QV6_700, Object ID: 54e904ebf3d7382a84a0f83cd292b810)
    XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>'. com.sap.aii.mapping.lookup.LookupException
    The logon details in RFC parameter are corrected. Re-activated the the communication channel and refreshed the cache.
    But still the error is not resolved.Please let me know if there is anything else i need to check.
    Thanks in advance.
    Regards,
    Sri

    Hello,
    You could also check note 730870  FAQ XI 3.0/ PI 7.0/ PI 7.1 RFC Adapter
    Q 16:
    While sending a message to the RfcAdapter the error "...functiontemplate from repository was <null>" is shown. Which reasons are possible?
    Regards,
    Sarah

  • Error when calling SOAP Runtime functions

    Hi Guys,
    I have a requirement in which i have to consume a webservice and get a response from it but when i consumed the web service and tried to test it i got the below error please let me know solution for this as it is very urgent and also i am very new to web services stuff
    Error when calling SOAP Runtime functions: SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_CONNECTION_FAILED")
    Thanks
    shivraj

    Hi,
    Have a look at this blog from Michal Krawczyk to find a solution:
    The specified item was not found.
    Hope this helps,
    Grzegorz

  • Error when calling SOAP Runtime functions - Please help!

    Hi,
    Very new to SAP. I just installed SAPNW7.0ABAPTrialSP12 (sandbox server, with default options) and setup the
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/db/7c623cf568896be10000000a11405a/content.htm">Flight Data</a>.
    I wanted to invoke some of the Flight Data functions through SOAP. So I invoked the following URL:
    http://localhost:8000/sap/bc/srt/rfc/sap/BAPI_FLIGHT_GETDETAIL?sap-client=000&wsdl=1.1
    I get the following error:
      The following error text was processed in the system NSP : Error when calling SOAP Runtime functions
    The error occurred on the application server hs_NSP_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
          Method: HANDLE_REQUEST of program CL_SOAP_TRANSPORT_EXTENSN_ROOTCP
          Method: HANDLE_REQUEST of program CL_SOAP_HTTP_EXTENSION========CP
          Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_SOAP_HTTP_EXTENSION========CP
          Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
          Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
          Module: %_HTTP_START of program SAPMHTTP
    FROM Runtime Error Log:
    Runtime Errors                     UNCAUGHT_EXCEPTION                                                          
    Exception                          CX_SOAP_CORE
           Termination occurred in the ABAP program "CL_SOAP_TRANSPORT_EXTENSN_ROOTCP" -                
               in "HANDLE_REQUEST".                                                                               
    The main program was "SAPMHTTP ".                                                                               
    In the source code you have the termination point in line 37                                 
              of the (Include) program "CL_SOAP_TRANSPORT_EXTENSN_ROOTCM004".
    Does anyone have any ideas on what is going on? Thanks in advance.

    Hi,
    Have a look at this blog from Michal Krawczyk to find a solution:
    The specified item was not found.
    Hope this helps,
    Grzegorz

  • Call SOAP Adapter from CE BPM failed

    Hi everyone,
    i have just a problem calling a webservic on the PI 7.11 server from CE 7.2 BPM via SOAP adapter.
    1. I've created a very simple scenario on the PI 7.11 Server using SOAP Adapter sender. I've gotten the WSDL URL from the Sender Agreement. It is like the following:
    http://piserver:50000/dir/wsdl?p=sa/2e1cf474911939c89c0f5530b24c36f0
    2. In the Service Registery of the CE server, I published this service manuelly. The SR created automactically endpoints (http,https) for me. I tested both. They worked very well. While publishing the service, I've also assigned it to the correct system, which has the type IS.
    3. I've imported the wsdl into my BPM and assigned it to a automatic activity. I've also created a new service group for this service interface.
    4. After deploying the BPM onto the CE server, I've created a new provider system with type IS. In the WS connectivity type, I entered the wsdl url from above again and the admin user on PI server for the Metadata User.
    5. I've created a user in the "User Account Management" with connectivity type WS and entered the same user on the step 4 for the Metadata User, assigned this user to the provider system created on step 4.
    6. In the "Application Communication", I assigned the provider system from step 4 to the serivce group created on the step 3.
    7. Start the BPM and find out a very strange error message:
    Error during SCA Processing 
    [EXCEPTION]
    java.rmi.RemoteException: Could not process message for operation SI_SearchSalesOrder_outbound in web service plugin module.; nested exception is:
    com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Invalid Response code (401). Server <http://piserver:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=SAP_CE&receiverParty=&receiverService=&interface=SI_SearchSalesOrder_outbound&interfaceNamespace=http%3A%2F%2Fconet.de%2FSalesOrder> returned message <Unauthorized>. Http proxy info:  none
    I suppose that the metadata user is used to read the wsdl information form PI. For runtime processing maybe should also I provide a user. But I have no idea where I can configure the runtime user in the NWA.
    Could some one give me some help on this position?
    Thanks a lot in advance.
    with best regards
    Xiang

    Hi Michal,
    thanks a lot for your answer. That's also my question. I've provided user to get the meta info for the WS on the CE server. But during the runtime, the BPM on the CE should also have a user to call the soap adapter. Normally we can add the sap-user, sap-pass behind the ws endpoint. But it doesn't work on the CE. Maybe I should use the principle propagation.
    thanks a lot for your reply.
    with best regards.
    Xiang

  • ClassCastException when retrieving SOAP content

    I got a java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.dom4j.TextImpl
    when retrieving SOAP content.
    The code looks like:
    SOAPPart part = message.getSOAPPart();
    SOAPEnvelope envelope = part.getEnvelope();
    SOAPBody body = envelope.getBody();
    SOAPBodyElement bookElement = ( SOAPBodyElement ) body.getChildElements().next();
    SOAPElement isbnElement = ( SOAPElement ) bookElement.getChildElements().next();
    System.out.println( isbnElement.getValue() );
    The SOAP message as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <soapenv:Body>
    <ns1:getPrice xmlns:ns1="http://www.deitel.com/BookPrie.wsdl">
    <arg0 xsi:type="xsd:string">0130895601</arg0>
    </ns1:getPrice>
    </soapenv:Body>
    </soapenv:Envelope>
    Any help?
    Thanks in advance.

    I had a similar problem and solved it. Please look at http://forum.java.sun.com/thread.jsp?forum=331&thread=268806 .

  • Java.lang.ClassCastException when calling webservice stub  from oracle DB

    Hello everyone,
    Because i need to get familliar with calling java webservices from an oracle database, i followed the following example
    (http://www.oracle.com/technology/products/jdev/howtos/10g/WS_DBCallout/DBCalloutWS_HowTo.htm),
    which included installing the SOAP client stack to the database (in the sys schema), grant the right permissions to the SYS user, developing a simple Helloworld webservice with jdeveloper 10.1.2, generating a Webservice stub and deploying a static method of this stub to the database.
    All of this worked just fine, but when i want to call the webservice from oracle by invoking the deployed function, i get a java.lang.ClassCastException.
    The complete stacktrace lists as follows:
    v_Return = foutje: java.lang.ClassCastExceptionnulljava.lang.ClassCastException
         at org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:323)
         at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:305)
         at org.apache.soap.Body.marshall(Body.java:148)
         at org.apache.soap.Envelope.marshall(Envelope.java:203)
         at org.apache.soap.Envelope.marshall(Envelope.java:161)
         at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:664)
         at org.apache.soap.rpc.Call.invoke(Call.java:261)
         at test.HelloWorldServiceStub.sayHello(HelloWorldServiceStub.java:82)
    I debugged the WebServiceStub and noticed that the call.invoke method crashes. This is weird beacuse when i use System.out.println on the parameter is works just fine. so you would think it is a string.
    Moreover, if i invoke the webservice from the endpoint or even when im debugging the stub locally it all works just fine.
    Can someone plzzzzzz help me with this because i spend the whole day looking for an answer and im getting crazy!!!!!
    Thanx al lot guys,
    Kim
    PS or could the problem be in the database instead of the webservice?????????
    Message was edited by:
    user568880
    Message was edited by:
    Kim Zeevaarders

    I think that it's going wrong because i did not install the right SOAP client stack.
    In the HowTo is specified what JAR files are to be loaded in the database (from %JDEV_HOME), but it states that it has only been tested on a Oracle 9.2 database. I'm using Oracle10g. Maybe that's the reason that im getting this classcast exception...
    Can anybody tell me what the right .JAR files are that have to be loaded into database when working with Oracle 10g?
    Many thx in advance!
    Kim

  • ClassCastException when calling a JMS implemented web service

    Hi,
    I published a Message Driven Bean EJB to WebService using WebLogic 8.1 and servicegen.
    When I try to call it using the automatic generated Web interface, I receive the
    following ClassCastException.
    Do you see what is going wrong?
    Is it a bug?
    Thanks for your help
    Charles
    ClassCastException :
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.ClassCastException
    (see Fault Detail for stacktrace) at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:270)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:405)
    at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:322)
    at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:296)
    at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:312)
    at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:253)
    at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:138)
    at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6291)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97) at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    I use this and command :
    <servicegen
    destEar="${WAS_APPLICATIONS}/${version}${ear_ws_file}"
    contextURI="${version}WebServices" >
    <service
    JMSDestination="mq_receive"
    JMSAction="send"
    JMSDestinationType="queue"
    JMSConnectionFactory="mq_QCF"
    JMSOperationName="${JMSOperationName}"
    JMSMessageType="${JMSMessageType}"
    generateTypes="True"
    targetNamespace="http://www.francetelecom.com/cristal/${version}Webservices"
    serviceName="${version}"
    serviceURI="/${version}"
    expandMethods="True">
    </service>
    <classpath>
    <pathelement location="${build}" />
    </classpath>
    <classpath refid="classpath" />
    </servicegen>
    My MDB is
    public void ejbCreate () throws CreateException {
         LoggerConfigurator.configure();
    log.debug("called");
    public void onMessage(Message msg)
    log.debug("called");
              try
                   ObjectMessage objMessage = (ObjectMessage)msg;
                   String text = (String)objMessage.getObject();
                   home = lookupHome();
                   Toupper client = (Toupper)
                        PortableRemoteObject.narrow(home.create(), Toupper.class);
                   text=client.toupper(text);               
                   log.error("Toupper="+text);
                   startJMS();
                   sendJMS(text);
                   client.remove();
              } catch (Exception e)
                   e.printStackTrace();

    "mq_receive" is define as a Local JNDI Name of a Foreign JMSDestination.
    And it works when I use it with only the MDB (without WebService)
    Good try,
    Thanks
    Charles
    "Neal Yin" <[email protected]> wrote:
    My best guess is that JNDI name "mq_receive" is not bound as JMS queue.
    Thanks
    -Neal
    "Charles Desmoulins" <[email protected]> wrote in
    message
    news:[email protected]...
    Ok Neal,
    This is the result :
    <!-------------------- REQUEST ---------------->
    URL :
    http://localhost:7001/messageToupperWebServices/messageToupper
    Headers :
    SOAPAction: [""]
    Content-Type: [text/xml]
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoaporg/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Header/><env:Body
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><m:toupper
    xmlns:m="http://www.francetelecom.com/cristal/messageToupperWebservices"><pa
    ram
    xsi:type="xsd:string">sAmple string totransform</param></m:toupper></env:Body></env:Envelope>
    <!-------------------- END REQUEST ------------>
    <!-------------------- RESPONSE --------------->
    URL :
    http://localhost:7001/messageToupperWebServices/messageToupper
    Headers :
    Date=Fri, 11 Jul 2003 14:29:33 GMT
    Server=WebLogic WebLogic Server 8.1 Thu Mar 20 23:06:05 PST 2003246620
    Content-Length=2522
    Content-Type=text/xml
    Envelope :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Header/><env:Body><env:Fau
    lt><faultcode>env:Server</faultcode><faultstring>Exception
    during processing: java.lang.ClassCastException (see Fault Detail forstacktrace)</faultstring><detail><bea_fault:stacktrace
    >
    xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0"/>j
    ava.lang.ClassCastException
    atweblogic.webservice.component.jms.JMSSendInvocationHandler.invoke(JMSSendInv
    ocationHandler.java:131)
    atweblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.j
    ava:81)
    atweblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainImpl.jav
    a:125)
    atweblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:513)
    atweblogic.webservice.server.Dispatcher.process(Dispatcher.java:150)
    atweblogic.webservice.server.Dispatcher.doDispatch(Dispatcher.java:125)
    atweblogic.webservice.server.Dispatcher.dispatch(Dispatcher.java:74)
    atweblogic.webservice.server.WebServiceManager.dispatch(WebServiceManager.java
    :98)
    atweblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebSer
    viceServlet.java:274)
    atweblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:393)
    atweblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServle
    t.java:244)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1053)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :387)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :305)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:6291)
    atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
    t.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3575)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2573)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    </detail></env:Fault></env:Body></env:Envelope>
    <!-------------------- END RESPONSE ----------->
    An exception Exception during processing: java.lang.ClassCastException(see Fault
    Detail for stacktrace)
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing:java.lang.ClassCastException
    (see Fault Detail for stacktrace)
    atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:270)
    atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:536)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:389)
    at ft.services.messageToupper.WSClient.main(WSClient.java:60)

  • Error when calling JDBC Adapter parallel

    Hello,
    we have several interfaces which consume data from an AS400 machine via JDBC Adapter.
    Interfaces were running for several months without any problem. Now we get the following error message when few interfaces try to deliver data at the same time:
    com.sap.aii.af.ra.ms.api.DeliveryException: Channel has reached maximum concurrency (5,000 concurrent messages) and no free resource found within 5,000 milliseconds; increase the maximum concurrency level
    Unfortunatly we didn't find any hints what could cause the appearence of this Error.
    Can anyone help me?
    Thanks
    Carsten

    Hi,
    By default Maximum Concurrency = 1 in communication channel. Which will open one connection with the Database. Since your data volume and call is large so if you define it more then 1 then it will open multiple connection for you and your transaction rate will be faster.
    1. Maximum Concurrency = 1
    This is the default value of Maximum Concurrency. This means a single receiver JDBC channel can acquire only one DB connection.
    This case does not offer any parallel processing of messaging by single channel.
    2. Maximum Concurrency > 1
    This ensures that resource pool size(DB conneciton size) is limited to specified value per single JDBC receiver channel. For instance, setting this parameter to 2 will ensure that a single receiver JDBC channel can acquire 2 DB connections in parallel(if needed).
    And also:
    if You are Using PI 7.0 SP 12, You can set the maximum concurrency level for Receiver File & JDBC Adapter.
    By Default Maximum Concurrency level=1.
    Procedure to change:
    Go to Receiver Comm Chann of File/JDBC adapter.
    Goto Processing Parameters and then check Max Concurrency level
    Plz do refer the following docs:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4042611d-04e5-2910-bd9d-f97627b1c164
    check this doc
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
    "Reward points if found useful"
    Regards,
    Vinod.

  • Help with merging files and calling SOAP adapter in BPM

    Hello All,
    I have a scenario, where am merging a header file and item file and calling a webservice in ECC. The requirement is that the no. of calls to the webservice depends on the no. of lines in the header file. Mapping is developed according to this rule and the operation mapping is also set for multiple messages. Testing the mapping produces required results.
    But when I run the scenario invoking BPM to merge the files with 2 lines in header records the webservice is called just once. On further analysis into SXMB_MONI_BPE, MESSAGES_OUPUT table in the mapping step has 2 messages. The instance ID of the message gone out shows a checkered flag with processed successfully status, but the second line is stuck in status "Transfer To Process Engine" .
    Any thoughts what I should be doing to push second message out automatically.
    Prashanth

    Hi Prashanth,
       to find out what has happened to the message try checking the workflow log,
    i.e., select the message with the 'Transfer to Process Engine" status in SXI_MONITOR and drill down in the outbound PE column.
    Once in the workflow log select 'List with Technical Detailsu2019'.
    Regards
    Kenny

  • ClassCastException when retring soap attachment-image

    Hi
    When i try to retrive my gif(picture) attachment server firs an
    exception message -exception fires exception is
    java.lang.ClassCastException: sun.awt.windows.WImage
    with out retriving .
    How do i over come this??
    pLEASE post me the code how do i retrive the image
    if (attachment.getContentType().equals("image/gif")) {
    p2.println("inside image gif");
    try{
    ByteArrayInputStream contentStream = (ByteArrayInputStream)attachment.getContent();
         int bytesToRead = contentStream.available();
    byte[] buffer = new byte[bytesToRead];
    contentStream.read(buffer);
    // write buffer to new file
         FileOutputStream file = new FileOutputStream("C:/form.gif");
         file.write(buffer);
         file.close();
    p2.println("Finish retriving");
    }catch(Exception e){
    p2.println("exception fires");
    This My client part
    DataSource source = new FileDataSource("E:/img1.GIF");
    DataHandler handler = new DataHandler(source);
    // create attachment for message
    AttachmentPart attachment = msg.createAttachmentPart(handler);
    // set content id (optional)
    msg.addAttachmentPart(attachment);// send message
    Thanks for your time and help
    Priya

    Can you please post how you solved your problem (if you solved it of course).

  • ClassCastException when calling finder-method

    Hello,
    i want to get all results from my table. Therefore i created an entity bean with a new finder method ejbFindAll which returns a Collection.
    In my stateless session bean i am instantiating the entity bean in this way:
    +CustomerLocalHome myCustomerLocalHome = null;
    Context myContext = new InitialContext();
    myCustomerLocalHome =(CustomerLocalHome) myContext.lookup("/bsp_ear/CustomerBean");+
    When i now call the method in this way:
    + myCustomerLocalHome.findAll();+
    i get a ClassCastExcetpion.
    Does anybody know what this causes?
    I tried for hours an could not find a solutions
    Thanks for help,
    André

    Hi Andre,
             Just a suggestion.
    In your deployment descriptor what class you have written against EJBNAME ?Is tht CustomerLocalHome??
    Rdgs,
    Guru

  • Error in while calling a Soap Adapter using the UDF

    hi,
    i am trying to make a call to Soap Adapter using a UDF.
    The code of the UDF is as follows :
    InputStream isPayloadStream = null;
    AbstractTrace trace= container.getTrace();
    String sService="Business Component";
    String sChannelName="Soap Channel(Sender)";
    SystemAccessor accessor=null;
    trace.addInfo("entered UDF");
    StringBuffer sb = new StringBuffer(" ");
    trace.addInfo("creating the reference file");
    sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
    sb.append("<ns0:MT_123082_UDF xmlns:ns0=\"http//infosys.com/pi/projects/png/n1\">\n");
    sb.append("<INTERCHANGECONTRLNOS>" + var1 + "</INTERCHANGECONTRLNOS>");
    sb.append("<PGPARTNERID>"var2"</PGPARTNERID>""\n""</ns0:MT_123082_UDF>");
    trace.addInfo("trigerring the SOAP channel ");
    try{
    Channel channel = LookupService.getChannel(sService,sChannelName);
    accessor = LookupService.getSystemAccessor(channel);
    isPayloadStream = new ByteArrayInputStream((sb.toString()).getBytes());
    trace.addInfo("creating the xml payload ");
    XmlPayload payload = LookupService.getXmlPayload(isPayloadStream);
    Payload result=accessor.call(payload);
    catch (Exception e){
    trace.addInfo(e.getMessage());
    finally{
    if ( accessor !=null) {
    accessor.close();
    return " ";
    The above code is throwing an error while end to end testing.
    the scenario is such,while graphical mapping a UDF will be used, which will create an Xml payload, and send this payload to another SOAP to file scenario.
    The error in the sxmb_moni is:  "Error when calling an adapter by using the communication channel CC_123085_UDF_SOAP_OUT (Party: , Service: BC_123082_REMADV_D96A, Object ID: fa9c6ee15efc30c68ec34b08034d87d1) XI AF API call failed. Module exception: 'failed to set up the channel fa9c6ee15efc30c68ec34b08034d87d1'. Cause Exception: 'Channel stopped by administrative task.'."
    Please can anyone suggest how this error can be rectified.
    regards,
    Meenakshi

    Hi,
    i have checked the communication channel and the XML. The following error occurs everytime i try to run the scenario.
    Error:
    Error when calling an adapter by using the communication channel CC_123082_UDFRECEIVER_SOAP_IN (Party: , Service: BC_123082_REMADV_D96A, Object ID: 2a895589066d30d4b2686e9d3a8d4c8d) XI AF API call failed. Module exception: 'SOAP Error'. Cause Exception: 'SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 400 Bad Request'
    Please let me know how this error can be resolved.
    Regards,
    Meenakshi

Maybe you are looking for