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(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.cxf.common.injection.ResourceInjector.invokePostConstruct(ResourceInjector.java:305)
        at 
org.apache.cxf.common.injection.ResourceInjector.construct(ResourceInjector.java:86)
        at 
org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:160)
        at 
org.apache.cxf.bus.extension.ExtensionManagerImpl.activateViaNS(ExtensionManagerImpl.java:84)
        at org.apache.cxf.bus.extension.DeferredMap.get(DeferredMap.java:47)
        at 
org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:100)
        at 
org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:70)
        at 
org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(UpfrontConduitSelector.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(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:465)
        at 
groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2086)
        at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1022)
        at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:952)
        at 
org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java:126)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:103)
        at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:233)
        at nfl.run(nfl.groovy:3)
        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:585)
        at 
org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at 
org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.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(InvokerHelper.java:74)
        at 
org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:374)
        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:585)
        at 
org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at 
org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:873)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
        at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
        at nfl.main(nfl.groovy)
        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:585)
        at 
org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at 
org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:873)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
        at groovy.lang.GroovyShell.runMainOrTestOrRunnable(GroovyShell.java:244)
        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(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
        at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
Caused by: java.lang.NullPointerException
        at java.util.ArrayList.<init>(ArrayList.java:133)
        at 
org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.finalizeConfig(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(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.cxf.common.injection.ResourceInjector.invokePostConstruct(ResourceInjector.java:305)
        at 
org.apache.cxf.common.injection.ResourceInjector.construct(ResourceInjector.java:86)
        at 
org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:160)
        at 
org.apache.cxf.bus.extension.ExtensionManagerImpl.activateViaNS(ExtensionManagerImpl.java:84)
        at org.apache.cxf.bus.extension.DeferredMap.get(DeferredMap.java:47)
        at 
org.apache.cxf.transport.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:100)
        at 
org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:70)
        at 
org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit(UpfrontConduitSelector.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(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:465)
        at 
groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2086)
        at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1022)
        at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:952)
        at 
org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java:126)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:103)
        at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:233)
        at nfl.run(nfl.groovy:3)
        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:585)
        at 
org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at 
org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.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(InvokerHelper.java:74)
        at 
org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:374)
        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:585)
        at 
org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at 
org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:873)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
        at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
        at nfl.main(nfl.groovy)
        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:585)
        at 
org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
        at 
org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
        at 
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:873)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:69)
        at 
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
        at groovy.lang.GroovyShell.runMainOrTestOrRunnable(GroovyShell.java:244)
        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(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
        at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
Caused by: java.lang.NullPointerException
        at java.util.ArrayList.<init>(ArrayList.java:133)
        at 
org.apache.cxf.transport.http.AbstractHTTPTransportFactory.registerWithBindingManager(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(operation
> > >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
>



-- 

Best Regards
Guillaume
http://cheztog.blogspot.com

Reply via email to