Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 71912 invoked from network); 2 Jun 2010 14:07:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jun 2010 14:07:19 -0000 Received: (qmail 62999 invoked by uid 500); 2 Jun 2010 14:07:17 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 62307 invoked by uid 500); 2 Jun 2010 14:07:17 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 61894 invoked by uid 99); 2 Jun 2010 14:07:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 14:07:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of xhhsld@gmail.com designates 209.85.213.182 as permitted sender) Received: from [209.85.213.182] (HELO mail-yx0-f182.google.com) (209.85.213.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 14:07:09 +0000 Received: by yxg6 with SMTP id 6so479104yxg.13 for ; Wed, 02 Jun 2010 07:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=GFvQ+oELgPA1KxT92my5D6tDoTTHPgVz5zYEKCZO6Wg=; b=c8xI3X7BGWMu6xrSjxnpNDrRFEz5qEwWiaWf9VSUOJoGPdmBYDL2KXEvpQgeiAHDkH RTdLgegz5TieYcuN/bKj5HUf9nXb2sEDAb44QCYt183jA2NUv7ugkTu+gcqZNqoMS552 ipInYAoj5wFqyXT7ZYMWoyKlfnxcp3HW4XDTo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=tMwR1WAA8YWVL0WDVpdhirm0/FJoQOn+RE0L52Z1lMA5FJWJnm7gsd1zbl+VKJFEgN QsPxNh7W5bTqDvZPF+A5TWu2aPcd/TPv5+jghRZjGCcefzwFQCvIRxUp2aO66M/gr/P1 dv/p6sMCyZEg9PkanDgtArUdMhhfWbvyhEpg8= MIME-Version: 1.0 Received: by 10.229.190.71 with SMTP id dh7mr1417589qcb.192.1275487607464; Wed, 02 Jun 2010 07:06:47 -0700 (PDT) Received: by 10.229.251.80 with HTTP; Wed, 2 Jun 2010 07:06:47 -0700 (PDT) In-Reply-To: <4C062C91.7030500@optitool.de> References: <4C062C91.7030500@optitool.de> Date: Wed, 2 Jun 2010 22:06:47 +0800 Message-ID: Subject: Re: WebService - AxisFault - Wrong number of Arguments From: Ivan To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=00163630f4d1c827b704880c9966 X-Virus-Checked: Checked by ClamAV on apache.org --00163630f4d1c827b704880c9966 Content-Type: text/plain; charset=ISO-8859-1 Seems that you are exposing the EJB as web service, so could you attach the simple testing web service example ? 2010/6/2 Florian Schaetz > Hello, > > after having some problems with a more complicated WebService, I've written > a simple testing WebService, which has one method, that takes a String and > gives back a Result-Object (containing only a status int, which is zero). > > After using wsgen to create the WSDL file and the jaxws classes I deployed > the WebService to my (freshly downloaded) Geronimo 2.2 (with Tomcat) which > shows no errors (the Webservice gets started and can be accessed via a > browser, giving the "Hello, this is the..." message). > > But as soon as I try to access it with a java client (created from the > online WSDL per wsimport), I get the following exception (I put both whole > stacktraces, client and server, at the end of this mail): > > java.lang.IllegalArgumentException: wrong number of arguments > > _But_ the important thing is: When I deploy the exact same .jar in my older > Geronimo 2.1.4, the exact same client works perfectly fine, returning a > Result-Objekt (with the mentioned zero int). > > Has anyone an idea what the reason could be? > > Regards, > > Flo > > The exception is: > > xception in thread "main" javax.xml.ws.soap.SOAPFaultException: > java.rmi.RemoteException: The bean encountered a non-application exception; > nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments: The > bean encountered a non-application exception; nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments > at > com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178) > at > com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:119) > at > com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108) > at > com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78) > at > com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107) > at $Proxy29.geoCode(Unknown Source) > at de.optitool.optengine.geocode.Client.main(Client.java:14) > > In the geronimo.log file, the exception looks a little bit longer: > > 2010-06-02 11:43:59,561 ERROR [AxisEngine] java.rmi.RemoteException: The > bean encountered a non-application exception; nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments: The > bean encountered a non-application exception; nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments > org.apache.axis2.AxisFault: java.rmi.RemoteException: The bean encountered > a non-application exception; nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments: The > bean encountered a non-application exception; nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > at > org.apache.geronimo.axis2.ejb.EJBMessageReceiver.receive(EJBMessageReceiver.java:105) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.processXMLRequest(Axis2WebServiceContainer.java:437) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.processPOSTRequest(Axis2WebServiceContainer.java:386) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.doService2(Axis2WebServiceContainer.java:308) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.doService(Axis2WebServiceContainer.java:243) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.invoke(Axis2WebServiceContainer.java:201) > at > org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJBWebServiceValve.handle(TomcatEJBWebServiceContext.java:111) > at > org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:81) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > at > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:361) > at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214) > at > org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344) > 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:619) > Caused by: org.apache.openejb.InvalidateReferenceException: > java.rmi.RemoteException: The bean encountered a non-application exception; > nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments: The > bean encountered a non-application exception; nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments > at > org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:153) > at > org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:233) > at > org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:174) > at > org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:136) > at > org.apache.geronimo.axis2.ejb.EJBMessageReceiver.receive(EJBMessageReceiver.java:99) > ... 22 more > Caused by: java.rmi.RemoteException: The bean encountered a non-application > exception; nested exception is: > java.lang.IllegalArgumentException: wrong number of arguments > at > org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:152) > ... 26 more > Caused by: java.lang.IllegalArgumentException: wrong number of arguments > 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.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158) > at > org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141) > at > org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:122) > at > org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:221) > ... 25 more > -- Ivan --00163630f4d1c827b704880c9966 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Seems that you are exposing the EJB as web service, so could you attach the= simple testing web service example ?

201= 0/6/2 Florian Schaetz <florian.schaetz@optitool.de>
Hello,

after having some problems with a more complicated WebService, I've wri= tten a simple testing WebService, which has one method, that takes a String= and gives back a Result-Object (containing only a status int, which is zer= o).

After using wsgen to create the WSDL file and the jaxws classes I deployed = the WebService to my (freshly downloaded) Geronimo 2.2 (with Tomcat) which = shows no errors (the Webservice gets started and can be accessed via a brow= ser, giving the "Hello, this is the..." message).

But as soon as I try to access it with a java client (created from the onli= ne WSDL per wsimport), I get the following exception (I put both whole stac= ktraces, client and server, at the end of this mail):

java.lang.IllegalArgumentException: wrong number of arguments

_But_ the important thing is: When I deploy the exact same .jar in my older= Geronimo 2.1.4, the exact same client works perfectly fine, returning a Re= sult-Objekt (with the mentioned zero int).

Has anyone an idea what the reason could be?

Regards,

Flo

The exception is:

xception in thread "main" javax.xml.ws.soap.SOAPFaultException: j= ava.rmi.RemoteException: The bean encountered a non-application exception; = nested exception is:
=A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts: The bean encountered a non-application exception; nested exception is:<= br> =A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts
=A0 =A0 =A0 =A0at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolExc= eption(SOAP11Fault.java:178)
=A0 =A0 =A0 =A0at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createExc= eption(SOAPFaultBuilder.java:119)
=A0 =A0 =A0 =A0at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.inv= oke(SyncMethodHandler.java:108)
=A0 =A0 =A0 =A0at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.inv= oke(SyncMethodHandler.java:78)
=A0 =A0 =A0 =A0at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStu= b.java:107)
=A0 =A0 =A0 =A0at $Proxy29.geoCode(Unknown Source)
=A0 =A0 =A0 =A0at de.optitool.optengine.geocode.Client.main(Client.java:14= )

