javax.xml.rpc.JAXRPCException: Can not locate the operation: {ld:CustomerMaster/Logical/CustomerDetail_ws}createCustomerDetail

Oracle Community | 666705 | 9 years ago
  1. 0

    Error when calling create and update functions on logical data service

    Oracle Community | 9 years ago | 666705
    javax.xml.rpc.JAXRPCException: Can not locate the operation: {ld:CustomerMaster/Logical/CustomerDetail_ws}createCustomerDetail
  2. 0

    I am playing with Spring's webservice support. See forum: http://forum.springframework.org/viewtopic.php?p=11579#11579 I was outputting debug information and I stumpled on an exception. First the stack-trace: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ediDao' defined in ServletConte eptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframewo ion: toString - none defined] PropertyAccessExceptionsException (1 errors) org.springframework.beans.MethodInvocationException: Property 'service' threw exception; nested exception is javax.xml. javax.xml.rpc.JAXRPCException: Cannot find operation: toString - none defined at org.apache.axis.client.Call.setOperation(Call.java:1253) at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:184) at $Proxy0.toString(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:98) at org.springframework.remoting.rmi.RmiClientInterceptorUtils.invoke(RmiClientInterceptorUtils.java:67) at org.springframework.remoting.jaxrpc.JaxRpcPortClientInterceptor.invoke(JaxRpcPortClientInterceptor.java:341) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy1.toString(Unknown Source) at dk.webfragt.access.edi.EDIDao.setService(EDIDao.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:779) And my spring.xml file <bean id="ediWS" class="dk.webfragt.access.edi.EDIWebServiceFactory"> <property name="serviceInterface"> <value>dk.webfragt.access.edi.Version</value> </property> <property name="wsdlDocumentUrl"> <value>http://localhost:8181/axis/services/Version?wsdl</value> </property> <property name="namespaceUri"> <value>http://localhost:8181/axis/services/Version</value> </property> <property name="serviceName"> <value>VersionService</value> </property> <property name="portName"> <value>Version</value> </property> </bean> And the code that causes this error public void setService(Version v) { logger.debug("Setting service: " + v); this.ver = v; } The problem: Using Spring JAX-RPC will throw an exception if using toString() on the service interface. In my code above I log to debug the service interface (Version). If I remove the debug code line it works fine. Since Version is an interface I can not implemenet a toString method. I think Spring should have a default toString() that output the JAX-RPC Service/Port name.

    Spring JIRA | 1 decade ago | Claus Ibsen
    javax.xml.rpc.JAXRPCException: Cannot find operation: toString - none defined
  3. 0

    following problem: The service interface does not implement javax.xml.rpc.Service (JBoss/WildFly forum at Coderanch)

    coderanch.com | 4 months ago
    javax.xml.rpc.Service: pack.EJBWebServiceOne] 15:39:09,890 INFO [STDOUT] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1135) 15:39:09,890 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:690) 15:39:09,890 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:701) 15:39:09,890 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) 15:39:09,890 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:351) 15:39:09,890 INFO [STDOUT] at pack.ServletWSClient.getEJBWebServiceOne(ServletWSClient.java:84) 15:39:09,890 INFO [STDOUT] at pack.ServletWSClient.getEJBWebServiceOneSEIPort(ServletWSClient.java:94) 15:39:09,890 INFO [STDOUT] at pack.ServletWSClient.processRequest(ServletWSClient.java:32) 15:39:09,890 INFO [STDOUT] at pack.ServletWSClient.doGet(ServletWSClient.java:59) 15:39:09,890 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) 15:39:09,890 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 15:39:09,890 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 15:39:09,890 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) 15:39:09,890 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) 15:39:09,890 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 15:39:09,890 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in Holder for Multiple Return Types

    Oracle Community | 1 decade ago | 3004
    javax.xml.rpc.JAXRPCException: Failed to invoke the target:test.MyService@630693 operation name:serviceMethod method:public java.lang.String test.MyService.serviceMethod(java.lang.String,test.TicketHolder) args:[Ljava.lang.Object;@3d51e3arg.length:2 Due to exception:java.lang.IllegalArgumentException: argument type mismatch
  6. 0

    Error using Multiple Return Types

    Oracle Community | 1 decade ago | 3004
    javax.xml.rpc.JAXRPCException: Failed to invoke the target:test.MyService@630693 operation name:serviceMethod method:public java.lang.String test.MyService.serviceMethod(java.lang.String,test.TicketHolder) args:[Ljava.lang.Object;@3d51e3arg.length:2 Due to exception:java.lang.IllegalArgumentException: argument type mismatch

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.xml.rpc.JAXRPCException

      Can not locate the operation: {ld:CustomerMaster/Logical/CustomerDetail_ws}createCustomerDetail

      at com.bea.dsp.ws.WssInboundHandler.operationLookup()
    2. com.bea.dsp
      WssInboundHandler.operationLookup
      1. com.bea.dsp.ws.WssInboundHandler.operationLookup(WssInboundHandler.java:252)
      1 frame