Package net.sf.xbus.base.core

Examples of net.sf.xbus.base.core.XException


      xmlNew = (Document) domResult.getNode();
      applyStylets(xmlNew, message);
    }
    catch (TransformerConfigurationException e)
    {
      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_PROTOCOL, Constants.PACKAGE_PROTOCOL_XML,
          "0", e);
    }
    catch (TransformerException e)
    {
      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_PROTOCOL, Constants.PACKAGE_PROTOCOL_XML,
          "0", e);
    }
    return xmlNew;
  }
View Full Code Here


            transformer);
      }
    }
    catch (TransformerConfigurationException e)
    {
      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_PROTOCOL, Constants.PACKAGE_PROTOCOL_XML,
          "0", e);
    }
    return transformer;
  }
View Full Code Here

    {
      throw e;
    } // catch (XException e)
    catch (Exception e)
    {
      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_PROTOCOL, Constants.PACKAGE_PROTOCOL_XML,
          "0", e);
    }
  } // applyStylets(XMLMessage newMessage, Document xmlNew)
View Full Code Here

            + Constants.getDateAsString();
      } // for (int fileNo=0; fileNo<fileNames.length; fileNo++)
    }
    catch (Exception ex)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_FILE, "0", ex);
    }
  }
View Full Code Here

          buffOut.newLine();
        buffOut.close();
      }
      catch (IOException e)
      {
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_FILE, "0", e);
      }
    }
    return null;
View Full Code Here

          new FileOutputStream(mTempFilename[fileNo], true),
          mConfiguration.getEncoding()));
    }
    catch (Exception e)
    {
      throw new XException(Constants.LOCATION_EXTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_FILE, "0", e);
    }
    return buffOut;
  }
View Full Code Here

                .getBytes(mConfiguration.getEncoding()));
            buffOut.close();
          }
          catch (Exception e)
          {
            throw new XException(Constants.LOCATION_EXTERN,
                Constants.LAYER_TECHNICAL,
                Constants.PACKAGE_TECHNICAL_FILE, "0", e);
          }
        }
      }
View Full Code Here

    if (srcFile.exists())
    {
      // 1.check if resolution = error
      if (mConfiguration.getResolution().equals(Constants.WRITE_ERROR))
      {
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_FILE, "29");
      }

      // 2. check if it is one file
      if (!srcFile.isFile())
      {
        List params = new Vector();
        params.add(mConfiguration.getFileNames());
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_FILE, "30", params);
      }

      // 3. check write permissions
      if (!srcFile.canWrite())
      {
        List params = new Vector();
        params.add(fileName);
        throw new XException(Constants.LOCATION_EXTERN,
            Constants.LAYER_TECHNICAL,
            Constants.PACKAGE_TECHNICAL_FILE, "31", params);
      }
    }
  }
View Full Code Here

          setFunction(function);
        }
      }
      catch (XPathExpressionException e)
      {
        throw new XException(Constants.LOCATION_INTERN,
            Constants.LAYER_PROTOCOL,
            Constants.PACKAGE_PROTOCOL_XML, "0", e);
      }

    }
View Full Code Here

      MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
      ObjectName name = new ObjectName("xBus:mbean=Administrator");
      Administrator mbean = new Administrator();
      mbs.registerMBean(mbean, name);
    } catch (Exception e) {
      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_ADMIN, Constants.PACKAGE_ADMIN_JMX, "0", e);
    }

    startAllSystems();
    ReceiverThreadManager.getInstance().setIsServletEngine(
View Full Code Here

TOP

Related Classes of net.sf.xbus.base.core.XException

Copyright © 2018 www.massapicom. 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.