Package org.omg.CORBA

Examples of org.omg.CORBA.BAD_PARAM


        target = _poa().find_POA(child_poa_name, false);
      }
    catch (AdapterNonExistent ex)
      {
        ex.printStackTrace();
        throw new BAD_PARAM();
      }
  }
View Full Code Here


                  throw new RuntimeException("Unable to activate", ex);
                }
              break;

            default :
              throw new BAD_PARAM();
          }
      }
    catch (AdapterInactive ex)
      {
        throw new OBJ_ADAPTER("Inactive", 0x5001, CompletionStatus.COMPLETED_YES);
View Full Code Here

    if (obj == null)
      return null;
    else if (obj instanceof remotePoaControl)
      return (remotePoaControl) obj;
    else if (!obj._is_a(id()))
      throw new BAD_PARAM();
    else
      {
        Delegate delegate = ((ObjectImpl) obj)._get_delegate();
        poa_remotePoaControlStub stub = new poa_remotePoaControlStub();
        stub._set_delegate(delegate);
View Full Code Here

    if (obj == null)
      return null;
    else if (obj instanceof Greetings)
      return (Greetings) obj;
    else if (!obj._is_a(id()))
      throw new BAD_PARAM();
    else
      {
        Delegate delegate = ((ObjectImpl) obj)._get_delegate();
        return new _GreetingsStub(delegate);
      }
View Full Code Here

      {
        return m_array [ value ];
      }
    else
      {
        throw new BAD_PARAM();
      }
  }
View Full Code Here

     * @exception InvalidName
     */
    protected void validateName(NameComponent[] n) throws InvalidName {
        // perform various name validations
        if (n == null) {
            throw new BAD_PARAM(MinorCodes.MinorObjectIsNull, CompletionStatus.COMPLETED_NO);
        }

        // Valid name?
        if (n.length < 1) {
            throw new InvalidName();
View Full Code Here

    CodeBaseProxy(ORBInstance orb, ServiceContext ctx) {

        if (ctx.context_id != org.omg.IOP.SendingContextRunTime.value) {
            // TODO: add minor code?
            throw new BAD_PARAM();
        }

        this.orbInstance_ = orb;
        this.ctx = ctx;
    }
View Full Code Here

        ServiceContextData scd = new ServiceContextData( cls ) ;

        if (findServiceContextData(scd.getId()) == null)
            scCollection.addElement( scd ) ;
        else
            throw new BAD_PARAM( "Tried to register duplicate service context" ) ;
    }
View Full Code Here

        ORBUtility.dprint( this, msg ) ;
    }

    private void throwBadParam( String msg, Throwable exc )
    {
        BAD_PARAM error = new BAD_PARAM( msg ) ;
        if (exc != null)
            error.initCause( exc ) ;
        throw error ;
    }
View Full Code Here

        // This check is done early so that no attempt
        // may be made to do a location forward to a local
        // object.  Doing this lazily would allow
        // forwarding to locals in some restricted cases.
        if (obj instanceof org.omg.CORBA.LocalObject)
            throw new BAD_PARAM() ;

        this.orb = orb ;
        this.obj = obj ;
        this.ior = null ;
    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.BAD_PARAM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.