public Exception run() { return stubStrategy.readException(ex.getId(), finalIn1); } });
/** * Marshals into an output stream an exception thrown by the method. * * @param out a CDR output stream * @param e the exception to be written. */ public void writeException(OutputStream out, Throwable e) { int len = excepWriters.length; for (int i = 0; i < len; i++) { if (excepWriters[i].getExceptionClass().isInstance(e)) { excepWriters[i].write(out, e); return; } } throw new UnknownException(e); }
protected void reconnect(Object object) throws IOException { if (object instanceof ObjectImpl) { try { // Check we are still connected ObjectImpl objectImpl = (ObjectImpl) object; objectImpl._get_delegate(); } catch (BAD_OPERATION e) { try { // Reconnect final Stub stub = (Stub) object; final ORB orb = (ORB) new InitialContext().lookup("java:comp/ORB"); stub.connect(orb); } catch (NamingException ne) { throw EjbLogger.ROOT_LOGGER.failedToLookupORB(); } } } else { throw EjbLogger.ROOT_LOGGER.notAnObjectImpl(object.getClass()); } }
/** * @deprecated Deprecated by CORBA 2.3. */ public org.omg.CORBA.InterfaceDef _get_interface() { return _get_delegate().get_interface(this); }
public org.omg.CORBA.Object _set_policy_overrides( org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add) { return _get_delegate().set_policy_overrides(this, policies, set_add); }
public org.omg.CORBA.portable.InputStream _invoke( org.omg.CORBA.portable.OutputStream output) throws ApplicationException, RemarshalException { return _get_delegate().invoke(this, output); }
handler.createReply(); if (op.isNonVoid()) { op.writeRetval(out, retVal); handler.createExceptionReply(); op.writeException(out, e);
public boolean _validate_connection( org.omg.CORBA.PolicyListHolder inconsistent_policies ) { return _get_delegate().validate_connection( this, inconsistent_policies ) ; }
/** * Checks whether this <code>ObjectImpl</code> object is implemented * by a local servant. If so, local invocation API's may be used. * * @return <code>true</code> if this object is implemented by a local * servant; <code>false</code> otherwise */ public boolean _is_local() { return _get_delegate().is_local(this); }
public org.omg.CORBA.portable.OutputStream _request(String operation, boolean responseExpected) { return _get_delegate().request(this, operation, responseExpected); }
/** * Retrieves a list of the domain managers for this * <code>ObjectImpl</code> object. * * @return an array containing the <code>DomainManager</code> * objects for this instance of <code>ObjectImpl</code> */ public org.omg.CORBA.DomainManager[] _get_domain_managers() { return _get_delegate().get_domain_managers(this); }
/** * Releases the resources associated with this <code>ObjectImpl</code> object. */ public void _release() { _get_delegate().release(this); }
/** * Checks whether the server object for this <code>ObjectImpl</code> * object has been destroyed. * * @return <code>true</code> if the ORB knows authoritatively that the * server object does not exist; <code>false</code> otherwise */ public boolean _non_existent() { return _get_delegate().non_existent(this); }
in = (InputStream) ex.getInputStream(); final InputStream finalIn1 = in; throw doPrivileged(new PrivilegedAction<Exception>() {
/** *@deprecated Deprecated by CORBA 2.3 */ public org.omg.CORBA.InterfaceDef _get_interface() { return _get_delegate().get_interface(this); }
public org.omg.CORBA.Object _set_policy_override( org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add) { return _get_delegate().set_policy_overrides(this, policies, set_add); }
public org.omg.CORBA.portable.InputStream _invoke( org.omg.CORBA.portable.OutputStream output) throws ApplicationException, RemarshalException { return _get_delegate().invoke(this, output); }
public boolean _validate_connection( org.omg.CORBA.PolicyListHolder inconsistent_policies ) { return _get_delegate().validate_connection( this, inconsistent_policies ) ; }
/** *@deprecated Deprecated by CORBA 2.3 */ public org.omg.CORBA.InterfaceDef _get_interface() { return _get_delegate().get_interface(this); }
public org.omg.CORBA.Object _set_policy_overrides( org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add) { return _get_delegate().set_policy_overrides(this, policies, set_add); }