Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1911

Unwrapping needed before invokePogoMethod

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-2
    • 1.1-beta-2
    • class generator
    • None
    • Linux debian + jdk 1.50_11

    Description

      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)

      Attachments

        1. patch-1911.txt
          1 kB
          Ryan Harris

        Activity

          People

            galleon Ryan Harris
            galleon Ryan Harris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: