Examples of IntegrationException


Examples of nexj.core.integration.IntegrationException

    */
   public TransferObject parse(Input in, MessageTable table) throws IntegrationException
   {
      if (!(table.getParserTable() instanceof Message))
      {
         throw new IntegrationException("err.integration.messageTableUninitialized");
      }

      return parse(in, (Message)table.getParserTable());
   }
View Full Code Here

Examples of nexj.core.integration.IntegrationException

      if (StringUtil.isEmpty(sField))
      {
         if (fieldPart.isRequired())
         {
            throw new IntegrationException("err.integration.parse.noDataForRequiredPart",
               new Object[]{fieldPart.getFullPath(), Primitive.createInteger(m_nCurrentRecord)});
         }
         else
         {
            return null// no data in field
View Full Code Here

Examples of nexj.core.integration.IntegrationException

    */
   public void initializeMessageTable(MessageTable table) throws IntegrationException
   {
      if (table.getMessageCount() > 1)
      {
         throw new IntegrationException("err.integration.fixed.onlyOneMessageAllowedInTable");
      }

      // only supporting one message, so stick it in the parser table
      table.setParserTable((table.getMessageCount() == 0) ? null : table.getMessage(0));
   }
View Full Code Here

Examples of org.drools.IntegrationException

        Properties props = new Properties();
        props.load( classLoader.getResourceAsStream( "rule-set.conf" ) );
       
        if (props.get( "name" ) == null)
        {
            throw new IntegrationException( "Rule Set jar does not contain a rule-set.conf file." );
        }
       
        InputStream is = null;
        ObjectInput in = null;
        RuleSet ruleSet = null;
        try
        {
            is = classLoader.getResourceAsStream( (String) props.get( "name" ) );
       
            in = new ObjectInputStreamWithLoader( is,
                                                  classLoader );
            ruleSet = (RuleSet) in.readObject();
        }
        catch (ClassNotFoundException e)
        {
            throw new IntegrationException( "Rule Set jar is not correctly formed." );
        }
        finally
        {
            if ( is != null )
            {
View Full Code Here

Examples of org.drools.IntegrationException

            try {
                ruleSet = reader.read( sources[i] );
            } catch ( SAXException e ) {
                if ( e.getException() != null )
                {
                    throw new IntegrationException( e.getException() );
                }
            }
            RuleSetCompiler compiler = new RuleSetCompiler(ruleSet,
                                                           packageName,
                                                           "drools" );
View Full Code Here

Examples of org.drools.IntegrationException

                }
            }
        }
        catch ( InstantiationException e )
        {
            throw new IntegrationException( "Unable to bind RuleSet '" + ruleSet.getName() + "' component to Class Method: " + e.getMessage(),
                                            e );
        }
        catch ( IllegalAccessException e )
        {
            throw new IntegrationException( "Unable to bind RuleSet '" + ruleSet.getName() + "'  component to Class Method: " + e.getMessage(),
                                            e );
        }
        catch ( ClassNotFoundException e )
        {
            throw new IntegrationException( "Unable to bind RuleSet '" + ruleSet.getName() + "'  component to Class Method: " + e.getMessage(),
                                            e );
        }
    }
View Full Code Here

Examples of org.drools.IntegrationException

            RuleSet ruleSet = (RuleSet) in.readObject();
            addFromRuleSet( ruleSet );
        }
        catch ( ClassNotFoundException e )
        {
            throw new IntegrationException( "Rule Set jar is not correctly formed." );
        }
        catch ( IOException e )
        {
            throw new IntegrationException( "Rule Set jar is not correctly formed." );
       
        finally
        {
            if ( bis != null )
            {
View Full Code Here

Examples of org.drools.IntegrationException

                                            "org.drools",
                                            "drools" );
        }
        catch ( IOException e )
        {
            throw new IntegrationException( e );
        }
       
        RuleBaseBuilder builder = new RuleBaseBuilder( );
        builder.setFactHandleFactory( new Jsr94FactHandleFactory( ) );
View Full Code Here

Examples of org.hibernate.secure.spi.IntegrationException

      return PolicyConfigurationFactory
          .getPolicyConfigurationFactory()
          .getPolicyConfiguration( contextId, false );
    }
    catch (Exception e) {
      throw new IntegrationException( "Unable to access JACC PolicyConfiguration" );
    }
  }
View Full Code Here

Examples of org.tuba.exceptions.IntegrationException

          .search(lastRepresentationType);
      if (additionalChain == null) {
        // TODO externalize
        String message = "no cain containing a list of operations and one integrator could be found"; //$NON-NLS-1$
        showError(message);
        throw new IntegrationException();
      }
      reference.getOperations().addAll(additionalChain.getLeft());
      reference.setIntegrator(additionalChain.getRight());
    } else {
      String id = integrator.getId();
      List<XMLArtefactOperation> additionalOperations = searcher.search(
          lastRepresentationType, PluginManager.getInstance()
              .getIntegrator(id).getSupportedType());
      if (additionalOperations == null) {
        // TODO externalize
        String message = "no list of operations could not be found to match the integrator"; //$NON-NLS-1$
        showError(message);
        throw new IntegrationException();
      }
      reference.getOperations().addAll(additionalOperations);
    }
  }
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.