Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1921D5AC for ; Fri, 17 May 2013 09:06:13 +0000 (UTC) Received: (qmail 46334 invoked by uid 500); 17 May 2013 09:06:13 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 46247 invoked by uid 500); 17 May 2013 09:06:12 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 46238 invoked by uid 99); 17 May 2013 09:06:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 09:06:12 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 09:06:08 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 6052818347F; Fri, 17 May 2013 05:05:27 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-users@cxf.apache.org.OQCr216Blj Received: from macbook.house.dankulp.com (c-24-91-72-253.hsd1.ma.comcast.net [24.91.72.253]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id E75C218346A; Fri, 17 May 2013 05:05:23 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: cxf 2.2.1 schema validation throws error From: Daniel Kulp In-Reply-To: <1368643490721-5727741.post@n5.nabble.com> Date: Fri, 17 May 2013 05:05:23 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1368132987185-5727471.post@n5.nabble.com> <518C39D6.8000508@sosnoski.com> <1368159441834-5727479.post@n5.nabble.com> <1368162493306-5727482.post@n5.nabble.com> <2E674E72-E210-4101-BA20-2FA928EB6284@gmail.com> <1368164370459-5727484.post@n5.nabble.com> <518C8F1C.3050002@sosnoski.com> <1368643490721-5727741.post@n5.nabble.com> To: users@cxf.apache.org, jasminadesai X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.3 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URI_HEX shortcircuit=no autolearn=no version=3.3.2 We'd like need to see a test case using a more recent version of CXF. = 2.2.1 is not supported anymore. Dan On May 15, 2013, at 2:44 PM, jasminadesai = wrote: > Thanks Dennis. >=20 > I changed the class to have Double properties instead of primitive = double. > Now the wsdl shows minOccurs=3D"0" for those double properties. >=20 > But I still get the same fault. I debugged too and the control does = not even > come to the first line of my web service method. I think, the flow is > intercepted in between by cxf and that is where it fails. >=20 >=20 > Here is the exception: >=20 > May 15, 2013 11:25:27 AM org.apache.cxf.phase.PhaseInterceptorChain > doIntercept > INFO: Application has thrown exception, unwinding now > org.apache.cxf.interceptor.Fault: wrong number of arguments while = invoking > public=20 > com.soap.webservice.api.ResolveAddressResult com. soap.webservice.api.=20= > TransactionServiceEndpoint.resolveAddress(com. = soap.webservice.api.Address)=20 > throws com. soap.webservice.api.TransactionException with params null. > at > = org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker= .java:152) > at > = org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSM= ethodInvoker.java:83) > at > = org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java= :126) > at > = org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)= > at > = org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java= :68) > at > = org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerI= nterceptor.java:57) > at = java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) > at = java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > = org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.j= ava:37) > at > = org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(Service= InvokerInterceptor.java:95) > at > = org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha= in.java:236) > at > = org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation= Observer.java:89) > at > = org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestinat= ion.java:99) > at > = org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servl= etController.java:357) > at > = org.apache.cxf.transport.servlet.ServletController.invoke(ServletControlle= r.java:183) > at > = org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServ= let.java:163) > at > = org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServ= let.java:141) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > = org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati= onFilterChain.java:290) > at > = org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter= Chain.java:206) > at > = org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.= java:233) > at > = org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.= java:191) > at > = org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1= 27) > at > = org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1= 02) > at > = org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja= va:109) > at > = org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291= ) > at > = org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)= > at > = org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ht= tp11Protocol.java:602) > at = org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > at java.lang.Thread.run(Thread.java:662) > 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(DelegatingMethodAccessorIm= pl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > = org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractI= nvoker.java:166) > at > = org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java= :82) > ... 29 more >=20 >=20 >=20 > -- > View this message in context: = http://cxf.547215.n5.nabble.com/cxf-2-2-1-schema-validation-throws-error-t= p5727471p5727741.html > Sent from the cxf-user mailing list archive at Nabble.com. --=20 Daniel Kulp dkulp@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com