Webservices exception in Tomcat 7

Hi,
I am receiving the following error in Tomcat
com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle
SEVERE: Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.
com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.
at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:292)
at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:276)
at com.sun.xml.ws.transport.http.HttpAdapter.access$500(HttpAdapter.java:93)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:432)
Why Tomcat will throw "Premature end of file." exception?

Because likely you're getting an empty document. Hence "premature end of file", which can be read differently: "I expected more data".
So yeah, good luck proving that what I say is true and figuring out WHY that happens.

Similar Messages

  • Com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException

    Hello Team,
    We have a scenario where we have a PI web service and we are importing the WSDL into our WD Java application.
    While running the test scenario we are getting the below 2 exceptions in the stack trace.
    20111222:Exception trace: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service on destination 'WS_CUST_**' for operation 'GetCustomer*' in interface 'GetCustomer**'
    Caused by: java.rmi.RemoteException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.; nested exception is:
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
    Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
    By running through few posts on SDN a probable solution for this was proposed as: blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application
    Any help on this would be great.
    Regards,
    Shailesh

    Dear Shailesh,
    Did you try to check the blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application? please try to check and test.
    Also try to import fresh in new DC and check whether it is working or not.
    Best Regards
    Arun Jaiswal

  • Webservice Exception from Webdynpro

    Hi,
    We are on 7.1 SP04 Patch 1. We have created a webservice with http and None Authentication and deployed on EP 7.0 server. We have set a constant User Name and Password in Visual Admin.
    We are able to execute this webservice successfully from Webservice navigator.
    We have developed a Webdynpro appln with this webservice. We are getting an exception when the webservice is getting executed from Webdynpro appln.
    "Exception on execution of webservice with WSDL url '<wsdl url>' with operation 'webservice name' in interface"
    We checked in the trace file and got the following message
    com.sap.mdm.logging.MdmLogger warning
    WARNING: PingServerCommand failed
    Have any one faced this issue?
    Thanks,
    Arun prabhu

    Hi Walter,
    The webservices are developed using MDM Webservice generator. The webdnpro application has to access MDM Data using MDM Webservices / MDM Java APIs.
    This was working fine with MDM 7.1 SP03. Now we have upgraded to MDM 7.1 SP04.
    When I try to access MDM Data from webdynpro using MDM Java API commands, I am getting an exception at AuthenticateUserSession Command. While access using MDM Webservices, I am getting an webservice exception and an entry in trace file.
    Thanks,
    Arun prabhu S

  • Oracle.xdo.webservice.exception.InvalidParametersException:

    Along with my security exception from my previous post, also get this coming up more frequent.
    [import] Import "***.xdo" from "***" to "****.xdo"
    Command Error: import->importObject
    oracle.xdo.webservice.exception.InvalidParametersException: PublicReportServiceImpl::executeUploadReport Failure: Due to Report with Path [****.xdo] already exist!
    I'm using the overwrite options so why should it care if it exists?
    Also if I run this myself a few times it eventually works.

    see this java.lang.SecurityException: Security violation, expect: 514, actual: 0

  • Exception in Tomcat 4.1

    Getting the following exception in Tomcat 4.1
    I know, there's something to be done with servlet-api.jar or jsp-api.jar.
    Kindly help me out. This exception is driving me crazy out here.
    javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V

    I'm getting that same error, I'm using the core taglib from sun. It works fine with the standalone tomcat server, but I get that error with tomcat 5.5.7 that is bundled with netbeans. Here is the error message I get:
    javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    cause m�re
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
         org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572)
         org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
         org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:179)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
         org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    Please help
    Thanks

  • Error when testing a webservice - Exception raised in class CL_SOAP_REGIST

    Dear coleagues,
    I've got an issue concerning the AS ABAP SOAP Runtime. The system is an ERP 6.0 with SP13.
    If I try to test the service in WSADMIN by using the test-button, I just get an exception after the internet browser opens:
    A Soap Core Exception was raised in Method CL_SOAP_REGISTRY::generate_wsdl(6)
    Technical Details of Soap Core Exception
    Message Text: SRT: ASSERT failed: object reference not bound
    Class: CL_SOAP_REGISTRY
    Method: generate_wsdl
    LocationID: 6
    Program: CL_SOAP_REGISTRY==============CP
    Include: CL_SOAP_REGISTRY==============CM00J
    Line: 59
    I did a look into the coding and think that the exception is raised since the methode
    Hi folks,
    I've got an issue concerning the AS ABAP SOAP Runtime. The system is an ERP 6.0 with SP13.
    At first I create a Web Service by using the context menue of an existing rfc-enabled function module. Afterwards the service is visible in SICF. If I try to test the service in WSADMIN by using the test-button I only get an exception in the opening internet browser:
    Cannot download WSDL from http://serverurl:8027/sap/bc/srt/rfc/sap/ZSTMA_FUNKTIONSTEST2?sap-client=100&wsdl=1.1: Invalid Response Code: (400) Bad Request. The requested URL was:"http://ciswi.sap.swm.de:8027/sap/bc/srt/rfc/sap/ZSTMA_FUNKTIONSTEST2?sap-client=100&wsdl=1.1"
    If I go onto the used url I get the following message:
    Your request could not be processed
    SRT: ASSERT failed: object reference not bound
    What has happened?
    A Soap Core Exception was raised in Method CL_SOAP_REGISTRY::generate_wsdl(6)
    Technical Details of Soap Core Exception
    Message Text: SRT: ASSERT failed: object reference not bound
    Class: CL_SOAP_REGISTRY
    Method: generate_wsdl
    LocationID: 6
    Program: CL_SOAP_REGISTRY==============CP
    Include: CL_SOAP_REGISTRY==============CM00J
    Line: 59
    I did a look into the coding and found out that the exception is raised since
    Hi folks,
    I've got an issue concerning the AS ABAP SOAP Runtime. The system is an ERP 6.0 with SP13.
    At first I create a Web Service by using the context menue of an existing rfc-enabled function module. Afterwards the service is visible in SICF. If I try to test the service in WSADMIN by using the test-button I only get an exception in the opening internet browser:
    Cannot download WSDL from http://serverurl:8027/sap/bc/srt/rfc/sap/ZSTMA_FUNKTIONSTEST2?sap-client=100&wsdl=1.1: Invalid Response Code: (400) Bad Request. The requested URL was:"http://ciswi.sap.swm.de:8027/sap/bc/srt/rfc/sap/ZSTMA_FUNKTIONSTEST2?sap-client=100&wsdl=1.1"
    If I go onto the used url I get the following message:
    Your request could not be processed
    SRT: ASSERT failed: object reference not bound
    What has happened?
    A Soap Core Exception was raised in Method CL_SOAP_REGISTRY::generate_wsdl(6)
    Technical Details of Soap Core Exception
    Message Text: SRT: ASSERT failed: object reference not bound
    Class: CL_SOAP_REGISTRY
    Method: generate_wsdl
    LocationID: 6
    Program: CL_SOAP_REGISTRY==============CP
    Include: CL_SOAP_REGISTRY==============CM00J
    Line: 59
    I found out that the exception is raised since CL_SRT_WSDL_GEN_FACTORY=>GET_WSDL_GENERATOR doesn't return an instance of the class referring to the interface IF_SRT_WSDL_GEN.
    If I test that method in SE24 using the name of the service definition in SE80 for the parameter WSD, the value '1' fpr the parameters TYPE and STYLE, an instance of the class CL_SRT_WSDL11_GEN is rendered.
    Could you give any hints how I could debug that issue to verify the import parameters when the static method CL_SRT_WSDL_GEN_FACTORY=>GET_WSDL_GENERATOR is called in the body of the browser call ?
    Or any other hints?
    Thank you very much and best regards
    Stefan

    The issue was due to missing authorizations of the RFC-user (type 'Communication') calling the webservice. The RFC-user itsself has been assigned before to the webservice in the http-service tree (transaction SICF). RFC-User needs (at least) the role SAP_BC_WEBSERVICE.

  • Com.sapportals.wcm.repository.ResourceException: Webservice exception

    Hi,
    When we try to upload any document to KM we get the following error,
    com.sapportals.wcm.repository.ResourceException: Webservice returned with exception in method 'getBOInstance'"",""n/a"",""com.sapportals.wcm.control.navigation.ResourceTreeControlInternal"",""sap.com/irj"",""B46853"",""ustca190"",""Server 0 0_69062"",
    or..
    Date,Time,Message,Category,Location,Application,User,Host,Node,
    "Aug 21, 2006,""22:04:43:704"",""Call failed"",""/System/Server"",""com.sap.portal.portal"",""sap.com/irj"",""B46853"",""ustca190"",""Server 0 0_69062"","
    ","""",""[EXCEPTION]"","""","""","""","""","""","""","
    ","""",""com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message. Check the nested Exception."","""","""","""","""","""","""","
    ","""",""at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:226)"","""","""","""","""","""","""","
    ","""",""at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:160)"","""","""","""","""","""","""","
    ","""",""at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:322)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:152)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)"","""","""","""","""","""","""","
    ","""",""at com.sap.caf.km.repositorymanager.proxies.BOProxy.getBOInstance(BOProxy.java:615)"","""","""","""","""","""","""","
    ","""",""at com.sap.caf.km.repositorymanager.util.BOProxyWrapper.getBOInstance(BOProxyWrapper.java:317)"","""","""","""","""","""","""","
    ","""",""at com.sap.caf.km.repositorymanager.util.BOProxyWrapper.getBOInstance(BOProxyWrapper.java:296)"","""","""","""","""","""","""","
    ","""",""at com.sap.caf.km.repositorymanager.util.BOProxyWrapper.checkRightsForCAF(BOProxyWrapper.java:887)"","""","""","""","""","""","""","
    ","""",""at com.sap.caf.km.repositorymanager.util.SecurityManagerImpl.checkCAFResource(SecurityManagerImpl.java:297)"","""","""","""","""","""","""","
    ","""",""at com.sap.caf.km.repositorymanager.util.SecurityManagerImpl.isAllowed(SecurityManagerImpl.java:178)"","""","""","""","""","""","""","
    ","""",""at com.sap.caf.km.repositorymanager.CAFSecurityManager.isAllowed(CAFSecurityManager.java:131)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.manager.generic.security.CollaborationSecurityManager.isAllowed(CollaborationSecurityManager.java:208)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.manager.SecurityChecker.check(SecurityChecker.java:237)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.manager.SecurityChecker.checkListChildren(SecurityChecker.java:138)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager.getChildren(CmNamespaceAndContentManager.java:2218)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager.getChildren(CmNamespaceAndContentManager.java:424)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.CollectionImpl.internalGetChildrenManager(CollectionImpl.java:1533)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.CollectionImpl.internalGetChildren(CollectionImpl.java:1550)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.CollectionImpl.doGetChildren(CollectionImpl.java:144)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:124)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.repository.CollectionLinkImpl.getChildren(CollectionLinkImpl.java:79)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.rendering.collection.cm.InternalTree.getChildren(InternalTree.java:1675)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.rendering.collection.cm.InternalTree.getFirstCallOpenResources(InternalTree.java:970)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.rendering.collection.cm.InternalTree.getFirstCallOpenResources(InternalTree.java:993)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.rendering.collection.cm.InternalTree.buildNewTree(InternalTree.java:599)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.rendering.collection.cm.InternalTree.renderTree(InternalTree.java:718)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.rendering.collection.cm.InternalTree.render(InternalTree.java:467)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.rendering.collection.cm.InternalTree.buildContent(InternalTree.java:2034)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.control.util.components.base.BaseCompositeComponent.buildComposition(BaseCompositeComponent.java:195)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:34)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:34)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.Container.preRender(Container.java:120)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:406)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:237)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:130)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:73)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:377)"","""","""","""","""","""","""","
    ","""",""at java.security.AccessController.doPrivileged(Native Method)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:390)"","""","""","""","""","""","""","
    ","""",""at com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)"","""","""","""","""","""","""","
    ","""",""at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)"","""","""","""","""","""","""","
    ","""",""at java.lang.Thread.run(Thread.java:534)"","""","""","""","""","""","""","
    ","""",""Caused by: java.net.UnknownHostException: _ustwa057.kcc.com"","""","""","""","""","""","""","
    ","""",""at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)"","""","""","""","""","""","""","
    ","""",""at java.net.Socket.connect(Socket.java:452)"","""","""","""","""","""","""","
    ","""",""at java.net.Socket.connect(Socket.java:402)"","""","""","""","""","""","""","
    ","""",""at java.net.Socket.<init>(Socket.java:309)"","""","""","""","""","""","""","
    ","""",""at java.net.Socket.<init>(Socket.java:124)"","""","""","""","""","""","""","
    ","""",""at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initStreamsFromSocket(HTTPSocket.java:647)"","""","""","""","""","""","""","
    ","""",""at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initializeStreams(HTTPSocket.java:469)"","""","""","""","""","""","""","
    ","""",""at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getOutputStream(HTTPSocket.java:426)"","""","""","""","""","""","""","
    ","""",""at com.sap.engine.services.webservices.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:182)"","""","""","""","""","""","""","
    ","""",""... 58 more"","""","""","""","""","""","""","
    "Aug 21, 2006,""22:04:43:704"",""Webservice returned with exception in method 'getBOInstance'"",""n/a"",""com.sap.caf.km.repositorymanager.util.BOProxyWrapper"",""sap.com/irj"",""B46853"",""ustca190"",""Server 0 0_69062"","
    "Aug 21, 2006,""22:04:43:704"",""Webservice returned with exception in method 'getBOInstance'
    Looks like some kind of authorisation problem.
    Another noted feature is, when the user has all rights in portal - System Admin the upload is faster.
    but when we use the everyone group with read permission this error occurs and upload of a document takes between 15-30 minutes.
    Kind Regards
    Asif

    Check with the weblog for External libraries.
    Weblog External libraries:https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2361. [original link is broken] [original link is broken] [original link is broken]
    If u want more informations about the jar files check with this link
    JAR class finder:
    http://www.alphaworks.ibm.com/tech/jarclassfinder
    http://sourceforge.net/projects/classlocator
    Regards,

  • MDM WebService Exception for MDMSearchRecords

    When I'm trying to inoke MDMSearchRecords web service from an EJB, I'm shown with the following error.
    MDMWebServiceException#
    com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:921)#
    com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1439)#
    Config1BindingStub.searchRecords(Config1BindingStub.java:81)#
    Config1BindingStub.searchRecords(Config1BindingStub.java:104)#
    mdm.ejb.ProductResultSetBean.getProductResultSet(ProductResultSetBean.java:75)#
    mdm.ejb.ProductResultSetObjectImpl0_0.getProductResultSet(ProductResultSetObjectImpl0_0.java:119)#
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)#
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)#
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)#
    java.lang.reflect.Method.invoke(Method.java:324)#
    com.sap.engine.services.rmi_p4.StubImpl.p4_invokeReflect(StubImpl.java:373)#
    mdm.ejb.ProductResultSet_Stub.getProductResultSet(ProductResultSet_Stub.java:61)#
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)#
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)#
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)#
    java.lang.reflect.Method.invoke(Method.java:324)#
    com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)#
    I was able to test this webservice using webservice navigator in the portal.
    Can anyone help me in finding the cause for this exception?
    Thanks,
    Rajesh

    Rajesh Naidu wrote:Hi Rajesh,
    I assume that you have developed the said MDM Web Service.
    If so, then from the stack trace it is clear that the error is in the EJB exposed as Web Service.
    >
    > mdm.ejb.ProductResultSetBean.getProductResultSet(ProductResultSetBean.java:75)#
    > quote}
    From the above check the code at line number 75 in the ProductResultSetBean.java file.
    Also, check if the input parameters are being passed correctly.
    Regards,
    Alka.

  • Webservice exception

    Hi All,
    I am trying to access a webservice running on XI from EP6 SP9. It is giving the following exception
    com.sap.engine.services.webservice.jaxm.soap.accessor.NetstedSOAPException: Problem in server response: [Not Found]..
    Can anybody help me with this please.
    Thanks
    Santhosh

    Thanks Rasmus. Here is the complete exception from the log files. We are trying to connect to XI web service from EP and are getting this expcetion.
    A
    #1.5#001143D4A1D1003A0000000A000005600003F6C24D7EC7AA#1115739314747#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#kcfergus#52092#####SAPEngine_Application_Thread[impl:3]_39##0#0#Error#1#/System/Server#Java###Exception ID:10:35_10/05/05_0111_5748450
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : WebService9.XIAbstractPortalComponent
    Component class : com.xom.global.enterprise.portal.wsdl.webservices.service.packagename.XIAbstractPortalComponent
    User : kcfergus
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:824)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
    at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
    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:94)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: [Not found].
    at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:197)
    at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)
    at com.xom.global.enterprise.portal.wsdl.webservices.service.packagename.XIService.mi_BAPI_CREATENOTIF_SYNC_OUTBOUND(XIService.java:166)
    at com.xom.global.enterprise.portal.wsdl.webservices.service.packagename.XIAbstractPortalComponent.doContent(XIAbstractPortalComponent.java:35)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    ... 29 more

  • XI Webservice Exception within Webdynpro component

    Hi All,
    I have created a model for an XI webservice within the webdynpro project and created 2 view one for search and the other for search results and have accordingly associated the context variables of these views to the import and response parameters of the web service.
    Now when I execute the method associated with this service I receive a service exception as enclosed below :
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized
    Can someone please tell me if there any settings to be done on the client or server settings.
    Thanks in advance.
    Best regards,
    Divya

    Divya,
    please go through this documentation and see if it helps.
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/08194116bfb167e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/27fd3b651f6a1ce10000000a11402f/frameset.htm

  • Exception in tomcat:ClassNotFoundException: org.apache.jk.server.JkCoyoteHa

    can nay body help me .i got the following exception while
    running tomcat 4.1 in eclipse 3.0.
    thanks
    help me
    regards
    saravanakumar
    log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
    log4j:WARN Please initialize the log4j system properly.
    java.lang.ClassNotFoundException: org.apache.jk.server.JkCoyoteHandler
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1153)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    Catalina.start: LifecycleException: Protocol handler instantiation failed: java.lang.ClassNotFoundException: org.apache.jk.server.JkCoyoteHandler
    LifecycleException: Protocol handler instantiation failed: java.lang.ClassNotFoundException: org.apache.jk.server.JkCoyoteHandler
         at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1157)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    Catalina.stop: LifecycleException: This server has not yet been started
    LifecycleException: This server has not yet been started
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2213)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

    running standalone requires an environment variable CATALINA_HOME and the path $CATALINA_HOME/bin for startup. maybe eclipse doesn't do it for you but you might check out the tomcat site
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html

  • Consuming Webservices Exception occurred in communication framework:Error in HTTP Framework:404conn

    Hi
    I am trying to  consume Webservices of external WSDL url http://202.83.160.22/WS-crpl-9001/ws-crpl-9001.asmx?wsdl  in sap which is located outside the  local sap network, When i tried to create client proxy by going to se80 and after completing the required steps it gives me error of Exception occurred in communication framework:Error in HTTP Framework:404conn,
    Its Been a two week that i am trying to figure out this error  I already posted the question on Scn last week but no body bothers to answer me,
    I tired All suggestion and way out that different sites suggest like by going on to tocde Sicf -> client ->proxy setting ->https log and give the host name and port no of system where these wsdl file actually located, I also tried to save this url  locally  on my desktop and then I gives me error of Exception occurred in library handler Incorrect value: Unknown Namespace http://www.w3.org/2001/XMLSchema
    Please Please help me I have done lot of search spent lot of nights to figure it out but couldnot be able to fix please give some way to solve this issue as I am in a real trouble
    Waiting for your Responses.
    Regards

    Hi thanks for your response .
    Yes WSDL file opening successfully in browser,
    When I goto tocode SMICM->GOTO->TRACE FILE->DISPLAY START
    IT gives these error
    after creating client proxy again for http://202.83.160.22/WS-crpl-9001/ws-crpl-9001.asmx?wsdl wsdl url which are provide by a service provider out side sap
    please HELP me to resolve this issue
    thanks

  • Handling runtime Exceptions in tomcat / struts

    Hi, I'm trying to find a way to cleanly handle exceptions in struts/tomcat. I've read a number of suggestions in my struts book, but none seem to work.
    What I've done is created an instance within my action class that deliberatley creates a NullPointerException. I want to be able to display an errorPage at this point, but whatever I do I just get the same horrible HTTP Status 500 error.
    Can anyone give any advice with this please?

    Check out the org.apache.struts.action.ExceptionHandler class. Basically you extend this class, and override the execute method. In the struts config file you add this entry...
    <global-exceptions>
    <exception
    handler="the pathname of the class that extends ExceptionHandler"
    key="message properties entry"
    path="error page jsp"
    scope="request"
    type="type of Exception you want to catch (Throwable)"/>
    </global-exceptions>
    This basically acts as a "catch all" global exception handle.

  • Android odata restful webservice exception

    HTTP 401 - Unauthorized SAP Internet Communication Framework Team. i'm pass user and password but when call this service i'm getting 401 error. if u know correct me
    public class ClientIDTask extends AsyncTask<String, Void, String> {
            String user = "mobtest";
            String pass = "welcome1";
            @Override
            protected void onPreExecute()
            @Override
            protected String doInBackground(String... arg0)
                String URL="";
                try {
                    Log.d("URL", "URL");
                URL = "http://server8000/sap/opu/odata/sap/ZCUST_TESTING... eq '800COL101'";
                    URL=URL.replaceAll(" ", "%20");
                } catch (UnsupportedEncodingException e1) {
                    // TODO Auto-generated catch block
                    e1.printStackTrace();
                String result = "";          
                 HttpClient client = new DefaultHttpClient();
                 HttpConnectionParams.setConnectionTimeout(client.getParams(), 10000); //Timeout Limit
                 HttpResponse response;          
                try
                    Log.d("start","start");
                    HttpGet get=new HttpGet(URL);            
                    Log.d("get",get+"");
                   String tok = "mobtest:welcome1";
                    byte bytehash[]= Base64.encode(tok.getBytes(),0);
                    String auth=new String(bytehash);
                    Log.d("auth",auth.trim()+"|"+auth);
                    get.addHeader("Authorization", "Basic" +auth.trim());
                    response = client.execute(get);
                    Log.d("response",response+"r");
                    if(response!=null)
                        InputStream in = response.getEntity().getContent();
                        BufferedReader br= new BufferedReader(new InputStreamReader(in));
                        StringBuilder sb = new StringBuilder();
                        String line;
                        while ((line = br.readLine()) != null) {
                            sb.append(line);
                        br.close();
                        in.close();
                        String _Output=sb.toString();
                        Log.d("_Output", _Output+"");
                       /* JSONObject oJSONOutPut = new JSONObject(OutPut);
                        boolean Result=oJSONOutPut.getBoolean("Result");
                        String Status=oJSONOutPut.get("Status").toString();                
                        if(Result)
                            result=Status;
                        else
                            result="Failed";
                catch (Exception e) {
                    result="NetWorkError"+"catch";
                    String strError=e.getMessage().toString();
                    Log.d("strError", strError+"");
                    e.printStackTrace();
                return result;
            @Override
            protected void onPostExecute(String ClientIDJSON)
                Log.d("ClientIDJSON", ClientIDJSON+"");
    //            _bar.setVisibility(View.GONE);
                 if("Failed".equals(ClientIDJSON))
                     Toast.makeText(getApplicationContext(), "Failed!!!", Toast.LENGTH_LONG).show();
                 else if("NetWorkError".equals(ClientIDJSON))
                    Toast.makeText(getApplicationContext(), "Network Error!!!", Toast.LENGTH_LONG).show();
    Message was edited by: Michael Appleby

    Hi Vijay,
    I'm in the impression, that you are started learning Restful Webservices.
    If yes here is the best solution, hope this helps you.
    I too tried that link given by you, but I didn't find jar for "com.sun.jersey.api.client" package, any how here you can find very clear and simple example.
    Jersey hello world example

  • Axis 1.3 webservices exception gives problem

    I am creating webservices using AXIS 1.3. While throw the exception, we are using the "org.w3c.dom.Element" to set the error message into the exception.
    But when the control reaches the following line of code I am getting NullpointerException.
    detailErr[0].setAttribute("error", rexception.toString()); Element[] detailErr = new Element[1]; (I have instanciated the element object like this)
    Please guide me.
    Try{
    }catch(Exception exception){
    Element[] detailErr = new Element[1]; 
    detailErr[0].setAttribute("error", exception.toString());  // Nullpointerexception
    throw new MyuserDefineException(�1232�,�exception�,�myservice�, detailer)
    }

    Apparently you don't understand arrays. You've created the array with a space for one reference. You never assign anything into that array element.
    String[] s = new String[1];
    s[0].size(); // The reference is NULL!The above is guaranteed to be a null pointer exception - how could the array element have a String in it? We never create a String (only the array) and what text would it have even if it somehow magically worked?
    Instead you would have to do this:
    String[] s = new String[1];
    s[0] = "Hello";
    s[0].size(); // The reference is NOT nullThe above is exactly analogous to your problem.

Maybe you are looking for