In the geronimo.log file, the exception looks a little bit longer:

2010-06-02 11:43:59,561 ERROR [AxisEngine] java.rmi.RemoteException: The be= an encountered a non-application exception; nested exception is:
=A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts: The bean encountered a non-application exception; nested exception is:<= br> =A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts
org.apache.axis2.AxisFault: java.rmi.RemoteException: The bean encountered = a non-application exception; nested exception is:
=A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts: The bean encountered a non-application exception; nested exception is:<= br> =A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts
=A0 =A0 =A0 =A0at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)=
=A0 =A0 =A0 =A0at org.apache.geronimo.axis2.ejb.EJBMessageReceiver.receive= (EJBMessageReceiver.java:105)
=A0 =A0 =A0 =A0at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.ja= va:173)
=A0 =A0 =A0 =A0at org.apache.axis2.transport.http.HTTPTransportUtils.proce= ssHTTPPostRequest(HTTPTransportUtils.java:167)
=A0 =A0 =A0 =A0at org.apache.geronimo.axis2.Axis2WebServiceContainer.proce= ssXMLRequest(Axis2WebServiceContainer.java:437)
=A0 =A0 =A0 =A0at org.apache.geronimo.axis2.Axis2WebServiceContainer.proce= ssPOSTRequest(Axis2WebServiceContainer.java:386)
=A0 =A0 =A0 =A0at org.apache.geronimo.axis2.Axis2WebServiceContainer.doSer= vice2(Axis2WebServiceContainer.java:308)
=A0 =A0 =A0 =A0at org.apache.geronimo.axis2.Axis2WebServiceContainer.doSer= vice(Axis2WebServiceContainer.java:243)
=A0 =A0 =A0 =A0at org.apache.geronimo.axis2.Axis2WebServiceContainer.invok= e(Axis2WebServiceContainer.java:201)
=A0 =A0 =A0 =A0at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJ= BWebServiceValve.handle(TomcatEJBWebServiceContext.java:111)
=A0 =A0 =A0 =A0at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJ= BWebServiceValve.invoke(TomcatEJBWebServiceContext.java:81)
=A0 =A0 =A0 =A0at org.apache.catalina.core.StandardHostValve.invoke(Standa= rdHostValve.java:128)
=A0 =A0 =A0 =A0at org.apache.catalina.valves.ErrorReportValve.invoke(Error= ReportValve.java:102)
=A0 =A0 =A0 =A0at org.apache.catalina.valves.AccessLogValve.invoke(AccessL= ogValve.java:567)
=A0 =A0 =A0 =A0at org.apache.catalina.core.StandardEngineValve.invoke(Stan= dardEngineValve.java:109)
=A0 =A0 =A0 =A0at org.apache.catalina.connector.CoyoteAdapter.service(Coyo= teAdapter.java:293)
=A0 =A0 =A0 =A0at org.apache.coyote.http11.Http11Processor.process(Http11P= rocessor.java:849)
=A0 =A0 =A0 =A0at org.apache.coyote.http11.Http11Protocol$Http11Connection= Handler.process(Http11Protocol.java:583)
=A0 =A0 =A0 =A0at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.r= un(JIoEndpoint.java:361)
=A0 =A0 =A0 =A0at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.jav= a:214)
=A0 =A0 =A0 =A0at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRu= nnable.run(ThreadPool.java:344)
=A0 =A0 =A0 =A0at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(T= hreadPoolExecutor.java:886)
=A0 =A0 =A0 =A0at java.util.concurrent.ThreadPoolExecutor$Worker.run(Threa= dPoolExecutor.java:908)
=A0 =A0 =A0 =A0at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.openejb.InvalidateReferenceException: java.rmi.Remote= Exception: The bean encountered a non-application exception; nested excepti= on is:
=A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts: The bean encountered a non-application exception; nested exception is:<= br> =A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts
=A0 =A0 =A0 =A0at org.apache.openejb.core.transaction.EjbTransactionUtil.h= andleSystemException(EjbTransactionUtil.java:153)
=A0 =A0 =A0 =A0at org.apache.openejb.core.stateless.StatelessContainer._in= voke(StatelessContainer.java:233)
=A0 =A0 =A0 =A0at org.apache.openejb.core.stateless.StatelessContainer.inv= oke(StatelessContainer.java:174)
=A0 =A0 =A0 =A0at org.apache.openejb.core.stateless.StatelessContainer.inv= oke(StatelessContainer.java:136)
=A0 =A0 =A0 =A0at org.apache.geronimo.axis2.ejb.EJBMessageReceiver.receive= (EJBMessageReceiver.java:99)
=A0 =A0 =A0 =A0... 22 more
Caused by: java.rmi.RemoteException: The bean encountered a non-application= exception; nested exception is:
=A0 =A0 =A0 =A0java.lang.IllegalArgumentException: wrong number of argumen= ts
=A0 =A0 =A0 =A0at org.apache.openejb.core.transaction.EjbTransactionUtil.h= andleSystemException(EjbTransactionUtil.java:152)
=A0 =A0 =A0 =A0... 26 more
Caused by: java.lang.IllegalArgumentException: wrong number of arguments =A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Meth= od)
=A0 =A0 =A0 =A0at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethod= AccessorImpl.java:39)
=A0 =A0 =A0 =A0at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegati= ngMethodAccessorImpl.java:25)
=A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597)
=A0 =A0 =A0 =A0at org.apache.openejb.core.interceptor.ReflectionInvocation= Context$Invocation.invoke(ReflectionInvocationContext.java:158)
=A0 =A0 =A0 =A0at org.apache.openejb.core.interceptor.ReflectionInvocation= Context.proceed(ReflectionInvocationContext.java:141)
=A0 =A0 =A0 =A0at org.apache.openejb.core.interceptor.InterceptorStack.inv= oke(InterceptorStack.java:122)
=A0 =A0 =A0 =A0at org.apache.openejb.core.stateless.StatelessContainer._in= voke(StatelessContainer.java:221)
=A0 =A0 =A0 =A0... 25 more



--
Ivan
--00163630f4d1c827b704880c9966--