Examples of ServiceUnavailableException


Examples of org.jboss.invocation.ServiceUnavailableException

         }
      }

      if(failoverAuthorized == false)
      {
         throw new ServiceUnavailableException("Service unavailable (failover not possible inside a user transaction) for " +
                                               invocation.getObjectName() + " calling method " + invocation.getMethod(),
                                               lastException);
      }
      else
      {
         throw new ServiceUnavailableException("Service unavailable for " +
                                               invocation.getObjectName() + " calling method " + invocation.getMethod(),
                                               lastException);
      }
   }
View Full Code Here

Examples of org.jboss.invocation.ServiceUnavailableException

         failoverCounter ++;
      }
     
      // if we get here this means list was exhausted
      String msg = failoverAuthorized ? "Service unavailable." : "Service unavailable (failover not possible inside a user transaction).";
      throw new ServiceUnavailableException(msg, lastException);
   }
View Full Code Here

Examples of org.jivesoftware.openfire.muc.ServiceUnavailableException

        LocalMUCRole joinRole = null;
        lock.writeLock().lock();
        try {
            // If the room has a limit of max user then check if the limit has been reached
            if (isDestroyed || (getMaxUsers() > 0 && getOccupantsCount() >= getMaxUsers())) {
                throw new ServiceUnavailableException();
            }
            boolean isOwner = owners.contains(user.getAddress().toBareJID());
            // If the room is locked and this user is not an owner raise a RoomLocked exception
            if (isLocked()) {
                if (!isOwner) {
View Full Code Here

Examples of org.oasisopen.sca.ServiceUnavailableException

                break;
            }
        }

        if (component == null) {
            throw new ServiceUnavailableException("The service " + name + " has not been contributed to the domain");
        }
       
        return ((RuntimeComponent)component).getServiceReference(businessInterface, serviceName);
    }
View Full Code Here

Examples of org.oasisopen.sca.ServiceUnavailableException

    private static Object getStub(NamingEndpoint namingEndpoint, InterfaceInfo ejbInterface) {
        try {
            stub = EJBObjectFactory.createStub(namingEndpoint, ejbInterface);
        } catch (NamingException e) {
            exception = new ServiceUnavailableException(e);
            e.printStackTrace();
            throw (ServiceUnavailableException)exception;
        } catch (CreateException e) {
            exception = new ServiceUnavailableException(e);
            throw (ServiceUnavailableException)exception;
        } catch (RemoteException e) {
            exception = new ServiceRuntimeException(e);
            throw (ServiceRuntimeException)exception;
        }
View Full Code Here

Examples of org.oasisopen.sca.ServiceUnavailableException

                break;
            }
        }

        if (component == null) {
            throw new ServiceUnavailableException("The service " + name + " has not been contributed to the domain");
        }

        return ((RuntimeComponent)component).getServiceReference(businessInterface, serviceName);
    }
View Full Code Here

Examples of org.oasisopen.sca.ServiceUnavailableException

                result = chain == null ? null : new LocalSCABindingInvoker(chain, operation, passByValue, endpointReference, extensionPoints, bindingTransformer);
            }
        }

        if (result == null) {
            throw new ServiceUnavailableException("Unable to create SCA binding invoker for local target " + endpointReference.getComponent().getName() + " reference "
                    + endpointReference.getReference().getName() + " (bindingURI=" + endpointReference.getBinding().getURI() + " operation=" + operation.getName() + ")");
        }

        return result;
    }
View Full Code Here

Examples of org.oasisopen.sca.ServiceUnavailableException

            return getDistributedProvider().createInvoker(operation);
        } else {
            RuntimeWire wire = reference.getRuntimeWire(binding);
            Invoker invoker = getInvoker(wire, operation);
            if (invoker == null) {
                throw new ServiceUnavailableException("Unable to create SCA binding invoker for local target " + component.getName()
                    + " reference "
                    + reference.getName()
                    + " (bindingURI="
                    + binding.getURI()
                    + " operation="
View Full Code Here

Examples of org.oasisopen.sca.ServiceUnavailableException

            // this method should locate a viable target service and complete the
            // endpoint configuration
            endpointResolver.resolve();
           
            if (endpoint.isUnresolved()){
                throw new ServiceUnavailableException("Unable to resolve service for component: " +
                        endpoint.getSourceComponent().getName() +
                        " reference: " +
                        endpoint.getSourceComponentReference().getName() +
                        " target: " +
                        endpoint.getTargetName());
View Full Code Here

Examples of org.osgi.service.blueprint.container.ServiceUnavailableException

                  }
                 
                  if (failed) {
                    if (metadata.getAvailability() == ServiceReferenceMetadata.AVAILABILITY_MANDATORY) {
                        LOGGER.info("Timeout expired when waiting for mandatory OSGi service reference {}", getOsgiFilter());
                        throw new ServiceUnavailableException("Timeout expired when waiting for mandatory OSGi service reference: " + getOsgiFilter(), getOsgiFilter());
                    } else {
                        LOGGER.info("No matching service for optional OSGi service reference {}", getOsgiFilter());
                        throw new ServiceUnavailableException("No matching service for optional OSGi service reference: " + getOsgiFilter(), getOsgiFilter());
                    }
                  }
                } else {
                    throw new ServiceUnavailableException("The Blueprint container is being or has been destroyed: " + getOsgiFilter(), getOsgiFilter());
                }
            } else {
           
              if (trackedService == null) {
                trackedService = getServiceSecurely(trackedServiceReference);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.