Package java.rmi.activation

Examples of java.rmi.activation.ActivationException


        /* start an activatable lookup service simulation */
        if (lookupServiceID == null) {
            lookupServiceID = lookupProxy.getServiceID();
        }
        if( (lookupProxy == null) || (lookupServiceID == null) ) {
            throw new ActivationException("failure creating lookup service");
        }
  // the code block was a noop for unicastPort > 0, because
  // setUnicastPort does nothing if the argument is unicastPort
//          if(unicastPort > 0) {
//              /* Change the locator port for this lookup service. */
 
View Full Code Here


        waitStartup();
        ActivationGroupID agid = new ActivationGroupID(this);
        ActivationGroupInfo agi = new ActivationGroupInfo(agid, agdesc);
        if (groupInfoByGroupId.containsKey(agid)) {
            // rmi.2E=This group is already registered.
            throw new ActivationException(Messages.getString("rmi.2E")); //$NON-NLS-1$
        }
        groupInfoByGroupId.put(agid, agi);
        if (!restoreLock) {
            writeDelta(Delta.PUT, "group", agid, agdesc); //$NON-NLS-1$
            // rmi.log.45=Delta was saved:
View Full Code Here

        if (agi == null) {
            // rmi.2F=Group is not registered: {0}
            throw new UnknownGroupException(Messages.getString("rmi.2F", gID)); //$NON-NLS-1$
        } else if (agi.isActive()) {
            // rmi.30=Group is already active: {0}
            throw new ActivationException(Messages.getString("rmi.30", gID)); //$NON-NLS-1$
        }

        // rmi.log.49=ready to execute agi.active()
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.49")); //$NON-NLS-1$
View Full Code Here

                activationInstantiator = null;
                activateGroup();
                return oi.activate(activationInstantiator);
            }
            // rmi.35=Exception:
            throw new ActivationException(Messages.getString("rmi.35"), signalException); //$NON-NLS-1$
        }
View Full Code Here

        // rmi.log.83=ActivationGroupImpl: ActivationGroupImpl.newInstance started.
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.83")); //$NON-NLS-1$
        // Checking that we try to activate object in correct group.
        if (!groupID.equals(adesc.getGroupID())) {
            // rmi.36=Attempt to activate object from different group.
            throw new ActivationException(Messages.getString("rmi.36")); //$NON-NLS-1$
        }

        if (isGroupActive == false) {
            // rmi.37=Attempt to activate object in inactive group.
            throw new ActivationException(Messages.getString("rmi.37")); //$NON-NLS-1$
        }

        /**
         */

 
View Full Code Here

            System.out.println("KEKEKE");
            JoinColumn joinColumn = joinTablaAnnotation.joinColumns()[0];
            JoinColumn inverseJoinColumn = joinTablaAnnotation.inverseJoinColumns()[0];
         
            if(joinColumn == null) {
                throw new ActivationException("Exception join column can`t be null ! Please check your data!");
                        }
                        // TODO refactor this
                        if(joinColumn.referencedColumnName() != null || !joinColumn.referencedColumnName().equals("")){
              joinColumnOne = joinColumn.referencedColumnName();
              if(joinColumn.columnDefinition() != null || !joinColumn.columnDefinition().equals("")){
                joinColumnDefinition = joinColumn.columnDefinition();
              }
            }

            if(inverseJoinColumn != null){
                            throw new ActivationException("Exception inverse join column can`t be null! Please check your data!");
                        }
                        // TODO refactor this
            if(inverseJoinColumn.referencedColumnName() != null || !inverseJoinColumn.referencedColumnName().equals("")){
              joinColumnTwo = inverseJoinColumn.referencedColumnName();
              if(inverseJoinColumn.columnDefinition() != null || !inverseJoinColumn.columnDefinition().equals("")){
                inverseJoinColumDefiniton = inverseJoinColumn.columnDefinition();
              }
            }
          }
         
          ParameterizedType stringListType = (ParameterizedType) neededField.getGenericType();
            Class<?> stringListClass = (Class<?>) stringListType.getActualTypeArguments()[0];
            System.out.println(stringListClass.getName());
           
            Class inverseJoinColumnClass = Class.forName(stringListClass.getName());
           
            Class tableName = Class.forName("javax.persistence.Table");
          Table table =( Table ) inverseJoinColumnClass.getAnnotation(tableName);
         
          if(table == null && (table.name() == null || StringUtils.isBlank(table.name()))) {
                        throw new ActivationException("Exception! There is no @Table or name par. is empty! Please check your data !");
                    }

//          if(table.name() != null || !table.name().equals("")){
            inverseJoinColumnTableName = table.name();
            System.out.println(inverseJoinColumnTableName);
View Full Code Here

                // nothing
            }
        }

        if (shuttingDown == true) {
            throw new ActivationException(
                "activation system shutting down");
        }
    }
View Full Code Here

            } catch (InvocationTargetException e) {
                Throwable targetException = e.getTargetException();
                if (targetException instanceof SecurityException) {
                    throw (SecurityException) targetException;
                } else {
                    throw new ActivationException(
                        execPolicyMethod.getName() + ": unexpected exception",
                        e);
                }
            } catch (Exception e) {
                throw new ActivationException(
                    execPolicyMethod.getName() + ": unexpected exception", e);
            }
        }
    }
View Full Code Here

                    system.shutdown();
                } catch (RemoteException ignore) {
                    // can't happen
                }
                // warn the client of the original update problem
                throw new ActivationException("log snapshot failed", e);
            }
        }
    }
View Full Code Here

        {
            checkShutdown();
            RegistryImpl.checkAccess("ActivationSystem.setActivationDesc");

            if (!getGroupID(id).equals(desc.getGroupID())) {
                throw new ActivationException(
                    "ActivationDesc contains wrong group");
            }
            return getGroupEntry(id).setActivationDesc(id, desc, true);
        }
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationException

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.