Examples of ServerException


Examples of net.fortytwo.sesametools.ldserver.ServerException

            component.getDefaultHost().attach("/stream/relatedTweets", new RelatedTweetsResource());
            component.getDefaultHost().attach("/stream/relatedTags", new RelatedHashtagsResource());

            server.start();
        } catch (Throwable e) {
            throw new ServerException(e);
        }
    }
View Full Code Here

Examples of nexj.core.rpc.ServerException

         {
            throw e;
         }
         catch (Exception e)
         {
            throw new ServerException("err.rpc.soap.serialize", e);
         }
      }
   }
View Full Code Here

Examples of org.andromda.core.server.ServerException

     */
    public void start(final Configuration configuration)
    {
        if (configuration == null)
        {
            throw new ServerException("You must specify a valid 'configuration' in order to start the server");
        }
        final org.andromda.core.configuration.Server serverConfiguration = configuration.getServer();
        if (serverConfiguration == null)
        {
            AndroMDALogger.warn(
View Full Code Here

Examples of org.apache.hadoop.lib.server.ServerException

    String hostnameKey = getName() + HTTP_HOSTNAME;
    String portKey = getName() + HTTP_PORT;
    String host = System.getProperty(hostnameKey);
    String port = System.getProperty(portKey);
    if (host == null) {
      throw new ServerException(ServerException.ERROR.S13, hostnameKey);
    }
    if (port == null) {
      throw new ServerException(ServerException.ERROR.S13, portKey);
    }
    try {
      InetAddress add = InetAddress.getByName(hostnameKey);
      int portNum = Integer.parseInt(port);
      return new InetSocketAddress(add, portNum);
    } catch (UnknownHostException ex) {
      throw new ServerException(ServerException.ERROR.S14, ex.toString(), ex);
    }
  }
View Full Code Here

Examples of org.directwebremoting.extend.ServerException

            }
            return map;
        }
        catch (FileSizeLimitExceededException fsle)
        {
            throw new ServerException("One or more files is larger (" + fsle.getActualSize() + " bytes) than the configured limit (" + fsle.getPermittedSize() + " bytes).");
        }
        catch (IOException ex)
        {
            throw new ServerException("Upload failed: " + ex.getMessage(), ex);
        }
        catch (FileUploadException ex)
        {
            throw new ServerException("Upload failed: " + ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.exolab.jms.server.ServerException

            _orb = ORBFactory.createORB(_authenticator, properties);
            if (!_connectURI.equals(_exportURI)) {
                _orb.addRoute(_exportURI, _connectURI);
            }
        } catch (RemoteException exception) {
            throw new ServerException(
                    "Failed to create ORB for URI:" + _exportURI, exception);
        }
        try {
            LocalRegistry registry = _orb.getRegistry();

            RemoteServerConnectionFactory server =
                    new RemoteServerConnectionFactory(_factory, _orb,
                                                      _exportURI);
            registry.bind("server", server.getProxy());
            if (_log.isInfoEnabled()) {
                _log.info("Server accepting connections on " + _exportURI);
            }

            if (_config.getServerConfiguration().getEmbeddedJNDI()) {
                NamingProvider provider = _names.getNamingProvider();
                RemoteNamingProvider jndi = new RemoteNamingProvider(provider,
                                                                     _orb,
                                                                     _connector.getJNDIExportURI());
                registry.bind("jndi", jndi.getProxy());
                if (_log.isInfoEnabled()) {
                    _log.info("JNDI service accepting connections on "
                              + _connector.getJNDIExportURI());
                }
            }

            JmsAdminServerImpl admin = new JmsAdminServerImpl(_manager,
                                                              _orb,
                                                              _connector.getAdminExportURI());
            registry.bind("admin", admin.getProxy());
            if (_log.isInfoEnabled()) {
                _log.info("Admin service accepting connections on "
                          + _connector.getAdminExportURI());
            }

            registry.setReadOnly(true);
        } catch (Exception exception) {
            throw new ServerException(
                    "Failed to initialise the server interface", exception);
        }
    }
View Full Code Here

Examples of org.exolab.jms.server.ServerException

     */
    public void close() throws ServerException {
        try {
            _orb.shutdown();
        } catch (RemoteException exception) {
            throw new ServerException(exception.getMessage(), exception);
        }
    }
View Full Code Here

Examples of org.fcrepo.server.errors.ServerException

                if (w != null) {
                    releaseWriteLock(obj.getPid());
                }

                if (e instanceof ServerException) {
                    ServerException se = (ServerException) e;
                    throw se;
                }
                throw new GeneralException("Ingest failed: " +
                        e.getClass().getName(), e);
            } finally {
View Full Code Here

Examples of org.mbhcare.shared.exception.ServerException

        }
        List<Diagnosis> diagnosis = (List<Diagnosis>)query.executeWithArray(objs);       
        result = parseEntityDisplay(diagnosis);
       
      } catch(Exception e) {
        throw new ServerException(e.toString());
      } finally {
        pm.close();
      }
    }   
    return result;
View Full Code Here

Examples of org.openid4java.server.ServerException

            os.write(response.getBytes());
            os.close();
        }
        catch (IOException e)
        {
            throw new ServerException("Error generating direct verification response", e);
        }

        return null;
    }
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.