Package org.omg.CORBA

Examples of org.omg.CORBA.NO_PERMISSION


          + get_uid());
    }

    if (ArjunaTransactionImple._checkedTransactions && !checkAccess())
    {
      throw new NO_PERMISSION(0, CompletionStatus.COMPLETED_NO);
    }

    int status = super.status();

    if ((status == ActionStatus.RUNNING)
View Full Code Here


          + get_uid());
    }

    if (ArjunaTransactionImple._checkedTransactions && !checkAccess())
    {
      throw new NO_PERMISSION(0, CompletionStatus.COMPLETED_NO);
    }

    int outcome = super.status();

    if ((outcome == ActionStatus.RUNNING)
View Full Code Here

          + get_uid());
    }

    if (ArjunaTransactionImple._checkedTransactions && !checkAccess())
    {
      throw new NO_PERMISSION(0, CompletionStatus.COMPLETED_NO);
    }

    int status = super.status();

    if ((status == ActionStatus.RUNNING)
View Full Code Here

                                        logger); //no locate reply

            logger.debug("About to reject request because connection is not SSL.");

            SystemExceptionHelper.write( out,
                                         new NO_PERMISSION( 3, CompletionStatus.COMPLETED_NO ));

            try
            {
                connection.sendReply( out );
            }
View Full Code Here

            if (logger.isDebugEnabled())
                logger.debug("About to reject request because connection is not SSL.");

            SystemExceptionHelper.write( out,
                                         new NO_PERMISSION( 3, CompletionStatus.COMPLETED_NO ));

            try
            {
                connection.sendReply( out );
            }
View Full Code Here

/* 460 */     if ((e instanceof MarshalException))
/* 461 */       throw new MARSHAL(e.toString());
/* 462 */     if ((e instanceof NoSuchObjectException))
/* 463 */       throw new OBJECT_NOT_EXIST(e.toString());
/* 464 */     if ((e instanceof AccessException))
/* 465 */       throw new NO_PERMISSION(e.toString());
/* 466 */     if ((e instanceof TransactionRequiredException))
/* 467 */       throw new TRANSACTION_REQUIRED(e.toString());
/* 468 */     if ((e instanceof TransactionRolledbackException))
/* 469 */       throw new TRANSACTION_ROLLEDBACK(e.toString());
/* 470 */     if ((e instanceof InvalidTransactionException))
View Full Code Here

/*     */       {
/* 375 */         long contextId = contextBody.in_context_msg().client_context_id;
/*     */
/* 377 */         threadLocal.sasReply = createMsgCtxError(contextId, 4);
/*     */
/* 380 */         throw new NO_PERMISSION("SAS context does not exist.");
/*     */       }
/* 382 */       if (contextBody.discriminator() == 0)
/*     */       {
/* 384 */         EstablishContext message = contextBody.establish_msg();
/* 385 */         threadLocal.contextId = message.client_context_id;
/* 386 */         threadLocal.sasContextReceived = true;
/*     */
/* 388 */         if ((message.client_authentication_token != null) && (message.client_authentication_token.length > 0))
/*     */         {
/* 391 */           if (traceEnabled)
/* 392 */             log.trace("received client authentication token");
/* 393 */           InitialContextToken authToken = CSIv2Util.decodeInitialContextToken(message.client_authentication_token, this.codec);
/*     */
/* 397 */           if (authToken == null)
/*     */           {
/* 399 */             threadLocal.sasReply = createMsgCtxError(message.client_context_id, 2);
/*     */
/* 403 */             throw new NO_PERMISSION("Could not decode initial context token.");
/*     */           }
/*     */
/* 406 */           threadLocal.incomingUsername = authToken.username;
/* 407 */           threadLocal.incomingPassword = authToken.password;
/* 408 */           threadLocal.incomingTargetName = CSIv2Util.decodeGssExportedName(authToken.target_name);
/*     */
/* 410 */           if (threadLocal.incomingTargetName == null)
/*     */           {
/* 412 */             threadLocal.sasReply = createMsgCtxError(message.client_context_id, 2);
/*     */
/* 416 */             throw new NO_PERMISSION("Could not decode target name in initial context token.");
/*     */           }
/*     */
/* 421 */           threadLocal.authenticationTokenReceived = true;
/*     */         }
/* 423 */         if (message.identity_token != null)
/*     */         {
/* 425 */           if (traceEnabled)
/* 426 */             log.trace("received identity token");
/* 427 */           threadLocal.incomingIdentity = message.identity_token;
/* 428 */           if (message.identity_token.discriminator() == 2)
/*     */           {
/* 432 */             Any a = this.codec.decode_value(message.identity_token.principal_name(), GSS_NT_ExportedNameHelper.type());
/*     */
/* 435 */             byte[] encodedName = GSS_NT_ExportedNameHelper.extract(a);
/*     */
/* 438 */             threadLocal.incomingPrincipalName = CSIv2Util.decodeGssExportedName(encodedName);
/*     */
/* 441 */             if (threadLocal.incomingPrincipalName == null)
/*     */             {
/* 443 */               threadLocal.sasReply = createMsgCtxError(message.client_context_id, 2);
/*     */
/* 447 */               throw new NO_PERMISSION("Could not decode incoming principal name.");
/*     */             }
/*     */           }
/*     */         }
/*     */
/* 452 */         threadLocal.sasReply = (threadLocal.contextId == 0L ? msgCtx0Accepted : createMsgCtxAccepted(threadLocal.contextId));
View Full Code Here

/*     */       }
/*     */
/* 304 */       if (contextBody.discriminator() == 4)
/*     */       {
/* 307 */         log.warn("Unexpected ContextError in SAS reply");
/* 308 */         throw new NO_PERMISSION("Unexpected ContextError in SAS reply", 1245904897, CompletionStatus.COMPLETED_YES);
/*     */       }
/*     */
/*     */     }
/*     */     catch (BAD_PARAM e)
/*     */     {
View Full Code Here

/*     */       }
/*     */
/* 234 */       if (contextBody.discriminator() == 4)
/*     */       {
/* 237 */         log.warn("Unexpected ContextError in SAS reply");
/* 238 */         throw new NO_PERMISSION("Unexpected ContextError in SAS reply", 1245904897, CompletionStatus.COMPLETED_YES);
/*     */       }
/*     */
/*     */     }
/*     */     catch (BAD_PARAM e)
/*     */     {
View Full Code Here

            } catch (NoSuchObjectException e) {
                log.debug("NoSuchObjectException", e);
                throw new OBJECT_NOT_EXIST(e.toString()).initCause(e);
            } catch (AccessException e) {
                log.debug("AccessException", e);
                throw new NO_PERMISSION(e.toString()).initCause(e);
            } catch (MarshalException e) {
                log.debug("MarshalException", e);
                throw new MARSHAL(e.toString()).initCause(e);
            } catch (RemoteException e) {
                log.debug("RemoteException", e);
View Full Code Here

TOP

Related Classes of org.omg.CORBA.NO_PERMISSION

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.