Examples of BridgeException


Examples of com.sun.messaging.bridge.service.BridgeException

     *
     */
    public Bridge getBridge(String name) throws Exception {
        Bridge b = _bridges.get(name);
        if (b == null) {
            throw new BridgeException(_bmr.getKString(_bmr.X_BRIDGE_NAME_NOT_FOUND, name));
        }
        return b;
    }
View Full Code Here

Examples of com.sun.messaging.bridge.service.BridgeException

    protected void checkClosedAndSetInProgress() throws Exception {
        synchronized (_closedLock) {
            if (_closed) {
                String emsg = "Accessing TM txLog after store closed";
                throw new BridgeException(emsg, Status.UNAVAILABLE);
            } else {
                setInProgress(true);
            }
        }
    }
View Full Code Here

Examples of com.sun.messaging.bridge.service.BridgeException

                MessageProducer producer = _producer;
                if (_branchProducer != null) {
                    producer = _branchProducer;
                }
                if (!getTargetCurrentDestinationName().equals(toDestinationName(producer.getDestination()))) {
                    throw new BridgeException("Unexpected target producer's destination name "+
                        toDestinationName(producer.getDestination())+": not match current target destination name "+
                        getTargetCurrentDestinationName());
                }
               
                try {
View Full Code Here

Examples of com.sun.messaging.bridge.service.BridgeException

                MessageProducer producer = _producer;
                if (_branchProducer != null) {
                    producer = _branchProducer;
                }
                if (!getTargetCurrentDestinationName().equals(toDestinationName(producer.getDestination()))) {
                    throw new BridgeException("Unexpected target producer's destination name "+
                        toDestinationName(producer.getDestination())+": not match current target destination name "+
                        getTargetCurrentDestinationName());
                }

                try {
View Full Code Here

Examples of com.sun.messaging.bridge.service.BridgeException

                                                      getSourceProviderName(),
                                                      getTargetProviderName(),
                                                      _msgTransformerProps);
                transformed = true;
                if (msgToSend == null) {
                    throw new BridgeException(_jbr.getKString(_jbr.X_NULL_RETURN_FROM_FOR_MESSAGE,
                                              _msgTransformer.getClass().getName()+".transform()", mid));
                }
            } finally {
                MessageHeaders.resetMessageHeaders(m, srcmhs);
            }
View Full Code Here

Examples of com.sun.messaging.bridge.service.BridgeException

            } catch (Throwable t) {}
            if (!inited) {
                _jmsbridge = null;
                throw e;
            }
            throw new BridgeException(e.getMessage(), e, Status.CREATED);
        }
    }
View Full Code Here

Examples of com.sun.messaging.bridge.service.BridgeException

            if (!inited) {
                _stompServer = null;
                throw e;
            }
            throw new BridgeException(e.getMessage(), e, Status.CREATED);
        }
    }
View Full Code Here

Examples of javax.portlet.faces.BridgeException

  public void init(PortletConfig config)
    throws BridgeException
  {
    //TODO: Should we throw an exception if the bridge is already initialized?
    if (mInitialized)
      throw new BridgeException("Bridge already initialized.");

    mPortletConfig = config;
    PortletContext portletContext = mPortletConfig.getPortletContext();

    // get preserveActionParams and excludedAttributes configuration settings.
    mPreserveActionParams = (Boolean) portletContext.getAttribute(Bridge.BRIDGE_PACKAGE_PREFIX + mPortletConfig.getPortletName() +
                                            "." + Bridge.PRESERVE_ACTION_PARAMS);
   
    mExcludedRequestAttributes = (List <String>) portletContext.getAttribute(Bridge.BRIDGE_PACKAGE_PREFIX + mPortletConfig.getPortletName() +
                                            "." + Bridge.EXCLUDED_REQUEST_ATTRIBUTES);
    if (mExcludedRequestAttributes != null)
    {
      // copy the list as we may be adding to it and don't want to worry that this might be immutable
      mExcludedRequestAttributes = new ArrayList(mExcludedRequestAttributes);
    }
    else
    {
      // Otherwise create an empty list
      mExcludedRequestAttributes = new ArrayList(5);
    }

    // Read excludedAttributes that may be defined in any face-config.xml
    readExcludedAttributesFromFacesConfig(portletContext, mExcludedRequestAttributes);

    // Set up the synchronziation object for the RequestScopeMap as we don't
    // want to sync on the PortletContext because its too broad. Note:
    // needed
    // because we not only need to sync the Map but also creating the Map
    // and
    // putting it in the PortletContext. Hence the sync object allows us
    // to limit syncronizing the PortletContext to once per portlet (init
    // time);

    // TODO: What about synching on a static object or using a class lock?
    //       Perhaps even the LRUMap itself if said map is a singleton?
    synchronized (portletContext)
    {
      Object lock = portletContext.getAttribute(REQUEST_SCOPE_LOCK);
      if (lock == null)
      {
        portletContext.setAttribute(REQUEST_SCOPE_LOCK, new Object());
      }
    }

    // Wrapped desired Application with our own to override createComponent and
    // insert our NamingContainerUIViewRoot component.  This was done through
    // configuration via the META-INF/service/javax.faces.application.ApplicationFactory
   
    // Add self as ELContextListener to the Faces App so we can add the
    // portletConfig to any newly created contexts.   
    ((ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY))
        .getApplication().addELContextListener(this);

    // Process and cache the FacesServlet mappings for use by
    // ExternalContext
    WebConfigurationProcessor webConfig = new WebConfigurationProcessor(portletContext);
    mFacesMappings = webConfig.getFacesMappings();
    if (mFacesMappings == null || mFacesMappings.size() == 0)
    {
      throw new BridgeException("BridgeImpl.init(): unable to determine Faces servlet web.xml mapping.");
    }

    // Set defaults for each mode's last active view session attribute
    mDefaultViewIdMap = (Map<String,String>) portletContext.getAttribute(
                                Bridge.BRIDGE_PACKAGE_PREFIX + mPortletConfig.getPortletName()
View Full Code Here

Examples of lt.baltic_amadeus.jqbridge.server.BridgeException

            String id;
            if (name != null)
                id = name;
            else
                id = toString();
            throw new BridgeException("Prepared error occured (generator " + id + ")");
        }
    }
View Full Code Here

Examples of org.apache.batik.bridge.BridgeException

    protected void addInfo(Element e, Collection dims, Collection uris) {
        Dimension d = getElementPixelSize(e);
        String uriStr = XLinkSupport.getXLinkHref(e);
        if (uriStr.length() == 0) {
            throw new BridgeException(e, ERR_ATTRIBUTE_MISSING,
                                      new Object[] {"xlink:href"});
        }

        String baseURI = XMLBaseSupport.getCascadedXMLBase(e);
        ParsedURL purl;
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.