Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Corba > Re: output para...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 464 of 538
Post > Topic >>

Re: output parameter causing org.omg.CORBA.BAD_PARAM

by "Mark Woyna" <woyna@[EMAIL PROTECTED] > Oct 27, 2006 at 10:02 AM

What does the ValError class/struct look like? Are there any additional
attributes that aren't being initialized, besides valErrNo and
valErrMsg? I assume ValError is a struct?

Mark

donalmurtagh@[EMAIL PROTECTED]
 wrote:
> Hi,
>
> I'm having a problem with the valErrors out parameter in the following
> IDL operation:
>
> 		boolean submit(in SMSProvExt::WorkOrderData wo,
> 			in boolean isNew,
> 			out string woName,
> 			out SMSProvExt::ValErrorList valErrors)
> 			raises(ApplError);
>
> On the client side, I pass in the following value:
>
> ValErrorListHolder valErrors = new ValErrorListHolder();
>
>
> If the server implementation returns an empty list then everything
> works fine:
>
>     public boolean submit(WorkOrderData wo, boolean isNew, StringHolder
> woName, ValErrorListHolder valErrors) throws ApplError {
>
>         woName.value = "";
>
>         ValError[] errors = new ValError[0];
>         valErrors.value = errors;
>         return true;
>     }
>
>
> However if the server implementation return a non-empty list, for
> example:
>
>     public boolean submit(WorkOrderData wo, boolean isNew, StringHolder
> woName, ValErrorListHolder valErrors) throws ApplError {
>
>         woName.value = "";
>
>         ValError[] errors = new ValError[1];
>
>         errors[0] = new ValError();
>         errors[0].valErrNo = 23;
>         errors[0].valErrMsg = "Some error";
>
>         valErrors.value = errors;
>         return true;
>     }
>
> Then when the client calls submit(), the following exception is thrown:
>
>
> 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:494)
>         at java.lang.Class.newInstance0(Class.java:350)
>         at java.lang.Class.newInstance(Class.java:303)
>         at com.inprise.vbroker.orb.SE.read(Unknown Source)
>         at com.inprise.vbroker.orb.DelegateImpl.handleReply(Unknown
> Source)
>         at com.inprise.vbroker.orb.DelegateImpl.invoke(Unknown Source)
>         at
> org.omg.CORBA.****table.ObjectImpl._invoke(ObjectImpl.java:457)
>
> I'm using Visibroker, and both the client and server are implemented in
> Java 5.
> Thanks in advance for any suggestions!
> 
> - DM
 




 5 Posts in Topic:
output parameter causing org.omg.CORBA.BAD_PARAM
donalmurtagh@[EMAIL PROTE  2006-10-27 09:43:23 
Re: output parameter causing org.omg.CORBA.BAD_PARAM
"Mark Woyna" &l  2006-10-27 10:02:59 
Re: output parameter causing org.omg.CORBA.BAD_PARAM
donalmurtagh@[EMAIL PROTE  2006-10-27 10:53:49 
Re: output parameter causing org.omg.CORBA.BAD_PARAM
donalmurtagh@[EMAIL PROTE  2006-10-27 12:16:01 
Re: output parameter causing org.omg.CORBA.BAD_PARAM
donalmurtagh@[EMAIL PROTE  2006-10-27 12:17:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 6:41:09 CDT 2008.