NoSuchMethodException for an accessible method

I am using Open KM framework for my application. It's weird to see that at times I get a NoSuchMethodException in my code for a method that is available. As soon as I start getting this exception, it keeps repeating until I restart the server (Jboss7). After restarting, this will run the file up to some point and then again this exception will happen and continue.

Can anyone help with this?

My exception trace

19:34:10,725 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/CAMSWeb].[spring]] (http--192.168.1.62-8080-2) Servlet.service() for servlet spring threw exception: java.lang.NoSuchMethodException: com.openkm.ws.client.document.OKMDocument.create(java.lang.String, com.openkm.ws.client.document.Document, [B)
    at java.lang.Class.getMethod(Class.java:1622) [:1.7.0_09]
    at org.apache.cxf.jaxws.JAXWSMethodDispatcher.getImplementationMethod(JAXWSMethodDispatcher.java:109)
    at org.apache.cxf.jaxws.JAXWSMethodDispatcher.bind(JAXWSMethodDispatcher.java:55)
    at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.bindOperation(JaxWsServiceFactoryBean.java:280)
    at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperation(JaxWsServiceFactoryBean.java:254)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeWSDLOperations(ReflectionServiceFactoryBean.java:645)
    at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.initializeWSDLOperations(JaxWsServiceFactoryBean.java:289)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:392)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:499)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
    at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
    at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)
    at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:152)
    at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
    at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:464)
    at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:331)
    at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:318)
    at javax.xml.ws.Service.getPort(Service.java:99) [jboss-jaxws-api_2.2_spec-2.0.0.Final.jar:2.0.0.Final]
    at com.openkm.ws.client.document.OKMDocument_Service.getOKMDocumentPort(OKMDocument_Service.java:72) [okm-ws-client-6.0.jar:]

      

I've also added some other traces to see what the calling class and expected method are. These are the results

19:34:10,719 INFO  [stdout] (http--192.168.1.62-8080-2) Trying to fetch method ========      create from class : interface com.openkm.ws.client.document.OKMDocument
19:34:10,719 INFO  [stdout] (http--192.168.1.62-8080-2) Length of the method name  ======== 6
19:34:10,719 INFO  [stdout] (http--192.168.1.62-8080-2) The parameters for the expected method are
19:34:10,719 INFO  [stdout] (http--192.168.1.62-8080-2) >>>>>>>>>.... java.lang.String
19:34:10,719 INFO  [stdout] (http--192.168.1.62-8080-2) >>>>>>>>>....   com.openkm.ws.client.document.Document
19:34:10,719 INFO  [stdout] (http--192.168.1.62-8080-2) >>>>>>>>>.... [B

      

This is the result of getMethods from the called method endpoint class

19:34:10,721 INFO  [stdout] (http--192.168.1.62-8080-2)  Method Name :: create
19:34:10,721 INFO  [stdout] (http--192.168.1.62-8080-2) Parameters.... java.lang.String
19:34:10,721 INFO  [stdout] (http--192.168.1.62-8080-2) Parameters....  com.openkm.ws.client.document.Document
19:34:10,721 INFO  [stdout] (http--192.168.1.62-8080-2) Parameters.... [B

      

As you can see, the calling signature

create(String, com.openkm.ws.client.document.Document, byteArray)

      

and the target class also has a method with the same signature, but still from time to time I get this NoSucnMethodException and as said after it appears, then it keeps coming until I restart the server.

Any help ...

+3


source to share


1 answer


com.openkm.ws.client.document.Document

is an interface. I suspect the implementation is missing during deployment.



0


source







All Articles