[ 
https://issues.apache.org/jira/browse/GERONIMO-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick McGuire closed GERONIMO-3247.
----------------------------------

    Resolution: Fixed

This was actually an error in the Yoko RMI handling of method overloads.  An 
incorrect type name ("longlong" rather than "long_long" was getting used to 
encode the operation name, causing the Geronimo StandardServant to throw a 
marshalling exception. 

> CORBA failing to resolve method signatures correctly
> ----------------------------------------------------
>
>                 Key: GERONIMO-3247
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3247
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: CORBA
>    Affects Versions: 2.0-M7
>            Reporter: Tim McConnell
>            Assignee: Rick McGuire
>             Fix For: 2.0-M7
>
>
> When marshalling/unmarshalling primitives and arrays of primitives these 
> method signatures are resolved correctly via CORBA:
> public boolean marshalBoolean(boolean p) and public boolean[] 
> marshalBoolean(boolean[] p)
> public byte marshalByte(byte p) and public byte[] marshalByte(byte[] p)
> public char marshalChar(char p) and public char[] marshalChar(char[] p)
> public short marshalShort(short p) and public short[] marshalShort(short[] p)
> public int marshalInt(int p) and public int[] marshalInt(int[] p)
> public float marshalFloat(float p) and public float[] marshalFloat(float[] p)
> public double marshalDouble(double p) and public double[] 
> marshalDouble(double[] p)
> However, these method signatures are not resolved correctly via CORBA...
> public long marshalLong(long p) and public long[] marshalLongArray(long[] p)
> ...resulting in the following exception (when either of the two methods are 
> invoked):
> [WARNING] java.rmi.RemoteException: null; nested exception is:
> [WARNING]       org.omg.CORBA.UNKNOWN:  vmcid: 0x0 minor code: 0x0  
> completed: No
> [WARNING]       at 
> org.apache.geronimo.corba.util.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:187)
> [WARNING]       at javax.rmi.CORBA.Util.mapSystemException(Util.java:90)
> [WARNING]       at 
> org.apache.yoko.rmi.impl.RMIStubHandler.invoke(RMIStubHandler.java:106)
> [WARNING]       at 
> org.apache.geronimo.yoko.RMIStubHandler.invoke(RMIStubHandler.java:45)
> [WARNING]       at 
> org.apache.geronimo.testsuite.corba.marshal.Stub$$1.marshalLong(generated)
> [WARNING]       at 
> org.apache.geronimo.testsuite.corba.marshal.MarshalPrimitives.startMarshalling(MarshalPrimitives.java:233)
> [WARNING]       at 
> org.apache.geronimo.testsuite.corba.marshal.MarshalEJBClient.main(MarshalEJBClient.java:28)
> [WARNING]       at java.lang.reflect.Method.invoke(Method.java:585)
> [WARNING]       at 
> org.apache.geronimo.client.AppClientContainer.main(AppClientContainer.java:185)
> [WARNING]       at 
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> [WARNING]       at 
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> [WARNING]       at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:863)
> [WARNING]       at 
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
> [WARNING]       at 
> org.apache.geronimo.system.main.CommandLine.doInvokeMainGBean(CommandLine.java:115)
> [WARNING]       at 
> org.apache.geronimo.system.main.CommandLine.invokeMainGBean(CommandLine.java:101)
> [WARNING]       at 
> org.apache.geronimo.system.main.ClientCommandLine.startClient(ClientCommandLine.java:77)
> [WARNING]       at 
> org.apache.geronimo.system.main.ClientCommandLine.execute(ClientCommandLine.java:63)
> [WARNING]       at 
> org.apache.geronimo.system.main.EmbeddedClientCommandLine.execute(EmbeddedClientCommandLine.java:43)
> [WARNING]       at 
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
> [WARNING]       at 
> org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
> [WARNING]       at 
> org.apache.geronimo.cli.client.ClientCLI.main(ClientCLI.java:30)
> [WARNING] Caused by: org.omg.CORBA.UNKNOWN:  vmcid: 0x0 minor code: 0x0  
> completed: No
> [WARNING]       at 
> org.apache.yoko.orb.OB.Util.unmarshalSystemException(Util.java:195)
> [WARNING]       at 
> org.apache.yoko.orb.OB.GIOPConnection.processReply(GIOPConnection.java:555)
> [WARNING]       at 
> org.apache.yoko.orb.OB.GIOPConnection.processMessage(GIOPConnection.java:358)
> [WARNING]       at 
> org.apache.yoko.orb.OB.GIOPConnectionThreaded.execReceive(GIOPConnectionThreaded.java:470)
> [WARNING]       at 
> org.apache.yoko.orb.OB.GIOPConnectionThreaded$ReceiverThread.run(GIOPConnectionThreaded.java:64)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to