public INITIALIZE cannotWriteOrbidDb(CompletionStatus cs, Throwable t) { INITIALIZE exc = new INITIALIZE(CANNOT_WRITE_ORBID_DB, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "ORBUTIL.cannotWriteOrbidDb", parameters, ORBUtilSystemException.class, exc); } return exc; }
public TypeCodeCompactor getTypeCodeCompactor() { if (bufferManager == null) { throw new INITIALIZE ("JacORB ORB Singleton not initialized"); } return typeCodeCompactor; }
/** * used from the POA * @return the basic adapter used by this ORB instance */ public org.jacorb.orb.BasicAdapter getBasicAdapter() { if ( basicAdapter == null ) { throw new INITIALIZE("Adapters not initialized; resolve RootPOA."); } return basicAdapter; }
public INITIALIZE getServerPortCalledBeforeEndpointsInitialized( CompletionStatus cs, Throwable t ) { INITIALIZE exc = new INITIALIZE( GET_SERVER_PORT_CALLED_BEFORE_ENDPOINTS_INITIALIZED, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.WARNING )) { Object[] parameters = null ; doLog( Level.WARNING, "ORBUTIL.getServerPortCalledBeforeEndpointsInitialized", parameters, ORBUtilSystemException.class, exc ) ; } return exc ; }
public IBufferManager getBufferManager() { if (bufferManager == null) { throw new INITIALIZE ("JacORB ORB Singleton not initialized"); } return bufferManager; }
public INITIALIZE jtsInitError(CompletionStatus cs, Throwable t) { INITIALIZE exc = new INITIALIZE(JTS_INIT_ERROR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "POA.jtsInitError", parameters, POASystemException.class, exc); } return exc; }
public TypeCodeCache getTypeCodeCache() { if (bufferManager == null) { throw new INITIALIZE ("JacORB ORB Singleton not initialized"); } return typeCodeCache; }
public INITIALIZE persistentServeridNotSet(CompletionStatus cs, Throwable t) { INITIALIZE exc = new INITIALIZE(PERSISTENT_SERVERID_NOT_SET, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "ORBUTIL.persistentServeridNotSet", parameters, ORBUtilSystemException.class, exc); } return exc; }
private org.omg.CORBA.Object resolve(String name) { try { return orb_.resolve_initial_references(name); } catch (org.omg.CORBA.ORBPackage.InvalidName ex) { throw new org.omg.CORBA.INITIALIZE("Initial reference not found: " + name); } }
public INITIALIZE bootstrapError( CompletionStatus cs, Throwable t ) { INITIALIZE exc = new INITIALIZE( BOOTSTRAP_ERROR, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.WARNING )) { Object[] parameters = null ; doLog( Level.WARNING, "POA.bootstrapError", parameters, POASystemException.class, exc ) ; } return exc ; }
private static ORB create_impl(String className) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); try { //ReflectUtil.checkPackageAccess(className); Class<org.omg.CORBA.ORB> orbBaseClass = org.omg.CORBA.ORB.class; Class<?> orbClass = Class.forName(className, true, cl).asSubclass(orbBaseClass); return (ORB)orbClass.newInstance(); } catch (Throwable ex) { SystemException systemException = new INITIALIZE( "can't instantiate default ORB implementation " + className); systemException.initCause(ex); throw systemException; } }
public INITIALIZE priorityRangeRestrict( CompletionStatus cs, Throwable t ) { INITIALIZE exc = new INITIALIZE( PRIORITY_RANGE_RESTRICT, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.WARNING )) { Object[] parameters = null ; doLog( Level.WARNING, "OMG.priorityRangeRestrict", parameters, OMGSystemException.class, exc ) ; } return exc ; }
public synchronized String[] listInitialServices() { // // The ORB destroys this object, so it's an initialization error // if this operation is called after ORB destruction // if (destroy_) throw new org.omg.CORBA.INITIALIZE(org.apache.yoko.orb.OB.MinorCodes .describeInitialize(org.apache.yoko.orb.OB.MinorCodes.MinorORBDestroyed), org.apache.yoko.orb.OB.MinorCodes.MinorORBDestroyed, org.omg.CORBA.CompletionStatus.COMPLETED_NO); String[] list = new String[services_.size()]; int i = 0; java.util.Enumeration e = services_.keys(); while (e.hasMoreElements()) list[i++] = (String) e.nextElement(); return list; }
public INITIALIZE cannotWriteOrbidDb( CompletionStatus cs, Throwable t ) { INITIALIZE exc = new INITIALIZE( CANNOT_WRITE_ORBID_DB, cs ) ; if (t != null) exc.initCause( t ) ; if (logger.isLoggable( Level.WARNING )) { Object[] parameters = null ; doLog( Level.WARNING, "ORBUTIL.cannotWriteOrbidDb", parameters, ORBUtilSystemException.class, exc ) ; } return exc ; }
/** * call post_init on ORBInitializers */ private void interceptorPostInit(List<ORBInitializer> orb_initializers, ORBInitInfo info) { for (Iterator<ORBInitializer> i = orb_initializers.iterator(); i.hasNext();) { ORBInitializer initializer = i.next(); try { initializer.post_init (info); } catch (Exception e) { if (failOnORBInitializerError) { logger.error(initializer.getClass().getName() + ": aborting due to error during ORBInitializer::post_init", e); throw new INITIALIZE(e.toString()); } logger.warn(initializer.getClass().getName() + ": ignoring error during ORBInitializer::post_init. the ORBInitializer will be removed from the current configuration", e); } } }
/** * Lazy initialization routine for the Stub delegate. Normally, you'd do this * in the constructor. Unfortunately, Java serialization will not call the * constructor for Serializable classes, so we need to ensure we have one * regardless of how/when we are called. */ private void initializeDelegate() { if (delegate == null) { try { delegate = (StubDelegate)delegateClass.newInstance(); } catch (Exception e) { throw (org.omg.CORBA.INITIALIZE)new org.omg.CORBA.INITIALIZE( "Can not create Stub delegate: " + delegateClass.getName()).initCause(e); } } } }
/** * call pre_init on ORBInitializers */ private void interceptorPreInit(List<ORBInitializer> orb_initializers, final ORBInitInfo info) { for (Iterator<ORBInitializer> i = orb_initializers.iterator(); i.hasNext();) { final ORBInitializer initializer = i.next(); try { initializer.pre_init (info); } catch (Exception e) { if (failOnORBInitializerError) { logger.error(initializer.getClass().getName() + ": aborting due to error during ORBInitializer::pre_init", e); throw new INITIALIZE(e.toString()); } logger.warn(initializer.getClass().getName() + ": ignoring error during ORBInitializer::pre_init. the ORBInitializer will be removed from the current configuration", e); i.remove(); } } }
public INITIALIZE orbdError(CompletionStatus cs, Throwable t) { INITIALIZE exc = new INITIALIZE(ORBD_ERROR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "POA.orbdError", parameters, POASystemException.class, exc); } return exc; }
private synchronized void _getPOACurrent() { if (_current == null) { try { _current = org.omg.PortableServer.CurrentHelper.narrow(orb.resolve_initial_references("POACurrent")); } catch (Exception e) { throw new org.omg.CORBA.INITIALIZE(e.toString()); } } }
public INITIALIZE cannotCreateOrbidDb(CompletionStatus cs, Throwable t) { INITIALIZE exc = new INITIALIZE(CANNOT_CREATE_ORBID_DB, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "ORBUTIL.cannotCreateOrbidDb", parameters, ORBUtilSystemException.class, exc); } return exc; }