Spring Projects Issues

Results 1565 comments of Spring Projects Issues

**[Ivo Smid](https://jira.spring.io/secure/ViewProfile.jspa?name=bedla.czech)** commented Hi, I have created PR with similar issue. Please take a look at it. Thx Ivos https://github.com/spring-projects/spring-framework/pull/1544

**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented One bit of extra info that popped up. The bit of logging shown above was produced by processing a small batch of 500 elements. For the "doc.doIntegration"...

**[Jimmy Praet](https://jira.spring.io/secure/ViewProfile.jspa?name=jpraet)** commented As you already noted yourself, you should be using `ItemCountAware` to obtain the item number. `StaxEventItemReader.read.count` will only be updated in the `ExecutionContext` at the end of...

**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented [Jimmy Praet](https://jira.spring.io/secure/ViewProfile.jspa?name=jpraet), You're absolutely right that this does not feel like an ideal solution. I'll look into switching to ItemCountAware. One complexity I'll have to tackle here...

**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented Using the JAXB2 commons I was able to have the generated classes extend a superclass that is ItemCountAware (using in bindings.xjb). In other words, we're now leveraging...

**[Erwin Vervaet](https://jira.spring.io/secure/ViewProfile.jspa?name=klr8)** commented [Jimmy Praet](https://jira.spring.io/secure/ViewProfile.jspa?name=jpraet), One small tip: it might be useful to mention explicitly in the ItemCountAware JavaDoc that the count starts at 1 and consequently cannot be used...

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be...

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

**[Dave Syer](https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer)** commented Thanks for the suggestion. I believe, however, that ItemStream.close() is called at a very precise point in the step execution for a particular reason, so we might...

**[Valentin Ozanne](https://jira.spring.io/secure/ViewProfile.jspa?name=valentin.ozanne)** commented Hi Dave, Thank you for your comment. Here is a typical scenario: When I use a FlatFileItemWriter, I want to write footer (a special record at the...