Spring Projects Issues

Results 1569 comments of Spring Projects Issues

**[Roman Nikolaenko](https://jira.spring.io/secure/ViewProfile.jspa?name=roman_nikolaenko)** commented Hi! I faced with this kind of issue on WebLogic 10.3.6, using org.springframework.batch version 2.1.9.RELEASE. We have batch job that reads Domain objects from xml, then populates...

**[Davi Alves](https://jira.spring.io/secure/ViewProfile.jspa?name=traduz)** commented Maybe I'm missing something here.

**[Dave Syer](https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer)** commented I agree that the flush() in JpaPagingItemReader might be a mistake, but it would be harmless if you follow best practice advice (as per the forum thread)...

**[David J. M. Karlsen](https://jira.spring.io/secure/ViewProfile.jspa?name=davidkarlsen)** commented Any chance of getting this fixed?

**[Jimmy Praet](https://jira.spring.io/secure/ViewProfile.jspa?name=jpraet)** commented There is no standard support for XML formatting in stax. But a third-party library called stax-utils (https://java.net/projects/stax-utils/) does provide this functionality (with javanet.staxutils.IndentingXMLEventWriter). If you really need...

**[David J. M. Karlsen](https://jira.spring.io/secure/ViewProfile.jspa?name=davidkarlsen)** commented Yes, this is what I ended up with if the project wants it: ``` +import java.io.Writer; + +import javanet.staxutils.IndentingXMLEventWriter; + +import javax.xml.stream.XMLEventWriter; +import javax.xml.stream.XMLOutputFactory; +import...

**[Sebastien Lorber](https://jira.spring.io/secure/ViewProfile.jspa?name=sebastienlorber)** commented Check also this issue: https://jira.springsource.org/browse/BATCH-2113

**[Smail Louahchi](https://jira.spring.io/secure/ViewProfile.jspa?name=slouahchi)** commented Please check, if its possible to add prettyPrint Feature to StaxEventItemWriter with IndentingXMLEventWriter. In my CustomStaxEventItemWriter the user has the choice with an boolean flag for pretty...

**[Ketan Prajapati](https://jira.spring.io/secure/ViewProfile.jspa?name=ketanprajapati88)** commented `@Smail`, thanks for possible solution. It is helping to generate pretty printed XML but it has a side effect as mentioned in https://jira.springsource.org/browse/BATCH-2113. because StaxEventItemWriter is not...

**[Vishal Pawar](https://jira.spring.io/secure/[email protected])** commented Thanks all for the info on this issue. Do we have a better solution for this since last discussed