Advertisement

10.28.2004 at 11:38AM PDT, ID: 21186651
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

3.4

java client calling on a CORBA Server

Asked by kiranhk in Miscellaneous Programming, Java Standard Edition, DCOM

Tags: , , ,

dear all,
I am trying to connect to a CORBA server using java.
The IDL file is
***********************IDL FILE***************************************
module SA
{
   struct outLSMSResp
   {
      string TN;
      string LRN;
      string LSMS_STATUS;
      string SERVICE_PROVIDER_ID;
      string ACTIVATION_DATE;
      string PORT_TYPE;
      string OLD_NPA;
      string NPAC_ID;
      string DOWNLOAD_REASON;
      string POOL_INDICATOR;
      string DONOR_SPID;
      string POOL_ALLOCATION_SPID;
      string POOL_ACTIVATION_TIME;
      string POOL_LRN;
   };

   struct inTNQuery
   {
      string USERID;
      string SYSTEM_NAME;
      string TN;
   };

   struct NameValuePair
   {
      string name;
      string value;
   };
   
   typedef outLSMSResp LSMSResp;
   typedef inTNQuery TNQuery;
   typedef sequence<NameValuePair> GenericParam;

   interface LSMS
   {
      long getLSMSData(in TNQuery TNInfo, out LSMSResp LSMSInfo);
      long SyncServiceRequest(in GenericParam Request,
                              out GenericParam Response);
   };
};

************************************************************

client java file is
**********************JAVA CLIENT FILE*****************************************
//This will import the files you generated from the IDL.
import SA.*;
//Import the Java classes for file I/O.
import java.io.*;

public class ClientSA {
  public static void main(String[] args) {
    //A variable to hold the IOR in.
    String ior = null;

    //First, we need to read in the IOR from a file (this is probably the
    //hardest part of the program!!). Reading in ANY file in Java is
    //ALWAYS a bitch...
    try {
      //Open the file for reading:
      BufferedReader reader =
        new BufferedReader(new FileReader("ns.ior"));

      //Read the first line which is the IOR and save it to the 'ior' variable.
      //variable:
      ior = reader.readLine();

      //Be nice and close the file:
      reader.close();



    //We need to create our own ORB that will then connect to the CORBA
    //server at the EBI:
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);

    //Use the IOR to connect to the EBI CORBA server and return a CORBA
    //object:
    org.omg.CORBA.Object object = orb.string_to_object(ior);

    //Convert this CORBA object to the SecretMessage object that it actually is on the
    //CORBA server at the EBI:
    LSMS bioSequenceServer = LSMSHelper.narrow(object);

    } catch (Exception ex) {
          //There was a problem with reading the file - Bomb out.
          ex.printStackTrace();
          System.exit(0);
    }
  }
}
//End of program




**********************JAVA CLIENT FILE*****************************************



I am getting the following error when i run the client

org.omg.CORBA.BAD_PARAM:   vmcid: 0x0  minor code: 0  completed: No
        at SA.LSMSHelper.narrow(LSMSHelper.java:60)
        at ClientSA.main(ClientSA.java:38)


has anybody come across this . i Googled but didnt get much info.

thanks in advance

Kiran
Start Free Trial
 
Loading Advertisement...
 
[+][-]10.28.2004 at 11:50AM PDT, ID: 12437250

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 11:56AM PDT, ID: 12437306

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 12:02PM PDT, ID: 12437365

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 12:04PM PDT, ID: 12437384

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 12:11PM PDT, ID: 12437456

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 12:13PM PDT, ID: 12437467

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 12:23PM PDT, ID: 12437573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 12:31PM PDT, ID: 12437649

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 12:43PM PDT, ID: 12437774

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 01:01PM PDT, ID: 12437975

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.29.2004 at 12:27AM PDT, ID: 12441978

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.29.2004 at 07:32AM PDT, ID: 12444693

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.01.2004 at 09:16AM PST, ID: 12464905

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.01.2004 at 09:46AM PST, ID: 12465218

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.01.2004 at 10:10AM PST, ID: 12465432

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Miscellaneous Programming, Java Standard Edition, DCOM
Tags: minor, 0x0, 0, corba
Sign Up Now!
Solution Provided By: gushaa
Participating Experts: 2
Solution Grade: C
 
 
[+][-]11.01.2004 at 10:16AM PST, ID: 12465501

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.01.2004 at 10:31AM PST, ID: 12465638

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.02.2004 at 07:58AM PST, ID: 12473918

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.03.2004 at 09:23AM PST, ID: 12485204

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.03.2004 at 11:17AM PST, ID: 12486310

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43