Package org.springframework.beans

Examples of org.springframework.beans.FatalBeanException


                    try {
                        Method readMethod = sourcePd.getReadMethod();
                        Object value = readMethod.invoke(source);
                        if (Hibernate.isInitialized(value)) writeMethod.invoke(target, new Object[]{value});
                    } catch (Exception ex) {
                        throw new FatalBeanException("Could not copy property[" + name + "] from source to target", ex);
                    }
                }
            }
        }
    }
View Full Code Here


    }
    else if (feature instanceof JsonGenerator.Feature) {
      this.objectMapper.configure((JsonGenerator.Feature) feature, enabled);
    }
    else {
      throw new FatalBeanException("Unknown feature class " + feature.getClass().getName());
    }
  }
View Full Code Here

      FilterType filter = FilterType.fromString(filterType);
      return filter.getFilter(expression, classLoader);

    } catch (ClassNotFoundException ex) {
      throw new FatalBeanException("Type filter class not found: " + expression, ex);
    }
  }
View Full Code Here

   *
   * @throws FatalBeanException if any of the required properties is not set.
   */
  public void afterPropertiesSet() throws Exception {
    if (!StringUtils.hasText(this.workflowName)) {
      throw new FatalBeanException("Property [workflowName] is required.");
    }
  }
View Full Code Here

    WorkflowDescriptor workflowDescriptor = null;
    try {
      workflowDescriptor = this.invokeLoader(resource);
    }
    catch (IOException ex) {
      throw new FatalBeanException("Unable to load workflow resource [" + resourceLocation + "].", ex);
    }
    catch (InvalidWorkflowDescriptorException ex) {
      throw new FatalBeanException("Descriptor for workflow ["
          + name
          + "] in ["
          + resourceLocation
          + "] is invalid.", ex);
    }
    catch (SAXException ex) {
      throw new FatalBeanException("XML in descriptorfor workflow ["
          + name
          + "] in ["
          + resourceLocation
          + "] is invalid.", ex);
    }
View Full Code Here

     *
     * @throws org.springframework.beans.FatalBeanException if <code>setValidationConfigLocations()</code> has not been called.
     */
    public void afterPropertiesSet() throws Exception {
        if (this.validatorResources == null) {
            throw new FatalBeanException("Unable to locate validation configuration. Property [validationLocations] is required.");
        }
    }
View Full Code Here

            }

            this.validatorResources = new ValidatorResources(inputStreams);
        }
        catch (IOException e) {
            throw new FatalBeanException("Unable to read validation configuration due to IOException.", e);
        }
        catch (SAXException e) {
            throw new FatalBeanException("Unable to parse validation configuration XML", e);
        }
    }
View Full Code Here

    this.hibernateConfiguration = hibernateConfiguration;
  }

  public void afterPropertiesSet() throws Exception {
    if (this.hibernateConfiguration == null) {
      throw new FatalBeanException("Property [hibernateConfiguration] of ["
          + LocalJbpmSessionFactoryBean.class
          + "] is required.");
    }

    if (this.hibernateSessionFactory == null) {
      throw new FatalBeanException("Property [hibernateSessionFactory] of ["
          + LocalJbpmSessionFactoryBean.class
          + "] is required.");
    }

    this.sessionFactory = new SpringJbpmSessionFactory(this.hibernateConfiguration,
View Full Code Here

    this.definitionLocation = definitionLocation;
  }

  public void afterPropertiesSet() throws Exception {
    if (this.definitionLocation == null) {
      throw new FatalBeanException("Property [definitionLocation] of class ["
          + ProcessDefinitionFactoryBean.class.getName()
          + "] is required.");
    }

    InputStream inputStream = null;
View Full Code Here

        this.deployProcessDefinitionOnStartup = deployProcessDefinitionOnStartup;
    }

    public void afterPropertiesSet() throws Exception {
        if (this.definitionLocation == null) {
            throw new FatalBeanException("Property [definitionLocation] of class [" +
                    ProcessDefinitionFactoryBean.class.getName() + "] is required.");
        }


        InputStream inputStream = null;
View Full Code Here

TOP

Related Classes of org.springframework.beans.FatalBeanException

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.