Java Code Examples for org.omg.CORBA.ORBPackage.InvalidName.initCause()

The following are Jave code examples for showing how to use initCause() of the org.omg.CORBA.ORBPackage.InvalidName class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: javify   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Find and return the easily accessible CORBA object, addressed by name.
 *
 * @param name the object name.
 * @return the object
 *
 * @throws org.omg.CORBA.ORBPackage.InvalidName if the given name is not
 * associated with the known object.
 */
public org.omg.CORBA.Object resolve_initial_references(String name)
  throws InvalidName
{
  org.omg.CORBA.Object object = null;
  try
    {
      object = (org.omg.CORBA.Object) initial_references.get(name);
      if (object == null && name.equals(NAME_SERVICE))
        {
          object = getDefaultNameService();
          if (object != null)
            initial_references.put(NAME_SERVICE, object);
        }
    }
  catch (Exception ex)
    {
      InvalidName err = new InvalidName(name);
      err.initCause(ex);
      throw err;
    }
  if (object != null)
    return object;
  else
    throw new InvalidName("Not found: '" + name + "'");
}
 
Example 2
Project: jvm-stm   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Find and return the easily accessible CORBA object, addressed by name.
 *
 * @param name the object name.
 * @return the object
 *
 * @throws org.omg.CORBA.ORBPackage.InvalidName if the given name is not
 * associated with the known object.
 */
public org.omg.CORBA.Object resolve_initial_references(String name)
  throws InvalidName
{
  org.omg.CORBA.Object object = null;
  try
    {
      object = (org.omg.CORBA.Object) initial_references.get(name);
      if (object == null && name.equals(NAME_SERVICE))
        {
          object = getDefaultNameService();
          if (object != null)
            initial_references.put(NAME_SERVICE, object);
        }
    }
  catch (Exception ex)
    {
      InvalidName err = new InvalidName(name);
      err.initCause(ex);
      throw err;
    }
  if (object != null)
    return object;
  else
    throw new InvalidName("Not found: '" + name + "'");
}
 
Example 3
Project: JamVM-PH   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Find and return the easily accessible CORBA object, addressed by name.
 *
 * @param name the object name.
 * @return the object
 *
 * @throws org.omg.CORBA.ORBPackage.InvalidName if the given name is not
 * associated with the known object.
 */
public org.omg.CORBA.Object resolve_initial_references(String name)
  throws InvalidName
{
  org.omg.CORBA.Object object = null;
  try
    {
      object = (org.omg.CORBA.Object) initial_references.get(name);
      if (object == null && name.equals(NAME_SERVICE))
        {
          object = getDefaultNameService();
          if (object != null)
            initial_references.put(NAME_SERVICE, object);
        }
    }
  catch (Exception ex)
    {
      InvalidName err = new InvalidName(name);
      err.initCause(ex);
      throw err;
    }
  if (object != null)
    return object;
  else
    throw new InvalidName("Not found: '" + name + "'");
}
 
Example 4
Project: classpath   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Find and return the easily accessible CORBA object, addressed by name.
 *
 * @param name the object name.
 * @return the object
 *
 * @throws org.omg.CORBA.ORBPackage.InvalidName if the given name is not
 * associated with the known object.
 */
public org.omg.CORBA.Object resolve_initial_references(String name)
  throws InvalidName
{
  org.omg.CORBA.Object object = null;
  try
    {
      object = (org.omg.CORBA.Object) initial_references.get(name);
      if (object == null && name.equals(NAME_SERVICE))
        {
          object = getDefaultNameService();
          if (object != null)
            initial_references.put(NAME_SERVICE, object);
        }
    }
  catch (Exception ex)
    {
      InvalidName err = new InvalidName(name);
      err.initCause(ex);
      throw err;
    }
  if (object != null)
    return object;
  else
    throw new InvalidName("Not found: '" + name + "'");
}