I created an interface in Corba which does not recieve any parameter,
just return an object:
ProductArray getAllProducts() raises (ICoSignatureException);
And receive:
Caused by: org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0
completed: No
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:
513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.inprise.vbroker.orb.SE.read(SE.java:28)
at com.inprise.vbroker.orb.DelegateImpl.handleReply
(DelegateImpl.java:807)
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:
693)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:
457)
at
com.bmc.discovery.dml.services._ICoSignatureServiceStub.getAllProducts
(_ICoSignatureServiceStub.java:1312)
at com.bmc.discovery.dml.impl.SignatureManager.getAllProducts
(SignatureManager.java:289)
I saw in the internet that it can refer to uninitialized attributes,
but this is not the case, since the parameter does not get any
parameters...
First of all it is worth to try to change 'getAllProducts' method to
return void and see if the problem persists.
Post your results here and we will see how to proceed.
It is usually helpful to specify the java version and the ORB you're
using both on server&client side.
Also, please post the IDL declaration of ProductArray. Is it really an
array or it is an interface?
Please post also the implementation of getAllProducts method, may be
you don't fill the array correctly.
Kind regards,
Yakov