Jose,

I changed the parameter from String to String[]. However it got the same
exception. The only different thing is that Ljava/lang/String to
[Ljava/lang/String. I really don't understand what's going on! Could you
tell me how to solve it?

Thanks,
LB

On Mon, Mar 14, 2011 at 3:51 AM, Bing Li <[email protected]> wrote:

> Jose
>
> I appreciate so much for your help!
>
> You mean I should change the parameter of the local method from String to
> String[]? I will take a try.
>
> Thanks,
> LB
>
>
> On Mon, Mar 14, 2011 at 3:31 AM, JOSE L MARTINEZ-AVIAL 
> <[email protected]>wrote:
>
>> I think it is trying to invoke a method with a String[] attribute, not
>> simply a String.
>>
>>
>> 2011/3/13 Bing Li <[email protected]>
>>
>>> Dear all,
>>>
>>> I am a new Axis2 user. Today I got a weird exception when calling a Web
>>> service.
>>>
>>> This Web service is deployed on Tomcat/Axis2. I need to transmit an
>>> object (parameter) to it. The object contains a String attribute. The object
>>> is received correctly. However, when calling a local method on the remote
>>> machine, it got the following errors. I noticed that the method
>>> SelectCategoriedHubByKey(Ljava/lang/String key) cannot be found on the
>>> machine. Actually, the method should be SelectCategoriedHubByKey(String
>>> key). Why is the parameter changed from String to LJava/lang/String? How to
>>> solve the problem?
>>>
>>> Thanks so much!
>>> LB
>>>
>>> [ERROR]
>>> com.greatfree.OODB.CategorizedHubDB.SelectCategorizedHubByKey(Ljava/lang/String;)Lcom/greatfree/OODB/CategorizedHub;
>>> java.lang.reflect.InvocationTargetException
>>>         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:597)
>>>         at
>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
>>>         at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
>>>         at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>         at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
>>>         at
>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
>>>         at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
>>>         at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
>>>         at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>         at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
>>>         at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
>>>         at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>>>         at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
>>>         at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
>>>         at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>         at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
>>>         at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
>>>         at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)
>>>         at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:237)
>>>         at
>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)
>>>         at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>>         at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>>         at java.lang.Thread.run(Thread.java:662)
>>> Caused by: java.lang.NoSuchMethodError:
>>> com.greatfree.OODB.CategorizedHubDB.SelectCategorizedHubByKey(Ljava/lang/String;)Lcom/greatfree/OODB/CategorizedHub;
>>>         at
>>> com.greatfree.HTTP.CategorizedHubService.getCategorizedHub(Unknown Source)
>>>         ... 29 more
>>>
>>>
>>
>

Reply via email to