Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,412

    The batch context : ...

    The batch context :



    ...
    <!-- ##### import du contexte commun batchs ##### -->
    <import resource="classpath:xxx-batch.xml"/>
    <!-- ##### import du contexte de la couche service ##### -->...
  2. Replies
    3
    Views
    1,412

    Infinitly Looping Tasklet

    Hello,

    On a recent project, I wrote a Spring batch with 2.0.0.RC1 made of 3 steps.

    1rst : a tasklet
    2nd : a multi resource reader, a custom processor and a custom writer
    3rd step : a tasklet...
  3. Replies
    10
    Views
    16,474

    Hello, Running on JBOSS-5.0.0.GA, I'm facing...

    Hello,

    Running on JBOSS-5.0.0.GA, I'm facing the same kind of problem :

    Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-2.5.xsd', because 1) could not...
  4. Replies
    3
    Views
    1,155

    Custom ExitStatus bypass by ItemOrientedStep

    Hello !

    I'm using Spring onErrorInStep method to exit a custom status :



    /**
    * méthode exécutée en cas d'erreur dans le step (Reader ou Writer)
    */
    public ExitStatus...
  5. Thanks....My jar were corrupted.

    Thanks....My jar were corrupted.
  6. Oh well, Are you sure its not your local...

    Oh well,

    Are you sure its not your local resource it returns ?? Remove it from your project if you have one. Because I took your piece of code, and still got a FileNotFoundException at...
  7. hmmmmm... Well I think it's a "fake" Resource...

    hmmmmm...

    Well I think it's a "fake" Resource instance that you got from the jar : now try to read it...
  8. I agree. This might be a bug, or lack of...

    I agree. This might be a bug, or lack of documentation, thanks.

    What else ? I need to use wildcards across all jars included in the classpath. So I think I'll have to make my own PatternResolver...
  9. Sure...well I think you should try it at your...

    Sure...well I think you should try it at your own, putting one property file in src/main/resources, and another (named differently, but respecting the pattern) in a jar to include in the classpath...
  10. I allready tried all this...but the problem is...

    I allready tried all this...but the problem is that it does not see any jar that are explicitely in the classpath.
  11. I'm affraid it does not help, because I put the...

    I'm affraid it does not help, because I put the property file is in root of the jar.

    Furthermore, when debugging, it appears that the absolute classpath root dir is computed by the...
  12. Replies
    2
    Views
    753

    ---------------->{:)}

    ---------------->{:)}<-----------------
  13. Ok then ! Plus it's in the Reference guide,...

    Ok then ! Plus it's in the Reference guide, thanks.
  14. THanks for your replies, but it doesn't help. ...

    THanks for your replies, but it doesn't help.

    I tried "jar:<whatever>" but it's not correct.

    And I also tried "classpath*:<rootdir>/**/test-*.properties" but it doesn't work, whatever I put in...
  15. PathMatchingResourcePatternResolver doesn't find resources in jars

    I have a jar included in the classpath, which contains a property file, but I can't get this file with PathMatchingResourcePatternResolver...



    Resource[] resources = new...
  16. Get ExitStatus in a Junit test when Batch fails

    Hi,

    Got a simple problem :

    In some java piece of code, how can I get ExitStatus after a job having thrown an exception ?

    Explanation :

    I want to test ExitStatus translation, so I run my...
  17. Replies
    2
    Views
    753

    About Exception Types

    Hello, I have two questions :

    First, why does some Spring Batch Interfaces, like ItemWriter and its write() method, use throws clause with Exception, against commonly known good practices ? How...
  18. Iterating again on a second request for each item with JdbcCursorItemReader

    Hello,

    I need to use a JdbcCursorItemReader, and for each red item, call a second SQL request and iterate again. (knowing that using a single request with join would be a waste because of...
  19. All right, I suppose I can catch this exception...

    All right, I suppose I can catch this exception in onErrorInStep() (instanceOf) method of a StepExecutionListener and then return ExitStatus 0, but how do I abort the job then since there are some...
  20. How not to fail when input resource doesn't exist ?

    Hello !

    Something that's look quite simple doh :)

    When launching a job with any writer, an IllegalStateException is thrown and batch fails when specified input resource does not exist.

    So...
  21. Thx +++++++

    Thx +++++++
  22. I'm afraid it doesn't. XmlAnyType from...

    I'm afraid it doesn't.

    XmlAnyType from org.apache, or any XmlBean generated type have too complex equals and/or hashCode methods, which returns false all the time, and even on the same physical...
  23. Thanks, I'm working on it.

    Thanks, I'm working on it.
  24. Skip bad records with StaxEventReader and an XmlBeanMarshaller

    Las time I was trying to skip bad records with HibernateCursorItemReader but the items were just not skipped.

    Actually, implemantation of equals and hashCode methods solve the problem.

    But now...
  25. Replies
    1
    Views
    752

    OutOfMemoryError with StaxEventItemReader

    When parsing a big document with StaxEventItemReader, when the moveCursorToNextFragment() method is called by the framework, an OutOfMemoryError is thrown :/

    Inside moveCursorToNextFragment(), a...
Results 1 to 25 of 37
Page 1 of 2 1 2