Exception in execution of web service

Hi Experts,
I have a WSDL which is working fine in WS Navigator, but if I import it as model in WD JAVA and apply the template on component controller to read the service and execute the method of that service, I am getting a run time error.  Error that I am getting is as follows
Exception on execution of web service on destination 'WD_Icat_ApplicationManager_Dest' for operation 'getScenarioDetail' in interface 'ScenarioManager'
My destination is also working fine as I can test the service in WS Navigator using this destination with correct output.
Please suggest some solution.
Regards
Pranav
PS: Log i am getting states
com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: com.sap.engine.services.webservices.espbase.query.exceptions.ObjectNotExistsException: ScenarioManager using destination : WD_Icat_ApplicationManager_Dest
     at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1459)
     at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:1025)
     at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:578)
     at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:404)
     at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:252)
     at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:217)

Hi
Similar therad is already replied. Please dont write the same problem in different forum . You will be assist that is for sure.(If you state the problem clearly)
Best Regards
Satish Kumar

Similar Messages

  • Exception in execution of web service (Adaptative web service model)

    Hi,
    I have a WSDL which is working fine in WS Navigator, but if I import it as model in WD JAVA and apply the template on component controller to read the service and execute the method wdDoInit, I am getting a run time error.
    the error occurs on the method wdDoInit, in the following line of code
    Modelwsres modelwsresModel = new Modelwsres();
    <h6>public void wdDoInit()
        //@@begin wdDoInit()
        //$$begin Service Controller6(825011426)
        Modelwsres modelwsresModel = new Modelwsres();
        Request_ObtenerEntidades request_ObtenerEntidades = new Request_ObtenerEntidades(modelwsresModel);
        wdContext.nodeRequest_ObtenerEntidades().bind(request_ObtenerEntidades);
        //$$end
       //@@end
      }</h6>
    Enviroment:
    SAP Netweaver CE 7.1 EHP1
    SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP04 PAT0000
    Windows 2003 Server
    Error that I am getting is as follows
    <h6> java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
    java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
      at com.ayesa.app.pruebadirpers.modelwsres.Modelwsres.<init>(Modelwsres.java:466)
      at com.ayesa.app.pruebadirpers.dpapp.comp.ModelwsController.wdDoInit(ModelwsController.java:123)
      at com.ayesa.app.pruebadirpers.dpapp.comp.wdp.InternalModelwsController.wdDoInit(InternalModelwsController.java:300)
      at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doInit(DelegatingCustomController.java:48)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
      at com.sap.tc.webdynpro.progmodel.components.Component.getCustomControllerInternal(Component.java:663)
      at com.sap.tc.webdynpro.progmodel.components.Component.getMappableContext(Component.java:629)
      at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:134)
      at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:171)
      at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:193)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:968)
      at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:972)
      at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:69)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:205)
      at com.sap.tc.webdynpro.progmodel.window.ViewManager.getView(ViewManager.java:667)
      at com.sap.tc.webdynpro.progmodel.window.ViewManager.bindRoot(ViewManager.java:562)
      at com.sap.tc.webdynpro.progmodel.window.ViewManager.init(ViewManager.java:182)
      at com.sap.tc.webdynpro.progmodel.window.InterfaceView.manageEmbeddedViewManager(InterfaceView.java:141)
      at com.sap.tc.webdynpro.progmodel.window.InterfaceView.initController(InterfaceView.java:55)
      at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:364)
      at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
      at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:557)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1338)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoPreprocessing(AbstractExecutionContextDispatcher.java:146)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppPreprocessing.doService(DispatchHandlerForAppPreprocessing.java:35)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:127)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoPreprocessing(ExecutionContextDispatcher.java:100)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:74)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:571)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:602)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:252)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:677)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:239)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:258)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:202)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:127)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:92)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:104)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:54)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
      at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:466)
      at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
      at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
      at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:240)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
      at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
      at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
      at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
      at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:425)
      at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
      at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
      at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
      at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)</h6>
    Please suggest some solution.
    Regards

    Hi,
    I had not written all the code because they considered it important:
    public void wdDoInit()
        //@@begin wdDoInit()
        //$$begin Service Controller6(825011426)
         Modelwsres modelwsresModel = new Modelwsres();
        Request_ObtenerEntidades request_ObtenerEntidades = new Request_ObtenerEntidades(modelwsresModel);
        ObtenerEntidades obtenerEntidades = new ObtenerEntidades(modelwsresModel);
        request_ObtenerEntidades.setObtenerEntidades(obtenerEntidades);
        Response_ObtenerEntidades response_2 = new Response_ObtenerEntidades(modelwsresModel);
        request_ObtenerEntidades.setResponse(response_2);
        ObtenerEntidadesResponse obtenerEntidadesResponse = new ObtenerEntidadesResponse(modelwsresModel);
        response_2.setObtenerEntidadesResponse(obtenerEntidadesResponse);
        java.util.List<Entidad> return_2 = new ArrayList<Entidad>();
        obtenerEntidadesResponse.setReturn(return_2);
        wdContext.nodeRequest_ObtenerEntidades().bind(request_ObtenerEntidades);
      //$$end
    //@@end
    but the error occurs on the first line of method:
    Modelwsres modelwsresModel = new Modelwsres();
    Thanks.
    Regards

  • Exception while accessing a web service using adaptive web service

    Hi All,
    I have accessed a web service from backend ( ABAP) and when i deploy the model i get an exception :
         Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZGetWorkpackages' in interface '_-CAG_-Z_GET_WORKPACKAGES'
    can any one help?
    Regards
    Deepa

    hi
    After you have integrated  webservice ,  have you created the destinations in the visual admin tool .
    during calling the webservice  you might  selected the option of using logical destinations and used the
    default destinations as it is , and  are these destinations configured in the visula admin .
    if so please check the parameters you have provided ,  this would solve yourproblem
    Thanks

  • How webDynpro handles exception thrown by adaptive web service

    Hi people,
    in design time, webdynpro can handle web service's exception by defining return structure based on the <b>Fault </b>which is the exception defined in the web service. But in the runtime, when web service throws exception, webDynpro can not handle it, WD framework will throw nullPointerException.
    The reason behind it might be: let me assume a WS <b>getEmployeeNumber</b>, the WS returns employee number as a element <b><EmployeeNumber></b>12345<b></EmployeeNumber></b> in the return SOAP document. I think WD always expects the element <b><EmployeeNumber></b> in the SOAP document, but in case of exception, web service throws exception and will not provide employee number in the return SOAP which is logical, thus the element <EmployeeNumber> will not be available in the SOAP document, therefore causes WD framework to raise <b>nullPointerException</b>.
    So any of you have any suggestion to make webDynpro working in case an exception is thorwn in the web service?
    Thanks for your infor
    Jayson

    To encourage people, I include the text of the xml response from the test of Web Service Navigator window :
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Server: SAP J2EE Engine/6.40
    Content-Type: text/xml; charset=UTF-8
    Set-Cookie: <value is hidden>
    Date: Mon, 27 Mar 2006 09:30:50 GMT
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>Hi, I'm the new exception</faultstring>
    <detail>
    <ns1:throwException_com.sap.demo.testexception.TestException xmlns:ns1='urn:TestExceptionServiceWsd/TestExceptionServiceVi' xmlns:pns='urn:com.sap.demo.testexception'>
    <pns:message>Hi, I'm the new exception</pns:message>
    </ns1:throwException_com.sap.demo.testexception.TestException>
    </detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I've found too a strange workaround :
    The fact seems that you have to design your session bean without throwing custom exceptions, then generates the VI and after that, adding the custom exceptions throws.
    Or if you don't want to modify the bussiness methods.
    The point is to eliminate the exceptions (faults) sections from the VI and WS deployment descriptor.
    You have to access from Package Explorer, and edit with a Text Editor the following files :
    *.videf from the package, and remove <Function.Faults> sections
    ws-deployments-descriptor.xml in META-INF, and remove <fault> sections
    After that, the WS Configurations will give an error, so delete the configuration and remake it. Now, the VI stills looks bad, so close the project, close NetViewer and reopen it to flush whatever cache it seems to keep.
    Now, your VI will looks better without exceptions, and you'll get their messages when you catch them in the WebDynpro applicattion.
    So, now the question is: Could anybody explain me why ?

  • Exception in calling a web service from a composite application service

    Hi,
    I have created a composite application service with external service as a web service. My web service is deployed on localhost as well as I am running my composite application service in localhost. When i try to test the application service, I get the exception
    com.sap.caf.mp.base.exception.InvocationException: Invalid parameters
    The exception happens in MPConnector.java 'process' method where I am calling the execute operation on the service.
    I have tried testing this through Service Browser as well as creating a callable object on the Application service and testing the callable object.
    I am using the NWDS 7.0.06 version
    and EP installed on my machine is the Sneak Preview 7.0 sp 7
    Will appreciate all help in this regard.
    Thanks,
    Prachi

    Hi Navneet,
    I have verified the input/output parameters. They are simple types. All are Strings. Nothing really complex there.
    I have the Service Exceptions added already.
    And definitely the permissions are disabled but still this isn't working.
    Any more clues might be helpful.
    Thanks,
    Prachi

  • SocketTimeout Exception while calling a Web Service from EJB

    Hi All,
    I am consuming a Web Service defined from the WSDL received from a PI system
    in a Stateless EJB.
    The input of the Service can be a range of records 100 - 10,000, with a furture plan to exceed the range as 100 - 15,000.
    The Web Service Call goes perfect with 100 - 3500 number of records.
    As the number of records exceed 3500, we started getting the following exception:
    Service call exception; nested exception is: java.net.SocketTimeoutException: Read timed out
    Along with a call happenning to the PI system after some seconds.
    Referring to various help.sap.com pages, I came across the following code snippet:
    client._setProperty("socketTimeOut","200000");
    This thing works great!!!, and now we have set the the socketTimeout proggramatically to a satisfactory level which supports the current requirement.
    I would like to know, if we can tune some Visual Administrator Parameter for this, instead of maintaining the "Socket TimeOut" in the code.
    Any help will be appreciated.
    Best Regards,
    Alka.
    Edited by: Alka Panday on Apr 23, 2008 9:17 AM

    Hi Alka,
    Please refer to SAP Note 962114. This is specifically for Web Service clients.
    Description-->
    This note can be applied for 6.40 SP 12+. If the customer has a lower SP, an upgrade of the whole engine is recommended. The other alternative to set the timeout is to set it programmatically.
    If running a 7.0 installation, the functionality has been integrated in SP8 onwards
    When you go to the Visual Administrator -> Server -> Services -> Web Services Container on the Settings tab page you should be able to see the socket timeout input field next to the HTTP Proxy settings. You can change the default value there and it will be automatically applied to all WS client proxies and logical ports deployed on the system.
    Hope this helps.
    regards,
    Piyush

  • Oracle EBS throwing exception while invoking the web service

    Hi,
    When I try to invoke the web service through SOAPUI it is working perfectly fine. however when I try to call it using a .net client. I am getting the below exception:
    oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: System ErrorServiceGenerationError: Error in Creating Response MessageServiceGenerationError: Error in getting translated error messagenull.
    Please help me.
    Thanks,
    Manish

    Hi Manish,
    Please check notes:
    R12.1.1: ISG BPEL Calls Results in java.net.sockettimeoutexception & oracle.apps.fnd.soa.util.SOAException (Doc ID 1103755.1)
    "Error in getting translated error messagenull" When Invoking a web service from SOAP UI (Doc ID 1507313.1)
    Thanks &
    Best Regards,
    Asif

  • JDBC Exception while calling a web-service

    Hi all,
    We are getting the following JDBC Driver Timeout Exception while calling an external web-service..
    An exception occurred while executing a transaction. Details: An error occurred while accesing the database. Detail:SQL statement: ' SELECT INSTANCEDATA, PROCESSID, INSTID, THREADID, NAME, PARENTTHREAD, PRIORITY, CREATIONTIME, AUTHOR, PARTICIPANT, NEXTPARTICIPANT, PROCESSDEADLINE, ACTIVITYDEADLINE, RECEIVETIME, ACTIVITYNAME, NTHREADS, CTHREADS, FCTHREAD, TOTALTHREADS, STATE, SOURCEACTIVITYNAME, ROLEIN, PENDINGITEMID, LASTRESULT, ITEMDEADLINE, NCHANGES , NREMARKS, NATTACHMENTS, HASPARTFORROLE,MICROACTIVITYNAME FROM PPROCINSTANCE WHERE PROCESSID = 11AND INSTID = 10 AND THREADID = 0 FOR UPDATE' Caused by: [BEA][Oracle JDBC Driver][Oracle]ORA-02049: timeout: distributed transaction waiting for lock fuego.transaction.DatabaseException:
    How do we resolve this exception?
    We have increased the JTA timeout to 120 seconds.. in the engine..
    Our process is deployed on Weblogic Server

    Looks like specific record for the Instance id 10 is locked in the Engine table. I am not quite sure, what kind of Business scenraio you executed to end up in this issue.
    But you can try restarting the BPM engine or check with the Oracle DBA to see any lock on the rows in Engine database and perform required unlocking operations.
    -Lovin.V

  • ClassNotDefFound exceptions while deploying a web service

    Im trying to setup a web service using soap messages,
    with Javabeans and use of the soap engine with Tomcat
    3.3.
    While trying to deploy the service, i get
    ClassNotDefFound exceptions.
    I've put the soap.jar, xalan.jar [and so on...] at the
    appropriate directory, as the documentation orders (at
    the (TOMCAT_HOME)\lib\common of the tomcat). Also i've
    already put the jar files for XML parsing at the
    (JAVA_HOME)\jre\lib and (JAVA_HOME)\jre\lib\ext
    folders of the javaSDK1.4 i use.
    Although i've worked before with no problems with the
    DOM and SAX parsers for XML, used by stand-alone java
    applications, it seems to have troubles with the
    XML-RPC technologies.
    The org.apache.soap.service.* commands from the
    command line are always "excepted" when trying to
    deploy a service, as long as with the xalan ones.
    I have to tell you., that i have not declare any
    classpath global at the windows XP (which i use)
    global variables, but the -classpath order during java
    excecution is not working as well.
    So, any suggestions?

    Hi,
    Could not diagonise from this stack trace alone. But what doubt is that there is something wrong with cardinality in your web service. Otherwise something may have gone wrong like you mishandling a list or some mismatch like that.
    Regards,
    Srinivasan Subbiah

  • Exception when deploying java web-service to PI 7.1 via JSPM

    Dear Friends,
    While uploading a self created web-service to PI 7.1 via java support package manager, we get an exception during the deployment process - which says: "WebServices Common deployment exception. The reason is: Unable to generate complex types". The JSPM main log for the deployment is attached to this message.
    The complex type that is used is a Java Class with one data member of type String.
    Thanks in advance,
    Udi Dekel.

    Hi Udi,
    There could be a thousand reasons to this problem. Please go through the checklist , one of them is bound to work.
    1) Verify whether the process table on SAP J2EE server and it says that SDM is running.
    2) You have to enter the SDM host as the name of your J2EE server with the port. Go to:
    Window -> Preferences -> SAP J2EE engine -> Here Enter the values of Message Server Host and Message Server Port.
    3) For some reason the SDM wasn't started by the MMC. Since I was not able to start the SDM via MMC, I started it manually via DOS prompt "StartServer". After that the deployment of the application worked fine.
    4) Try updating the hosts file:
    C:\<WINDOWS-version>\system32\drivers\etc
    Append the following line:
    <localhost IP> name of the localhost.
    e.g.10.590.789.10 remotehost
    Reboot your PC, be sure all threads of the J2EE Engine are running and try to deploy again.
    5) You should use port 39xx instead of 36xx (where xx - SCS instance number).
    6)Please check message server settings on
    visual admin tool:server->kernel->cluster manager
    and check ms.host and ms.port values from the table. If you do your J2ee settings according to these values it will probably work fine.
    The reason why you are getting SDM error is ,at the previous versions there was settings for SDM in preferences and you had to set the port number for SDM ( which was 50018 + 100 * <instance number> ). There is no specific settings for SDM in preferences anymore.
    Regards
    joel
    Edited by: joel trinidade on Mar 26, 2009 2:38 PM
    Edited by: joel trinidade on Mar 26, 2009 2:40 PM

  • Error in execution of  Web Services on WebLogic --ArrayIndexOutOfBoundsExc

    Hi,
    I Have an error with web services hosted on weblogic server and it is throwing the following exception stack trace.
    <MS1> <[ACTIVE] ExecuteThread: '15' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1329818512003> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@f048e943 -appName 'newMyApp', name: '/newmyapp', context-path: '/newmyapp'] Root cause of ServletException.
    javax.servlet.ServletException
         at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:39)
         at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:218)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    java.lang.ArrayIndexOutOfBoundsException: -1
         at com.sun.xml.bind.v2.util.CollisionCheckStack.findDuplicate(CollisionCheckStack.java:112)
         at com.sun.xml.bind.v2.util.CollisionCheckStack.push(CollisionCheckStack.java:53)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.pushObject(XMLSerializer.java:471)
         at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:574)
         at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
         at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:54)
         at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:71)
         at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:281)
         at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:124)
         at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:91)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:170)
         at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:186)
         at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:235)
         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:97)
         at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:36)
         at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:218)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Edited by: 915901 on Feb 21, 2012 3:10 AM

    Hi Gabriel,
    Thank you for your response.
    I have checked this note and checked all my configuration. They all are in place.
    Any other input?
    Thank You,
    Mugdha Kulkarni

  • Exception Handling with OC4J Web Services

    Hi,
    I want to throw some custom exceptions from my web services, based upon my business logic. From the documents I came to know that I can use "javax.xml.rpc.soap.SOAPFaultException" for the same. Following is the sample web service code which I'm trying in my environment.
    import javax.ejb.Stateless;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.soap.SOAPFaultException;
    @WebService
    @Stateless
    public class TestService {
         @WebMethod
         public void greeting()
              throw new SOAPFaultException(new QName("uri", "local"),
         "My Fault String", "My Fault Actor", null);
    Deployment of the web service goes fine and on the invocation of the "greeting" operation the exception is being thrown. But the problem is that, the soap response, which my web service client receives is as of follows,
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://service.csm.nb.md.inglife.jp.co/">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (Caught exception while handling request: oracle.oc4j.rmi.OracleRemoteException: javax.xml.rpc.soap.SOAPFaultException: My Fault String; nested exception is: javax.xml.rpc.soap.SOAPFaultException: My Fault String)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    This means that OC4J again wraps the SOAPFaultException thrown by me. Is there any way by which I can avoid the further wrapping of my exceptions? If there is anything wrong in my approach please do let me know.
    Regards,
    Dipu

    This is one of the "classic" design problems in this kind of architecture. And, unfortunately, the answer is "it depends on how you think you need to handle it." And I'm sure there are plenty of "gurus" that will tell you one way or another is the only way to do it.
    I'll be more honest: I'll give you a couple of personal suggestions, based on experience in this architecture. These are suggestions - you may do with them what you will. I will not say this is the best, most correct, or even remotely relevant to what you're doing.
    If it's simple data validation for "typing" (e.g. String, number, Date, etc.), that is taken care of when you attempt to stuff in the information into the appropriate DTO. If it's more "sophisticated" than that (must be in a certain range, etc.), that particular checking should probably be delegated from your Controller to a helper class. That not only saves the "expense" of transmitting the information back and forth across the wire, it's "faster" to the end user so say "Ooopsie" by redirecting back to the form right then. Basically the same thing if the types are wrong.
    That only leaves the "big" problems in the business layer (EJBs), where you have to deal with concurrency, database failures, etc. Generally these kinds of exceptions are thrown back to to the Controller in one of two forms:
    1) a sublass of RuntimeException, which signals that some Very Bad Things have happened in your container. EJBException is one like that and you can see where it's being thrown from.
    2) a subclass of Exception, also called "application exceptions." They are usually something like a "duplicate record" or a validation-like error (which you mentioned) like a missing field. They're used as a signal to a failure in the logic, not the container. That way you have to decide at what layer of your architecture they should be handled and/or passed on to the next.

  • Invocation Target Exception when assembling a web service...

    Hi All,
    I am trying to run an example provided at the following link in Oracle website:-
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/jaxRpc11/index.htm
    This is an example provided for to configure the Oracle TopLink as a Custom Serializer in a JAX-RPC 1.1 Web Service.
    Presently when running step 6 to assemble the web service using the wsa.jar that comes with jdeveloper as follows:-
    java -jar ${OC4J_HOME}/webservices/lib/wsa.jar –assemble –targetNamespace urn:customer-locator-service –typeNamespace urn:customer-locator-service –input <DEMO_HOME>/classes –classpath <DEMO_HOME>/classes –output ./ –ddFileName <DEMO_HOME>/custom_type_schema_pdd.xml –interfaceName examples.jaxrpc.jaxrpc11.service.CustomerLocatorService –className examples.jaxrpc.jaxrpc11.service.CustomerLocatorServiceImpl –serviceName CustomerLocatorService –appName customer-locator –schema <DEMO_HOME>/Customer.xsd
    I get the following exception:-
    Error: java.lang.reflect.InvocationTargetException
    Please could somebody help me with this exception?
    Regards,
    Lester.

    Hi Blaise,
    The version of Jdeveloper that I am using is 10.1.3.2.0.4066. Please could you help me out?
    Thanks.
    Regards,
    Lester.
    Message was edited by:
    Lester N

  • Exception during calling SAP Web service

    Hi,
    I have exposed BAPI as a web service and trying to access that web service using
    SAP Netweaver by creating CAF application service.
    I have successfully get output from web service.
    To get output for specific structure i have to provide empty structure of that in input.
    This is working fine.
    But for one particular structure when i am providing empty structure i am getting
    "java.lang.IllegalArgumentException".
    I have started BAPI in Debug mode and tested but from BAPI result is successfully delivered but when it received at
    SAP Netweaver side it throws above error.
    Please suggest how to find out exact problem.
    I have checked log viewer also. I found only one entry about getting exception. no extra information is provided.
    Thanks in Advance...

    Hi,
    I have exposed BAPI as a web service and trying to access that web service using
    SAP Netweaver by creating CAF application service.
    I have successfully get output from web service.
    To get output for specific structure i have to provide empty structure of that in input.
    This is working fine.
    But for one particular structure when i am providing empty structure i am getting
    "java.lang.IllegalArgumentException".
    I have started BAPI in Debug mode and tested but from BAPI result is successfully delivered but when it received at
    SAP Netweaver side it throws above error.
    Please suggest how to find out exact problem.
    I have checked log viewer also. I found only one entry about getting exception. no extra information is provided.
    Thanks in Advance...

  • Exceptions Trying to Consume Web Service

    My ColdFusion web site consumes ASP.NET web services to
    access some .NET business objects. I am seeing some exceptions
    intermittently. See sample error message below. Note that
    "UploadDocument" is the web method I am trying to invoke.
    The part of the error message "java.net.SocketException:
    Connection reset" leads me to think there may be a comminication
    failure, possibly indicating a DNS problem. I have changed my CF
    code to reference the ASP.NET web service WSDL by IP address but
    this has not solved my problem.
    Error message:
    Could not perform web service invocation "UploadDocument".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString: java.net.SocketException: Connection
    reset faultActor: faultNode: faultDetail: {
    http://xml.apache.org/axis/}stackTrace:java.net.SocketException:
    Connection reset at
    java.net.SocketInputStream.read(SocketInputStream.java:168) at
    java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at
    java.io.BufferedInputStream.read(BufferedInputStream.java:201) at
    org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:583)
    at
    org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
    at
    org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
    org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
    org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at
    org.apache.axis.client.Call.invokeEngine(Call.java:2765) at
    org.apache.axis.clie... </pre> <br>The error occurred
    on line 100.
    My Environment:
    Both the CF and ASP.NET web sites are on the same physical
    server, but different IP addresses.
    ColdFusion: version 7.0.2 Enterprise
    JVM: Sun 1.4.2_15
    OS: Windows 2003 R2, Service Pack 2
    Any help is resolving this issue is appreciated.

    Hi Sanjay
    You can consume webservices in ABAP but its better to use XI in mid to avoid point to point communication. Using XI you can have a central hub for all services you consume or publish
    Check this link as well
    BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
    Thanks
    Gaurav

Maybe you are looking for

  • Another dual display problem - GeForce FX 5200

    I've seen lots of questions about dual display problem, situation when trying to connect two non-apple vga displays to your graphic card. I have GeForce FX 5200 graphic card, with 2 display output's. And two DELL 17" vga LCD displays. I manage to con

  • Cisco ESA Deployment

    Hello Everyone, I have seen deployment guides of Cisco ESA stating that the ESA is to be deployed in the DMZ network Can We deploy Cisco ESA and also the internal mail server in the same network ?

  • Add VM to a Port Mirroring Session

    I need every VM added to a given folder in vCenter to be added to an existing distributed switch port mirroring session.  Is this possible using PowerCLI?

  • Blue screen after recovery

    I have a Satellite L655D-S5148. I just received the set of Recovery Media. After installing I had a crash dump with the following information displayed once laptop rebooted: Problem signature: Problem Event Name: BlueScreen OS Version: 6.1.7600.2.0.0

  • How to find the last records of the table in adventure work db

    hi all, i want to find out " how to receive a last records of the table (eg:  person.emailaddress ) in sql 2008 and 2005" Thanks