Guillaume, I deployed a new 2.0.4 snapshot.
I made another change. I discovered in my testing that the idea of: invoke(String op, boolean unwrapped, Object ... params) pretty much sucks. If the first param is supposed to be a boolean, it gets all confused and stuff. Thus, I reverted that and went with a specific invokeWrapped(....) set of calls. Dan On Wednesday 05 December 2007, tog wrote: > Ok willem, I will get the latest snapshot. > Thanks for the info > Guillaume > > On Dec 6, 2007 9:48 AM, Willem Jiang <[EMAIL PROTECTED]> wrote: > > Hi Guillaume > > > > The exception is caused by my patch for removing > > > > @Resource(name = "activationNamespaces") > > > > to support Spring 2.5. > > I did a quick fixing for it few days ago , so the exception will go > > way when you get the latest snapshot. > > > > BTW, > > This exception only happened when your are useing CXFBusFactory > > instead of SpringBusFactory. > > > > Willem. > > > > tog wrote: > > > Hi Dan, > > > > > > This is ok, I looked at your code, I was doing similar things in > > > my GroovyWS client. Keep me informed when the snapshot will be > > > published ? > > > Btw, the "current" snapshot give me this exception ... Am I doing > > > something wrong when creating my client ? > > > > > > Cheers > > > Guillaume > > > > > > > > > java.lang.reflect.InvocationTargetException > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.apache.cxf.common.injection.ResourceInjector.invokePostConstru > > >ct(ResourceInjector.java:305) at > > > org.apache.cxf.common.injection.ResourceInjector.construct(Resourc > > >eInjector.java:86) at > > > org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister( > > >ExtensionManagerImpl.java:160) at > > > org.apache.cxf.bus.extension.ExtensionManagerImpl.activateViaNS(Ex > > >tensionManagerImpl.java:84) at > > > org.apache.cxf.bus.extension.DeferredMap.get(DeferredMap.java:47) > > > at > > > org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitIni > > >tiator(ConduitInitiatorManagerImpl.java:100) at > > > org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit > > >(AbstractConduitSelector.java:70) at > > > org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(Upfro > > >ntConduitSelector.java:71) at > > > org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:420) > > > at groovyx.net.ws.WSClient.<init>(WSClient.java:156) at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > > Method) at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstr > > >uctorAccessorImpl.java:39) at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegati > > >ngConstructorAccessorImpl.java:27) at > > > java.lang.reflect.Constructor.newInstance(Constructor.java:494) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(Me > > >taClassHelper.java:465) at > > > groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2 > > >086) at > > > groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:102 > > >2) at > > > groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:952 > > >) at > > > org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.ja > > >va:126) at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(Invo > > >kerHelper.java:103) at > > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(Scrip > > >tBytecodeAdapter.java:233) at nfl.run(nfl.groovy:3) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(Cac > > >hedMethod.java:107) at > > > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja > > >va:127) at > > > org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMeta > > >Method.java:18) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaCla > > >ssHelper.java:538) at > > > groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749) at > > > groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589) at > > > org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java: > > >98) at > > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:79) > > > at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp > > >er.java:74) at > > > org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper. > > >java:374) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(Cac > > >hedMethod.java:107) at > > > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja > > >va:127) at > > > org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMeta > > >Method.java:18) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaCla > > >ssHelper.java:538) at > > > groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:87 > > >3) at > > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69) > > > at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp > > >er.java:74) at > > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Sc > > >riptBytecodeAdapter.java:158) at nfl.main(nfl.groovy) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(Cac > > >hedMethod.java:107) at > > > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja > > >va:127) at > > > org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMeta > > >Method.java:18) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaCla > > >ssHelper.java:538) at > > > groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:87 > > >3) at > > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69) > > > at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp > > >er.java:74) at > > > groovy.lang.GroovyShell.runMainOrTestOrRunnable(GroovyShell.java:2 > > >44) at groovy.lang.GroovyShell.run(GroovyShell.java:218) at > > > groovy.lang.GroovyShell.run(GroovyShell.java:147) at > > > groovy.ui.GroovyMain.processOnce(GroovyMain.java:492) at > > > groovy.ui.GroovyMain.run(GroovyMain.java:308) > > > at groovy.ui.GroovyMain.process(GroovyMain.java:294) > > > at groovy.ui.GroovyMain.processArgs(GroovyMain.java:111) > > > at groovy.ui.GroovyMain.main(GroovyMain.java:92) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.j > > >ava:101) at > > > org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:13 > > >0) Caused by: java.lang.NullPointerException > > > at java.util.ArrayList.<init>(ArrayList.java:133) > > > at > > > org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.fina > > >lizeConfig(JettyHTTPTransportFactory.java:60) ... 78 more > > > Dec 6, 2007 8:24:51 AM > > > org.apache.cxf.common.injection.ResourceInjector > > > invokePostConstruct WARNING: method annotated by @PostConstruct > > > throws exception when invoked > > > java.lang.reflect.InvocationTargetException > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.apache.cxf.common.injection.ResourceInjector.invokePostConstru > > >ct(ResourceInjector.java:305) at > > > org.apache.cxf.common.injection.ResourceInjector.construct(Resourc > > >eInjector.java:86) at > > > org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister( > > >ExtensionManagerImpl.java:160) at > > > org.apache.cxf.bus.extension.ExtensionManagerImpl.activateViaNS(Ex > > >tensionManagerImpl.java:84) at > > > org.apache.cxf.bus.extension.DeferredMap.get(DeferredMap.java:47) > > > at > > > org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitIni > > >tiator(ConduitInitiatorManagerImpl.java:100) at > > > org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit > > >(AbstractConduitSelector.java:70) at > > > org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(Upfro > > >ntConduitSelector.java:71) at > > > org.apache.cxf.endpoint.ClientImpl.getConduit(ClientImpl.java:420) > > > at groovyx.net.ws.WSClient.<init>(WSClient.java:156) at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > > Method) at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstr > > >uctorAccessorImpl.java:39) at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegati > > >ngConstructorAccessorImpl.java:27) at > > > java.lang.reflect.Constructor.newInstance(Constructor.java:494) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(Me > > >taClassHelper.java:465) at > > > groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2 > > >086) at > > > groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:102 > > >2) at > > > groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:952 > > >) at > > > org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.ja > > >va:126) at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(Invo > > >kerHelper.java:103) at > > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(Scrip > > >tBytecodeAdapter.java:233) at nfl.run(nfl.groovy:3) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(Cac > > >hedMethod.java:107) at > > > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja > > >va:127) at > > > org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMeta > > >Method.java:18) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaCla > > >ssHelper.java:538) at > > > groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749) at > > > groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589) at > > > org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java: > > >98) at > > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:79) > > > at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp > > >er.java:74) at > > > org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper. > > >java:374) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(Cac > > >hedMethod.java:107) at > > > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja > > >va:127) at > > > org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMeta > > >Method.java:18) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaCla > > >ssHelper.java:538) at > > > groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:87 > > >3) at > > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69) > > > at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp > > >er.java:74) at > > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Sc > > >riptBytecodeAdapter.java:158) at nfl.main(nfl.groovy) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(Cac > > >hedMethod.java:107) at > > > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.ja > > >va:127) at > > > org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMeta > > >Method.java:18) at > > > org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaCla > > >ssHelper.java:538) at > > > groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:87 > > >3) at > > > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69) > > > at > > > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelp > > >er.java:74) at > > > groovy.lang.GroovyShell.runMainOrTestOrRunnable(GroovyShell.java:2 > > >44) at groovy.lang.GroovyShell.run(GroovyShell.java:218) at > > > groovy.lang.GroovyShell.run(GroovyShell.java:147) at > > > groovy.ui.GroovyMain.processOnce(GroovyMain.java:492) at > > > groovy.ui.GroovyMain.run(GroovyMain.java:308) > > > at groovy.ui.GroovyMain.process(GroovyMain.java:294) > > > at groovy.ui.GroovyMain.processArgs(GroovyMain.java:111) > > > at groovy.ui.GroovyMain.main(GroovyMain.java:92) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > > Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm > > >pl.java:39) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc > > >cessorImpl.java:25) at > > > java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.j > > >ava:101) at > > > org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:13 > > >0) Caused by: java.lang.NullPointerException > > > at java.util.ArrayList.<init>(ArrayList.java:133) > > > at > > > org.apache.cxf.transport.http.AbstractHTTPTransportFactory.registe > > >rWithBindingManager(AbstractHTTPTransportFactory.java:124) ... 78 > > > more > > > > > > On Dec 5, 2007 6:59 AM, Daniel Kulp <[EMAIL PROTECTED]> wrote: > > >> Guillaume, > > >> > > >> I just added an extra param to the invoke method of the clients. > > >> Once I deploy a new snapshot (maybe later tonight), you should > > >> now be able to do either: > > >> > > >> response = client.invoke("GetTeamInfoByCity", false, obj); > > >> or > > >> response = client.invoke("GetTeamInfoByCity", true, > > >> "ID", "PASS", "New England"); > > >> > > >> Dan > > >> > > >> On Tuesday 04 December 2007, tog wrote: > > >>> Hi Dan and Glen, > > >>> > > >>>> Object[] response = client.invoke("GetTeamInfoByCity", obj); > > >>>> to something like: > > >>>> > > >>>> BindingOperationInfo bop = ... lookup operation from service > > >>>> model.... Object[] response = client.invoke(bop, "ID", "PASS", > > >>>> "New England"); > > >>>> > > >>>> then it SHOULD work. The trick is getting the bop. I THINK > > >>>> this should work: > > >>>> BindingOperationInfo op = > > >>>> client > > >>>> .getEndpoint().getEndpointInfo().getBinding().getOperation(oper > > >>>>ation Name); > > >>>> > > >>>> > > >>>> In anycase, I have a fix for CXF-885 that will allow: > > >>>> Object[] response = > > >>>> client.invoke("GetTeamInfoByCity", "ID", "PASS", "New > > >>>> England"); to work. Testing that now. > > >>> > > >>> OK I can do that but is there an information that would allow me > > >>> to switch from one form to the other. The terra web service is > > >>> working fine with > > >>> client.invoke("method", object) > > >>> while this one need to expand the fields (Doc/Literal) > > >>> > > >>> Thanks > > >>> Guillaume > > >>> > > >>>> -- > > >>>> J. Daniel Kulp > > >>>> Principal Engineer > > >>>> IONA > > >>>> P: 781-902-8727 C: 508-380-7194 > > >>>> [EMAIL PROTECTED] > > >>>> http://www.dankulp.com/blog > > >> > > >> -- > > >> J. Daniel Kulp > > >> Principal Engineer > > >> IONA > > >> P: 781-902-8727 C: 508-380-7194 > > >> [EMAIL PROTECTED] > > >> http://www.dankulp.com/blog -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog