Package org.omg.CORBA.portable

Examples of org.omg.CORBA.portable.UnknownException


            }
            throw new BAD_OPERATION ();
        } catch ( SystemException ex ) {
            throw ex;
        } catch ( Throwable ex ) {
            throw new UnknownException ( ex );
        }
    }
View Full Code Here


                    (UEInfoServiceContext)
                    contexts.get(UEInfoServiceContext.SERVICE_CONTEXT_ID);

                if (usc != null) {
                    Throwable unknown = usc.getUE() ;
                    UnknownException ue = new UnknownException(unknown);

                    // Invoke Portable Interceptors with receive_exception:
                    exception = orb.getPIHandler().invokeClientPIEndingPoint(
                        ReplyMessage.SYSTEM_EXCEPTION, ue );
View Full Code Here

/*     */         }
/*     */       }
/*     */       catch (Exception e)
/*     */       {
/* 242 */         this.logger.error("Error getting EJBObject id", e);
/* 243 */         throw new UnknownException(e);
/*     */       }
/*     */
/* 247 */       ENCFactory.pushContextId(this.containerName);
/*     */       org.omg.CORBA_2_3.portable.OutputStream out;
/*     */       try
View Full Code Here

/*     */
/*     */       }
/*     */       catch (Exception e)
/*     */       {
/* 391 */         this.logger.error("Error getting EJBObject id", e);
/* 392 */         throw new UnknownException(e);
/*     */       }
/*     */
/* 395 */       Invocation inv = new Invocation(id, op.getMethod(), arguments, tx, null, null);
/*     */
/* 401 */       inv.setValue(InvocationKey.INVOKER_PROXY_BINDING, "iiop", PayloadKey.AS_IS);
View Full Code Here

/* 171 */       if (this.excepWriters[i].getExceptionClass().isInstance(e)) {
/* 172 */         this.excepWriters[i].write(out, e);
/* 173 */         return;
/*     */       }
/*     */     }
/* 176 */     throw new UnknownException(e);
/*     */   }
View Full Code Here

            } catch (MarshalException e) {
                log.debug("MarshalException", e);
                throw (SystemException)new MARSHAL(e.toString()).initCause(e);
            } catch (RemoteException e) {
                log.debug("RemoteException", e);
                throw (SystemException)new UnknownException(e).initCause(e);
            } catch (RuntimeException e) {
                log.debug("RuntimeException", e);
                RemoteException remoteException = new RemoteException(e.getClass().getName() + " thrown from " + ejbDeployment.getDeploymentId() + ": " + e.getMessage(), e);
                throw new UnknownException(remoteException);
            } catch (Error e) {
                log.debug("Error", e);
                RemoteException remoteException = new RemoteException(e.getClass().getName() + " thrown from " + ejbDeployment.getDeploymentId() + ": " + e.getMessage(), e);
                throw new UnknownException(remoteException);
            } catch (Throwable e) {
                log.warn("Unexpected throwable", e);
                throw (SystemException)new UNKNOWN("Unknown exception type " + e.getClass().getName() + ": " + e.getMessage()).initCause(e);
            }
View Full Code Here

                if (object instanceof Serializable && !object.getClass().isArray()) {
                    try {
                        object = copyObj(Thread.currentThread().getContextClassLoader(), object);
                    } catch (Exception e) {
                        log.debug("Exception in result copy", e);
                        throw new UnknownException(e);
                    }
                }

                if (type == Object.class || type == Serializable.class) {
                    javax.rmi.CORBA.Util.writeAny(out, object);
View Full Code Here

            }
            throw new BAD_OPERATION();
        } catch (SystemException ex) {
            throw ex;
        } catch (Throwable ex) {
            throw new UnknownException(ex);
        }
    }
View Full Code Here

            }
            throw new BAD_OPERATION();
        } catch (SystemException ex) {
            throw ex;
        } catch (Throwable ex) {
            throw new UnknownException(ex);
        }
    }
View Full Code Here

            }
            throw new BAD_OPERATION();
        } catch (SystemException ex) {
            throw ex;
        } catch (Throwable ex) {
            throw new UnknownException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.portable.UnknownException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.