Spring batch Java 7的Spring批处理问题

Spring batch Java 7的Spring批处理问题,spring-batch,Spring Batch,我在使用JRE 7在Weblogic 12c中运行Spring批处理作业时遇到了问题 我有以下工作和步骤声明 <bean id="taskletStep" abstract="true" class="org.springframework.batch.core.step.tasklet.TaskletStep"> <property name="jobRepository" ref="jobRepository" /> <property

我在使用JRE 7在Weblogic 12c中运行Spring批处理作业时遇到了问题

我有以下工作和步骤声明

<bean id="taskletStep" abstract="true"
    class="org.springframework.batch.core.step.tasklet.TaskletStep">
    <property name="jobRepository" ref="jobRepository" />
    <property name="transactionManager" ref="transactionManager" />
</bean>
<bean id="doInit_EDIBase" class="tos.demand.edi.batch.EdiApplyInitBaseTasklet"
    abstract="true" />
<bean id="doInit_EDIApply"
    class="tos.demand.order.edi.tasklet.CreateLansideOrderCommonInitTasklet"
    parent="doInit_EDIBase" />
<bean id="doInit_CreateLandsideOrder"
    class="tos.demand.order.edi.tasklet.CreateLandsideOrderSpecializedInitTasklet" />
        class="tos.appinfra.batchprocessing.jobexecutionmonitor.JobExecutionLifecycleAgent" />
<batch:job id="CreateLandsideOrderBatchJobCoparn" job-repository="jobRepository">
    <batch:description>CreateLandsideOrderBatchJobCoparn</batch:description>
    <batch:step id="doInit_Apply" parent="taskletStep" next="doInit_CreateOrder">
        <batch:tasklet ref="doInit_EDIApply" />
    </batch:step>
     <batch:step id="doInit_CreateOrder" parent="taskletStep">
        <batch:tasklet ref="doInit_CreateLandsideOrder" />
    </batch:step>
    <batch:listeners>
        <batch:listener ref="batchjobExecutionListener" />
    </batch:listeners>
</batch:job>

当我删除步骤“doInit_Apply”并仅保留“doInit_CreateOrder”时,“doInit_CreateOrder”将成功执行。只有条件步骤执行失败


另外,尽管在log4j.properties中添加了log4j.logger.org.springframework.batch=debug,但我没有获得Spring批记录信息。

看起来您在:tos.appinfra.batchprocessing.domain.jobControlServiceImpl.submitJobToSpring处遇到运行时异常。您能否编辑并发布完整的stacktrace以查看根本原因?
org.springframework.batch.core.JobExecutionException: Flow execution ended unexpectedly
at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:141)
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:301)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run   (SimpleJobLauncher.java:134)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48)
at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:127)
at tos.appinfra.batchprocessing.domain.JobControllServiceImpl.submitJobToSpring(JobControllServiceImpl.java:164).