Examples of ErrorMessage


Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

                updateState,
                stateUpdates.cellComponentServerStateSet);
        ResponseMessage response = selectedCell.sendCellMessageAndWait(msg);
        if (response instanceof ErrorMessage) {
            // XXX Probably should get a success/failed here!
            ErrorMessage em = (ErrorMessage) response;
            LOGGER.log(Level.WARNING, "Error applugin values: " +
                    em.getErrorMessage(), em.getErrorCause());

            JOptionPane.showMessageDialog(this, em.getErrorMessage(),
                    "Error applying values", JOptionPane.ERROR_MESSAGE);
        }

        // Clear any existing updates store by this class
        stateUpdates.clear();
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

    @Override
    public void responseReceived(ResponseMessage response) {
        if (response instanceof OKMessage) {
            onSuccess(response.getMessageID());
        } else if (response instanceof ErrorMessage) {
            ErrorMessage em = (ErrorMessage) response;
            onFailure(response.getMessageID(), em.getErrorMessage(),
                      em.getErrorCause());
        } else {
            onFailure(response.getMessageID(), "Unexpected message type: " +
                      response.getClass(), null);
        }
       
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

            logger.log(Level.WARNING, "Error extracting message from server",
                       eme);

            // if possible, send an error reply to the client
            if (eme.getMessageID() != null) {
                message = new ErrorMessage(eme.getMessageID(),
                                           eme.getMessage(),
                                           eme.getCause());
                clientID = eme.getClientID();
            } else {
                return;
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

                rm = sendAndWait(new ClientConnectMessage(cellID));
               
                if (rm instanceof ClientConnectResponseMessage) {
                    handleMessage(rm);
                } else if (rm instanceof ErrorMessage) {
                    ErrorMessage em = (ErrorMessage) rm;
                    logger.log(Level.WARNING, "Error getting presence info " +
                               em.getErrorMessage(), em.getErrorCause());
                }
            } catch (InterruptedException ie) {
                logger.log(Level.WARNING, "Error reading presence info", ie);
            }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

      WonderlandClientID clientID, CellTransformRequestMessage message)
    {
        CellID cellID = ((CellTransformRequestMessage) message).getRequestCellID();
        CellMO cell = CellManagerMO.getCell(cellID);
        if (cell == null || !cell.isLive()) {
            sender.send(clientID, new ErrorMessage(message.getMessageID(),
                        "Cell " + cellID + " not found"));
        } else {
            sender.send(clientID,
                    new CellTransformResponseMessage(
                        message.getMessageID(), cell.getWorldTransform(null)));
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

                response = handleRemoveRequest(clientID, (RemoveRequestMessage) message);
            } else {
                String error = "[SharedStateComponentMO]: Unknown message " +
                               "type: " + message.getClass() + " " + message;
                logger.warning(error);
                response = new ErrorMessage(message.getMessageID(), error);
            }

            // send the response to the caller
            sender.send(clientID, response);
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

            if (map.put(clientID, message))
            {
                return new OKMessage(message.getMessageID());
            }

            return new ErrorMessage(message.getMessageID(), "Request vetoed");
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

            // remove the key from the map if the map exists
            if (map == null || map.remove(clientID, message)) {
                return new OKMessage(message.getMessageID());
            }

            return new ErrorMessage(message.getMessageID(), "Request vetied");
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

     * @param cause the underlying exception
     */
    protected void sendError(MessageID messageID, short clientID,
                             String error, Throwable cause)
    {
        ErrorMessage msg = new ErrorMessage(messageID, error, cause);
        sendToSession(clientID, msg);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ErrorMessage

     * @param cause the underlying exception
     */
    protected void sendError(MessageID messageID, String error,
                             Throwable cause)
    {
        sendToSession(new ErrorMessage(messageID, error, cause));
    }
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.