Examples of BAD_PARAM


Examples of org.omg.CORBA.BAD_PARAM

                //header
                request_id = readULong( buf, MSG_HEADER_SIZE, little_endian );
            }
            else
            {
                throw new BAD_PARAM
                    ("Messages of type " + msg_type + " don't have request ids");
            }
        }
        else if( giop_minor == 0 || giop_minor == 1 )
        {
            if( msg_type == MsgType_1_1._Request ||
                msg_type == MsgType_1_1._Reply )
            {
                // service contexts are the first entry in the header

                //get the number of individual service contexts
                int service_ctx_length = readULong( buf,
                                                    MSG_HEADER_SIZE,
                                                    little_endian );

                if( service_ctx_length == 0 )
                {
                    //array of length 0, so request id folows the
                    //array length entry

                    request_id = readULong( buf,
                                            MSG_HEADER_SIZE + 4,
                                            little_endian );
                }
                else
                {
                    //get the first index after the contexts array
                    int pos = skipServiceContext( buf,
                                                  MSG_HEADER_SIZE + 4, // 4 bytes is ulong
                                                  service_ctx_length,
                                                  little_endian );

                    //the request id follows the body
                    request_id = readULong( buf, pos, little_endian );
                }
            }
            else if( msg_type == MsgType_1_1._LocateRequest ||
                     msg_type == MsgType_1_1._LocateReply )
            {
                //easy, it's right after the message header
                request_id = readULong( buf, MSG_HEADER_SIZE, little_endian );
            }
            else
            {
                throw new BAD_PARAM
                    ("Messages of type " + msg_type + " don't have request ids");
            }
        }

        return request_id;
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

            return (Factories)instance;
        }
        catch (Exception e)
        {
            throw new BAD_PARAM
                ("could not instantiate Factories class " + className
                 + ", exception: " + e);
        }
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

                break;
            case 0x03:
                result = org.omg.Messaging.SYNC_WITH_TARGET.value;
                break;
            default:
                throw new BAD_PARAM("Illegal SYNC_SCOPE: " + inputStream.req_hdr.response_flags);
        }

        return result;
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

            _out = handler.createReply();
            _out.write_Object(self._get_component() );
        }
        else
        {
            throw new BAD_PARAM("Unknown operation: " + method );
        }

        return _out;
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

                                      final Map recursiveTCMap,
                                      final Map repeatedTCMap)
    {
        if (typeCode == null)
        {
            throw new BAD_PARAM("TypeCode is null");
        }

        int _kind = -1;
        final int _memberCount;
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

    public final void write_value ( final org.omg.CORBA.TypeCode typeCode,
                                    final org.omg.CORBA.portable.InputStream input )
    {
        if (typeCode == null)
        {
            throw new BAD_PARAM("TypeCode is null");
        }

        int kind = typeCode.kind().value();

        try
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

            {
                write_value_internal (value, repId);
            }
            else
            {
                throw new BAD_PARAM();
            }
        }
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

    public ServiceContext get_reply_service_context(int id)
    {
        Integer _id = ObjectUtil.newInteger(id);
        if (! reply_ctx.containsKey(_id))
        {
            throw new BAD_PARAM("No ServiceContext with id " + id, 23,
                                CompletionStatus.COMPLETED_MAYBE);
        }

        return (ServiceContext) reply_ctx.get(_id);
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

    public ServiceContext get_request_service_context(int id)
    {
        Integer _id = ObjectUtil.newInteger(id);
        if (! request_ctx.containsKey(_id))
        {
            throw new BAD_PARAM("No ServiceContext with id " + id, 23,
                                CompletionStatus.COMPLETED_MAYBE);
        }

        return (ServiceContext) request_ctx.get(_id);
    }
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM

            {
                return effective_components[_i];
            }
        }

        throw new BAD_PARAM("No TaggedComponent with id " + id + " found",
                            25, CompletionStatus.COMPLETED_MAYBE);
    }
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.