Search:

Type: Posts; User: lpezet; Keyword(s):

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    208

    Custom Resource/ResourceLoader(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...
  2. Controller hierarchy deprecated (v3.x) vs. Annotations

    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...
  3. Replies
    0
    Views
    590

    Display errors without posting form

    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...
  4. Replies
    11
    Views
    6,034

    Thanks Tareq. That's a great post to use REST...

    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.
    ...
  5. Replies
    11
    Views
    6,034

    REST = MVC...really?

    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...
  6. Replies
    20
    Views
    3,796

    Here is the answer: the name of the step MUST be...

    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"...
  7. Replies
    20
    Views
    3,796

    Problem seems to come from something dealing with...

    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...
  8. Replies
    20
    Views
    3,796

    I'll dig into the source code now, but just...

    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...
  9. Replies
    20
    Views
    3,796

    No I'm not.

    No I'm not.
  10. Replies
    20
    Views
    3,796

    Oh good catch! So no, I could use a simple int....

    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...
  11. Replies
    20
    Views
    3,796

    Nope. Just running it from command line. There...

    Nope. Just running it from command line.
    There is really nothing more from what I have posted already.


    java -Xmx512M -classpath...
  12. Replies
    20
    Views
    3,796

    Sorry lucasward, maybe I'm not explaining it...

    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,...
  13. Replies
    20
    Views
    3,796

    Thanks for sharing that chudak. I have a...

    Thanks for sharing that chudak.

    I have a similar config:


    <bean id="TestSimpleJob" class="org.springframework.batch.core.job.SimpleJob">
    <property name="jobRepository"...
  14. Replies
    20
    Views
    3,796

    Would that resume the job or not? Meaning, would...

    Would that resume the job or not? Meaning, would it start from where it left off? (if configured to do so)
  15. Replies
    20
    Views
    3,796

    @magott: My ItemReader extends...

    @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...
  16. Replies
    20
    Views
    3,796

    Restart/Continue where left off

    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...
  17. Replies
    11
    Views
    1,717

    Stupid error (as always). My BATCH_JOB_SEQ table...

    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...
  18. Replies
    11
    Views
    1,717

    Couldn't find mention of any of the incrementers...

    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...
  19. Replies
    11
    Views
    1,717

    Just a thought: what would happen if the...

    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...
  20. Replies
    11
    Views
    1,717

    Thanks lucasward. Took me a while to add all the...

    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...
  21. Replies
    11
    Views
    1,717

    I do have all of those sequence tables but they...

    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...
  22. Replies
    11
    Views
    1,717

    Here it is: In the sql files I found in SVN,...

    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,...
  23. Replies
    11
    Views
    1,717

    Running new job: "Duplicate entry"

    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...
  24. Replies
    2
    Views
    5,447

    logs

    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 ...
  25. Replies
    2
    Views
    5,447

    Commit transaction after exception thrown

    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...
Results 1 to 25 of 25