I've been looking for a way to register a custom Resource and/or ResourceLoader but there does NOT seem to be a way to do so in Spring 3.1.x.
All the Resource handling is pretty much "hard coded" in...
Type: Posts; User: lpezet; Keyword(s):
I've been looking for a way to register a custom Resource and/or ResourceLoader but there does NOT seem to be a way to do so in Spring 3.1.x.
All the Resource handling is pretty much "hard coded" in...
Hi,
I read blogs and articles about it that "annotations are an upgrade" or that the "controller classes were not flexible enough".
Sure enough, Spring folks keep saying it's no putsch and people...
Hi,
I'm trying to validate some inputs in the formBackingObject() using bindAndValidate().
The validator does get called and runs just fine but the errors are not "passed" to the view.
When I do...
Thanks Tareq.
That's a great post to use REST with Spring 3.0 indeed.
However, it doesn't really say "why" it's in MVC. It sounds like it's because it was technically easier or more suitable.
...
Hi,
This post is for both Spring MVC & Spring Web Services actually.
I'm a little confused by many posts I found on the Spring Forums while trying to figure whether REST will be part of Spring...
Here is the answer: the name of the step MUST be the same.
It's really a stupid-simple thing I know...sigh
So the following config will not work as expected:
<bean id="TestSimpleJob"...
Problem seems to come from something dealing with the database.
I changed the code not using spring.xml and setup the JobRepository to use MySQL DB instead of the In-Memory one.
Output with...
I'll dig into the source code now, but just wanted to post everything in one post in case some gentle soul would like to try to replicate the problem on his/her computer (or might find the answer at...
No I'm not.
Oh good catch!
So no, I could use a simple int. No threads specified/used/spawn anywhere.
I posted the command line cause it just calls the job defined in the spring config I posted a little...
Nope. Just running it from command line.
There is really nothing more from what I have posted already.
java -Xmx512M -classpath...
Sorry lucasward, maybe I'm not explaining it clearly.
The "4th run then random" was really just a one time experience.
It's always pretty random.Sometimes it would work for couple runs in a row,...
Thanks for sharing that chudak.
I have a similar config:
<bean id="TestSimpleJob" class="org.springframework.batch.core.job.SimpleJob">
<property name="jobRepository"...
Would that resume the job or not? Meaning, would it start from where it left off? (if configured to do so)
@magott:
My ItemReader extends AbstractBufferedItemReaderItemStream.
No particular reason except that I'm interested in the StaxEventItemReader one for my project (need to be able to resume a...
Hi,
Really new to Spring Batch so it's gonna be easy I guess.
I can't figure out how "Restart/Resume failed job" works exactly.
Here is my sample app:
- 1 simple job with 1 step.
- Step has...
Stupid error (as always).
My BATCH_JOB_SEQ table (used by MySQLMaxValueIncrementer) didn't have any rows.
MySQLMaxValueIncrementer is expecting 1 row, and updates it to simulate a sequence (and...
Couldn't find mention of any of the incrementers in the logs :-/
Here is what I found:
I does look like the JOB-INSTANCE_ID is somehow set to 0 when inserting the data into the db.
Any idea...
Just a thought: what would happen if the incrementer for the job (jobIncrementer) was missing? Would it be a different error or would it use 0 by default?
I'll switch to debug and look at the logs...
Thanks lucasward. Took me a while to add all the aop thing but I just did and I still get the same result: "Duplicate entry".
Here is my spring context:
The jobs are defined here:
The...
I do have all of those sequence tables but they are all empty (no rows).
BATCH_JOB_INSTANCE, BATCH_JOB_EXECUTION and BATCH_STEP_EXECUTION have all 1 row. (I ran 1 job which succeeded and the second...
Here it is:
In the sql files I found in SVN, it doesn't look like there was any sequence for Job Instance (that's mostly the reason why I'm so lost...don't understand how it works...)
Thanks,...
Hi,
Just got started with Spring Batch 1.0.0.FINAL (using maven2).
I store the job info in a MySQL db. I found the SQL files to create the tables from the source files (in SVN) and I used them to...
Here are the logs I get when testing my application.
The "Data truncated..." message is OK (that's just a way to make my second save() throw an exception)
2006-08-02 15:38:16,556 INFO ...
Hi,
I'm a newbie in Spring and I couldn't find anything close to my problem on the forums. I apologize if it has already been covered.
I'm using hibernate3.HibernateTransactionManager to...