Package org.omg.CORBA

Examples of org.omg.CORBA.UNKNOWN


            Object id = ReferenceData.extractServantId(oid);
            return (Servant)transientServantMap.get(id);
         }
         catch (Exception e) {
            log.trace("Unexpected exception in preinvoke:", e);
            throw new UNKNOWN(e.toString());
         }
      }
View Full Code Here


            Object id = ReferenceData.extractServantId(oid);
            return (Servant)persistentServantMap.get(id);
         }
         catch (Exception e) {
            log.trace("Unexpected exception in preinvoke:", e);
            throw new UNKNOWN(e.toString());
         }
      }
View Full Code Here

                log.debug("Error", e);
                RemoteException remoteException = new RemoteException(e.getClass().getName() + " thrown from " + ejbDeployment.getDeploymentId() + ": " + e.getMessage());
                throw new UnknownException(remoteException);
            } catch (Throwable e) {
                log.warn("Unexpected throwable", e);
                throw new UNKNOWN("Unknown exception type " + e.getClass().getName() + ": " + e.getMessage());
            }

            // creat the output stream
            org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();
View Full Code Here

            } catch (MarshalException e) {
                log.debug("MarshalException", e);
                throw new MARSHAL(e.toString());
            } catch (RemoteException e) {
                log.debug("RemoteException", e);
                throw new UNKNOWN(e.toString());
            } finally {
                Thread.currentThread().setContextClassLoader(savedCL);
            }
        }
View Full Code Here

                { "TransactionImple.enlistResource - XAResource.start", XAHelper.printXAErrorCode(e), xid });
              }

              markRollbackOnly();

              throw new UNKNOWN();
            }
          }
        }
      }
      else
View Full Code Here

                                       // transaction
                                       // already
                                       // terminated.
    case ActionStatus.INVALID:
    case ActionStatus.CLEANUP:
      throw new UNKNOWN(ExceptionCodes.UNKNOWN_EXCEPTION,
          CompletionStatus.COMPLETED_MAYBE);
    }
  }
View Full Code Here

      /*
       * Cannot just rethrow exception, so throw UNKNOWN.
       */

      throw new UNKNOWN(e3.toString(), ExceptionCodes.UNKNOWN_EXCEPTION,
          CompletionStatus.COMPLETED_NO);
    }

    if (jtsLogger.logger.isDebugEnabled())
    {
View Full Code Here

        coord = parentHandle.get_coordinator();
        corbaRec = createOTSRecord(false, r, coord);
      }
      catch (Unavailable ex)
      {
        throw new UNKNOWN(ExceptionCodes.INACTIVE_TRANSACTION,
            CompletionStatus.COMPLETED_NO); // what else to raise?
      }

      coord = null;
View Full Code Here

        // during the pre-commmit phase. This is required for
        // JTA 1.1 Synchronization ordering behaviour
        if(_currentRecord != null) {
          Comparable c = (Comparable)otsSync;
          if(c.compareTo(_currentRecord) != 1) {
            throw new UNKNOWN(ExceptionCodes.ADD_FAILED, CompletionStatus.COMPLETED_NO);
          }
        }

                if (!_synchs.add(otsSync))
        {
          otsSync = null;
          throw new UNKNOWN(ExceptionCodes.ADD_FAILED,
              CompletionStatus.COMPLETED_NO); // what else to
                              // raise?
        }
      }
      else
View Full Code Here

    {
      return propagationContext();
    }
    catch (Exception e)
    {
      throw new UNKNOWN(e.toString(), ExceptionCodes.UNKNOWN_EXCEPTION,
        CompletionStatus.COMPLETED_NO);
    }
  }
View Full Code Here

TOP

Related Classes of org.omg.CORBA.UNKNOWN

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.