Examples of BamException


Examples of com.caucho.bam.BamException

                       String to,
                       String from,
                       Serializable query)
  {
    if (! _lifecycle.isActive()) {
      BamException exn = new RemoteConnectionFailedException(L.l("{0} is closed",
                                                                 this));
      exn.fillInStackTrace();
     
      getBroker().queryError(id, from, to, query,
                             BamError.create(exn));
      return;
    }
View Full Code Here

Examples of com.caucho.bam.BamException

             && String.class.equals(paramTypes[2])
             && Serializable.class.isAssignableFrom(paramTypes[3])) {
      return paramTypes[3];
    }
    else {
      throw new BamException(method + " is an invalid "
                             + " @" + annotationType.getSimpleName()
                             + " because queries require (long, String, String, MyPayload)");
    }
  }
View Full Code Here

Examples of com.caucho.bam.BamException

        || ! long.class.equals(paramTypes[0])
        || ! String.class.equals(paramTypes[1])
        || ! String.class.equals(paramTypes[2])
        || ! Serializable.class.isAssignableFrom(paramTypes[3])
        || ! BamError.class.isAssignableFrom(paramTypes[4])) {
      throw new BamException(method + " is an invalid "
                             + " @" + annotationType.getSimpleName()
                             + " because queries require (long, String, String, MyPayload, ActorError)");
    }
    /*
    else if (! void.class.equals(method.getReturnType())) {
View Full Code Here

Examples of com.caucho.bam.BamException

                                                 password);

        if (testSignature.equals(serverSignature)) {
        }
        else if ("".equals(uid)) {
          throw new BamException(L.l("{0} resin-system-auth-key does not match the server's value",
                                      this));
        }

        String signature = _authManager.sign(serverAlgorithm,
                                             uid,
View Full Code Here

Examples of com.caucho.bam.BamException

        String serverSignature = nonceResult.getSignature();
       
        String testSignature = _authManager.sign(algorithm, uid, clientNonce, password);
       
        if (! testSignature.equals(serverSignature) && "".equals(uid))
          throw new BamException(L.l("{0} server signature does not match",
                                      this));

        String signature = _authManager.sign(algorithm, uid, serverNonce, password);

        SecurityService security = SecurityService.getCurrent();
View Full Code Here

Examples of com.caucho.bam.BamException

      out.write(1);
      boolean isAdmin = true;
      out.write(isAdmin ? 1 : 0);
      out.flush();
    } catch (IOException e) {
      throw new BamException(e);
    }
   
  }
View Full Code Here

Examples of org.wso2.carbon.bam.util.BAMException

                    parse.close();
                }
            }

        } catch (XMLStreamException e) {
            throw new BAMException("error occurred creating stream for bam.xml", e);
        } catch (IOException e) {
            throw new BAMException("error occurred getting bam.xml ", e);
        }

        return bamDocumentElement;
    }
View Full Code Here

Examples of org.wso2.carbon.bam.util.BAMException

        if (bamConfFileOMElement != null) {
            configType = bamConfFileOMElement.getFirstElement();
        }
        if (configType == null) {
            throw new BAMException("configType  does not exist in bam.xml file");
        }

        return configType.getAttributeValue(new QName("type"));

    }
View Full Code Here

Examples of org.wso2.carbon.bam.util.BAMException

    protected String getBAMConfigType(OMElement bamConfig, String elementName) throws BAMException {

        OMElement configType = bamConfig.getFirstElement();
        if (configType == null) {
            throw new BAMException(elementName + "  does not exist in bam.xml file");
        }

        return configType.getAttributeValue(new QName("type"));
    }
View Full Code Here

Examples of org.wso2.carbon.bam.util.BAMException

    }

    protected String getPublisherEPR(OMElement bamConfig, String eprName) throws BAMException {
        OMElement bamMsgProcessor = bamConfig.getFirstChildWithName(new QName("bamMessageProcessor"));
        if (bamMsgProcessor == null) {
            throw new BAMException("bamMessageProcessor did not mention in bam.xml");
        }
        OMElement serverDataEpr = bamMsgProcessor.getFirstChildWithName(new QName(eprName));
        if (serverDataEpr == null) {
            throw new BAMException(eprName + " did not mention in bam.xml");
        }

        return serverDataEpr.getText();
    }
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.