Project: springxd
Issue XD-1018: JobDeployer hides root exceptions on failure
When deploying jobs, the following code (line 103), hides the root cause of deployment failure: if (exceptionClassName.equals(BEAN_CREATION_EXCEPTION) || exceptionClassName.equals(BEAN_DEFINITION_EXEPTION)) { throw new MissingRequiredDefinitionException(definition.getName(), cause.getMessage()); } For example: org.springframework.xd.dirt.stream.MissingRequiredDefinitionException: Error creating bean with name 'dataSourceInitializer' defined in file [/Users/luke/Work/spring-xd/build/dist/spring-xd/xd/modules/job/hdfsjdbc/config/hdfsjdbc.xml]: Cannot resolve reference to bean 'databasePopulator' while setting bean property 'databasePopulator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databasePopulator' defined in file [/Users/luke/Work/spring-xd/build/dist/spring-xd/xd/modules/job/hdfsjdbc/config/hdfsjdbc.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException org.springframework.xd.dirt.stream.JobDeployer.deploy(JobDeployer.java:103) org.springframework.xd.dirt.stream.JobDeployer.deploy(JobDeployer.java:67) org.springframework.xd.dirt.rest.XDController.save(XDController.java:242)
Story points: 1