×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

JAVA CORBA across JBuilder8 PC and HP Unix

JAVA CORBA across JBuilder8 PC and HP Unix

JAVA CORBA across JBuilder8 PC and HP Unix

(OP)
I am relatively new to Java (and CORBA) and am trying to write a front end client using JBuilder8 on a PC which makes a call across the network to a server written in Java on a HP Unix box using CORBA ..... and am struggling.

The error I currently get is this :

org.omg.CORBA.BAD_PARAM:   minor code: 0  completed: No
    at shipconsapp.Module1.ShippingHelper.narrow(ShippingHelper.java:39)
    at shipconsapp.Module1.ShippingHelper.narrow(ShippingHelper.java:18)

from the following code snippet:


      Properties props = new Properties();
      String cl_args[] = {""};

      // Set the properties for the ORB Name Service
      props.setProperty("ORBInitRef","NameService=corbaname::barney:13015");

      // Create and initialize the ORB
      ORB orb = ORB.init(cl_args, props);

      // Get the root naming context
      org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
      NamingContext ncRef = NamingContextHelper.narrow(objRef);

      // Resolve the object reference in naming
      NameComponent nc = new NameComponent("Shipping", "");
      NameComponent[] path = {nc};

      Shipping shipRef = ShippingHelper.narrow(ncRef.resolve(path));


I have removed the debug statements I had but I know it gets as far as the last line which is where the error seems to be generated from.

Am I just being bloody stupid and doing something wrong ???

Anyone able to help a distressed newbie.

Thanks

Andy
Replies continue below

Recommended for you

RE: JAVA CORBA across JBuilder8 PC and HP Unix

(OP)
sorry, should have added the actual call as well


result = shipRef.processShipCons("123456", "LHR", "FX200", "ANDY");

RE: JAVA CORBA across JBuilder8 PC and HP Unix

Put please in the forum the only ShippingHelper.java line 39 and ShippingHelper.java line 18

Ion Filipski


filipski@excite.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close