Examples of BAD_PARAM


Examples of org.omg.CORBA.BAD_PARAM

            }
        }

        if (_store.size() == 0)
        {
            throw new BAD_PARAM("No TaggedComponents with id " + id + " found",
                                25, CompletionStatus.COMPLETED_MAYBE);
        }

        TaggedComponent[] _result = new TaggedComponent[_store.size()];
        for (int _i = 0; _i < _result.length; _i++)
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

        {
            int tag = profile.tag();
            Factories factories = transport_manager.getFactories (tag);
            if (factories == null)
            {
                throw new BAD_PARAM("No transport plugin for profile tag " + tag);
            }
            GIOPConnection connection =
                giop_connection_manager.createClientGIOPConnection(
                    profile,
                    factories.create_connection (null),
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

    public Servant reference_to_servant(org.omg.CORBA.Object reference)
        throws ObjectNotActive, WrongAdapter, WrongPolicy
    {
        if (reference == null)
        {
            throw new BAD_PARAM("reference may not be null");
        }

        checkDestructionApparent();
        checkNotLocal(reference);
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

            if (allowNull)
            {
                return;
            }

            throw new BAD_PARAM("Illegal null IDL name",
                                15,
                                CompletionStatus.COMPLETED_NO );
        }

        if( name.length() > 0 )
        {
            // check that name begins with an ASCII char
            if( !legalStartChar( name.charAt(0)) )
            {
                throw new BAD_PARAM
                (
                        "Illegal start character to IDL name: " + name,
                        15,
                        CompletionStatus.COMPLETED_NO
                );
            }
            for( int i = 0; i < name.length(); i++ )
            {
                if( ! legalNameChar( name.charAt(i) ))
                {
                    throw new BAD_PARAM("Illegal IDL name: " + name,
                                        15,
                                        CompletionStatus.COMPLETED_NO );
                }
            }
        }
        else
        {
            throw new BAD_PARAM("Illegal blank IDL name",
                                15,
                                CompletionStatus.COMPLETED_NO );
        }
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

    private void checkTCRepositoryId( String repId )
        throws BAD_PARAM
    {
        if( repId == null || repId.indexOf( ':' ) < 0 )
        {
            throw new BAD_PARAM("Illegal Repository ID: " + repId,
                                16,
                                CompletionStatus.COMPLETED_NO );
        }
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

                    logger.debug("Typecode name check failed", e);
                }

                if((members[i] != null && names.contains(members[i])) || fault )
                {
                    throw new BAD_PARAM("Illegal enum member name: " + members[i],
                                        17,
                                        CompletionStatus.COMPLETED_NO );
                }
                names.add(members[i]);
            }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

                    logger.debug("Typecode name check failed", e);
                }

                if((members[i].name != null && names.contains( members[i].name )) || fault )
                {
                    throw new BAD_PARAM("Illegal exception member name: " + members[i].name,
                                        17,
                                        CompletionStatus.COMPLETED_NO );
                }
                names.add(members[i].name);
            }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

                    logger.debug("Typecode name check failed", e);
                }

                if((members[i].name != null && names.contains(members[i].name)) || fault )
                {
                    throw new BAD_PARAM("Illegal struct member name: " + members[i].name + (fault? " (Bad PARAM) ": "" ),
                                        17,
                                        CompletionStatus.COMPLETED_NO );
                }
                names.add(members[i].name);
            }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

              disc_tc.kind().value() == TCKind._tk_boolean ||
              disc_tc.kind().value() == TCKind._tk_enum
              )
            )
        {
            throw new BAD_PARAM("Illegal union discriminator type",
                                20,
                                CompletionStatus.COMPLETED_NO );
        }

        // check that member names are legal (they do not need to be unique)

        for( int i = 0; i < members.length; i++ )
        {
            checkTCMemberType( members[i].type );

            if (checkName)
            {
                try
                {
                    checkTCName( members[i].name );
                }
                catch( BAD_PARAM e )
                {
                    logger.debug("Typecode name check failed", e);
                    throw new BAD_PARAM("Illegal union member name: " + members[i].name,
                                        17,
                                        CompletionStatus.COMPLETED_NO );
                }
            }

            // check that member type matches discriminator type or is default

            org.omg.CORBA.Any label = members[i].label;
            if (! discriminator_type.equivalent( label.type() ) &&
                ! ( label.type().kind().value() == TCKind._tk_octet &&
                    label.extract_octet() == (byte)0
                  )
                )
            {
                throw new BAD_PARAM("Label type does not match discriminator type",
                                    19,
                                    CompletionStatus.COMPLETED_NO );
            }

            // check that member labels are unique

            for( int j = 0; j < i; j++ )
            {
                if( label.equal( members[j].label ))
                {
                    throw new BAD_PARAM("Duplicate union case label",
                                        18,
                                        CompletionStatus.COMPLETED_NO );
                }
            }
        }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

                    //Is there a next arg?
                    if( (args.length - 1) < (i + 1) )
                    {
                        logger.error("WARNING: -ORBInitRef argument without value");

                        throw new BAD_PARAM("-ORBInitRef argument without value");
                    }

                    String prop = args[ ++i ].trim();

                    //find the equals char that separates prop name from
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.