Issue Details (XML | Word | Printable)

Key: GROOVY-1911
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Guillaume ALLEON
Reporter: Guillaume ALLEON
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Unwrapping needed before invokePogoMethod

Created: 22/May/07 06:41 AM   Updated: 24/May/07 01:03 AM
Component/s: class generator
Affects Version/s: 1.1-beta-2
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified

File Attachments: 1. Text File patch-1911.txt (1 kB)

Environment: Linux debian + jdk 1.50_11


 Description  « Hide
Apparently the failure of the test is due to a different behavior between the 2 following cases:

def tut = ["hello", "world"] as String[]

serverProxy.echo(tut) {result -> assertEquals("serverProxy.echo", result[0], "hello") assertEquals("serverProxy.echo", result[1], "world") }

and

serverProxy.echo(["hello", "world"] as String[]) {result -> assertEquals("serverProxy.echo", result[0], "hello") assertEquals("serverProxy.echo", result[1], "world") } }

uk.co.wilson.net.xmlrpc.XMLRPCFailException: class org.codehaus.groovy.runtime.wrappers.PojoWrapper is not a supported XML-RPC data type
at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.emit(XMLRPCMessageProcessor.java:371)
at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.emitCall(XMLRPCMessageProcessor.java :208)
at groovy.net.xmlrpc.XMLRPCServerProxy.invokeMethod(XMLRPCServerProxy.java:86)
at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:141)
at org.codehaus.groovy.runtime.Invoker.invokeMethod (Invoker.java:110)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
at groovy.net.xmlrpc.GroovyXmlrpcTest.testXmlrpcCalls(GroovyXmlrpcTest.groovy:138)
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 junit.framework.TestCase.runTest (TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java :124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run (TestSuite.java:225)
at junit.textui.TestRunner.doRun(TestRunner.java:121)
at junit.textui.TestRunner.doRun(TestRunner.java:114)
at junit.textui.TestRunner.run(TestRunner.java:77)
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.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:71)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke (MetaClassHelper.java:694)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:721)
at org.codehaus.groovy.runtime.Invoker.invokeStaticMethod(Invoker.java:167)
at org.codehaus.groovy.runtime.InvokerHelper.invokeStaticMethod (InvokerHelper.java:131)
at groovy.lang.GroovyShell.runTest(GroovyShell.java:334)
at groovy.lang.GroovyShell.runMainOrTestOrRunnable(GroovyShell.java:278)
at groovy.lang.GroovyShell.run(GroovyShell.java :244)
at groovy.lang.GroovyShell.run(GroovyShell.java:173)
at groovy.ui.GroovyMain.processOnce(GroovyMain.java:484)
at groovy.ui.GroovyMain.run(GroovyMain.java:294)
at groovy.ui.GroovyMain.process (GroovyMain.java:280)
at groovy.ui.GroovyMain.processArgs(GroovyMain.java:140)
at groovy.ui.GroovyMain.main(GroovyMain.java:121)
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:131)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:160)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume ALLEON added a comment - 22/May/07 02:10 PM
A patch for review !

Guillaume ALLEON added a comment - 23/May/07 04:00 PM
patch applied and tested

Russel Winder added a comment - 23/May/07 05:31 PM
I just updated to r6408 did a complete install from scratch of groovy-core and then cleaned and rebuilt the xml-rpc module and still got the error. Is there something I am failing to check?

Guillaume ALLEON added a comment - 24/May/07 01:03 AM
Damn you are right !
Even a "mvn -Dmaven.test.failure.ignore=true package" causes an error ...

Running groovy.net.xmlrpc.GroovyXmlrpcTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.288 sec <<< FAILURE!

Results :

Tests in error:
testXmlrpcCalls(groovy.net.xmlrpc.GroovyXmlrpcTest)

But the test is actually ok !

cd src/test/groovy/groovy/net/xmlrpc; groovy -d GroovyXmlrpcTest.groovy
/tmp/xmlrpc/src/test/groovy/groovy/net/xmlrpc
.
Time: 1,47

OK (1 test)

looks like something is wrong in the xmlrpc classpath test environment ??