minorcodes.java

来自「java jdk 1.4的源码」· Java 代码 · 共 592 行 · 第 1/2 页

JAVA
592
字号
/* * @(#)MinorCodes.java	1.45 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.corba.se.internal.orbutil ;import com.sun.corba.se.internal.orbutil.ORBConstants ;import org.omg.CORBA.OMGVMCID ;import com.sun.corba.se.internal.util.SUNVMCID ;/** Minor codes for CORBA system-exceptions. These codes are marshalled *  on the wire and allow the client to know the exact cause of the exception. *  The minor code numbers for POA/ORBId start with 1001 to distinguish *  them from JavaIDL minor codes which start from 1, and POA codes which start *  from 101.  */public final class MinorCodes {/////////////////////////////////////////////////////////////////// BAD_OPERATION minor codes/////////////////////////////////////////////////////////////////    public static final int ADAPTER_ID_NOT_AVAILABLE = ORBConstants.GENERAL_BASE + 1 ;    public static final int SERVER_ID_NOT_AVAILABLE = ORBConstants.GENERAL_BASE + 2 ;/////////////////////////////////////////////////////////////////// BAD_PARAM/////////////////////////////////////////////////////////////////    // The server tried to unmarshal wchar/wstring data from the client, but    // the client didn't send the code set service context.    // See CORBA formal 00-11-03 13.9.2.6.    public static final int NO_CLIENT_WCHAR_CODESET_CTX = OMGVMCID.value + 23;    public static final int UNABLE_REGISTER_VALUE_FACTORY = OMGVMCID.value + 1;    // The next two minor codes must be duplicated here from the util    // package because of the pure ORB build.  We want J2EE to use these    // correct values even if running pure ORB.    //    // NOTE: Pre-Merlin Sun ORBs threw BAD_PARAM with a minor code    // of SUNVMCID.value + 1 to mean a java.io.NotSerializableException.    public static final int LEGACY_SUN_NOT_SERIALIZABLE = SUNVMCID.value + 1;    // Correct value: Java to IDL ptc-00-01-06 1.4.8.    public static final int NOT_SERIALIZABLE = OMGVMCID.value + 6;    public static final int NULL_PARAM = ORBConstants.GENERAL_BASE + 1;    // For some reason this is used in ORB.lookup_value_factory()    // instead of UNABLE_LOCATE_VALUE_FACTORY, so we define it here.    public static final int UNABLE_FIND_VALUE_FACTORY = ORBConstants.GENERAL_BASE + 2;    // Added as part of issue 3015 to support AbstractInterfaceDef    public static final int ABSTRACT_FROM_NON_ABSTRACT = ORBConstants.GENERAL_BASE + 3;    /**     * Thrown if there are errors while reading the org.omg.IOP.TaggedProfile     * during ior construction.     */    public static final int INVALID_TAGGED_PROFILE = ORBConstants.GENERAL_BASE + 4;/////////////////////////////////////////////////////////////////// BAD_INV_ORDER exception minor codes/////////////////////////////////////////////////////////////////    public static final int DSIMETHOD_NOTCALLED = ORBConstants.GENERAL_BASE + 1;    public static final int SHUTDOWN_WAIT_FOR_COMPLETION_DEADLOCK = OMGVMCID.value + 3;    public static final int BAD_OPERATION_AFTER_SHUTDOWN = OMGVMCID.value + 4;/////////////////////////////////////////////////////////////////// COMM_FAILURE minor codes/////////////////////////////////////////////////////////////////    public static final int CONNECT_FAILURE = ORBConstants.GENERAL_BASE + 1 ;    public static final int CONN_CLOSE_REBIND = ORBConstants.GENERAL_BASE + 2 ;    public static final int WRITE_ERROR_SEND = ORBConstants.GENERAL_BASE + 3 ;    public static final int GET_PROPERTIES_ERROR = ORBConstants.GENERAL_BASE + 4 ;    public static final int BOOTSTRAP_SERVER_NOT_AVAIL = ORBConstants.GENERAL_BASE + 5 ;    public static final int INVOKE_ERROR = ORBConstants.GENERAL_BASE + 6 ;    public static final int	DEFAULT_CREATE_SERVER_SOCKET_GIVEN_NON_IIOP_CLEAR_TEST =	ORBConstants.GENERAL_BASE + 7;    public static final int CONN_ABORT = ORBConstants.GENERAL_BASE + 8;    public static final int CONN_REBIND = ORBConstants.GENERAL_BASE + 9;    // Received a MessageError message type, probably indicating header    // corruption or GIOP version mismatch.    public static final int RECV_MSG_ERROR = ORBConstants.GENERAL_BASE + 10;/////////////////////////////////////////////////////////////////// DATA_CONVERSION minor codes/////////////////////////////////////////////////////////////////    /**     * A character didn't properly map to the transmission code set.     * CORBA formal 00-11-03.     */    public static final int CHAR_NOT_IN_CODESET = OMGVMCID.value + 1;    public static final int BAD_STRINGIFIED_IOR_LEN = ORBConstants.GENERAL_BASE + 1 ;    public static final int BAD_STRINGIFIED_IOR = ORBConstants.GENERAL_BASE + 2 ;    /**      * Unable to perform ORB resolve_initial_references operation     * due to the host or the post being incorrect or unspecified.     */    public static final int BAD_MODIFIER = ORBConstants.GENERAL_BASE + 3;        // No longer used!    public static final int CODESET_INCOMPATIBLE = ORBConstants.GENERAL_BASE + 4;       public static final int BAD_HEX_DIGIT = ORBConstants.GENERAL_BASE + 5 ;    /**     * An invalid unicode pair was detected during code set conversion.     */    public static final int BAD_UNICODE_PAIR = ORBConstants.GENERAL_BASE + 6;    /**     * Tried to convert bytes to a single Java char, but the bytes yielded more     * than one Java char.  This could happen in the future when surrogate pairs     * before more common.     */    public static final int BTC_RESULT_MORE_THAN_ONE_CHAR = ORBConstants.GENERAL_BASE + 7;    /**     * Client side sent a code set service contexts with values that we     * don't support.  That probably means there was an error on the client     * or we didn't correctly put code set information in our IOR.     */    public static final int BAD_CODESETS_FROM_CLIENT = ORBConstants.GENERAL_BASE + 8;    /**     * Thrown when a char to byte conversion for a CORBA char resulted in     * more than one byte.     */    public static final int INVALID_SINGLE_CHAR_CTB = ORBConstants.GENERAL_BASE + 9;    /**     * Thrown when a character to byte conversion resulted in a number     * of bytes not equal to two times the number of chars.  This is only     * used in GIOP 1.1 since interoperability is limited to 2 byte     * fixed width encodings.     */    public static final int BAD_GIOP_1_1_CTB = ORBConstants.GENERAL_BASE + 10;    /////////////////////////////////////////////////////////////////// INV_OBJREF exception minor codes/////////////////////////////////////////////////////////////////    public static final int BAD_CORBALOC_STRING = ORBConstants.GENERAL_BASE + 1 ;    public static final int NO_PROFILE_PRESENT = ORBConstants.GENERAL_BASE + 2 ;    // The client tried to marshal wchar/wstring data, but the server    // didn't include its code sets in the IOR.    // See 00-11-03 13.9.2.6    public static final int NO_SERVER_WCHAR_CODESET_CMP = OMGVMCID.value + 1;/////////////////////////////////////////////////////////////////// INITIALIZE exception minor codes/////////////////////////////////////////////////////////////////    public static final int CANNOT_CREATE_ORBID_DB  = ORBConstants.GENERAL_BASE + 1;    public static final int CANNOT_READ_ORBID_DB    = ORBConstants.GENERAL_BASE + 2;    public static final int CANNOT_WRITE_ORBID_DB   = ORBConstants.GENERAL_BASE + 3;    public static final int 	GET_SERVER_PORT_CALLED_BEFORE_ENDPOINTS_INITIALIZED	= ORBConstants.GENERAL_BASE + 4;	/////////////////////////////////////////////////////////////////// INTERNAL exception minor codes (also see util/MinorCodes)/////////////////////////////////////////////////////////////////    public static final int NON_EXISTENT_ORBID = ORBConstants.GENERAL_BASE + 1;    public static final int NO_SERVER_SUBCONTRACT = ORBConstants.GENERAL_BASE + 2 ;    public static final int SERVER_SC_TEMP_SIZE = ORBConstants.GENERAL_BASE + 3 ;	    public static final int NO_CLIENT_SC_CLASS = ORBConstants.GENERAL_BASE + 4 ;	    public static final int SERVER_SC_NO_IIOP_PROFILE = ORBConstants.GENERAL_BASE + 5 ;	    public static final int GET_SYSTEM_EX_RETURNED_NULL = ORBConstants.GENERAL_BASE + 6;    // This minor code is used when there is an attempt to put an Indirection    // offset in the orbutil.cacheTable when there is an existing entry with    // same key (Object). The new indirection offset is different from the one    // present in the table.    public static final int DUPLICATE_INDIRECTION_OFFSET = ORBConstants.GENERAL_BASE + 7;    /**      * When unmarshalling, the repository id of the user exception     * was found to be of incorrect length.     */    public static final int PEEKSTRING_FAILED = ORBConstants.GENERAL_BASE + 7 ;    /**      * Unable to determine local hostname using the Java APIs      * InetAddress.getLocalHost().getHostName().     */    public static final int GET_LOCAL_HOST_FAILED = ORBConstants.GENERAL_BASE + 8 ;    /**      * Unable to create the listener thread on the specific port.     * Either the post is taken or there was an error creating the     * daemon thread.     */    public static final int CREATE_LISTENER_FAILED = ORBConstants.GENERAL_BASE + 9 ;    /**     * Bad locate request status found in the IIOP locate reply.     */    public static final int BAD_LOCATE_REQUEST_STATUS = ORBConstants.GENERAL_BASE + 10 ;    /**      * Error encountered while stringifying an object reference.     */    public static final int STRINGIFY_WRITE_ERROR = ORBConstants.GENERAL_BASE + 11 ;    // from Message.java    /**      * IIOP message with bad GIOP v1.0 message type found.      */    public static final int BAD_GIOP_REQUEST_TYPE = ORBConstants.GENERAL_BASE + 12 ;    // from Utility.java    /**      * Error encountered while unmarshalling the user exception.     */    public static final int ERROR_UNMARSHALING_USEREXC = ORBConstants.GENERAL_BASE + 13 ;    // from SubcontractRegistry.java    /**      * The client, or a server subcontract being registered      * will overflow the suncontract registry.     */    public static final int SUBCONTRACTREGISTRY_ERROR = ORBConstants.GENERAL_BASE + 14 ;    // from GenericCORBAClientSC.java, RequestImpl.java    /**      * Error while processing a LocationForward.     */    public static final int LOCATIONFORWARD_ERROR = ORBConstants.GENERAL_BASE + 15 ;    // There is another minor code with that name in com.sun.PortableServer.MinorCodes    public static final int WRONG_CLIENTSC = ORBConstants.GENERAL_BASE + 16 ;    public static final int BAD_SERVANT_READ_OBJECT = ORBConstants.GENERAL_BASE + 17 ;    public static final int MULT_IIOP_PROF_NOT_SUPPORTED = ORBConstants.GENERAL_BASE + 18 ;    // from Message.java    /**     * GIOP magic is corrupted.     */    public static final int GIOP_MAGIC_ERROR = ORBConstants.GENERAL_BASE + 20;    // from Message.java        /**     * Invalid GIOP version.     */    public static final int GIOP_VERSION_ERROR = ORBConstants.GENERAL_BASE + 21;    // from Message.java    /**     * Illegal reply status in GIOP reply message.     */    public static final int ILLEGAL_REPLY_STATUS = ORBConstants.GENERAL_BASE + 22;    // from Message.java    /**     * Illegal reply status in GIOP reply message.     */    public static final int ILLEGAL_GIOP_MSG_TYPE = ORBConstants.GENERAL_BASE + 23;    // from Message.java    /**     * Fragmentation is not allowed for a particular message type.     */    public static final int FRAGMENTATION_DISALLOWED = ORBConstants.GENERAL_BASE + 24;    /**      * Bad status returned in the IIOP Reply message by the server.     */    public static final int BAD_REPLYSTATUS = ORBConstants.GENERAL_BASE + 25 ;    /**     * Character converter failed internally.     */    public static final int CTB_CONVERTER_FAILURE = ORBConstants.GENERAL_BASE + 26;    public static final int BTC_CONVERTER_FAILURE = ORBConstants.GENERAL_BASE + 27;    /**     * Currently, we only support fixed width encodings even in     * GIOP 1.2 due to code complexity when writing wchar arrays with     * chunking and fragmentation.  (This is fine for now since we     * only really support UTF-16 for wchar data.)     */    public static final int WCHAR_ARRAY_UNSUPPORTED_ENCODING = ORBConstants.GENERAL_BASE + 28;    /**     * Illegal target addressing disposition value.     */    public static final int ILLEGAL_TARGET_ADDRESS_DISPOSITION = ORBConstants.GENERAL_BASE + 29;            /**     * No reply while attempting to get addressing disposition.     */    public static final int NULL_REPLY_IN_GET_ADDR_DISPOSITION = ORBConstants.GENERAL_BASE + 30;    /**     * Invalid GIOP target addressing preference.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?