Giter VIP home page Giter VIP logo

Comments (4)

simonbahuchet avatar simonbahuchet commented on May 7, 2024

from spring-batch-extensions.

flacohenao avatar flacohenao commented on May 7, 2024

@simonbahuchet Thanks for the reply.

I solve the problem just creating the exact Reader and sheet just putting the .getIndexAt() method public and setting the sheet index I want to get.

I took a look at the library you recomended.. but its just for 2007 format, doesnt support .xlsx fortmat.

Do you think I managed that poorly?

thanks.

from spring-batch-extensions.

shoaibshaikh1516 avatar shoaibshaikh1516 commented on May 7, 2024

@flacohenao can you provide your code, where you have fixed above issue (Sheet index (1) is out of range (0..0)) @flacohenao

from spring-batch-extensions.

mdeinum avatar mdeinum commented on May 7, 2024

The PoiItemReader is holding some state, including the sheet. Your bean is a singleton so it will be reused. You want to define the reader as @StepScope or @JobScope so that you get a fresh instance each time you want to read a sheet.

That being said we can probably store the state in the ExecutionContext and retrieve it from there.

from spring-batch-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.