Announcement Announcement Module
Collapse
No announcement yet.
NPE (launcher) on CommandLineJobRunner Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NPE (launcher) on CommandLineJobRunner

    My guess is that I have done something fundamentally wrong and that auto-wiring is not working. When I invoke:

    Code:
    CommandLineBatchRunner psoft-importer-job.xml importGeneralLedger
    I am getting a NPE on launcher within CommandLineJobRunner (Spring Batch 1.01.RC):

    Code:
    DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'importGeneralLedger'
    ERROR CommandLineJobRunner - Job Terminated in error:
    java.lang.NullPointerException
    	at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:199)
    	at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:248)
    My baby's-first-job is a simple one:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:aop="http://www.springframework.org/schema/aop"
    	xmlns:tx="http://www.springframework.org/schema/tx"
    	xmlns:p="http://www.springframework.org/schema/p"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="
    		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
    
    	<description/>
    
    	<import resource="simple-job-launcher-context.xml"/>
    	
    	<bean id="importGeneralLedger" parent="simpleJob">
    		<property name="steps">
    			<bean id="step1" parent="simpleStep">
    				<property name="itemReader" ref="simpleItemReader"/>
    				<property name="itemWriter" ref="simpleItemWriter"/>
    			</bean>
    		</property>
    	</bean>
    	
    	<bean id="simpleItemReader" class="redacted.SimpleItemReader"/>
    	
    	<bean id="simpleItemWriter" class="redacted.SimpleItemWriter"/>
    	
    </beans>
    The only thing that I changed from the distribution was to comment-out the dependencies within simple-job-launcher-context.xml to remove any dependencies on other Samples classes (see below):

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans 
    	xmlns="http://www.springframework.org/schema/beans" 
    	xmlns:aop="http://www.springframework.org/schema/aop"
    	xmlns:tx="http://www.springframework.org/schema/tx" 
    	xmlns:p="http://www.springframework.org/schema/p"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="
    		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
    
    	<import resource="data-sources.xml"/>
    	
    	<!-- SPRING BATCH PROPERTIES -->
    
    	<bean id="jobRegistryBeanPostProcessor"
    		class="org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor">
    		<property name="jobRegistry" ref="jobRegistry" />
    	</bean>
    
    	<bean id="jobLauncher" class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
    		<property name="jobRepository" ref="jobRepository" />
    	</bean>
    
    	<bean id="jobRegistry" class="org.springframework.batch.core.configuration.support.MapJobRegistry" />
    
    	<aop:config>
    		<aop:advisor pointcut="execution(* org.springframework.batch.core..*Repository+.*(..))"
    			advice-ref="txAdvice" />
    	</aop:config>
    
    	<tx:advice id="txAdvice" transaction-manager="transactionManager">
    		<tx:attributes>
    			<tx:method name="create*" propagation="REQUIRES_NEW" isolation="SERIALIZABLE" />
    			<tx:method name="*" />
    		</tx:attributes>
    	</tx:advice>
    
    	<bean id="jobRepository" class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean"
    		p:databaseType="oracle" p:dataSource-ref="dataSource" />
    
    	<bean id="mapJobInstanceDao" lazy-init="true"
    		class="org.springframework.batch.core.repository.dao.MapJobInstanceDao" />
    
    	<bean id="mapJobExecutionDao" lazy-init="true"
    		class="org.springframework.batch.core.repository.dao.MapJobExecutionDao" />
    
    	<bean id="mapStepExecutionDao" lazy-init="true"
    		class="org.springframework.batch.core.repository.dao.MapStepExecutionDao" />
    
    	<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
    		<property name="dataSource" ref="dataSource" />
    	</bean>
    
    	<bean id="simpleJob" class="org.springframework.batch.core.job.SimpleJob" abstract="true">
    		<property name="jobRepository" ref="jobRepository" />
    		<property name="restartable" value="true" />
    	</bean>
    
    	<bean id="taskletStep" class="org.springframework.batch.core.step.tasklet.TaskletStep" abstract="true">
    		<property name="jobRepository" ref="jobRepository" />
    		<property name="allowStartIfComplete" value="true" />
    	</bean>
    
    	<bean id="simpleStep" class="org.springframework.batch.core.step.item.SimpleStepFactoryBean"
    		abstract="true">
    		<property name="transactionManager" ref="transactionManager" />
    		<property name="jobRepository" ref="jobRepository" />
    		<property name="startLimit" value="100" />
    		<property name="commitInterval" value="1" />
    	</bean>
    	
    	<bean id="skipLimitStep" class="org.springframework.batch.core.step.item.SkipLimitStepFactoryBean"
    		parent="simpleStep" abstract="true">
    		<property name="skipLimit" value="0" />
    	</bean>
    
    	<!--
    	
    	<bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
    		<property name="customEditors">
    			<map>
    				<entry key="int[]">
    					<bean class="org.springframework.batch.support.IntArrayPropertyEditor" />
    				</entry>
    				<entry key="org.springframework.batch.item.file.transform.Range[]">
    					<bean class="org.springframework.batch.item.file.transform.RangeArrayPropertyEditor" />
    				</entry>
    				<entry key="java.util.Date">
    					<bean class="org.springframework.beans.propertyeditors.CustomDateEditor">
    						<constructor-arg>
    							<bean class="java.text.SimpleDateFormat">
    								<constructor-arg value="yyyyMMdd" />
    							</bean>
    						</constructor-arg>
    						<constructor-arg value="false" />
    					</bean>
    				</entry>
    			</map>
    		</property>
    	</bean>
    	
    	<bean id="logAdvice" class="org.springframework.batch.sample.advice.ProcessorLogAdvice" />
    
    	<bean id="eventAdvice" class="org.springframework.batch.sample.advice.MethodExecutionApplicationEventAdvice" />
    
    	<aop:config>
    		<aop:aspect ref="logAdvice">
    			<aop:after pointcut="execution( * org.springframework.batch.sample..InfiniteLoopTasklet+.execute(..))"
    				method="doBasicLogging" />
    		</aop:aspect>
    		<aop:aspect ref="eventAdvice">
    			<aop:before pointcut="execution( * org.springframework.batch..Step+.execute(..))" method="before" />
    			<aop:after pointcut="execution( * org.springframework.batch..Step+.execute(..))" method="after" />
    			<aop:after-throwing throwing="t" pointcut="execution( * org.springframework.batch..Step+.execute(..))"
    				method="onError" />
    		</aop:aspect>
    	</aop:config>
    
    	-->
    	
    </beans>
    I have the various Spring and Spring Batch JAR's in Eclipse's CLASSPATH. Everything compiles. My job and the simple-job-launcher-context.xml are both in the root of the project. It just appears that CommandLineJobRunner#setLauncher(JobLauncher) was never invoked. Any ideas?

    My thanks in advance,

    Saish

  • #2
    From looking at your configuration, I can't see why the JobLauncher wouldn't be autowired. (although I think it should probably check for required dependencies after autowiting)

    Is there anyway you could post a little larger log file with DEBUG on? (It looks like you had debug mode on already though)

    Comment


    • #3
      You shouldn't comment the "customEditorConfigurer" bean, but I don't immediately see how that would cause trouble auto-wiring the jobLauncher.

      Comment


      • #4
        I didn't notice the commented section, I wonder if that's causing an exception that's being masked by the NPE? It doesn't seem like it should though, since creating the context would through an exception if there was an issue.

        Comment


        • #5
          Thanks for the quick replies! Here is the full log output (will require a couple of posts):

          Code:
          INFO  ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51: display name [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]; startup date [Tue May 20 12:13:42 EDT 2008]; root of context hierarchy
          DEBUG ClassUtils - Class [edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
          DEBUG PluggableSchemaResolver - Loading schema mappings from [META-INF/spring.schemas]
          DEBUG PluggableSchemaResolver - Loaded schema mappings: {http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd=org/directwebremoting/spring/spring-dwr-2.0.xsd, https://spring-annotation.dev.java.net/context.xsd=net/sourceforge/sannotations/context.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, https://spring-annotation.dev.java.net/context=net/sourceforge/sannotations/context.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://sannotations.sourceforge.net/context=net/sourceforge/sannotations/context.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://sannotations.sourceforge.net/context.xsd=net/sourceforge/sannotations/context.xsd}
          DEBUG PluggableSchemaResolver - Loading schema mappings from [META-INF/spring.schemas]
          DEBUG PluggableSchemaResolver - Loaded schema mappings: {http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd=org/directwebremoting/spring/spring-dwr-2.0.xsd, https://spring-annotation.dev.java.net/context.xsd=net/sourceforge/sannotations/context.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, https://spring-annotation.dev.java.net/context=net/sourceforge/sannotations/context.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://sannotations.sourceforge.net/context=net/sourceforge/sannotations/context.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://sannotations.sourceforge.net/context.xsd=net/sourceforge/sannotations/context.xsd}
          INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [psoft-importer-job.xml]
          DEBUG DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
          DEBUG PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-2.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-2.0.xsd
          DEBUG DefaultNamespaceHandlerResolver - Loaded mappings [{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://sannotations.sourceforge.net/context=net.sourceforge.sannotations.context.EnableAnnotationHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.directwebremoting.org/schema/spring-dwr=org.directwebremoting.spring.DwrNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://sannotations.sourceforge.net/context.xsd=net.sourceforge.sannotations.context.EnableAnnotationHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, https://spring-annotation.dev.java.net/context=net.sourceforge.sannotations.context.EnableAnnotationHandler}]
          DEBUG Logger - Logging using commons-logging.
          DEBUG DefaultBeanDefinitionDocumentReader - Loading bean definitions
          INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [simple-job-launcher-context.xml]
          DEBUG DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
          DEBUG DefaultBeanDefinitionDocumentReader - Loading bean definitions
          INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [data-sources.xml]
          DEBUG DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
          DEBUG DefaultBeanDefinitionDocumentReader - Loading bean definitions
          DEBUG DefaultBeanDefinitionDocumentReader - Imported 3 bean definitions from relative location [data-sources.xml]
          DEBUG BeanDefinitionParserDelegate - Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.batch.support.IntArrayPropertyEditor#32efa7]
          DEBUG BeanDefinitionParserDelegate - Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.batch.item.file.transform.RangeArrayPropertyEditor#13f991]
          DEBUG BeanDefinitionParserDelegate - Neither XML 'id' nor 'name' specified - using generated bean name [java.text.SimpleDateFormat#e06940]
          DEBUG BeanDefinitionParserDelegate - Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.beans.propertyeditors.CustomDateEditor#11e0c13]
          DEBUG DefaultBeanDefinitionDocumentReader - Imported 19 bean definitions from relative location [simple-job-launcher-context.xml]
          DEBUG XmlBeanDefinitionReader - Loaded 22 bean definitions from location pattern [psoft-importer-job.xml]
          INFO  ClassPathXmlApplicationContext - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1aae94f
          DEBUG ClassPathXmlApplicationContext - 22 beans defined in org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51: display name [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]; startup date [Tue May 20 12:13:42 EDT 2008]; root of context hierarchy
          I uncommented the customEditorConfigurer, and the exception was the same. I double-checked that I do not have multiple Spring JAR's in my CLASSPATH. I am running Spring 2.0.6 with JDK 1.5 if that helps at all.

          Thanks again,
          Saish

          Comment


          • #6
            Continued

            Code:
            DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'customEditorConfigurer'
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'customEditorConfigurer' with merged definition [Root bean: class [org.springframework.beans.factory.config.CustomEditorConfigurer]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
            DEBUG DefaultListableBeanFactory - Eagerly caching bean 'customEditorConfigurer' to allow for resolving potential circular references
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'org.springframework.batch.support.IntArrayPropertyEditor#32efa7' with merged definition [Root bean: class [org.springframework.batch.support.IntArrayPropertyEditor]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'org.springframework.batch.item.file.transform.RangeArrayPropertyEditor#13f991' with merged definition [Root bean: class [org.springframework.batch.item.file.transform.RangeArrayPropertyEditor]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'org.springframework.beans.propertyeditors.CustomDateEditor#11e0c13' with merged definition [Root bean: class [org.springframework.beans.propertyeditors.CustomDateEditor]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'java.text.SimpleDateFormat#e06940' with merged definition [Root bean: class [java.text.SimpleDateFormat]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
            DEBUG CachedIntrospectionResults - Not strongly caching class [java.text.SimpleDateFormat] because it is not cache-safe
            DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'org.springframework.aop.config.internalAutoProxyCreator' with merged definition [Root bean: class [org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
            DEBUG DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.aop.config.internalAutoProxyCreator' to allow for resolving potential circular references
            INFO  ClassPathXmlApplicationContext - Bean 'org.springframework.aop.config.internalAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
            DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'jobRegistryBeanPostProcessor'
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'jobRegistryBeanPostProcessor' with merged definition [Root bean: class [org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
            DEBUG DefaultListableBeanFactory - Eagerly caching bean 'jobRegistryBeanPostProcessor' to allow for resolving potential circular references
            DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'jobRegistry'
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'jobRegistry' with merged definition [Root bean: class [org.springframework.batch.core.configuration.support.MapJobRegistry]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
            DEBUG DefaultListableBeanFactory - Eagerly caching bean 'jobRegistry' to allow for resolving potential circular references
            INFO  ClassPathXmlApplicationContext - Bean 'jobRegistry' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
            DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor' with merged definition [Root bean: class [org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
            DEBUG DefaultListableBeanFactory - Eagerly caching bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor' to allow for resolving potential circular references
            DEBUG DefaultListableBeanFactory - Creating instance of bean '(inner bean)' with merged definition [Root bean: class [org.springframework.aop.aspectj.AspectJExpressionPointcut]; scope=prototype; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
            INFO  ClassPathXmlApplicationContext - Bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
            INFO  ClassPathXmlApplicationContext - Bean 'jobRegistryBeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
            DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
            DEBUG ClassPathXmlApplicationContext - Unable to locate MessageSource with name 'messageSource': using default [[email protected]7]
            DEBUG ClassPathXmlApplicationContext - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1551b0]
            INFO  DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1aae94f: defining beans [dataSource,sessionFactory,transactionManager,jobRegistryBeanPostProcessor,jobLauncher,jobRegistry,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor,txAdvice,jobRepository,mapJobInstanceDao,mapJobExecutionDao,mapStepExecutionDao,jdbcTemplate,simpleJob,taskletStep,simpleStep,skipLimitStep,customEditorConfigurer,importGeneralLedger,simpleItemReader,simpleItemWriter]; root of factory hierarchy
            DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'dataSource'
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'dataSource' with merged definition [Root bean: class [org.apache.commons.dbcp.BasicDataSource]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [data-sources.xml]]
            DEBUG DefaultListableBeanFactory - Eagerly caching bean 'dataSource' to allow for resolving potential circular references
            DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
            DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'sessionFactory'
            DEBUG DefaultListableBeanFactory - Creating instance of bean 'sessionFactory' with merged definition [Root bean: class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [data-sources.xml]]
            DEBUG DefaultListableBeanFactory - Eagerly caching bean 'sessionFactory' to allow for resolving potential circular references
            DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'dataSource'

            Comment


            • #7
              Continued

              Code:
              DEBUG PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [C:\work\finance\fintrac.ear\finance_core.jar]
              DEBUG PathMatchingResourcePatternResolver - Searching directory [C:\work\finance\fintrac.ear\finance_core.jar] for files matching pattern [C:/work/finance/fintrac.ear/finance_core.jar/*.hbm.xml]
              DEBUG PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [C:\work\finance\fintrac.ear\finance_model.jar]
              DEBUG PathMatchingResourcePatternResolver - Searching directory [C:\work\finance\fintrac.ear\finance_model.jar] for files matching pattern [C:/work/finance/fintrac.ear/finance_model.jar/*.hbm.xml]
              DEBUG PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [C:\work\finance\fintrac.ear\finance_model.spring]
              DEBUG PathMatchingResourcePatternResolver - Searching directory [C:\work\finance\fintrac.ear\finance_model.spring] for files matching pattern [C:/work/finance/fintrac.ear/finance_model.spring/*.hbm.xml]
              DEBUG PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\classes]
              DEBUG PathMatchingResourcePatternResolver - Searching directory [C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\classes] for files matching pattern [C:/work/finance/fintrac.ear/finance_ui.war/WEB-INF/classes/*.hbm.xml]
              DEBUG PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [C:\work\finance\fintrac.ear\tmp\classes]
              DEBUG PathMatchingResourcePatternResolver - Searching directory [C:\work\finance\fintrac.ear\tmp\classes] for files matching pattern [C:/work/finance/fintrac.ear/tmp/classes/*.hbm.xml]
              DEBUG PathMatchingResourcePatternResolver - Resolved location pattern [classpath*:/*.hbm.xml] to resources []
              INFO  Environment - Hibernate 3.2.1
              INFO  Environment - hibernate.properties not found
              INFO  Environment - Bytecode provider name : cglib
              INFO  Environment - using JDK 1.4 java.sql.Timestamp handling
              INFO  LocalSessionFactoryBean - Building new Hibernate SessionFactory
              DEBUG Configuration - Preparing to build session factory with filters : {}
              DEBUG Configuration - processing extends queue
              DEBUG Configuration - processing collection mappings
              DEBUG Configuration - processing native query and ResultSetMapping mappings
              DEBUG Configuration - processing association property references
              DEBUG Configuration - processing foreign key constraints
              INFO  ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
              INFO  SettingsFactory - RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
              With the Partitioning and Data Mining options
              INFO  SettingsFactory - JDBC driver: Oracle JDBC driver, version: 10.1.0.4.0
              INFO  Dialect - Using dialect: org.hibernate.dialect.Oracle9Dialect
              INFO  TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
              INFO  TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

              Comment


              • #8
                Continued

                Code:
                INFO  SettingsFactory - Automatic flush during beforeCompletion(): disabled
                INFO  SettingsFactory - Automatic session close at end of transaction: disabled
                INFO  SettingsFactory - JDBC batch size: 15
                INFO  SettingsFactory - JDBC batch updates for versioned data: disabled
                INFO  SettingsFactory - Scrollable result sets: enabled
                DEBUG SettingsFactory - Wrap result sets: disabled
                INFO  SettingsFactory - JDBC3 getGeneratedKeys(): disabled
                INFO  SettingsFactory - Connection release mode: on_close
                INFO  SettingsFactory - Default batch fetch size: 1
                INFO  SettingsFactory - Generate SQL with comments: disabled
                INFO  SettingsFactory - Order SQL updates by primary key: disabled
                INFO  SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                INFO  ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
                INFO  SettingsFactory - Query language substitutions: {}
                INFO  SettingsFactory - JPA-QL strict compliance: disabled
                INFO  SettingsFactory - Second-level cache: enabled
                INFO  SettingsFactory - Query cache: disabled
                INFO  SettingsFactory - Cache provider: org.hibernate.cache.NoCacheProvider
                INFO  SettingsFactory - Optimize cache for minimal puts: disabled
                INFO  SettingsFactory - Structured second-level cache entries: disabled
                INFO  SettingsFactory - Echoing all SQL to stdout
                INFO  SettingsFactory - Statistics: disabled
                INFO  SettingsFactory - Deleted entity synthetic identifier rollback: disabled
                INFO  SettingsFactory - Default entity-mode: pojo

                Comment


                • #9
                  Continued

                  Code:
                  INFO  SessionFactoryImpl - building session factory
                  DEBUG SessionFactoryImpl - Session factory constructed with filter configurations : {}
                  DEBUG SessionFactoryImpl - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\java\jdk1.5.0_06\jre\bin, java.vm.version=1.5.0_06-b05, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\work\finance\fintrac.ear, java.runtime.version=1.5.0_06-b05, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\java\jdk1.5.0_06\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\sgoldsmi\LOCALS~1\Temp\, line.separator=
                  , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=C:\java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Java\jdk1.5.0_06\bin\..\jre\bin\client;C:\Java\jdk1.5.0_06\bin\..\jre\bin;M:\OSI\BANK\DLL\BIN;M:\OSI\BANK\DLL;C:\Program Files\Microsoft DirectX SDK (August 2007)\Utilities\Bin\x86;c:\program files\imagemagick-6.2.8-q16;C:\Java\jdk1.5.0_06\bin;C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;c:\Java\j2me\bin;C:\Program Files\cvsnt;C:\Include\ant-1.6.5\bin;C:\Include\ejp-2.2\lib;C:\Include\maven-2.0.4\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN;C:\java\jwsdp-2.0\jwsdp-shared\bin;C:\texmf\miktex\bin;Z:.;, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, os.version=5.1, user.home=C:\Documents and Settings\sgoldsmi, user.timezone=America/New_York, hibernate.connection.release_mode=on_close, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.5, hibernate.format_sql=true, java.class.path=C:\work\finance\fintrac.ear\finance_core.jar;C:\work\finance\fintrac.ear\finance_model.jar;C:\work\finance\fintrac.ear\finance_model.spring;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\classes;C:\work\finance\fintrac.ear\tmp\classes;C:\work\finance\fintrac.ear\lib\spring-mock.jar;C:\work\finance\fintrac.ear\lib\acegi-security-1.0.4.jar;C:\work\finance\fintrac.ear\lib\acegi-security-jboss-1.0.4.jar;C:\work\finance\fintrac.ear\lib\acegi-security-tiger-1.0.4.jar;C:\work\finance\fintrac.ear\lib\antlr-2.7.2.jar;C:\work\finance\fintrac.ear\lib\asm-attrs.jar;C:\work\finance\fintrac.ear\lib\aspectjlib.jar;C:\work\finance\fintrac.ear\lib\aspectjrt.jar;C:\work\finance\fintrac.ear\lib\aspectjtools.jar;C:\work\finance\fintrac.ear\lib\aspectjweaver.jar;C:\work\finance\fintrac.ear\lib\commons-beanutils-1.7.0.jar;C:\work\finance\fintrac.ear\lib\commons-chain-1.1.jar;C:\work\finance\fintrac.ear\lib\commons-configuration-1.2.jar;C:\work\finance\fintrac.ear\lib\commons-dbcp-1.2.1.jar;C:\work\finance\fintrac.ear\lib\commons-digester-1.8.jar;C:\work\finance\fintrac.ear\lib\commons-lang-2.1.jar;C:\work\finance\fintrac.ear\lib\commons-net-1.4.1.jar;C:\work\finance\fintrac.ear\lib\commons-pool-1.2.jar;C:\work\finance\fintrac.ear\lib\jbpm-3.1.1.jar;C:\work\finance\fintrac.ear\lib\ognl-2.6.11.jar;C:\work\finance\fintrac.ear\lib\poi-2.5.1.jar;C:\work\finance\fintrac.ear\lib\spring-annotation-base-1.1.1.GA.jar;C:\work\finance\fintrac.ear\lib\jsch-0.1.36.jar;C:\work\finance\fintrac.ear\lib\flagstar_security.jar;C:\work\finance\fintrac.ear\lib\joda-time-1.5.2.jar;C:\work\finance\fintrac.ear\lib\spring-batch-infrastructure-1.0.1.RELEASE.jar;C:\work\finance\fintrac.ear\lib\spring-batch-core-1.0.1.RELEASE.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\xwork-2.0.3.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\displaytag-1.1.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\displaytag-export-poi-1.1.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\freemarker-2.3.8.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\fs-xss-1.2.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\howl.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\struts2-codebehind-plugin-2.0.8.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\struts2-core-2.0.8.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\struts2-tiles-plugin-2.0.8.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\struts-core-1.3.5.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\struts-extras-1.3.5.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\struts-taglib-1.3.5.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\tiles-api-2.0.3.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\tiles-core-2.0.3.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\tiles-jsp-2.0.3.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\asm.jar;C:\work\finance\fintrac.ear\finance_ui.war\WEB-INF\lib\dwr.jar;C:\work\finance\fintrac.ear\etc\lib\quartz.jar;C:\work\finance\fintrac.ear\etc\lib\activation.jar;C:\work\finance\fintrac.ear\etc\lib\commons-codec.jar;C:\work\finance\fintrac.ear\etc\lib\commons-collections.jar;C:\work\finance\fintrac.ear\etc\lib\commons-httpclient.jar;C:\work\finance\fintrac.ear\etc\lib\commons-logging.jar;C:\work\finance\fintrac.ear\etc\lib\dom4j-1.6.1.jar;C:\work\finance\fintrac.ear\etc\lib\ejb3-persistence.jar;C:\work\finance\fintrac.ear\etc\lib\hibernate3.jar;C:\work\finance\fintrac.ear\etc\lib\hibernate-annotations.jar;C:\work\finance\fintrac.ear\etc\lib\hibernate-commons-annotations.jar;C:\work\finance\fintrac.ear\etc\lib\hibernate-entitymanager.jar;C:\work\finance\fintrac.ear\etc\lib\javassist.jar;C:\work\finance\fintrac.ear\etc\lib\jboss-annotations-ejb3.jar;C:\work\finance\fintrac.ear\etc\lib\jboss-archive-browsing.jar;C:\work\finance\fintrac.ear\etc\lib\jsp-api.jar;C:\work\finance\fintrac.ear\etc\lib\jta.jar;C:\work\finance\fintrac.ear\etc\lib\jta-spec1_0_1.jar;C:\work\finance\fintrac.ear\etc\lib\jts1_0.jar;C:\work\finance\fintrac.ear\etc\lib\log4j.jar;C:\work\finance\fintrac.ear\etc\lib\findbugs.jar;C:\work\finance\fintrac.ear\etc\lib\mail.jar;C:\work\finance\fintrac.ear\etc\lib\javaee.jar;C:\work\finance\fintrac.ear\etc\lib\wsdl4j-1.5.1.jar;C:\work\finance\fintrac.ear\etc\lib\bcel-5.2.jar;C:\work\finance\fintrac.ear\etc\conf\jboss\app_server\default\deploy\jboss-spring-jdk5.deployer\spring.jar;C:\work\finance\fintrac.ear\etc\conf\jboss\app_server\default\deploy\jboss-spring-jdk5.deployer\ehcache-1.2.4.jar;C:\work\finance\fintrac.ear\etc\conf\jboss\app_server\default\deploy\jboss-spring-jdk5.deployer\jakarta-oro-2.0.8.jar;C:\work\finance\fintrac.ear\etc\conf\jboss\app_server\default\deploy\jboss-spring-jdk5.deployer\jboss-spring-jdk5.jar;C:\work\finance\fintrac.ear\etc\conf\jboss\app_server\default\lib\sqljdbc.jar;C:\work\finance\fintrac.ear\etc\conf\jboss\app_server\default\lib\ojdbc14_g.jar;C:\work\finance\fintrac.ear\etc\test-lib\xapool.jar;C:\work\finance\fintrac.ear\etc\test-lib\cglib.jar;C:\work\finance\fintrac.ear\etc\test-lib\commons-cli-1.0.jar;C:\work\finance\fintrac.ear\etc\test-lib\connector-1_5.jar;C:\work\finance\fintrac.ear\etc\test-lib\jotm.jar;C:\work\finance\fintrac.ear\etc\test-lib\jotm_iiop_stubs.jar;C:\work\finance\fintrac.ear\etc\test-lib\jotm_jrmp_stubs.jar;C:\work\finance\fintrac.ear\etc\test-lib\junit-4.3.1.jar;C:\work\finance\fintrac.ear\etc\test-lib\objectweb-datasource.jar;C:\work\finance\fintrac.ear\etc\test-lib\ow_carol.jar;C:\work\finance\fintrac.ear\etc\test-lib\commons-validator.jar;C:\work\finance\fintrac.ear\etc\test-lib\fsbUnitTestUtils.jar;C:\work\finance\fintrac.ear\etc\test-lib\checkstyle-all-4.4.jar, user.name=sgoldsmi, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=true, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=C:\java\jdk1.5.0_06\jre, java.specification.vendor=Sun Microsystems Inc., user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.5.0_06, java.ext.dirs=C:\java\jdk1.5.0_06\jre\lib\ext, sun.boot.class.path=C:\java\jdk1.5.0_06\jre\lib\rt.jar;C:\java\jdk1.5.0_06\jre\lib\i18n.jar;C:\java\jdk1.5.0_06\jre\lib\sunrsasign.jar;C:\java\jdk1.5.0_06\jre\lib\jsse.jar;C:\java\jdk1.5.0_06\jre\lib\jce.jar;C:\java\jdk1.5.0_06\jre\lib\charsets.jar;C:\java\jdk1.5.0_06\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86}
                  DEBUG SessionFactoryObjectFactory - initializing class SessionFactoryObjectFactory
                  DEBUG SessionFactoryObjectFactory - registered: 8ae68b921a071b93011a071b938c0000 (unnamed)
                  INFO  SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
                  DEBUG SessionFactoryImpl - instantiated session factory
                  DEBUG SessionFactoryImpl - Checking 0 named HQL queries
                  DEBUG SessionFactoryImpl - Checking 0 named SQL queries

                  Comment


                  • #10
                    Continued

                    Code:
                    DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                    DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'jobLauncher'
                    DEBUG DefaultListableBeanFactory - Creating instance of bean 'jobLauncher' with merged definition [Root bean: class [org.springframework.batch.core.launch.support.SimpleJobLauncher]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
                    DEBUG DefaultListableBeanFactory - Eagerly caching bean 'jobLauncher' to allow for resolving potential circular references
                    DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'jobRepository'
                    DEBUG DefaultListableBeanFactory - Creating instance of bean 'jobRepository' with merged definition [Root bean: class [org.springframework.batch.core.repository.support.JobRepositoryFactoryBean]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
                    DEBUG DefaultListableBeanFactory - Eagerly caching bean 'jobRepository' to allow for resolving potential circular references
                    DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'dataSource'
                    DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                    DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                    DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'txAdvice'
                    DEBUG DefaultListableBeanFactory - Creating instance of bean 'txAdvice' with merged definition [Root bean: class [org.springframework.transaction.interceptor.TransactionInterceptor]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
                    DEBUG DefaultListableBeanFactory - Eagerly caching bean 'txAdvice' to allow for resolving potential circular references
                    DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'transactionManager'
                    DEBUG DefaultListableBeanFactory - Creating instance of bean 'transactionManager' with merged definition [Root bean: class [org.springframework.orm.hibernate3.HibernateTransactionManager]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [data-sources.xml]]
                    DEBUG DefaultListableBeanFactory - Eagerly caching bean 'transactionManager' to allow for resolving potential circular references
                    DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory'

                    Comment


                    • #11
                      Continued (done with Hibernate stuff)

                      Code:
                      DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                      INFO  HibernateTransactionManager - Using DataSource [org.apache.commons.dbcp.BasicDataSource@180b22e] of Hibernate SessionFactory for HibernateTransactionManager
                      DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                      DEBUG DefaultListableBeanFactory - Creating instance of bean '(inner bean)' with merged definition [Root bean: class [org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
                      DEBUG NameMatchTransactionAttributeSource - Adding transactional method [create*] with attribute [PROPAGATION_REQUIRES_NEW,ISOLATION_SERIALIZABLE]
                      DEBUG NameMatchTransactionAttributeSource - Adding transactional method[*] with attribute [PROPAGATION_REQUIRED,ISOLATION_DEFAULT]
                      DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                      DEBUG AspectJAwareAdvisorAutoProxyCreator - Creating implicit proxy for bean 'jobRepository' with 0 common interceptors and 1 specific interceptors
                      DEBUG JdkDynamicAopProxy - Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [org.springframework.batch.core.repository.support.SimpleJobRepository@1e91a4d]
                      INFO  SimpleJobLauncher - No TaskExecutor has been set, defaulting to synchronous executor.
                      DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                      DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'jdbcTemplate'
                      DEBUG DefaultListableBeanFactory - Creating instance of bean 'jdbcTemplate' with merged definition [Root bean: class [org.springframework.jdbc.core.JdbcTemplate]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=false; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [simple-job-launcher-context.xml]]
                      DEBUG DefaultListableBeanFactory - Eagerly caching bean 'jdbcTemplate' to allow for resolving potential circular references

                      Comment


                      • #12
                        Continued (this is probably the interesting bit)

                        Code:
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'dataSource'
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                        DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'importGeneralLedger'
                        DEBUG DefaultListableBeanFactory - Creating instance of bean 'importGeneralLedger' with merged definition [Root bean: class [org.springframework.batch.core.job.SimpleJob]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [psoft-importer-job.xml]]
                        DEBUG DefaultListableBeanFactory - Eagerly caching bean 'importGeneralLedger' to allow for resolving potential circular references
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'jobRepository'
                        DEBUG DefaultListableBeanFactory - Creating instance of bean 'step1' with merged definition [Root bean: class [org.springframework.batch.core.step.item.SimpleStepFactoryBean]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [psoft-importer-job.xml]]
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'transactionManager'
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'jobRepository'
                        DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'simpleItemReader'
                        DEBUG DefaultListableBeanFactory - Creating instance of bean 'simpleItemReader' with merged definition [Root bean: class [com.fsb.finance.integration.psoft.batch.SimpleItemReader]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [psoft-importer-job.xml]]
                        DEBUG DefaultListableBeanFactory - Eagerly caching bean 'simpleItemReader' to allow for resolving potential circular references
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                        DEBUG DefaultListableBeanFactory - Creating shared instance of singleton bean 'simpleItemWriter'
                        DEBUG DefaultListableBeanFactory - Creating instance of bean 'simpleItemWriter' with merged definition [Root bean: class [com.fsb.finance.integration.psoft.batch.SimpleItemWriter]; scope=singleton; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [psoft-importer-job.xml]]
                        DEBUG DefaultListableBeanFactory - Eagerly caching bean 'simpleItemWriter' to allow for resolving potential circular references
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                        DEBUG ClassUtils - Class [edu.emory.mathcs.backport.java.util.concurrent.Semaphore] or one of its dependencies is not present: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.Semaphore
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor'
                        DEBUG ClassPathXmlApplicationContext - Publishing event in context [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]: org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51: display name [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]; startup date [Tue May 20 12:13:42 EDT 2008]; root of context hierarchy]
                        DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'importGeneralLedger'

                        Comment


                        • #13
                          Continued (here's the exception)

                          Code:
                          ERROR CommandLineJobRunner - Job Terminated in error:
                          java.lang.NullPointerException
                          	at org.springframework.batch.core.launch.support.CommandLineJobRunner.start(CommandLineJobRunner.java:199)
                          	at org.springframework.batch.core.launch.support.CommandLineJobRunner.main(CommandLineJobRunner.java:248)
                          INFO  ClassPathXmlApplicationContext - Closing org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51: display name [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]; startup date [Tue May 20 12:13:42 EDT 2008]; root of context hierarchy
                          DEBUG ClassPathXmlApplicationContext - Publishing event in context [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]: org.springframework.context.event.ContextClosedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51: display name [org.springframework.context.support.ClassPathXmlApplicationContext@7c4c51]; startup date [Tue May 20 12:13:42 EDT 2008]; root of context hierarchy]
                          INFO  DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1aae94f: defining beans [dataSource,sessionFactory,transactionManager,jobRegistryBeanPostProcessor,jobLauncher,jobRegistry,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor,txAdvice,jobRepository,mapJobInstanceDao,mapJobExecutionDao,mapStepExecutionDao,jdbcTemplate,simpleJob,taskletStep,simpleStep,skipLimitStep,customEditorConfigurer,importGeneralLedger,simpleItemReader,simpleItemWriter]; root of factory hierarchy
                          DEBUG DefaultListableBeanFactory - Retrieved dependent beans for bean 'sessionFactory': [transactionManager]
                          DEBUG DefaultListableBeanFactory - Retrieved dependent beans for bean 'transactionManager': [txAdvice, step1]
                          DEBUG DefaultListableBeanFactory - Retrieved dependent beans for bean 'step1': [importGeneralLedger]
                          DEBUG DisposableBeanAdapter - Invoking destroy() on bean with name 'sessionFactory'
                          INFO  LocalSessionFactoryBean - Closing Hibernate SessionFactory
                          INFO  SessionFactoryImpl - closing
                          DEBUG DisposableBeanAdapter - Invoking destroy() on bean with name 'jobRegistryBeanPostProcessor'

                          Comment


                          • #14
                            That's it

                            Whew. That took a bit longer than I thought! :^)

                            It does seem like other beans are able to wire each other, just that jobLauncher cannot be found. I did notice that CommandLineJobRunner has setLauncher(JobRunner). I tried renaming jobLauncher in my config to launcher, but it still did not work.

                            - Saish

                            Comment


                            • #15
                              Very odd, through all those logs I didn't see it loading the bean for JobLauncher, it seemed to load the data source and stop....can you post the contents of the data-sources.xml configuration file?

                              BTW, if you use code tags (like you did) you can post a huge trace without worry, since it will put a scroll bar on it.

                              Comment

                              Working...
                              X