1. // Log wrapper class for Sun private system exceptions in group POA
  2. //
  3. // Generated by mc.scm version 1.3, DO NOT EDIT BY HAND!
  4. // Generated from input file ../../../../src/share/classes/com/sun/corba/se/spi/logging/data/POA.mc on Wed Sep 15 03:50:27 PDT 2004
  5. package com.sun.corba.se.impl.logging ;
  6. import java.util.logging.Logger ;
  7. import java.util.logging.Level ;
  8. import org.omg.CORBA.OMGVMCID ;
  9. import com.sun.corba.se.impl.util.SUNVMCID ;
  10. import org.omg.CORBA.CompletionStatus ;
  11. import org.omg.CORBA.SystemException ;
  12. import com.sun.corba.se.spi.orb.ORB ;
  13. import com.sun.corba.se.spi.logging.LogWrapperFactory;
  14. import com.sun.corba.se.spi.logging.LogWrapperBase;
  15. import org.omg.CORBA.BAD_INV_ORDER ;
  16. import org.omg.CORBA.BAD_OPERATION ;
  17. import org.omg.CORBA.BAD_PARAM ;
  18. import org.omg.CORBA.INTERNAL ;
  19. import org.omg.CORBA.NO_IMPLEMENT ;
  20. import org.omg.CORBA.OBJ_ADAPTER ;
  21. import org.omg.CORBA.INITIALIZE ;
  22. import org.omg.CORBA.TRANSIENT ;
  23. import org.omg.CORBA.UNKNOWN ;
  24. import org.omg.CORBA.OBJECT_NOT_EXIST ;
  25. public class POASystemException extends LogWrapperBase {
  26. public POASystemException( Logger logger )
  27. {
  28. super( logger ) ;
  29. }
  30. private static LogWrapperFactory factory = new LogWrapperFactory() {
  31. public LogWrapperBase create( Logger logger )
  32. {
  33. return new POASystemException( logger ) ;
  34. }
  35. } ;
  36. public static POASystemException get( ORB orb, String logDomain )
  37. {
  38. POASystemException wrapper =
  39. (POASystemException) orb.getLogWrapper( logDomain,
  40. "POA", factory ) ;
  41. return wrapper ;
  42. }
  43. public static POASystemException get( String logDomain )
  44. {
  45. POASystemException wrapper =
  46. (POASystemException) ORB.staticGetLogWrapper( logDomain,
  47. "POA", factory ) ;
  48. return wrapper ;
  49. }
  50. ///////////////////////////////////////////////////////////
  51. // BAD_INV_ORDER
  52. ///////////////////////////////////////////////////////////
  53. public static final int SERVANT_MANAGER_ALREADY_SET = SUNVMCID.value + 1001 ;
  54. public BAD_INV_ORDER servantManagerAlreadySet( CompletionStatus cs, Throwable t ) {
  55. BAD_INV_ORDER exc = new BAD_INV_ORDER( SERVANT_MANAGER_ALREADY_SET, cs ) ;
  56. if (t != null)
  57. exc.initCause( t ) ;
  58. if (logger.isLoggable( Level.WARNING )) {
  59. Object[] parameters = null ;
  60. doLog( Level.WARNING, "POA.servantManagerAlreadySet",
  61. parameters, POASystemException.class, exc ) ;
  62. }
  63. return exc ;
  64. }
  65. public BAD_INV_ORDER servantManagerAlreadySet( CompletionStatus cs ) {
  66. return servantManagerAlreadySet( cs, null ) ;
  67. }
  68. public BAD_INV_ORDER servantManagerAlreadySet( Throwable t ) {
  69. return servantManagerAlreadySet( CompletionStatus.COMPLETED_NO, t ) ;
  70. }
  71. public BAD_INV_ORDER servantManagerAlreadySet( ) {
  72. return servantManagerAlreadySet( CompletionStatus.COMPLETED_NO, null ) ;
  73. }
  74. public static final int DESTROY_DEADLOCK = SUNVMCID.value + 1002 ;
  75. public BAD_INV_ORDER destroyDeadlock( CompletionStatus cs, Throwable t ) {
  76. BAD_INV_ORDER exc = new BAD_INV_ORDER( DESTROY_DEADLOCK, cs ) ;
  77. if (t != null)
  78. exc.initCause( t ) ;
  79. if (logger.isLoggable( Level.WARNING )) {
  80. Object[] parameters = null ;
  81. doLog( Level.WARNING, "POA.destroyDeadlock",
  82. parameters, POASystemException.class, exc ) ;
  83. }
  84. return exc ;
  85. }
  86. public BAD_INV_ORDER destroyDeadlock( CompletionStatus cs ) {
  87. return destroyDeadlock( cs, null ) ;
  88. }
  89. public BAD_INV_ORDER destroyDeadlock( Throwable t ) {
  90. return destroyDeadlock( CompletionStatus.COMPLETED_NO, t ) ;
  91. }
  92. public BAD_INV_ORDER destroyDeadlock( ) {
  93. return destroyDeadlock( CompletionStatus.COMPLETED_NO, null ) ;
  94. }
  95. ///////////////////////////////////////////////////////////
  96. // BAD_OPERATION
  97. ///////////////////////////////////////////////////////////
  98. public static final int SERVANT_ORB = SUNVMCID.value + 1001 ;
  99. public BAD_OPERATION servantOrb( CompletionStatus cs, Throwable t ) {
  100. BAD_OPERATION exc = new BAD_OPERATION( SERVANT_ORB, cs ) ;
  101. if (t != null)
  102. exc.initCause( t ) ;
  103. if (logger.isLoggable( Level.WARNING )) {
  104. Object[] parameters = null ;
  105. doLog( Level.WARNING, "POA.servantOrb",
  106. parameters, POASystemException.class, exc ) ;
  107. }
  108. return exc ;
  109. }
  110. public BAD_OPERATION servantOrb( CompletionStatus cs ) {
  111. return servantOrb( cs, null ) ;
  112. }
  113. public BAD_OPERATION servantOrb( Throwable t ) {
  114. return servantOrb( CompletionStatus.COMPLETED_NO, t ) ;
  115. }
  116. public BAD_OPERATION servantOrb( ) {
  117. return servantOrb( CompletionStatus.COMPLETED_NO, null ) ;
  118. }
  119. public static final int BAD_SERVANT = SUNVMCID.value + 1002 ;
  120. public BAD_OPERATION badServant( CompletionStatus cs, Throwable t ) {
  121. BAD_OPERATION exc = new BAD_OPERATION( BAD_SERVANT, cs ) ;
  122. if (t != null)
  123. exc.initCause( t ) ;
  124. if (logger.isLoggable( Level.WARNING )) {
  125. Object[] parameters = null ;
  126. doLog( Level.WARNING, "POA.badServant",
  127. parameters, POASystemException.class, exc ) ;
  128. }
  129. return exc ;
  130. }
  131. public BAD_OPERATION badServant( CompletionStatus cs ) {
  132. return badServant( cs, null ) ;
  133. }
  134. public BAD_OPERATION badServant( Throwable t ) {
  135. return badServant( CompletionStatus.COMPLETED_NO, t ) ;
  136. }
  137. public BAD_OPERATION badServant( ) {
  138. return badServant( CompletionStatus.COMPLETED_NO, null ) ;
  139. }
  140. public static final int ILLEGAL_FORWARD_REQUEST = SUNVMCID.value + 1003 ;
  141. public BAD_OPERATION illegalForwardRequest( CompletionStatus cs, Throwable t ) {
  142. BAD_OPERATION exc = new BAD_OPERATION( ILLEGAL_FORWARD_REQUEST, cs ) ;
  143. if (t != null)
  144. exc.initCause( t ) ;
  145. if (logger.isLoggable( Level.WARNING )) {
  146. Object[] parameters = null ;
  147. doLog( Level.WARNING, "POA.illegalForwardRequest",
  148. parameters, POASystemException.class, exc ) ;
  149. }
  150. return exc ;
  151. }
  152. public BAD_OPERATION illegalForwardRequest( CompletionStatus cs ) {
  153. return illegalForwardRequest( cs, null ) ;
  154. }
  155. public BAD_OPERATION illegalForwardRequest( Throwable t ) {
  156. return illegalForwardRequest( CompletionStatus.COMPLETED_NO, t ) ;
  157. }
  158. public BAD_OPERATION illegalForwardRequest( ) {
  159. return illegalForwardRequest( CompletionStatus.COMPLETED_NO, null ) ;
  160. }
  161. ///////////////////////////////////////////////////////////
  162. // BAD_PARAM
  163. ///////////////////////////////////////////////////////////
  164. public static final int BAD_TRANSACTION_CONTEXT = SUNVMCID.value + 1001 ;
  165. public BAD_PARAM badTransactionContext( CompletionStatus cs, Throwable t ) {
  166. BAD_PARAM exc = new BAD_PARAM( BAD_TRANSACTION_CONTEXT, cs ) ;
  167. if (t != null)
  168. exc.initCause( t ) ;
  169. if (logger.isLoggable( Level.WARNING )) {
  170. Object[] parameters = null ;
  171. doLog( Level.WARNING, "POA.badTransactionContext",
  172. parameters, POASystemException.class, exc ) ;
  173. }
  174. return exc ;
  175. }
  176. public BAD_PARAM badTransactionContext( CompletionStatus cs ) {
  177. return badTransactionContext( cs, null ) ;
  178. }
  179. public BAD_PARAM badTransactionContext( Throwable t ) {
  180. return badTransactionContext( CompletionStatus.COMPLETED_NO, t ) ;
  181. }
  182. public BAD_PARAM badTransactionContext( ) {
  183. return badTransactionContext( CompletionStatus.COMPLETED_NO, null ) ;
  184. }
  185. public static final int BAD_REPOSITORY_ID = SUNVMCID.value + 1002 ;
  186. public BAD_PARAM badRepositoryId( CompletionStatus cs, Throwable t ) {
  187. BAD_PARAM exc = new BAD_PARAM( BAD_REPOSITORY_ID, cs ) ;
  188. if (t != null)
  189. exc.initCause( t ) ;
  190. if (logger.isLoggable( Level.WARNING )) {
  191. Object[] parameters = null ;
  192. doLog( Level.WARNING, "POA.badRepositoryId",
  193. parameters, POASystemException.class, exc ) ;
  194. }
  195. return exc ;
  196. }
  197. public BAD_PARAM badRepositoryId( CompletionStatus cs ) {
  198. return badRepositoryId( cs, null ) ;
  199. }
  200. public BAD_PARAM badRepositoryId( Throwable t ) {
  201. return badRepositoryId( CompletionStatus.COMPLETED_NO, t ) ;
  202. }
  203. public BAD_PARAM badRepositoryId( ) {
  204. return badRepositoryId( CompletionStatus.COMPLETED_NO, null ) ;
  205. }
  206. ///////////////////////////////////////////////////////////
  207. // INTERNAL
  208. ///////////////////////////////////////////////////////////
  209. public static final int INVOKESETUP = SUNVMCID.value + 1001 ;
  210. public INTERNAL invokesetup( CompletionStatus cs, Throwable t ) {
  211. INTERNAL exc = new INTERNAL( INVOKESETUP, cs ) ;
  212. if (t != null)
  213. exc.initCause( t ) ;
  214. if (logger.isLoggable( Level.WARNING )) {
  215. Object[] parameters = null ;
  216. doLog( Level.WARNING, "POA.invokesetup",
  217. parameters, POASystemException.class, exc ) ;
  218. }
  219. return exc ;
  220. }
  221. public INTERNAL invokesetup( CompletionStatus cs ) {
  222. return invokesetup( cs, null ) ;
  223. }
  224. public INTERNAL invokesetup( Throwable t ) {
  225. return invokesetup( CompletionStatus.COMPLETED_NO, t ) ;
  226. }
  227. public INTERNAL invokesetup( ) {
  228. return invokesetup( CompletionStatus.COMPLETED_NO, null ) ;
  229. }
  230. public static final int BAD_LOCALREPLYSTATUS = SUNVMCID.value + 1002 ;
  231. public INTERNAL badLocalreplystatus( CompletionStatus cs, Throwable t ) {
  232. INTERNAL exc = new INTERNAL( BAD_LOCALREPLYSTATUS, cs ) ;
  233. if (t != null)
  234. exc.initCause( t ) ;
  235. if (logger.isLoggable( Level.WARNING )) {
  236. Object[] parameters = null ;
  237. doLog( Level.WARNING, "POA.badLocalreplystatus",
  238. parameters, POASystemException.class, exc ) ;
  239. }
  240. return exc ;
  241. }
  242. public INTERNAL badLocalreplystatus( CompletionStatus cs ) {
  243. return badLocalreplystatus( cs, null ) ;
  244. }
  245. public INTERNAL badLocalreplystatus( Throwable t ) {
  246. return badLocalreplystatus( CompletionStatus.COMPLETED_NO, t ) ;
  247. }
  248. public INTERNAL badLocalreplystatus( ) {
  249. return badLocalreplystatus( CompletionStatus.COMPLETED_NO, null ) ;
  250. }
  251. public static final int PERSISTENT_SERVERPORT_ERROR = SUNVMCID.value + 1003 ;
  252. public INTERNAL persistentServerportError( CompletionStatus cs, Throwable t ) {
  253. INTERNAL exc = new INTERNAL( PERSISTENT_SERVERPORT_ERROR, cs ) ;
  254. if (t != null)
  255. exc.initCause( t ) ;
  256. if (logger.isLoggable( Level.WARNING )) {
  257. Object[] parameters = null ;
  258. doLog( Level.WARNING, "POA.persistentServerportError",
  259. parameters, POASystemException.class, exc ) ;
  260. }
  261. return exc ;
  262. }
  263. public INTERNAL persistentServerportError( CompletionStatus cs ) {
  264. return persistentServerportError( cs, null ) ;
  265. }
  266. public INTERNAL persistentServerportError( Throwable t ) {
  267. return persistentServerportError( CompletionStatus.COMPLETED_NO, t ) ;
  268. }
  269. public INTERNAL persistentServerportError( ) {
  270. return persistentServerportError( CompletionStatus.COMPLETED_NO, null ) ;
  271. }
  272. public static final int SERVANT_DISPATCH = SUNVMCID.value + 1004 ;
  273. public INTERNAL servantDispatch( CompletionStatus cs, Throwable t ) {
  274. INTERNAL exc = new INTERNAL( SERVANT_DISPATCH, cs ) ;
  275. if (t != null)
  276. exc.initCause( t ) ;
  277. if (logger.isLoggable( Level.WARNING )) {
  278. Object[] parameters = null ;
  279. doLog( Level.WARNING, "POA.servantDispatch",
  280. parameters, POASystemException.class, exc ) ;
  281. }
  282. return exc ;
  283. }
  284. public INTERNAL servantDispatch( CompletionStatus cs ) {
  285. return servantDispatch( cs, null ) ;
  286. }
  287. public INTERNAL servantDispatch( Throwable t ) {
  288. return servantDispatch( CompletionStatus.COMPLETED_NO, t ) ;
  289. }
  290. public INTERNAL servantDispatch( ) {
  291. return servantDispatch( CompletionStatus.COMPLETED_NO, null ) ;
  292. }
  293. public static final int WRONG_CLIENTSC = SUNVMCID.value + 1005 ;
  294. public INTERNAL wrongClientsc( CompletionStatus cs, Throwable t ) {
  295. INTERNAL exc = new INTERNAL( WRONG_CLIENTSC, cs ) ;
  296. if (t != null)
  297. exc.initCause( t ) ;
  298. if (logger.isLoggable( Level.WARNING )) {
  299. Object[] parameters = null ;
  300. doLog( Level.WARNING, "POA.wrongClientsc",
  301. parameters, POASystemException.class, exc ) ;
  302. }
  303. return exc ;
  304. }
  305. public INTERNAL wrongClientsc( CompletionStatus cs ) {
  306. return wrongClientsc( cs, null ) ;
  307. }
  308. public INTERNAL wrongClientsc( Throwable t ) {
  309. return wrongClientsc( CompletionStatus.COMPLETED_NO, t ) ;
  310. }
  311. public INTERNAL wrongClientsc( ) {
  312. return wrongClientsc( CompletionStatus.COMPLETED_NO, null ) ;
  313. }
  314. public static final int CANT_CLONE_TEMPLATE = SUNVMCID.value + 1006 ;
  315. public INTERNAL cantCloneTemplate( CompletionStatus cs, Throwable t ) {
  316. INTERNAL exc = new INTERNAL( CANT_CLONE_TEMPLATE, cs ) ;
  317. if (t != null)
  318. exc.initCause( t ) ;
  319. if (logger.isLoggable( Level.WARNING )) {
  320. Object[] parameters = null ;
  321. doLog( Level.WARNING, "POA.cantCloneTemplate",
  322. parameters, POASystemException.class, exc ) ;
  323. }
  324. return exc ;
  325. }
  326. public INTERNAL cantCloneTemplate( CompletionStatus cs ) {
  327. return cantCloneTemplate( cs, null ) ;
  328. }
  329. public INTERNAL cantCloneTemplate( Throwable t ) {
  330. return cantCloneTemplate( CompletionStatus.COMPLETED_NO, t ) ;
  331. }
  332. public INTERNAL cantCloneTemplate( ) {
  333. return cantCloneTemplate( CompletionStatus.COMPLETED_NO, null ) ;
  334. }
  335. public static final int POACURRENT_UNBALANCED_STACK = SUNVMCID.value + 1007 ;
  336. public INTERNAL poacurrentUnbalancedStack( CompletionStatus cs, Throwable t ) {
  337. INTERNAL exc = new INTERNAL( POACURRENT_UNBALANCED_STACK, cs ) ;
  338. if (t != null)
  339. exc.initCause( t ) ;
  340. if (logger.isLoggable( Level.WARNING )) {
  341. Object[] parameters = null ;
  342. doLog( Level.WARNING, "POA.poacurrentUnbalancedStack",
  343. parameters, POASystemException.class, exc ) ;
  344. }
  345. return exc ;
  346. }
  347. public INTERNAL poacurrentUnbalancedStack( CompletionStatus cs ) {
  348. return poacurrentUnbalancedStack( cs, null ) ;
  349. }
  350. public INTERNAL poacurrentUnbalancedStack( Throwable t ) {
  351. return poacurrentUnbalancedStack( CompletionStatus.COMPLETED_NO, t ) ;
  352. }
  353. public INTERNAL poacurrentUnbalancedStack( ) {
  354. return poacurrentUnbalancedStack( CompletionStatus.COMPLETED_NO, null ) ;
  355. }
  356. public static final int POACURRENT_NULL_FIELD = SUNVMCID.value + 1008 ;
  357. public INTERNAL poacurrentNullField( CompletionStatus cs, Throwable t ) {
  358. INTERNAL exc = new INTERNAL( POACURRENT_NULL_FIELD, cs ) ;
  359. if (t != null)
  360. exc.initCause( t ) ;
  361. if (logger.isLoggable( Level.WARNING )) {
  362. Object[] parameters = null ;
  363. doLog( Level.WARNING, "POA.poacurrentNullField",
  364. parameters, POASystemException.class, exc ) ;
  365. }
  366. return exc ;
  367. }
  368. public INTERNAL poacurrentNullField( CompletionStatus cs ) {
  369. return poacurrentNullField( cs, null ) ;
  370. }
  371. public INTERNAL poacurrentNullField( Throwable t ) {
  372. return poacurrentNullField( CompletionStatus.COMPLETED_NO, t ) ;
  373. }
  374. public INTERNAL poacurrentNullField( ) {
  375. return poacurrentNullField( CompletionStatus.COMPLETED_NO, null ) ;
  376. }
  377. public static final int POA_INTERNAL_GET_SERVANT_ERROR = SUNVMCID.value + 1009 ;
  378. public INTERNAL poaInternalGetServantError( CompletionStatus cs, Throwable t ) {
  379. INTERNAL exc = new INTERNAL( POA_INTERNAL_GET_SERVANT_ERROR, cs ) ;
  380. if (t != null)
  381. exc.initCause( t ) ;
  382. if (logger.isLoggable( Level.WARNING )) {
  383. Object[] parameters = null ;
  384. doLog( Level.WARNING, "POA.poaInternalGetServantError",
  385. parameters, POASystemException.class, exc ) ;
  386. }
  387. return exc ;
  388. }
  389. public INTERNAL poaInternalGetServantError( CompletionStatus cs ) {
  390. return poaInternalGetServantError( cs, null ) ;
  391. }
  392. public INTERNAL poaInternalGetServantError( Throwable t ) {
  393. return poaInternalGetServantError( CompletionStatus.COMPLETED_NO, t ) ;
  394. }
  395. public INTERNAL poaInternalGetServantError( ) {
  396. return poaInternalGetServantError( CompletionStatus.COMPLETED_NO, null ) ;
  397. }
  398. public static final int MAKE_FACTORY_NOT_POA = SUNVMCID.value + 1010 ;
  399. public INTERNAL makeFactoryNotPoa( CompletionStatus cs, Throwable t, Object arg0) {
  400. INTERNAL exc = new INTERNAL( MAKE_FACTORY_NOT_POA, cs ) ;
  401. if (t != null)
  402. exc.initCause( t ) ;
  403. if (logger.isLoggable( Level.WARNING )) {
  404. Object[] parameters = new Object[1] ;
  405. parameters[0] = arg0 ;
  406. doLog( Level.WARNING, "POA.makeFactoryNotPoa",
  407. parameters, POASystemException.class, exc ) ;
  408. }
  409. return exc ;
  410. }
  411. public INTERNAL makeFactoryNotPoa( CompletionStatus cs, Object arg0) {
  412. return makeFactoryNotPoa( cs, null, arg0 ) ;
  413. }
  414. public INTERNAL makeFactoryNotPoa( Throwable t, Object arg0) {
  415. return makeFactoryNotPoa( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  416. }
  417. public INTERNAL makeFactoryNotPoa( Object arg0) {
  418. return makeFactoryNotPoa( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  419. }
  420. public static final int DUPLICATE_ORB_VERSION_SC = SUNVMCID.value + 1011 ;
  421. public INTERNAL duplicateOrbVersionSc( CompletionStatus cs, Throwable t ) {
  422. INTERNAL exc = new INTERNAL( DUPLICATE_ORB_VERSION_SC, cs ) ;
  423. if (t != null)
  424. exc.initCause( t ) ;
  425. if (logger.isLoggable( Level.WARNING )) {
  426. Object[] parameters = null ;
  427. doLog( Level.WARNING, "POA.duplicateOrbVersionSc",
  428. parameters, POASystemException.class, exc ) ;
  429. }
  430. return exc ;
  431. }
  432. public INTERNAL duplicateOrbVersionSc( CompletionStatus cs ) {
  433. return duplicateOrbVersionSc( cs, null ) ;
  434. }
  435. public INTERNAL duplicateOrbVersionSc( Throwable t ) {
  436. return duplicateOrbVersionSc( CompletionStatus.COMPLETED_NO, t ) ;
  437. }
  438. public INTERNAL duplicateOrbVersionSc( ) {
  439. return duplicateOrbVersionSc( CompletionStatus.COMPLETED_NO, null ) ;
  440. }
  441. public static final int PREINVOKE_CLONE_ERROR = SUNVMCID.value + 1012 ;
  442. public INTERNAL preinvokeCloneError( CompletionStatus cs, Throwable t ) {
  443. INTERNAL exc = new INTERNAL( PREINVOKE_CLONE_ERROR, cs ) ;
  444. if (t != null)
  445. exc.initCause( t ) ;
  446. if (logger.isLoggable( Level.WARNING )) {
  447. Object[] parameters = null ;
  448. doLog( Level.WARNING, "POA.preinvokeCloneError",
  449. parameters, POASystemException.class, exc ) ;
  450. }
  451. return exc ;
  452. }
  453. public INTERNAL preinvokeCloneError( CompletionStatus cs ) {
  454. return preinvokeCloneError( cs, null ) ;
  455. }
  456. public INTERNAL preinvokeCloneError( Throwable t ) {
  457. return preinvokeCloneError( CompletionStatus.COMPLETED_NO, t ) ;
  458. }
  459. public INTERNAL preinvokeCloneError( ) {
  460. return preinvokeCloneError( CompletionStatus.COMPLETED_NO, null ) ;
  461. }
  462. public static final int PREINVOKE_POA_DESTROYED = SUNVMCID.value + 1013 ;
  463. public INTERNAL preinvokePoaDestroyed( CompletionStatus cs, Throwable t ) {
  464. INTERNAL exc = new INTERNAL( PREINVOKE_POA_DESTROYED, cs ) ;
  465. if (t != null)
  466. exc.initCause( t ) ;
  467. if (logger.isLoggable( Level.WARNING )) {
  468. Object[] parameters = null ;
  469. doLog( Level.WARNING, "POA.preinvokePoaDestroyed",
  470. parameters, POASystemException.class, exc ) ;
  471. }
  472. return exc ;
  473. }
  474. public INTERNAL preinvokePoaDestroyed( CompletionStatus cs ) {
  475. return preinvokePoaDestroyed( cs, null ) ;
  476. }
  477. public INTERNAL preinvokePoaDestroyed( Throwable t ) {
  478. return preinvokePoaDestroyed( CompletionStatus.COMPLETED_NO, t ) ;
  479. }
  480. public INTERNAL preinvokePoaDestroyed( ) {
  481. return preinvokePoaDestroyed( CompletionStatus.COMPLETED_NO, null ) ;
  482. }
  483. public static final int PMF_CREATE_RETAIN = SUNVMCID.value + 1014 ;
  484. public INTERNAL pmfCreateRetain( CompletionStatus cs, Throwable t ) {
  485. INTERNAL exc = new INTERNAL( PMF_CREATE_RETAIN, cs ) ;
  486. if (t != null)
  487. exc.initCause( t ) ;
  488. if (logger.isLoggable( Level.WARNING )) {
  489. Object[] parameters = null ;
  490. doLog( Level.WARNING, "POA.pmfCreateRetain",
  491. parameters, POASystemException.class, exc ) ;
  492. }
  493. return exc ;
  494. }
  495. public INTERNAL pmfCreateRetain( CompletionStatus cs ) {
  496. return pmfCreateRetain( cs, null ) ;
  497. }
  498. public INTERNAL pmfCreateRetain( Throwable t ) {
  499. return pmfCreateRetain( CompletionStatus.COMPLETED_NO, t ) ;
  500. }
  501. public INTERNAL pmfCreateRetain( ) {
  502. return pmfCreateRetain( CompletionStatus.COMPLETED_NO, null ) ;
  503. }
  504. public static final int PMF_CREATE_NON_RETAIN = SUNVMCID.value + 1015 ;
  505. public INTERNAL pmfCreateNonRetain( CompletionStatus cs, Throwable t ) {
  506. INTERNAL exc = new INTERNAL( PMF_CREATE_NON_RETAIN, cs ) ;
  507. if (t != null)
  508. exc.initCause( t ) ;
  509. if (logger.isLoggable( Level.WARNING )) {
  510. Object[] parameters = null ;
  511. doLog( Level.WARNING, "POA.pmfCreateNonRetain",
  512. parameters, POASystemException.class, exc ) ;
  513. }
  514. return exc ;
  515. }
  516. public INTERNAL pmfCreateNonRetain( CompletionStatus cs ) {
  517. return pmfCreateNonRetain( cs, null ) ;
  518. }
  519. public INTERNAL pmfCreateNonRetain( Throwable t ) {
  520. return pmfCreateNonRetain( CompletionStatus.COMPLETED_NO, t ) ;
  521. }
  522. public INTERNAL pmfCreateNonRetain( ) {
  523. return pmfCreateNonRetain( CompletionStatus.COMPLETED_NO, null ) ;
  524. }
  525. public static final int POLICY_MEDIATOR_BAD_POLICY_IN_FACTORY = SUNVMCID.value + 1016 ;
  526. public INTERNAL policyMediatorBadPolicyInFactory( CompletionStatus cs, Throwable t ) {
  527. INTERNAL exc = new INTERNAL( POLICY_MEDIATOR_BAD_POLICY_IN_FACTORY, cs ) ;
  528. if (t != null)
  529. exc.initCause( t ) ;
  530. if (logger.isLoggable( Level.WARNING )) {
  531. Object[] parameters = null ;
  532. doLog( Level.WARNING, "POA.policyMediatorBadPolicyInFactory",
  533. parameters, POASystemException.class, exc ) ;
  534. }
  535. return exc ;
  536. }
  537. public INTERNAL policyMediatorBadPolicyInFactory( CompletionStatus cs ) {
  538. return policyMediatorBadPolicyInFactory( cs, null ) ;
  539. }
  540. public INTERNAL policyMediatorBadPolicyInFactory( Throwable t ) {
  541. return policyMediatorBadPolicyInFactory( CompletionStatus.COMPLETED_NO, t ) ;
  542. }
  543. public INTERNAL policyMediatorBadPolicyInFactory( ) {
  544. return policyMediatorBadPolicyInFactory( CompletionStatus.COMPLETED_NO, null ) ;
  545. }
  546. public static final int SERVANT_TO_ID_OAA = SUNVMCID.value + 1017 ;
  547. public INTERNAL servantToIdOaa( CompletionStatus cs, Throwable t ) {
  548. INTERNAL exc = new INTERNAL( SERVANT_TO_ID_OAA, cs ) ;
  549. if (t != null)
  550. exc.initCause( t ) ;
  551. if (logger.isLoggable( Level.WARNING )) {
  552. Object[] parameters = null ;
  553. doLog( Level.WARNING, "POA.servantToIdOaa",
  554. parameters, POASystemException.class, exc ) ;
  555. }
  556. return exc ;
  557. }
  558. public INTERNAL servantToIdOaa( CompletionStatus cs ) {
  559. return servantToIdOaa( cs, null ) ;
  560. }
  561. public INTERNAL servantToIdOaa( Throwable t ) {
  562. return servantToIdOaa( CompletionStatus.COMPLETED_NO, t ) ;
  563. }
  564. public INTERNAL servantToIdOaa( ) {
  565. return servantToIdOaa( CompletionStatus.COMPLETED_NO, null ) ;
  566. }
  567. public static final int SERVANT_TO_ID_SAA = SUNVMCID.value + 1018 ;
  568. public INTERNAL servantToIdSaa( CompletionStatus cs, Throwable t ) {
  569. INTERNAL exc = new INTERNAL( SERVANT_TO_ID_SAA, cs ) ;
  570. if (t != null)
  571. exc.initCause( t ) ;
  572. if (logger.isLoggable( Level.WARNING )) {
  573. Object[] parameters = null ;
  574. doLog( Level.WARNING, "POA.servantToIdSaa",
  575. parameters, POASystemException.class, exc ) ;
  576. }
  577. return exc ;
  578. }
  579. public INTERNAL servantToIdSaa( CompletionStatus cs ) {
  580. return servantToIdSaa( cs, null ) ;
  581. }
  582. public INTERNAL servantToIdSaa( Throwable t ) {
  583. return servantToIdSaa( CompletionStatus.COMPLETED_NO, t ) ;
  584. }
  585. public INTERNAL servantToIdSaa( ) {
  586. return servantToIdSaa( CompletionStatus.COMPLETED_NO, null ) ;
  587. }
  588. public static final int SERVANT_TO_ID_WP = SUNVMCID.value + 1019 ;
  589. public INTERNAL servantToIdWp( CompletionStatus cs, Throwable t ) {
  590. INTERNAL exc = new INTERNAL( SERVANT_TO_ID_WP, cs ) ;
  591. if (t != null)
  592. exc.initCause( t ) ;
  593. if (logger.isLoggable( Level.WARNING )) {
  594. Object[] parameters = null ;
  595. doLog( Level.WARNING, "POA.servantToIdWp",
  596. parameters, POASystemException.class, exc ) ;
  597. }
  598. return exc ;
  599. }
  600. public INTERNAL servantToIdWp( CompletionStatus cs ) {
  601. return servantToIdWp( cs, null ) ;
  602. }
  603. public INTERNAL servantToIdWp( Throwable t ) {
  604. return servantToIdWp( CompletionStatus.COMPLETED_NO, t ) ;
  605. }
  606. public INTERNAL servantToIdWp( ) {
  607. return servantToIdWp( CompletionStatus.COMPLETED_NO, null ) ;
  608. }
  609. public static final int CANT_RESOLVE_ROOT_POA = SUNVMCID.value + 1020 ;
  610. public INTERNAL cantResolveRootPoa( CompletionStatus cs, Throwable t ) {
  611. INTERNAL exc = new INTERNAL( CANT_RESOLVE_ROOT_POA, cs ) ;
  612. if (t != null)
  613. exc.initCause( t ) ;
  614. if (logger.isLoggable( Level.WARNING )) {
  615. Object[] parameters = null ;
  616. doLog( Level.WARNING, "POA.cantResolveRootPoa",
  617. parameters, POASystemException.class, exc ) ;
  618. }
  619. return exc ;
  620. }
  621. public INTERNAL cantResolveRootPoa( CompletionStatus cs ) {
  622. return cantResolveRootPoa( cs, null ) ;
  623. }
  624. public INTERNAL cantResolveRootPoa( Throwable t ) {
  625. return cantResolveRootPoa( CompletionStatus.COMPLETED_NO, t ) ;
  626. }
  627. public INTERNAL cantResolveRootPoa( ) {
  628. return cantResolveRootPoa( CompletionStatus.COMPLETED_NO, null ) ;
  629. }
  630. public static final int SERVANT_MUST_BE_LOCAL = SUNVMCID.value + 1021 ;
  631. public INTERNAL servantMustBeLocal( CompletionStatus cs, Throwable t ) {
  632. INTERNAL exc = new INTERNAL( SERVANT_MUST_BE_LOCAL, cs ) ;
  633. if (t != null)
  634. exc.initCause( t ) ;
  635. if (logger.isLoggable( Level.WARNING )) {
  636. Object[] parameters = null ;
  637. doLog( Level.WARNING, "POA.servantMustBeLocal",
  638. parameters, POASystemException.class, exc ) ;
  639. }
  640. return exc ;
  641. }
  642. public INTERNAL servantMustBeLocal( CompletionStatus cs ) {
  643. return servantMustBeLocal( cs, null ) ;
  644. }
  645. public INTERNAL servantMustBeLocal( Throwable t ) {
  646. return servantMustBeLocal( CompletionStatus.COMPLETED_NO, t ) ;
  647. }
  648. public INTERNAL servantMustBeLocal( ) {
  649. return servantMustBeLocal( CompletionStatus.COMPLETED_NO, null ) ;
  650. }
  651. public static final int NO_PROFILES_IN_IOR = SUNVMCID.value + 1022 ;
  652. public INTERNAL noProfilesInIor( CompletionStatus cs, Throwable t ) {
  653. INTERNAL exc = new INTERNAL( NO_PROFILES_IN_IOR, cs ) ;
  654. if (t != null)
  655. exc.initCause( t ) ;
  656. if (logger.isLoggable( Level.WARNING )) {
  657. Object[] parameters = null ;
  658. doLog( Level.WARNING, "POA.noProfilesInIor",
  659. parameters, POASystemException.class, exc ) ;
  660. }
  661. return exc ;
  662. }
  663. public INTERNAL noProfilesInIor( CompletionStatus cs ) {
  664. return noProfilesInIor( cs, null ) ;
  665. }
  666. public INTERNAL noProfilesInIor( Throwable t ) {
  667. return noProfilesInIor( CompletionStatus.COMPLETED_NO, t ) ;
  668. }
  669. public INTERNAL noProfilesInIor( ) {
  670. return noProfilesInIor( CompletionStatus.COMPLETED_NO, null ) ;
  671. }
  672. public static final int AOM_ENTRY_DEC_ZERO = SUNVMCID.value + 1023 ;
  673. public INTERNAL aomEntryDecZero( CompletionStatus cs, Throwable t ) {
  674. INTERNAL exc = new INTERNAL( AOM_ENTRY_DEC_ZERO, cs ) ;
  675. if (t != null)
  676. exc.initCause( t ) ;
  677. if (logger.isLoggable( Level.WARNING )) {
  678. Object[] parameters = null ;
  679. doLog( Level.WARNING, "POA.aomEntryDecZero",
  680. parameters, POASystemException.class, exc ) ;
  681. }
  682. return exc ;
  683. }
  684. public INTERNAL aomEntryDecZero( CompletionStatus cs ) {
  685. return aomEntryDecZero( cs, null ) ;
  686. }
  687. public INTERNAL aomEntryDecZero( Throwable t ) {
  688. return aomEntryDecZero( CompletionStatus.COMPLETED_NO, t ) ;
  689. }
  690. public INTERNAL aomEntryDecZero( ) {
  691. return aomEntryDecZero( CompletionStatus.COMPLETED_NO, null ) ;
  692. }
  693. public static final int ADD_POA_INACTIVE = SUNVMCID.value + 1024 ;
  694. public INTERNAL addPoaInactive( CompletionStatus cs, Throwable t ) {
  695. INTERNAL exc = new INTERNAL( ADD_POA_INACTIVE, cs ) ;
  696. if (t != null)
  697. exc.initCause( t ) ;
  698. if (logger.isLoggable( Level.WARNING )) {
  699. Object[] parameters = null ;
  700. doLog( Level.WARNING, "POA.addPoaInactive",
  701. parameters, POASystemException.class, exc ) ;
  702. }
  703. return exc ;
  704. }
  705. public INTERNAL addPoaInactive( CompletionStatus cs ) {
  706. return addPoaInactive( cs, null ) ;
  707. }
  708. public INTERNAL addPoaInactive( Throwable t ) {
  709. return addPoaInactive( CompletionStatus.COMPLETED_NO, t ) ;
  710. }
  711. public INTERNAL addPoaInactive( ) {
  712. return addPoaInactive( CompletionStatus.COMPLETED_NO, null ) ;
  713. }
  714. public static final int ILLEGAL_POA_STATE_TRANS = SUNVMCID.value + 1025 ;
  715. public INTERNAL illegalPoaStateTrans( CompletionStatus cs, Throwable t ) {
  716. INTERNAL exc = new INTERNAL( ILLEGAL_POA_STATE_TRANS, cs ) ;
  717. if (t != null)
  718. exc.initCause( t ) ;
  719. if (logger.isLoggable( Level.WARNING )) {
  720. Object[] parameters = null ;
  721. doLog( Level.WARNING, "POA.illegalPoaStateTrans",
  722. parameters, POASystemException.class, exc ) ;
  723. }
  724. return exc ;
  725. }
  726. public INTERNAL illegalPoaStateTrans( CompletionStatus cs ) {
  727. return illegalPoaStateTrans( cs, null ) ;
  728. }
  729. public INTERNAL illegalPoaStateTrans( Throwable t ) {
  730. return illegalPoaStateTrans( CompletionStatus.COMPLETED_NO, t ) ;
  731. }
  732. public INTERNAL illegalPoaStateTrans( ) {
  733. return illegalPoaStateTrans( CompletionStatus.COMPLETED_NO, null ) ;
  734. }
  735. public static final int UNEXPECTED_EXCEPTION = SUNVMCID.value + 1026 ;
  736. public INTERNAL unexpectedException( CompletionStatus cs, Throwable t, Object arg0) {
  737. INTERNAL exc = new INTERNAL( UNEXPECTED_EXCEPTION, cs ) ;
  738. if (t != null)
  739. exc.initCause( t ) ;
  740. if (logger.isLoggable( Level.WARNING )) {
  741. Object[] parameters = new Object[1] ;
  742. parameters[0] = arg0 ;
  743. doLog( Level.WARNING, "POA.unexpectedException",
  744. parameters, POASystemException.class, exc ) ;
  745. }
  746. return exc ;
  747. }
  748. public INTERNAL unexpectedException( CompletionStatus cs, Object arg0) {
  749. return unexpectedException( cs, null, arg0 ) ;
  750. }
  751. public INTERNAL unexpectedException( Throwable t, Object arg0) {
  752. return unexpectedException( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  753. }
  754. public INTERNAL unexpectedException( Object arg0) {
  755. return unexpectedException( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  756. }
  757. ///////////////////////////////////////////////////////////
  758. // NO_IMPLEMENT
  759. ///////////////////////////////////////////////////////////
  760. public static final int SINGLE_THREAD_NOT_SUPPORTED = SUNVMCID.value + 1001 ;
  761. public NO_IMPLEMENT singleThreadNotSupported( CompletionStatus cs, Throwable t ) {
  762. NO_IMPLEMENT exc = new NO_IMPLEMENT( SINGLE_THREAD_NOT_SUPPORTED, cs ) ;
  763. if (t != null)
  764. exc.initCause( t ) ;
  765. if (logger.isLoggable( Level.WARNING )) {
  766. Object[] parameters = null ;
  767. doLog( Level.WARNING, "POA.singleThreadNotSupported",
  768. parameters, POASystemException.class, exc ) ;
  769. }
  770. return exc ;
  771. }
  772. public NO_IMPLEMENT singleThreadNotSupported( CompletionStatus cs ) {
  773. return singleThreadNotSupported( cs, null ) ;
  774. }
  775. public NO_IMPLEMENT singleThreadNotSupported( Throwable t ) {
  776. return singleThreadNotSupported( CompletionStatus.COMPLETED_NO, t ) ;
  777. }
  778. public NO_IMPLEMENT singleThreadNotSupported( ) {
  779. return singleThreadNotSupported( CompletionStatus.COMPLETED_NO, null ) ;
  780. }
  781. public static final int METHOD_NOT_IMPLEMENTED = SUNVMCID.value + 1002 ;
  782. public NO_IMPLEMENT methodNotImplemented( CompletionStatus cs, Throwable t ) {
  783. NO_IMPLEMENT exc = new NO_IMPLEMENT( METHOD_NOT_IMPLEMENTED, cs ) ;
  784. if (t != null)
  785. exc.initCause( t ) ;
  786. if (logger.isLoggable( Level.WARNING )) {
  787. Object[] parameters = null ;
  788. doLog( Level.WARNING, "POA.methodNotImplemented",
  789. parameters, POASystemException.class, exc ) ;
  790. }
  791. return exc ;
  792. }
  793. public NO_IMPLEMENT methodNotImplemented( CompletionStatus cs ) {
  794. return methodNotImplemented( cs, null ) ;
  795. }
  796. public NO_IMPLEMENT methodNotImplemented( Throwable t ) {
  797. return methodNotImplemented( CompletionStatus.COMPLETED_NO, t ) ;
  798. }
  799. public NO_IMPLEMENT methodNotImplemented( ) {
  800. return methodNotImplemented( CompletionStatus.COMPLETED_NO, null ) ;
  801. }
  802. ///////////////////////////////////////////////////////////
  803. // OBJ_ADAPTER
  804. ///////////////////////////////////////////////////////////
  805. public static final int POA_LOOKUP_ERROR = SUNVMCID.value + 1001 ;
  806. public OBJ_ADAPTER poaLookupError( CompletionStatus cs, Throwable t ) {
  807. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_LOOKUP_ERROR, cs ) ;
  808. if (t != null)
  809. exc.initCause( t ) ;
  810. if (logger.isLoggable( Level.WARNING )) {
  811. Object[] parameters = null ;
  812. doLog( Level.WARNING, "POA.poaLookupError",
  813. parameters, POASystemException.class, exc ) ;
  814. }
  815. return exc ;
  816. }
  817. public OBJ_ADAPTER poaLookupError( CompletionStatus cs ) {
  818. return poaLookupError( cs, null ) ;
  819. }
  820. public OBJ_ADAPTER poaLookupError( Throwable t ) {
  821. return poaLookupError( CompletionStatus.COMPLETED_NO, t ) ;
  822. }
  823. public OBJ_ADAPTER poaLookupError( ) {
  824. return poaLookupError( CompletionStatus.COMPLETED_NO, null ) ;
  825. }
  826. public static final int POA_INACTIVE = SUNVMCID.value + 1002 ;
  827. public OBJ_ADAPTER poaInactive( CompletionStatus cs, Throwable t ) {
  828. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_INACTIVE, cs ) ;
  829. if (t != null)
  830. exc.initCause( t ) ;
  831. if (logger.isLoggable( Level.FINE )) {
  832. Object[] parameters = null ;
  833. doLog( Level.FINE, "POA.poaInactive",
  834. parameters, POASystemException.class, exc ) ;
  835. }
  836. return exc ;
  837. }
  838. public OBJ_ADAPTER poaInactive( CompletionStatus cs ) {
  839. return poaInactive( cs, null ) ;
  840. }
  841. public OBJ_ADAPTER poaInactive( Throwable t ) {
  842. return poaInactive( CompletionStatus.COMPLETED_NO, t ) ;
  843. }
  844. public OBJ_ADAPTER poaInactive( ) {
  845. return poaInactive( CompletionStatus.COMPLETED_NO, null ) ;
  846. }
  847. public static final int POA_NO_SERVANT_MANAGER = SUNVMCID.value + 1003 ;
  848. public OBJ_ADAPTER poaNoServantManager( CompletionStatus cs, Throwable t ) {
  849. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_NO_SERVANT_MANAGER, cs ) ;
  850. if (t != null)
  851. exc.initCause( t ) ;
  852. if (logger.isLoggable( Level.WARNING )) {
  853. Object[] parameters = null ;
  854. doLog( Level.WARNING, "POA.poaNoServantManager",
  855. parameters, POASystemException.class, exc ) ;
  856. }
  857. return exc ;
  858. }
  859. public OBJ_ADAPTER poaNoServantManager( CompletionStatus cs ) {
  860. return poaNoServantManager( cs, null ) ;
  861. }
  862. public OBJ_ADAPTER poaNoServantManager( Throwable t ) {
  863. return poaNoServantManager( CompletionStatus.COMPLETED_NO, t ) ;
  864. }
  865. public OBJ_ADAPTER poaNoServantManager( ) {
  866. return poaNoServantManager( CompletionStatus.COMPLETED_NO, null ) ;
  867. }
  868. public static final int POA_NO_DEFAULT_SERVANT = SUNVMCID.value + 1004 ;
  869. public OBJ_ADAPTER poaNoDefaultServant( CompletionStatus cs, Throwable t ) {
  870. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_NO_DEFAULT_SERVANT, cs ) ;
  871. if (t != null)
  872. exc.initCause( t ) ;
  873. if (logger.isLoggable( Level.WARNING )) {
  874. Object[] parameters = null ;
  875. doLog( Level.WARNING, "POA.poaNoDefaultServant",
  876. parameters, POASystemException.class, exc ) ;
  877. }
  878. return exc ;
  879. }
  880. public OBJ_ADAPTER poaNoDefaultServant( CompletionStatus cs ) {
  881. return poaNoDefaultServant( cs, null ) ;
  882. }
  883. public OBJ_ADAPTER poaNoDefaultServant( Throwable t ) {
  884. return poaNoDefaultServant( CompletionStatus.COMPLETED_NO, t ) ;
  885. }
  886. public OBJ_ADAPTER poaNoDefaultServant( ) {
  887. return poaNoDefaultServant( CompletionStatus.COMPLETED_NO, null ) ;
  888. }
  889. public static final int POA_SERVANT_NOT_UNIQUE = SUNVMCID.value + 1005 ;
  890. public OBJ_ADAPTER poaServantNotUnique( CompletionStatus cs, Throwable t ) {
  891. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_SERVANT_NOT_UNIQUE, cs ) ;
  892. if (t != null)
  893. exc.initCause( t ) ;
  894. if (logger.isLoggable( Level.WARNING )) {
  895. Object[] parameters = null ;
  896. doLog( Level.WARNING, "POA.poaServantNotUnique",
  897. parameters, POASystemException.class, exc ) ;
  898. }
  899. return exc ;
  900. }
  901. public OBJ_ADAPTER poaServantNotUnique( CompletionStatus cs ) {
  902. return poaServantNotUnique( cs, null ) ;
  903. }
  904. public OBJ_ADAPTER poaServantNotUnique( Throwable t ) {
  905. return poaServantNotUnique( CompletionStatus.COMPLETED_NO, t ) ;
  906. }
  907. public OBJ_ADAPTER poaServantNotUnique( ) {
  908. return poaServantNotUnique( CompletionStatus.COMPLETED_NO, null ) ;
  909. }
  910. public static final int POA_WRONG_POLICY = SUNVMCID.value + 1006 ;
  911. public OBJ_ADAPTER poaWrongPolicy( CompletionStatus cs, Throwable t ) {
  912. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_WRONG_POLICY, cs ) ;
  913. if (t != null)
  914. exc.initCause( t ) ;
  915. if (logger.isLoggable( Level.WARNING )) {
  916. Object[] parameters = null ;
  917. doLog( Level.WARNING, "POA.poaWrongPolicy",
  918. parameters, POASystemException.class, exc ) ;
  919. }
  920. return exc ;
  921. }
  922. public OBJ_ADAPTER poaWrongPolicy( CompletionStatus cs ) {
  923. return poaWrongPolicy( cs, null ) ;
  924. }
  925. public OBJ_ADAPTER poaWrongPolicy( Throwable t ) {
  926. return poaWrongPolicy( CompletionStatus.COMPLETED_NO, t ) ;
  927. }
  928. public OBJ_ADAPTER poaWrongPolicy( ) {
  929. return poaWrongPolicy( CompletionStatus.COMPLETED_NO, null ) ;
  930. }
  931. public static final int FINDPOA_ERROR = SUNVMCID.value + 1007 ;
  932. public OBJ_ADAPTER findpoaError( CompletionStatus cs, Throwable t ) {
  933. OBJ_ADAPTER exc = new OBJ_ADAPTER( FINDPOA_ERROR, cs ) ;
  934. if (t != null)
  935. exc.initCause( t ) ;
  936. if (logger.isLoggable( Level.WARNING )) {
  937. Object[] parameters = null ;
  938. doLog( Level.WARNING, "POA.findpoaError",
  939. parameters, POASystemException.class, exc ) ;
  940. }
  941. return exc ;
  942. }
  943. public OBJ_ADAPTER findpoaError( CompletionStatus cs ) {
  944. return findpoaError( cs, null ) ;
  945. }
  946. public OBJ_ADAPTER findpoaError( Throwable t ) {
  947. return findpoaError( CompletionStatus.COMPLETED_NO, t ) ;
  948. }
  949. public OBJ_ADAPTER findpoaError( ) {
  950. return findpoaError( CompletionStatus.COMPLETED_NO, null ) ;
  951. }
  952. public static final int POA_SERVANT_ACTIVATOR_LOOKUP_FAILED = SUNVMCID.value + 1009 ;
  953. public OBJ_ADAPTER poaServantActivatorLookupFailed( CompletionStatus cs, Throwable t ) {
  954. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_SERVANT_ACTIVATOR_LOOKUP_FAILED, cs ) ;
  955. if (t != null)
  956. exc.initCause( t ) ;
  957. if (logger.isLoggable( Level.WARNING )) {
  958. Object[] parameters = null ;
  959. doLog( Level.WARNING, "POA.poaServantActivatorLookupFailed",
  960. parameters, POASystemException.class, exc ) ;
  961. }
  962. return exc ;
  963. }
  964. public OBJ_ADAPTER poaServantActivatorLookupFailed( CompletionStatus cs ) {
  965. return poaServantActivatorLookupFailed( cs, null ) ;
  966. }
  967. public OBJ_ADAPTER poaServantActivatorLookupFailed( Throwable t ) {
  968. return poaServantActivatorLookupFailed( CompletionStatus.COMPLETED_NO, t ) ;
  969. }
  970. public OBJ_ADAPTER poaServantActivatorLookupFailed( ) {
  971. return poaServantActivatorLookupFailed( CompletionStatus.COMPLETED_NO, null ) ;
  972. }
  973. public static final int POA_BAD_SERVANT_MANAGER = SUNVMCID.value + 1010 ;
  974. public OBJ_ADAPTER poaBadServantManager( CompletionStatus cs, Throwable t ) {
  975. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_BAD_SERVANT_MANAGER, cs ) ;
  976. if (t != null)
  977. exc.initCause( t ) ;
  978. if (logger.isLoggable( Level.WARNING )) {
  979. Object[] parameters = null ;
  980. doLog( Level.WARNING, "POA.poaBadServantManager",
  981. parameters, POASystemException.class, exc ) ;
  982. }
  983. return exc ;
  984. }
  985. public OBJ_ADAPTER poaBadServantManager( CompletionStatus cs ) {
  986. return poaBadServantManager( cs, null ) ;
  987. }
  988. public OBJ_ADAPTER poaBadServantManager( Throwable t ) {
  989. return poaBadServantManager( CompletionStatus.COMPLETED_NO, t ) ;
  990. }
  991. public OBJ_ADAPTER poaBadServantManager( ) {
  992. return poaBadServantManager( CompletionStatus.COMPLETED_NO, null ) ;
  993. }
  994. public static final int POA_SERVANT_LOCATOR_LOOKUP_FAILED = SUNVMCID.value + 1011 ;
  995. public OBJ_ADAPTER poaServantLocatorLookupFailed( CompletionStatus cs, Throwable t ) {
  996. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_SERVANT_LOCATOR_LOOKUP_FAILED, cs ) ;
  997. if (t != null)
  998. exc.initCause( t ) ;
  999. if (logger.isLoggable( Level.WARNING )) {
  1000. Object[] parameters = null ;
  1001. doLog( Level.WARNING, "POA.poaServantLocatorLookupFailed",
  1002. parameters, POASystemException.class, exc ) ;
  1003. }
  1004. return exc ;
  1005. }
  1006. public OBJ_ADAPTER poaServantLocatorLookupFailed( CompletionStatus cs ) {
  1007. return poaServantLocatorLookupFailed( cs, null ) ;
  1008. }
  1009. public OBJ_ADAPTER poaServantLocatorLookupFailed( Throwable t ) {
  1010. return poaServantLocatorLookupFailed( CompletionStatus.COMPLETED_NO, t ) ;
  1011. }
  1012. public OBJ_ADAPTER poaServantLocatorLookupFailed( ) {
  1013. return poaServantLocatorLookupFailed( CompletionStatus.COMPLETED_NO, null ) ;
  1014. }
  1015. public static final int POA_UNKNOWN_POLICY = SUNVMCID.value + 1012 ;
  1016. public OBJ_ADAPTER poaUnknownPolicy( CompletionStatus cs, Throwable t ) {
  1017. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_UNKNOWN_POLICY, cs ) ;
  1018. if (t != null)
  1019. exc.initCause( t ) ;
  1020. if (logger.isLoggable( Level.WARNING )) {
  1021. Object[] parameters = null ;
  1022. doLog( Level.WARNING, "POA.poaUnknownPolicy",
  1023. parameters, POASystemException.class, exc ) ;
  1024. }
  1025. return exc ;
  1026. }
  1027. public OBJ_ADAPTER poaUnknownPolicy( CompletionStatus cs ) {
  1028. return poaUnknownPolicy( cs, null ) ;
  1029. }
  1030. public OBJ_ADAPTER poaUnknownPolicy( Throwable t ) {
  1031. return poaUnknownPolicy( CompletionStatus.COMPLETED_NO, t ) ;
  1032. }
  1033. public OBJ_ADAPTER poaUnknownPolicy( ) {
  1034. return poaUnknownPolicy( CompletionStatus.COMPLETED_NO, null ) ;
  1035. }
  1036. public static final int POA_NOT_FOUND = SUNVMCID.value + 1013 ;
  1037. public OBJ_ADAPTER poaNotFound( CompletionStatus cs, Throwable t ) {
  1038. OBJ_ADAPTER exc = new OBJ_ADAPTER( POA_NOT_FOUND, cs ) ;
  1039. if (t != null)
  1040. exc.initCause( t ) ;
  1041. if (logger.isLoggable( Level.WARNING )) {
  1042. Object[] parameters = null ;
  1043. doLog( Level.WARNING, "POA.poaNotFound",
  1044. parameters, POASystemException.class, exc ) ;
  1045. }
  1046. return exc ;
  1047. }
  1048. public OBJ_ADAPTER poaNotFound( CompletionStatus cs ) {
  1049. return poaNotFound( cs, null ) ;
  1050. }
  1051. public OBJ_ADAPTER poaNotFound( Throwable t ) {
  1052. return poaNotFound( CompletionStatus.COMPLETED_NO, t ) ;
  1053. }
  1054. public OBJ_ADAPTER poaNotFound( ) {
  1055. return poaNotFound( CompletionStatus.COMPLETED_NO, null ) ;
  1056. }
  1057. public static final int SERVANT_LOOKUP = SUNVMCID.value + 1014 ;
  1058. public OBJ_ADAPTER servantLookup( CompletionStatus cs, Throwable t ) {
  1059. OBJ_ADAPTER exc = new OBJ_ADAPTER( SERVANT_LOOKUP, cs ) ;
  1060. if (t != null)
  1061. exc.initCause( t ) ;
  1062. if (logger.isLoggable( Level.WARNING )) {
  1063. Object[] parameters = null ;
  1064. doLog( Level.WARNING, "POA.servantLookup",
  1065. parameters, POASystemException.class, exc ) ;
  1066. }
  1067. return exc ;
  1068. }
  1069. public OBJ_ADAPTER servantLookup( CompletionStatus cs ) {
  1070. return servantLookup( cs, null ) ;
  1071. }
  1072. public OBJ_ADAPTER servantLookup( Throwable t ) {
  1073. return servantLookup( CompletionStatus.COMPLETED_NO, t ) ;
  1074. }
  1075. public OBJ_ADAPTER servantLookup( ) {
  1076. return servantLookup( CompletionStatus.COMPLETED_NO, null ) ;
  1077. }
  1078. public static final int LOCAL_SERVANT_LOOKUP = SUNVMCID.value + 1015 ;
  1079. public OBJ_ADAPTER localServantLookup( CompletionStatus cs, Throwable t ) {
  1080. OBJ_ADAPTER exc = new OBJ_ADAPTER( LOCAL_SERVANT_LOOKUP, cs ) ;
  1081. if (t != null)
  1082. exc.initCause( t ) ;
  1083. if (logger.isLoggable( Level.WARNING )) {
  1084. Object[] parameters = null ;
  1085. doLog( Level.WARNING, "POA.localServantLookup",
  1086. parameters, POASystemException.class, exc ) ;
  1087. }
  1088. return exc ;
  1089. }
  1090. public OBJ_ADAPTER localServantLookup( CompletionStatus cs ) {
  1091. return localServantLookup( cs, null ) ;
  1092. }
  1093. public OBJ_ADAPTER localServantLookup( Throwable t ) {
  1094. return localServantLookup( CompletionStatus.COMPLETED_NO, t ) ;
  1095. }
  1096. public OBJ_ADAPTER localServantLookup( ) {
  1097. return localServantLookup( CompletionStatus.COMPLETED_NO, null ) ;
  1098. }
  1099. public static final int SERVANT_MANAGER_BAD_TYPE = SUNVMCID.value + 1016 ;
  1100. public OBJ_ADAPTER servantManagerBadType( CompletionStatus cs, Throwable t ) {
  1101. OBJ_ADAPTER exc = new OBJ_ADAPTER( SERVANT_MANAGER_BAD_TYPE, cs ) ;
  1102. if (t != null)
  1103. exc.initCause( t ) ;
  1104. if (logger.isLoggable( Level.WARNING )) {
  1105. Object[] parameters = null ;
  1106. doLog( Level.WARNING, "POA.servantManagerBadType",
  1107. parameters, POASystemException.class, exc ) ;
  1108. }
  1109. return exc ;
  1110. }
  1111. public OBJ_ADAPTER servantManagerBadType( CompletionStatus cs ) {
  1112. return servantManagerBadType( cs, null ) ;
  1113. }
  1114. public OBJ_ADAPTER servantManagerBadType( Throwable t ) {
  1115. return servantManagerBadType( CompletionStatus.COMPLETED_NO, t ) ;
  1116. }
  1117. public OBJ_ADAPTER servantManagerBadType( ) {
  1118. return servantManagerBadType( CompletionStatus.COMPLETED_NO, null ) ;
  1119. }
  1120. public static final int DEFAULT_POA_NOT_POAIMPL = SUNVMCID.value + 1017 ;
  1121. public OBJ_ADAPTER defaultPoaNotPoaimpl( CompletionStatus cs, Throwable t ) {
  1122. OBJ_ADAPTER exc = new OBJ_ADAPTER( DEFAULT_POA_NOT_POAIMPL, cs ) ;
  1123. if (t != null)
  1124. exc.initCause( t ) ;
  1125. if (logger.isLoggable( Level.WARNING )) {
  1126. Object[] parameters = null ;
  1127. doLog( Level.WARNING, "POA.defaultPoaNotPoaimpl",
  1128. parameters, POASystemException.class, exc ) ;
  1129. }
  1130. return exc ;
  1131. }
  1132. public OBJ_ADAPTER defaultPoaNotPoaimpl( CompletionStatus cs ) {
  1133. return defaultPoaNotPoaimpl( cs, null ) ;
  1134. }
  1135. public OBJ_ADAPTER defaultPoaNotPoaimpl( Throwable t ) {
  1136. return defaultPoaNotPoaimpl( CompletionStatus.COMPLETED_NO, t ) ;
  1137. }
  1138. public OBJ_ADAPTER defaultPoaNotPoaimpl( ) {
  1139. return defaultPoaNotPoaimpl( CompletionStatus.COMPLETED_NO, null ) ;
  1140. }
  1141. public static final int WRONG_POLICIES_FOR_THIS_OBJECT = SUNVMCID.value + 1018 ;
  1142. public OBJ_ADAPTER wrongPoliciesForThisObject( CompletionStatus cs, Throwable t ) {
  1143. OBJ_ADAPTER exc = new OBJ_ADAPTER( WRONG_POLICIES_FOR_THIS_OBJECT, cs ) ;
  1144. if (t != null)
  1145. exc.initCause( t ) ;
  1146. if (logger.isLoggable( Level.WARNING )) {
  1147. Object[] parameters = null ;
  1148. doLog( Level.WARNING, "POA.wrongPoliciesForThisObject",
  1149. parameters, POASystemException.class, exc ) ;
  1150. }
  1151. return exc ;
  1152. }
  1153. public OBJ_ADAPTER wrongPoliciesForThisObject( CompletionStatus cs ) {
  1154. return wrongPoliciesForThisObject( cs, null ) ;
  1155. }
  1156. public OBJ_ADAPTER wrongPoliciesForThisObject( Throwable t ) {
  1157. return wrongPoliciesForThisObject( CompletionStatus.COMPLETED_NO, t ) ;
  1158. }
  1159. public OBJ_ADAPTER wrongPoliciesForThisObject( ) {
  1160. return wrongPoliciesForThisObject( CompletionStatus.COMPLETED_NO, null ) ;
  1161. }
  1162. public static final int THIS_OBJECT_SERVANT_NOT_ACTIVE = SUNVMCID.value + 1019 ;
  1163. public OBJ_ADAPTER thisObjectServantNotActive( CompletionStatus cs, Throwable t ) {
  1164. OBJ_ADAPTER exc = new OBJ_ADAPTER( THIS_OBJECT_SERVANT_NOT_ACTIVE, cs ) ;
  1165. if (t != null)
  1166. exc.initCause( t ) ;
  1167. if (logger.isLoggable( Level.WARNING )) {
  1168. Object[] parameters = null ;
  1169. doLog( Level.WARNING, "POA.thisObjectServantNotActive",
  1170. parameters, POASystemException.class, exc ) ;
  1171. }
  1172. return exc ;
  1173. }
  1174. public OBJ_ADAPTER thisObjectServantNotActive( CompletionStatus cs ) {
  1175. return thisObjectServantNotActive( cs, null ) ;
  1176. }
  1177. public OBJ_ADAPTER thisObjectServantNotActive( Throwable t ) {
  1178. return thisObjectServantNotActive( CompletionStatus.COMPLETED_NO, t ) ;
  1179. }
  1180. public OBJ_ADAPTER thisObjectServantNotActive( ) {
  1181. return thisObjectServantNotActive( CompletionStatus.COMPLETED_NO, null ) ;
  1182. }
  1183. public static final int THIS_OBJECT_WRONG_POLICY = SUNVMCID.value + 1020 ;
  1184. public OBJ_ADAPTER thisObjectWrongPolicy( CompletionStatus cs, Throwable t ) {
  1185. OBJ_ADAPTER exc = new OBJ_ADAPTER( THIS_OBJECT_WRONG_POLICY, cs ) ;
  1186. if (t != null)
  1187. exc.initCause( t ) ;
  1188. if (logger.isLoggable( Level.WARNING )) {
  1189. Object[] parameters = null ;
  1190. doLog( Level.WARNING, "POA.thisObjectWrongPolicy",
  1191. parameters, POASystemException.class, exc ) ;
  1192. }
  1193. return exc ;
  1194. }
  1195. public OBJ_ADAPTER thisObjectWrongPolicy( CompletionStatus cs ) {
  1196. return thisObjectWrongPolicy( cs, null ) ;
  1197. }
  1198. public OBJ_ADAPTER thisObjectWrongPolicy( Throwable t ) {
  1199. return thisObjectWrongPolicy( CompletionStatus.COMPLETED_NO, t ) ;
  1200. }
  1201. public OBJ_ADAPTER thisObjectWrongPolicy( ) {
  1202. return thisObjectWrongPolicy( CompletionStatus.COMPLETED_NO, null ) ;
  1203. }
  1204. public static final int NO_CONTEXT = SUNVMCID.value + 1021 ;
  1205. public OBJ_ADAPTER noContext( CompletionStatus cs, Throwable t ) {
  1206. OBJ_ADAPTER exc = new OBJ_ADAPTER( NO_CONTEXT, cs ) ;
  1207. if (t != null)
  1208. exc.initCause( t ) ;
  1209. if (logger.isLoggable( Level.FINE )) {
  1210. Object[] parameters = null ;
  1211. doLog( Level.FINE, "POA.noContext",
  1212. parameters, POASystemException.class, exc ) ;
  1213. }
  1214. return exc ;
  1215. }
  1216. public OBJ_ADAPTER noContext( CompletionStatus cs ) {
  1217. return noContext( cs, null ) ;
  1218. }
  1219. public OBJ_ADAPTER noContext( Throwable t ) {
  1220. return noContext( CompletionStatus.COMPLETED_NO, t ) ;
  1221. }
  1222. public OBJ_ADAPTER noContext( ) {
  1223. return noContext( CompletionStatus.COMPLETED_NO, null ) ;
  1224. }
  1225. public static final int INCARNATE_RETURNED_NULL = SUNVMCID.value + 1022 ;
  1226. public OBJ_ADAPTER incarnateReturnedNull( CompletionStatus cs, Throwable t ) {
  1227. OBJ_ADAPTER exc = new OBJ_ADAPTER( INCARNATE_RETURNED_NULL, cs ) ;
  1228. if (t != null)
  1229. exc.initCause( t ) ;
  1230. if (logger.isLoggable( Level.WARNING )) {
  1231. Object[] parameters = null ;
  1232. doLog( Level.WARNING, "POA.incarnateReturnedNull",
  1233. parameters, POASystemException.class, exc ) ;
  1234. }
  1235. return exc ;
  1236. }
  1237. public OBJ_ADAPTER incarnateReturnedNull( CompletionStatus cs ) {
  1238. return incarnateReturnedNull( cs, null ) ;
  1239. }
  1240. public OBJ_ADAPTER incarnateReturnedNull( Throwable t ) {
  1241. return incarnateReturnedNull( CompletionStatus.COMPLETED_NO, t ) ;
  1242. }
  1243. public OBJ_ADAPTER incarnateReturnedNull( ) {
  1244. return incarnateReturnedNull( CompletionStatus.COMPLETED_NO, null ) ;
  1245. }
  1246. ///////////////////////////////////////////////////////////
  1247. // INITIALIZE
  1248. ///////////////////////////////////////////////////////////
  1249. public static final int JTS_INIT_ERROR = SUNVMCID.value + 1001 ;
  1250. public INITIALIZE jtsInitError( CompletionStatus cs, Throwable t ) {
  1251. INITIALIZE exc = new INITIALIZE( JTS_INIT_ERROR, cs ) ;
  1252. if (t != null)
  1253. exc.initCause( t ) ;
  1254. if (logger.isLoggable( Level.WARNING )) {
  1255. Object[] parameters = null ;
  1256. doLog( Level.WARNING, "POA.jtsInitError",
  1257. parameters, POASystemException.class, exc ) ;
  1258. }
  1259. return exc ;
  1260. }
  1261. public INITIALIZE jtsInitError( CompletionStatus cs ) {
  1262. return jtsInitError( cs, null ) ;
  1263. }
  1264. public INITIALIZE jtsInitError( Throwable t ) {
  1265. return jtsInitError( CompletionStatus.COMPLETED_NO, t ) ;
  1266. }
  1267. public INITIALIZE jtsInitError( ) {
  1268. return jtsInitError( CompletionStatus.COMPLETED_NO, null ) ;
  1269. }
  1270. public static final int PERSISTENT_SERVERID_NOT_SET = SUNVMCID.value + 1002 ;
  1271. public INITIALIZE persistentServeridNotSet( CompletionStatus cs, Throwable t ) {
  1272. INITIALIZE exc = new INITIALIZE( PERSISTENT_SERVERID_NOT_SET, cs ) ;
  1273. if (t != null)
  1274. exc.initCause( t ) ;
  1275. if (logger.isLoggable( Level.WARNING )) {
  1276. Object[] parameters = null ;
  1277. doLog( Level.WARNING, "POA.persistentServeridNotSet",
  1278. parameters, POASystemException.class, exc ) ;
  1279. }
  1280. return exc ;
  1281. }
  1282. public INITIALIZE persistentServeridNotSet( CompletionStatus cs ) {
  1283. return persistentServeridNotSet( cs, null ) ;
  1284. }
  1285. public INITIALIZE persistentServeridNotSet( Throwable t ) {
  1286. return persistentServeridNotSet( CompletionStatus.COMPLETED_NO, t ) ;
  1287. }
  1288. public INITIALIZE persistentServeridNotSet( ) {
  1289. return persistentServeridNotSet( CompletionStatus.COMPLETED_NO, null ) ;
  1290. }
  1291. public static final int PERSISTENT_SERVERPORT_NOT_SET = SUNVMCID.value + 1003 ;
  1292. public INITIALIZE persistentServerportNotSet( CompletionStatus cs, Throwable t ) {
  1293. INITIALIZE exc = new INITIALIZE( PERSISTENT_SERVERPORT_NOT_SET, cs ) ;
  1294. if (t != null)
  1295. exc.initCause( t ) ;
  1296. if (logger.isLoggable( Level.WARNING )) {
  1297. Object[] parameters = null ;
  1298. doLog( Level.WARNING, "POA.persistentServerportNotSet",
  1299. parameters, POASystemException.class, exc ) ;
  1300. }
  1301. return exc ;
  1302. }
  1303. public INITIALIZE persistentServerportNotSet( CompletionStatus cs ) {
  1304. return persistentServerportNotSet( cs, null ) ;
  1305. }
  1306. public INITIALIZE persistentServerportNotSet( Throwable t ) {
  1307. return persistentServerportNotSet( CompletionStatus.COMPLETED_NO, t ) ;
  1308. }
  1309. public INITIALIZE persistentServerportNotSet( ) {
  1310. return persistentServerportNotSet( CompletionStatus.COMPLETED_NO, null ) ;
  1311. }
  1312. public static final int ORBD_ERROR = SUNVMCID.value + 1004 ;
  1313. public INITIALIZE orbdError( CompletionStatus cs, Throwable t ) {
  1314. INITIALIZE exc = new INITIALIZE( ORBD_ERROR, cs ) ;
  1315. if (t != null)
  1316. exc.initCause( t ) ;
  1317. if (logger.isLoggable( Level.WARNING )) {
  1318. Object[] parameters = null ;
  1319. doLog( Level.WARNING, "POA.orbdError",
  1320. parameters, POASystemException.class, exc ) ;
  1321. }
  1322. return exc ;
  1323. }
  1324. public INITIALIZE orbdError( CompletionStatus cs ) {
  1325. return orbdError( cs, null ) ;
  1326. }
  1327. public INITIALIZE orbdError( Throwable t ) {
  1328. return orbdError( CompletionStatus.COMPLETED_NO, t ) ;
  1329. }
  1330. public INITIALIZE orbdError( ) {
  1331. return orbdError( CompletionStatus.COMPLETED_NO, null ) ;
  1332. }
  1333. public static final int BOOTSTRAP_ERROR = SUNVMCID.value + 1005 ;
  1334. public INITIALIZE bootstrapError( CompletionStatus cs, Throwable t ) {
  1335. INITIALIZE exc = new INITIALIZE( BOOTSTRAP_ERROR, cs ) ;
  1336. if (t != null)
  1337. exc.initCause( t ) ;
  1338. if (logger.isLoggable( Level.WARNING )) {
  1339. Object[] parameters = null ;
  1340. doLog( Level.WARNING, "POA.bootstrapError",
  1341. parameters, POASystemException.class, exc ) ;
  1342. }
  1343. return exc ;
  1344. }
  1345. public INITIALIZE bootstrapError( CompletionStatus cs ) {
  1346. return bootstrapError( cs, null ) ;
  1347. }
  1348. public INITIALIZE bootstrapError( Throwable t ) {
  1349. return bootstrapError( CompletionStatus.COMPLETED_NO, t ) ;
  1350. }
  1351. public INITIALIZE bootstrapError( ) {
  1352. return bootstrapError( CompletionStatus.COMPLETED_NO, null ) ;
  1353. }
  1354. ///////////////////////////////////////////////////////////
  1355. // TRANSIENT
  1356. ///////////////////////////////////////////////////////////
  1357. public static final int POA_DISCARDING = SUNVMCID.value + 1001 ;
  1358. public TRANSIENT poaDiscarding( CompletionStatus cs, Throwable t ) {
  1359. TRANSIENT exc = new TRANSIENT( POA_DISCARDING, cs ) ;
  1360. if (t != null)
  1361. exc.initCause( t ) ;
  1362. if (logger.isLoggable( Level.FINE )) {
  1363. Object[] parameters = null ;
  1364. doLog( Level.FINE, "POA.poaDiscarding",
  1365. parameters, POASystemException.class, exc ) ;
  1366. }
  1367. return exc ;
  1368. }
  1369. public TRANSIENT poaDiscarding( CompletionStatus cs ) {
  1370. return poaDiscarding( cs, null ) ;
  1371. }
  1372. public TRANSIENT poaDiscarding( Throwable t ) {
  1373. return poaDiscarding( CompletionStatus.COMPLETED_NO, t ) ;
  1374. }
  1375. public TRANSIENT poaDiscarding( ) {
  1376. return poaDiscarding( CompletionStatus.COMPLETED_NO, null ) ;
  1377. }
  1378. ///////////////////////////////////////////////////////////
  1379. // UNKNOWN
  1380. ///////////////////////////////////////////////////////////
  1381. public static final int OTSHOOKEXCEPTION = SUNVMCID.value + 1001 ;
  1382. public UNKNOWN otshookexception( CompletionStatus cs, Throwable t ) {
  1383. UNKNOWN exc = new UNKNOWN( OTSHOOKEXCEPTION, cs ) ;
  1384. if (t != null)
  1385. exc.initCause( t ) ;
  1386. if (logger.isLoggable( Level.WARNING )) {
  1387. Object[] parameters = null ;
  1388. doLog( Level.WARNING, "POA.otshookexception",
  1389. parameters, POASystemException.class, exc ) ;
  1390. }
  1391. return exc ;
  1392. }
  1393. public UNKNOWN otshookexception( CompletionStatus cs ) {
  1394. return otshookexception( cs, null ) ;
  1395. }
  1396. public UNKNOWN otshookexception( Throwable t ) {
  1397. return otshookexception( CompletionStatus.COMPLETED_NO, t ) ;
  1398. }
  1399. public UNKNOWN otshookexception( ) {
  1400. return otshookexception( CompletionStatus.COMPLETED_NO, null ) ;
  1401. }
  1402. public static final int UNKNOWN_SERVER_EXCEPTION = SUNVMCID.value + 1002 ;
  1403. public UNKNOWN unknownServerException( CompletionStatus cs, Throwable t ) {
  1404. UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVER_EXCEPTION, cs ) ;
  1405. if (t != null)
  1406. exc.initCause( t ) ;
  1407. if (logger.isLoggable( Level.WARNING )) {
  1408. Object[] parameters = null ;
  1409. doLog( Level.WARNING, "POA.unknownServerException",
  1410. parameters, POASystemException.class, exc ) ;
  1411. }
  1412. return exc ;
  1413. }
  1414. public UNKNOWN unknownServerException( CompletionStatus cs ) {
  1415. return unknownServerException( cs, null ) ;
  1416. }
  1417. public UNKNOWN unknownServerException( Throwable t ) {
  1418. return unknownServerException( CompletionStatus.COMPLETED_NO, t ) ;
  1419. }
  1420. public UNKNOWN unknownServerException( ) {
  1421. return unknownServerException( CompletionStatus.COMPLETED_NO, null ) ;
  1422. }
  1423. public static final int UNKNOWN_SERVERAPP_EXCEPTION = SUNVMCID.value + 1003 ;
  1424. public UNKNOWN unknownServerappException( CompletionStatus cs, Throwable t ) {
  1425. UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVERAPP_EXCEPTION, cs ) ;
  1426. if (t != null)
  1427. exc.initCause( t ) ;
  1428. if (logger.isLoggable( Level.WARNING )) {
  1429. Object[] parameters = null ;
  1430. doLog( Level.WARNING, "POA.unknownServerappException",
  1431. parameters, POASystemException.class, exc ) ;
  1432. }
  1433. return exc ;
  1434. }
  1435. public UNKNOWN unknownServerappException( CompletionStatus cs ) {
  1436. return unknownServerappException( cs, null ) ;
  1437. }
  1438. public UNKNOWN unknownServerappException( Throwable t ) {
  1439. return unknownServerappException( CompletionStatus.COMPLETED_NO, t ) ;
  1440. }
  1441. public UNKNOWN unknownServerappException( ) {
  1442. return unknownServerappException( CompletionStatus.COMPLETED_NO, null ) ;
  1443. }
  1444. public static final int UNKNOWN_LOCALINVOCATION_ERROR = SUNVMCID.value + 1004 ;
  1445. public UNKNOWN unknownLocalinvocationError( CompletionStatus cs, Throwable t ) {
  1446. UNKNOWN exc = new UNKNOWN( UNKNOWN_LOCALINVOCATION_ERROR, cs ) ;
  1447. if (t != null)
  1448. exc.initCause( t ) ;
  1449. if (logger.isLoggable( Level.WARNING )) {
  1450. Object[] parameters = null ;
  1451. doLog( Level.WARNING, "POA.unknownLocalinvocationError",
  1452. parameters, POASystemException.class, exc ) ;
  1453. }
  1454. return exc ;
  1455. }
  1456. public UNKNOWN unknownLocalinvocationError( CompletionStatus cs ) {
  1457. return unknownLocalinvocationError( cs, null ) ;
  1458. }
  1459. public UNKNOWN unknownLocalinvocationError( Throwable t ) {
  1460. return unknownLocalinvocationError( CompletionStatus.COMPLETED_NO, t ) ;
  1461. }
  1462. public UNKNOWN unknownLocalinvocationError( ) {
  1463. return unknownLocalinvocationError( CompletionStatus.COMPLETED_NO, null ) ;
  1464. }
  1465. ///////////////////////////////////////////////////////////
  1466. // OBJECT_NOT_EXIST
  1467. ///////////////////////////////////////////////////////////
  1468. public static final int ADAPTER_ACTIVATOR_NONEXISTENT = SUNVMCID.value + 1001 ;
  1469. public OBJECT_NOT_EXIST adapterActivatorNonexistent( CompletionStatus cs, Throwable t ) {
  1470. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( ADAPTER_ACTIVATOR_NONEXISTENT, cs ) ;
  1471. if (t != null)
  1472. exc.initCause( t ) ;
  1473. if (logger.isLoggable( Level.WARNING )) {
  1474. Object[] parameters = null ;
  1475. doLog( Level.WARNING, "POA.adapterActivatorNonexistent",
  1476. parameters, POASystemException.class, exc ) ;
  1477. }
  1478. return exc ;
  1479. }
  1480. public OBJECT_NOT_EXIST adapterActivatorNonexistent( CompletionStatus cs ) {
  1481. return adapterActivatorNonexistent( cs, null ) ;
  1482. }
  1483. public OBJECT_NOT_EXIST adapterActivatorNonexistent( Throwable t ) {
  1484. return adapterActivatorNonexistent( CompletionStatus.COMPLETED_NO, t ) ;
  1485. }
  1486. public OBJECT_NOT_EXIST adapterActivatorNonexistent( ) {
  1487. return adapterActivatorNonexistent( CompletionStatus.COMPLETED_NO, null ) ;
  1488. }
  1489. public static final int ADAPTER_ACTIVATOR_FAILED = SUNVMCID.value + 1002 ;
  1490. public OBJECT_NOT_EXIST adapterActivatorFailed( CompletionStatus cs, Throwable t ) {
  1491. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( ADAPTER_ACTIVATOR_FAILED, cs ) ;
  1492. if (t != null)
  1493. exc.initCause( t ) ;
  1494. if (logger.isLoggable( Level.WARNING )) {
  1495. Object[] parameters = null ;
  1496. doLog( Level.WARNING, "POA.adapterActivatorFailed",
  1497. parameters, POASystemException.class, exc ) ;
  1498. }
  1499. return exc ;
  1500. }
  1501. public OBJECT_NOT_EXIST adapterActivatorFailed( CompletionStatus cs ) {
  1502. return adapterActivatorFailed( cs, null ) ;
  1503. }
  1504. public OBJECT_NOT_EXIST adapterActivatorFailed( Throwable t ) {
  1505. return adapterActivatorFailed( CompletionStatus.COMPLETED_NO, t ) ;
  1506. }
  1507. public OBJECT_NOT_EXIST adapterActivatorFailed( ) {
  1508. return adapterActivatorFailed( CompletionStatus.COMPLETED_NO, null ) ;
  1509. }
  1510. public static final int BAD_SKELETON = SUNVMCID.value + 1003 ;
  1511. public OBJECT_NOT_EXIST badSkeleton( CompletionStatus cs, Throwable t ) {
  1512. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( BAD_SKELETON, cs ) ;
  1513. if (t != null)
  1514. exc.initCause( t ) ;
  1515. if (logger.isLoggable( Level.WARNING )) {
  1516. Object[] parameters = null ;
  1517. doLog( Level.WARNING, "POA.badSkeleton",
  1518. parameters, POASystemException.class, exc ) ;
  1519. }
  1520. return exc ;
  1521. }
  1522. public OBJECT_NOT_EXIST badSkeleton( CompletionStatus cs ) {
  1523. return badSkeleton( cs, null ) ;
  1524. }
  1525. public OBJECT_NOT_EXIST badSkeleton( Throwable t ) {
  1526. return badSkeleton( CompletionStatus.COMPLETED_NO, t ) ;
  1527. }
  1528. public OBJECT_NOT_EXIST badSkeleton( ) {
  1529. return badSkeleton( CompletionStatus.COMPLETED_NO, null ) ;
  1530. }
  1531. public static final int NULL_SERVANT = SUNVMCID.value + 1004 ;
  1532. public OBJECT_NOT_EXIST nullServant( CompletionStatus cs, Throwable t ) {
  1533. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( NULL_SERVANT, cs ) ;
  1534. if (t != null)
  1535. exc.initCause( t ) ;
  1536. if (logger.isLoggable( Level.FINE )) {
  1537. Object[] parameters = null ;
  1538. doLog( Level.FINE, "POA.nullServant",
  1539. parameters, POASystemException.class, exc ) ;
  1540. }
  1541. return exc ;
  1542. }
  1543. public OBJECT_NOT_EXIST nullServant( CompletionStatus cs ) {
  1544. return nullServant( cs, null ) ;
  1545. }
  1546. public OBJECT_NOT_EXIST nullServant( Throwable t ) {
  1547. return nullServant( CompletionStatus.COMPLETED_NO, t ) ;
  1548. }
  1549. public OBJECT_NOT_EXIST nullServant( ) {
  1550. return nullServant( CompletionStatus.COMPLETED_NO, null ) ;
  1551. }
  1552. public static final int ADAPTER_DESTROYED = SUNVMCID.value + 1005 ;
  1553. public OBJECT_NOT_EXIST adapterDestroyed( CompletionStatus cs, Throwable t ) {
  1554. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( ADAPTER_DESTROYED, cs ) ;
  1555. if (t != null)
  1556. exc.initCause( t ) ;
  1557. if (logger.isLoggable( Level.WARNING )) {
  1558. Object[] parameters = null ;
  1559. doLog( Level.WARNING, "POA.adapterDestroyed",
  1560. parameters, POASystemException.class, exc ) ;
  1561. }
  1562. return exc ;
  1563. }
  1564. public OBJECT_NOT_EXIST adapterDestroyed( CompletionStatus cs ) {
  1565. return adapterDestroyed( cs, null ) ;
  1566. }
  1567. public OBJECT_NOT_EXIST adapterDestroyed( Throwable t ) {
  1568. return adapterDestroyed( CompletionStatus.COMPLETED_NO, t ) ;
  1569. }
  1570. public OBJECT_NOT_EXIST adapterDestroyed( ) {
  1571. return adapterDestroyed( CompletionStatus.COMPLETED_NO, null ) ;
  1572. }
  1573. }