1. /*
  2. * @(#)MinorCodes.java 1.45 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.orbutil ;
  8. import com.sun.corba.se.internal.orbutil.ORBConstants ;
  9. import org.omg.CORBA.OMGVMCID ;
  10. import com.sun.corba.se.internal.util.SUNVMCID ;
  11. /** Minor codes for CORBA system-exceptions. These codes are marshalled
  12. * on the wire and allow the client to know the exact cause of the exception.
  13. * The minor code numbers for POA/ORBId start with 1001 to distinguish
  14. * them from JavaIDL minor codes which start from 1, and POA codes which start
  15. * from 101.
  16. */
  17. public final class MinorCodes {
  18. /////////////////////////////////////////////////////////////////
  19. // BAD_OPERATION minor codes
  20. /////////////////////////////////////////////////////////////////
  21. public static final int ADAPTER_ID_NOT_AVAILABLE = ORBConstants.GENERAL_BASE + 1 ;
  22. public static final int SERVER_ID_NOT_AVAILABLE = ORBConstants.GENERAL_BASE + 2 ;
  23. /////////////////////////////////////////////////////////////////
  24. // BAD_PARAM
  25. /////////////////////////////////////////////////////////////////
  26. // The server tried to unmarshal wchar/wstring data from the client, but
  27. // the client didn't send the code set service context.
  28. // See CORBA formal 00-11-03 13.9.2.6.
  29. public static final int NO_CLIENT_WCHAR_CODESET_CTX = OMGVMCID.value + 23;
  30. public static final int UNABLE_REGISTER_VALUE_FACTORY = OMGVMCID.value + 1;
  31. // The next two minor codes must be duplicated here from the util
  32. // package because of the pure ORB build. We want J2EE to use these
  33. // correct values even if running pure ORB.
  34. //
  35. // NOTE: Pre-Merlin Sun ORBs threw BAD_PARAM with a minor code
  36. // of SUNVMCID.value + 1 to mean a java.io.NotSerializableException.
  37. public static final int LEGACY_SUN_NOT_SERIALIZABLE = SUNVMCID.value + 1;
  38. // Correct value: Java to IDL ptc-00-01-06 1.4.8.
  39. public static final int NOT_SERIALIZABLE = OMGVMCID.value + 6;
  40. public static final int NULL_PARAM = ORBConstants.GENERAL_BASE + 1;
  41. // For some reason this is used in ORB.lookup_value_factory()
  42. // instead of UNABLE_LOCATE_VALUE_FACTORY, so we define it here.
  43. public static final int UNABLE_FIND_VALUE_FACTORY = ORBConstants.GENERAL_BASE + 2;
  44. // Added as part of issue 3015 to support AbstractInterfaceDef
  45. public static final int ABSTRACT_FROM_NON_ABSTRACT = ORBConstants.GENERAL_BASE + 3;
  46. /**
  47. * Thrown if there are errors while reading the org.omg.IOP.TaggedProfile
  48. * during ior construction.
  49. */
  50. public static final int INVALID_TAGGED_PROFILE = ORBConstants.GENERAL_BASE + 4;
  51. /////////////////////////////////////////////////////////////////
  52. // BAD_INV_ORDER exception minor codes
  53. /////////////////////////////////////////////////////////////////
  54. public static final int DSIMETHOD_NOTCALLED = ORBConstants.GENERAL_BASE + 1;
  55. public static final int SHUTDOWN_WAIT_FOR_COMPLETION_DEADLOCK = OMGVMCID.value + 3;
  56. public static final int BAD_OPERATION_AFTER_SHUTDOWN = OMGVMCID.value + 4;
  57. /////////////////////////////////////////////////////////////////
  58. // COMM_FAILURE minor codes
  59. /////////////////////////////////////////////////////////////////
  60. public static final int CONNECT_FAILURE = ORBConstants.GENERAL_BASE + 1 ;
  61. public static final int CONN_CLOSE_REBIND = ORBConstants.GENERAL_BASE + 2 ;
  62. public static final int WRITE_ERROR_SEND = ORBConstants.GENERAL_BASE + 3 ;
  63. public static final int GET_PROPERTIES_ERROR = ORBConstants.GENERAL_BASE + 4 ;
  64. public static final int BOOTSTRAP_SERVER_NOT_AVAIL = ORBConstants.GENERAL_BASE + 5 ;
  65. public static final int INVOKE_ERROR = ORBConstants.GENERAL_BASE + 6 ;
  66. public static final int
  67. DEFAULT_CREATE_SERVER_SOCKET_GIVEN_NON_IIOP_CLEAR_TEST =
  68. ORBConstants.GENERAL_BASE + 7;
  69. public static final int CONN_ABORT = ORBConstants.GENERAL_BASE + 8;
  70. public static final int CONN_REBIND = ORBConstants.GENERAL_BASE + 9;
  71. // Received a MessageError message type, probably indicating header
  72. // corruption or GIOP version mismatch.
  73. public static final int RECV_MSG_ERROR = ORBConstants.GENERAL_BASE + 10;
  74. /////////////////////////////////////////////////////////////////
  75. // DATA_CONVERSION minor codes
  76. /////////////////////////////////////////////////////////////////
  77. /**
  78. * A character didn't properly map to the transmission code set.
  79. * CORBA formal 00-11-03.
  80. */
  81. public static final int CHAR_NOT_IN_CODESET = OMGVMCID.value + 1;
  82. public static final int BAD_STRINGIFIED_IOR_LEN = ORBConstants.GENERAL_BASE + 1 ;
  83. public static final int BAD_STRINGIFIED_IOR = ORBConstants.GENERAL_BASE + 2 ;
  84. /**
  85. * Unable to perform ORB resolve_initial_references operation
  86. * due to the host or the post being incorrect or unspecified.
  87. */
  88. public static final int BAD_MODIFIER = ORBConstants.GENERAL_BASE + 3;
  89. // No longer used!
  90. public static final int CODESET_INCOMPATIBLE = ORBConstants.GENERAL_BASE + 4;
  91. public static final int BAD_HEX_DIGIT = ORBConstants.GENERAL_BASE + 5 ;
  92. /**
  93. * An invalid unicode pair was detected during code set conversion.
  94. */
  95. public static final int BAD_UNICODE_PAIR = ORBConstants.GENERAL_BASE + 6;
  96. /**
  97. * Tried to convert bytes to a single Java char, but the bytes yielded more
  98. * than one Java char. This could happen in the future when surrogate pairs
  99. * before more common.
  100. */
  101. public static final int BTC_RESULT_MORE_THAN_ONE_CHAR = ORBConstants.GENERAL_BASE + 7;
  102. /**
  103. * Client side sent a code set service contexts with values that we
  104. * don't support. That probably means there was an error on the client
  105. * or we didn't correctly put code set information in our IOR.
  106. */
  107. public static final int BAD_CODESETS_FROM_CLIENT = ORBConstants.GENERAL_BASE + 8;
  108. /**
  109. * Thrown when a char to byte conversion for a CORBA char resulted in
  110. * more than one byte.
  111. */
  112. public static final int INVALID_SINGLE_CHAR_CTB = ORBConstants.GENERAL_BASE + 9;
  113. /**
  114. * Thrown when a character to byte conversion resulted in a number
  115. * of bytes not equal to two times the number of chars. This is only
  116. * used in GIOP 1.1 since interoperability is limited to 2 byte
  117. * fixed width encodings.
  118. */
  119. public static final int BAD_GIOP_1_1_CTB = ORBConstants.GENERAL_BASE + 10;
  120. /////////////////////////////////////////////////////////////////
  121. // INV_OBJREF exception minor codes
  122. /////////////////////////////////////////////////////////////////
  123. public static final int BAD_CORBALOC_STRING = ORBConstants.GENERAL_BASE + 1 ;
  124. public static final int NO_PROFILE_PRESENT = ORBConstants.GENERAL_BASE + 2 ;
  125. // The client tried to marshal wchar/wstring data, but the server
  126. // didn't include its code sets in the IOR.
  127. // See 00-11-03 13.9.2.6
  128. public static final int NO_SERVER_WCHAR_CODESET_CMP = OMGVMCID.value + 1;
  129. /////////////////////////////////////////////////////////////////
  130. // INITIALIZE exception minor codes
  131. /////////////////////////////////////////////////////////////////
  132. public static final int CANNOT_CREATE_ORBID_DB = ORBConstants.GENERAL_BASE + 1;
  133. public static final int CANNOT_READ_ORBID_DB = ORBConstants.GENERAL_BASE + 2;
  134. public static final int CANNOT_WRITE_ORBID_DB = ORBConstants.GENERAL_BASE + 3;
  135. public static final int
  136. GET_SERVER_PORT_CALLED_BEFORE_ENDPOINTS_INITIALIZED
  137. = ORBConstants.GENERAL_BASE + 4;
  138. /////////////////////////////////////////////////////////////////
  139. // INTERNAL exception minor codes (also see util/MinorCodes)
  140. /////////////////////////////////////////////////////////////////
  141. public static final int NON_EXISTENT_ORBID = ORBConstants.GENERAL_BASE + 1;
  142. public static final int NO_SERVER_SUBCONTRACT = ORBConstants.GENERAL_BASE + 2 ;
  143. public static final int SERVER_SC_TEMP_SIZE = ORBConstants.GENERAL_BASE + 3 ;
  144. public static final int NO_CLIENT_SC_CLASS = ORBConstants.GENERAL_BASE + 4 ;
  145. public static final int SERVER_SC_NO_IIOP_PROFILE = ORBConstants.GENERAL_BASE + 5 ;
  146. public static final int GET_SYSTEM_EX_RETURNED_NULL = ORBConstants.GENERAL_BASE + 6;
  147. // This minor code is used when there is an attempt to put an Indirection
  148. // offset in the orbutil.cacheTable when there is an existing entry with
  149. // same key (Object). The new indirection offset is different from the one
  150. // present in the table.
  151. public static final int DUPLICATE_INDIRECTION_OFFSET = ORBConstants.GENERAL_BASE + 7;
  152. /**
  153. * When unmarshalling, the repository id of the user exception
  154. * was found to be of incorrect length.
  155. */
  156. public static final int PEEKSTRING_FAILED = ORBConstants.GENERAL_BASE + 7 ;
  157. /**
  158. * Unable to determine local hostname using the Java APIs
  159. * InetAddress.getLocalHost().getHostName().
  160. */
  161. public static final int GET_LOCAL_HOST_FAILED = ORBConstants.GENERAL_BASE + 8 ;
  162. /**
  163. * Unable to create the listener thread on the specific port.
  164. * Either the post is taken or there was an error creating the
  165. * daemon thread.
  166. */
  167. public static final int CREATE_LISTENER_FAILED = ORBConstants.GENERAL_BASE + 9 ;
  168. /**
  169. * Bad locate request status found in the IIOP locate reply.
  170. */
  171. public static final int BAD_LOCATE_REQUEST_STATUS = ORBConstants.GENERAL_BASE + 10 ;
  172. /**
  173. * Error encountered while stringifying an object reference.
  174. */
  175. public static final int STRINGIFY_WRITE_ERROR = ORBConstants.GENERAL_BASE + 11 ;
  176. // from Message.java
  177. /**
  178. * IIOP message with bad GIOP v1.0 message type found.
  179. */
  180. public static final int BAD_GIOP_REQUEST_TYPE = ORBConstants.GENERAL_BASE + 12 ;
  181. // from Utility.java
  182. /**
  183. * Error encountered while unmarshalling the user exception.
  184. */
  185. public static final int ERROR_UNMARSHALING_USEREXC = ORBConstants.GENERAL_BASE + 13 ;
  186. // from SubcontractRegistry.java
  187. /**
  188. * The client, or a server subcontract being registered
  189. * will overflow the suncontract registry.
  190. */
  191. public static final int SUBCONTRACTREGISTRY_ERROR = ORBConstants.GENERAL_BASE + 14 ;
  192. // from GenericCORBAClientSC.java, RequestImpl.java
  193. /**
  194. * Error while processing a LocationForward.
  195. */
  196. public static final int LOCATIONFORWARD_ERROR = ORBConstants.GENERAL_BASE + 15 ;
  197. // There is another minor code with that name in com.sun.PortableServer.MinorCodes
  198. public static final int WRONG_CLIENTSC = ORBConstants.GENERAL_BASE + 16 ;
  199. public static final int BAD_SERVANT_READ_OBJECT = ORBConstants.GENERAL_BASE + 17 ;
  200. public static final int MULT_IIOP_PROF_NOT_SUPPORTED = ORBConstants.GENERAL_BASE + 18 ;
  201. // from Message.java
  202. /**
  203. * GIOP magic is corrupted.
  204. */
  205. public static final int GIOP_MAGIC_ERROR = ORBConstants.GENERAL_BASE + 20;
  206. // from Message.java
  207. /**
  208. * Invalid GIOP version.
  209. */
  210. public static final int GIOP_VERSION_ERROR = ORBConstants.GENERAL_BASE + 21;
  211. // from Message.java
  212. /**
  213. * Illegal reply status in GIOP reply message.
  214. */
  215. public static final int ILLEGAL_REPLY_STATUS = ORBConstants.GENERAL_BASE + 22;
  216. // from Message.java
  217. /**
  218. * Illegal reply status in GIOP reply message.
  219. */
  220. public static final int ILLEGAL_GIOP_MSG_TYPE = ORBConstants.GENERAL_BASE + 23;
  221. // from Message.java
  222. /**
  223. * Fragmentation is not allowed for a particular message type.
  224. */
  225. public static final int FRAGMENTATION_DISALLOWED = ORBConstants.GENERAL_BASE + 24;
  226. /**
  227. * Bad status returned in the IIOP Reply message by the server.
  228. */
  229. public static final int BAD_REPLYSTATUS = ORBConstants.GENERAL_BASE + 25 ;
  230. /**
  231. * Character converter failed internally.
  232. */
  233. public static final int CTB_CONVERTER_FAILURE = ORBConstants.GENERAL_BASE + 26;
  234. public static final int BTC_CONVERTER_FAILURE = ORBConstants.GENERAL_BASE + 27;
  235. /**
  236. * Currently, we only support fixed width encodings even in
  237. * GIOP 1.2 due to code complexity when writing wchar arrays with
  238. * chunking and fragmentation. (This is fine for now since we
  239. * only really support UTF-16 for wchar data.)
  240. */
  241. public static final int WCHAR_ARRAY_UNSUPPORTED_ENCODING = ORBConstants.GENERAL_BASE + 28;
  242. /**
  243. * Illegal target addressing disposition value.
  244. */
  245. public static final int ILLEGAL_TARGET_ADDRESS_DISPOSITION = ORBConstants.GENERAL_BASE + 29;
  246. /**
  247. * No reply while attempting to get addressing disposition.
  248. */
  249. public static final int NULL_REPLY_IN_GET_ADDR_DISPOSITION = ORBConstants.GENERAL_BASE + 30;
  250. /**
  251. * Invalid GIOP target addressing preference.
  252. */
  253. public static final int ORB_TARGET_ADDR_PREFERENCE_IN_EXTRACT_OBJECTKEY_INVALID = ORBConstants.GENERAL_BASE + 31;
  254. public static final int INVALID_ISSTREAMED_TCKIND = ORBConstants.GENERAL_BASE + 32;
  255. /**
  256. * Found a JDK 1.3.1 patch level indicator at the end of the object key,
  257. * but it had a value less than the JDK 1.3.1_01 value of 1.
  258. */
  259. public static final int INVALID_JDK1_3_1_PATCH_LEVEL = ORBConstants.GENERAL_BASE + 33;
  260. /**
  261. * Error unmarshaling the data portion of a service context.
  262. * Most likely due to the ServiceContextData class not being
  263. * able to initialize the proper ServiceContext.
  264. */
  265. public static final int SVCCTX_UNMARSHAL_ERROR = ORBConstants.GENERAL_BASE + 34;
  266. /////////////////////////////////////////////////////////////////
  267. // MARSHAL exception minor codes (also see util/MinorCodes)
  268. /////////////////////////////////////////////////////////////////
  269. /**
  270. * When a non objectimpl given to object_to_string
  271. * formal/01-09-34 p 3-22.
  272. */
  273. public static final int NOT_AN_OBJECT_IMPL = OMGVMCID.value + 2;
  274. /**
  275. * The chunk ended but data was read past it without closing
  276. */
  277. public static final int CHUNK_OVERFLOW = ORBConstants.GENERAL_BASE + 1;
  278. /**
  279. * Thrown when a CDRInputStream with the grow strategy tries to
  280. * call underflow.
  281. */
  282. public static final int UNEXPECTED_EOF = ORBConstants.GENERAL_BASE + 2;
  283. /**
  284. * Error occured while trying to read a marshalled object
  285. * reference and converting into an in memory object reference.
  286. */
  287. public static final int READ_OBJECT_EXCEPTION = ORBConstants.GENERAL_BASE + 3 ;
  288. /**
  289. * Character encountered while marshalling or unmarshalling
  290. * that is not ISO Latin-1 (8859.1) compliant. It is not in
  291. * the range of 0 to 255. Also used for DATA_CONVERSION exception
  292. *
  293. * No longer used!
  294. */
  295. public static final int CHARACTER_OUTOFRANGE = ORBConstants.GENERAL_BASE + 4 ;
  296. /**
  297. * An exception was thrown while doing the result()
  298. * operation on ServerRequest.
  299. */
  300. public static final int DSI_RESULT_EXCEPTION = ORBConstants.GENERAL_BASE + 5 ;
  301. /**
  302. * IIOPInputStream.grow was called.
  303. */
  304. public static final int IIOPINPUTSTREAM_GROW = ORBConstants.GENERAL_BASE + 6 ;
  305. /**
  306. * Thrown when underflow occurs in BufferManagerReadStream, but
  307. * the last fragment of that message was already received and
  308. * processed.
  309. */
  310. public static final int END_OF_STREAM = ORBConstants.GENERAL_BASE + 7;
  311. /**
  312. * Thrown when errors happen while extracting object key from the
  313. * request headers.
  314. */
  315. public static final int INVALID_OBJECT_KEY = ORBConstants.GENERAL_BASE + 8;
  316. /**
  317. * Thrown when loading a class with a provided URL, and the URL is
  318. * invalid.
  319. */
  320. public static final int MALFORMED_URL = ORBConstants.GENERAL_BASE + 9;
  321. /**
  322. * Thrown when an Error comes up from calling readValue on a ValueHandler
  323. * in CDRInputStream.
  324. */
  325. public static final int VALUEHANDLER_READ_ERROR = ORBConstants.GENERAL_BASE + 10;
  326. /**
  327. * Thrown when an Exception comes up from calling readValue on a
  328. * ValueHandler in CDRInputStream.
  329. */
  330. public static final int VALUEHANDLER_READ_EXCEPTION = ORBConstants.GENERAL_BASE + 11;
  331. /**
  332. * Thrown when a bad kind is given in isCustomType in CDRInputStream.
  333. */
  334. public static final int BAD_KIND = ORBConstants.GENERAL_BASE + 12;
  335. /**
  336. * Thrown when couldn't find a class in readClass in CDRInputStream.
  337. */
  338. public static final int CNFE_READ_CLASS = ORBConstants.GENERAL_BASE + 13;
  339. /**
  340. * Bad repository ID indirection.
  341. */
  342. public static final int BAD_REP_ID_INDIRECTION = ORBConstants.GENERAL_BASE + 14;
  343. /**
  344. * Bad codebase string indirection.
  345. */
  346. public static final int BAD_CODEBASE_INDIRECTION = ORBConstants.GENERAL_BASE + 15;
  347. /**
  348. * An unknown code set was specified by the client ORB as one of the
  349. * negotiated code sets. This can only occur if there is a bug in
  350. * the client side's code set negotiation.
  351. */
  352. public static final int UNKNOWN_CODESET = ORBConstants.GENERAL_BASE + 16;
  353. /**
  354. * wchar/wstring data in GIOP 1.0
  355. *
  356. * As part of the resolution for issue 3681, a MARSHAL exception must
  357. * be thrown when wchar/wstring data is sent in GIOP 1.0. The minor
  358. * codes will be standard, but aren't available, yet.
  359. */
  360. public static final int WCHAR_DATA_IN_GIOP_1_0 = ORBConstants.GENERAL_BASE + 17;
  361. /**
  362. * String or wstring with a negative length. This is usually due to
  363. * other problems in the stream, probably custom marshalling.
  364. */
  365. public static final int NEGATIVE_STRING_LENGTH = ORBConstants.GENERAL_BASE + 18;
  366. /**
  367. * Someone called CDRInputStream read_value(expectedType) with a null
  368. * parameter and there was no repository ID information on the wire.
  369. */
  370. public static final int EXPECTED_TYPE_NULL_AND_NO_REP_ID
  371. = ORBConstants.GENERAL_BASE + 19;
  372. /**
  373. * Someone called CDRInputStream read_value() and there was no
  374. * repository ID information on the wire.
  375. */
  376. public static final int READ_VALUE_AND_NO_REP_ID
  377. = ORBConstants.GENERAL_BASE + 20;
  378. /**
  379. * Thrown in CDROutputStream_1_0 when an error occurs while
  380. * connecting a servant.
  381. */
  382. public static final int CONNECTING_SERVANT = ORBConstants.GENERAL_BASE + 21;
  383. /**
  384. * We received (or think we received) an end tag which is less
  385. * than the one we were expecting. That means that the sender
  386. * must think there are more enclosing chunked valuetypes than
  387. * we do.
  388. */
  389. public static final int UNEXPECTED_ENCLOSING_VALUETYPE = ORBConstants.GENERAL_BASE + 22;
  390. /**
  391. * We read (or think we read) an end tag whose value was
  392. * [0, 0x7fffff00). End tags are always negative.
  393. * There is a very obscure case where the read end tag
  394. * code might encounter a nested valuetype's value tag
  395. * if a custom marshaler leaves too much data on the wire,
  396. * so this isn't thrown if the long we read had a
  397. * value greater than or equal to 0x7fffff00 (the minimum
  398. * value tag).
  399. */
  400. public static final int POSITIVE_END_TAG = ORBConstants.GENERAL_BASE + 23;
  401. /**
  402. * The client thread tried to get its out call descriptor
  403. * from the table, but it was null.
  404. */
  405. public static final int NULL_OUT_CALL = ORBConstants.GENERAL_BASE + 24;
  406. /**
  407. * write_Object called with a org.omg.CORBA.LocalObject.
  408. * IDL to Java formal 01-06-06 1.21.4.2. No standard minor code
  409. * given.
  410. */
  411. public static final int WRITE_LOCAL_OBJECT = ORBConstants.GENERAL_BASE + 25;
  412. /**
  413. * Attempted to insert something besides an ObjectImpl
  414. * into an Any via insert_Object.
  415. */
  416. public static final int BAD_INSERTOBJ_PARAM = ORBConstants.GENERAL_BASE + 26;
  417. /////////////////////////////////////////////////////////////////
  418. // NO_IMPLEMENT minor cores
  419. /////////////////////////////////////////////////////////////////
  420. public static final int GENERIC_NO_IMPL = ORBConstants.GENERAL_BASE + 1 ;
  421. public static final int CONTEXT_NOT_IMPLEMENTED = ORBConstants.GENERAL_BASE + 2 ;
  422. /**
  423. * get_interface is not implemented on server.
  424. */
  425. public static final int GETINTERFACE_NOT_IMPLEMENTED = ORBConstants.GENERAL_BASE + 3 ;
  426. /**
  427. * deferred sends are not implemented.
  428. */
  429. public static final int SEND_DEFERRED_NOTIMPLEMENTED = ORBConstants.GENERAL_BASE + 4 ;
  430. /////////////////////////////////////////////////////////////////
  431. // OBJ_ADAPTER minor codes
  432. /////////////////////////////////////////////////////////////////
  433. /**
  434. * There was no subcontract found that matches the one in
  435. * the object key when dispatching the request on the server
  436. * side to the object adapter layer.
  437. */
  438. public static final int NO_SERVER_SC_IN_DISPATCH = ORBConstants.GENERAL_BASE + 1 ;
  439. /**
  440. * There was no subcontract found that matches the one in
  441. * the object key when dispatching the locate request on the server
  442. * side to the object adapter layer.
  443. */
  444. /**
  445. * Error occured when trying to connect a servant to the ORB.
  446. */
  447. public static final int ORB_CONNECT_ERROR = ORBConstants.GENERAL_BASE + 2 ;
  448. /////////////////////////////////////////////////////////////////
  449. // OBJECT_NOT_EXIST
  450. /////////////////////////////////////////////////////////////////
  451. // from IIOPConnection.java
  452. /**
  453. * The locate request got the response indicating that the
  454. * object is not known to the locator.
  455. */
  456. public static final int LOCATE_UNKNOWN_OBJECT = ORBConstants.GENERAL_BASE + 1 ;
  457. // from GenericServerSC.java
  458. /**
  459. * The server id of the server that received the request does
  460. * not match the server id baked into the object key of the
  461. * object reference that was invoked upon.
  462. */
  463. public static final int BAD_SERVER_ID = ORBConstants.GENERAL_BASE + 2 ;
  464. /**
  465. * No skeleton was found on the server side that matches the
  466. * contents of the object key inside the object reference.
  467. */
  468. // There is another minor code with that name in com.sun.PortableServer.MinorCodes
  469. public static final int BAD_SKELETON = ORBConstants.GENERAL_BASE + 3 ;
  470. public static final int SERVANT_NOT_FOUND = ORBConstants.GENERAL_BASE + 4 ;
  471. /////////////////////////////////////////////////////////////////
  472. // TRANSIENT minor codes
  473. /////////////////////////////////////////////////////////////////
  474. /**
  475. * ptc/00-08-06 table 4-1
  476. */
  477. public static final int REQUEST_CANCELED = OMGVMCID.value + 3 ;
  478. /////////////////////////////////////////////////////////////////
  479. // UNKNOWN minor codes
  480. /////////////////////////////////////////////////////////////////
  481. /**
  482. * Unknown user exception encountered while unmarshalling.
  483. */
  484. public static final int UNKNOWN_CORBA_EXC = ORBConstants.GENERAL_BASE + 1 ;
  485. /**
  486. * Unknown user exception thrown by the server implementation.
  487. */
  488. public static final int RUNTIMEEXCEPTION = ORBConstants.GENERAL_BASE + 2 ;
  489. /**
  490. * Unknown exception/error thrown by the ORB/application implementation.
  491. */
  492. public static final int UNKNOWN_SERVER_ERROR = ORBConstants.GENERAL_BASE + 3 ;
  493. /**
  494. * Error while marshaling SystemException after DSI-based invocation.
  495. */
  496. public static final int UNKNOWN_DSI_SYSEX = ORBConstants.GENERAL_BASE + 4;
  497. /*
  498. * Error while unmarshalling SystemException
  499. */
  500. public static final int UNKNOWN_SYSEX = ORBConstants.GENERAL_BASE + 5;
  501. }