We have experience a couple of times the batch failing with the error below.
I can't see that we have done any modifications to the code causing this.
Any tip????
We are running on...
Type: Posts; User: geira; Keyword(s):
We have experience a couple of times the batch failing with the error below.
I can't see that we have done any modifications to the code causing this.
Any tip????
We are running on...
We have som managers autowired referencing each other.
Manager1 uses Manager2
Manager2 uses Manager1
The managers gets autowired without any problem, and the applications runs without any...
Thanks for the solution.
Geir
We have a batch job consisting of 24 steps, - skipLimitSteps, simpleSteps and tasklets. Sometimes we would like to disable 1 or 2 steps in the job.
What would be the best practice in how to...
What I expect to see is the DataSet - annotated and loaded into the database being visible to the HibernateCursorItemReader. By this I am able to perform an Assert test before and after the batchJob...
We are running batch 1.1.4-RELEASE.
We are unit testing our batch ItemWriter/tasklets classes quiet extensively using Unitils (2.2) with the testng implementation and DbUnit.
I am not able to...
I am experiencing problems after upgrading to 1.1.4.
I have an application using Quartz to lauch batch-jobs/task. After an exception has occurred (ConstraintViolationException).
Upon restart,...
Hi Dave, you got me onto the right track.
My problem was appearently cause by the SessionFactory. My dao-classes was using a different SessionFactory than the one provided to the...
We are autowiring in the sessionFactory in to the constructor of the Dao class extending from: HibernateDaoSupport
@Repository
@SuppressWarnings("unchecked")
public class...
My question was perhaps a little bit confusing...
Do I need to put the flushMode into manual, as shown in the code, and leaving it up to the AbstractTransactionalResourceItemWriter to flush the...
Are you meaning the dao operations called via the "subscriptionRequestItemWriter"?
In this case, - we are using the getHibernateTemplate(), - which get their sessionFactory via autowiring in the...
The session seems to be flushed as you say.
When I do a query with DbVisualizer vs. the database (Oracle 10g 8740264), nothing is visible in the database prior to the call with...
Problems with data being committed after on the 2nd item in the writer.
My writer is an implementation extending from the AbstractTransactionalResourceItemWriter.
My problem is that the data...
About flushing in the writer, - how will that work/interfere with the commit count declared on the step? Doesn't a flush, - provoke a commit?
However, upgrading to 1.1.4 solved the problems.
...
For what regards the transactionAttribute declaration, - I thought this was needed to get a rollback to work.
About flushing. I don't do any flushing in my business code. We just do a...
Try to add startup with command line parameter: -Djava.version=1.5.. or whatever version you are running on.
Geir
I have a problem with the transaction handling when an exceptions thrown, when a chunk is commited. The ConstraintViolationException doesn't roll back the saved operations. Any exceptions thrown in...
I have problems with transactions not rolled back when exceptions occurs in the Tasklet with a TaskletStep. I can't find the settings ala: transactionAttribute which exist in steps created from a...
I need to process daily items provided by an HibernateItemReader.
In the writer I call a business method. I need to force a rollback, so that all modifications are rolled back.
When a given...
It worked by transactionAttribute property. The changes was rolled back for the current step, was rolled back as expected.
<bean id="subscriptionRequestHandlerStep"...
I can't see that it is a matter of how many records I am processing.
I have isoloated the case to just process 1 record. I perform some changes resulting in a db-save in the writer, and thereafter...
According to the javadoc for the skippableExceptionClasses I thought that the exception should result in a rollback and not in a commit, or am I wrong?
* Public setter for exception classes that...
We have skipLimitStep
<bean id="simpleJob" class="org.springframework.batch.core.job.SimpleJob" abstract="true">
<property name="jobRepository" ref="simpleJobRepository"/>
...
How may I programatically change the commitInterval when upon an exception?
I want the step to be started again with commitInterval=1 when an exception has occurred.
Geir
How do I manage to write an error status to our business db when an error occurs and the transaction is rolled back when the exception is thrown in the item writer?
Geir