Read data from cell by poi Announcing the arrival of Valued Associate #679: Cesar Manara ...

How to find all the available tools in mac terminal?

What does "fit" mean in this sentence?

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

Apollo command module space walk?

Why do we bend a book to keep it straight?

Why are Kinder Surprise Eggs illegal in the USA?

Book where humans were engineered with genes from animal species to survive hostile planets

How does the particle を relate to the verb 行く in the structure「A を + B に行く」?

What is the meaning of the new sigil in Game of Thrones Season 8 intro?

How to align text above triangle figure

Generate an RGB colour grid

Fundamental Solution of the Pell Equation

How to find out what spells would be useless to a blind NPC spellcaster?

Why is "Consequences inflicted." not a sentence?

Bete Noir -- no dairy

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

Coloring maths inside a tcolorbox

Seeking colloquialism for “just because”

What causes the vertical darker bands in my photo?

How to bypass password on Windows XP account?

Why did the rest of the Eastern Bloc not invade Yugoslavia?

Why are there no cargo aircraft with "flying wing" design?

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

What would be the ideal power source for a cybernetic eye?



Read data from cell by poi



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Remove data from a cell in ExcelTaking data from an adjacent cell by name in cellBlank Cell Until Data is EnteredSplit data from single cell into multiple recordsRemove Data from CellFinding differences between files (xlsx) due to SAP BI updateConverting a Windows xlsx into a Mac xlsxFind corresponding column and row data based on data from another cell in ExcelExcel 2016 - Add data from adjacent cell in formulaCan't get element id using Selenium from a specific page





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have two xlsx, one with expected result, another one was generated by our app.
There are no differences visually. From first file I can retrieve all data.



But when I try read data from generated file, all data with currency format cast:



java.lang.IndexOutOfBoundsException: Index: 13, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at org.apache.poi.xssf.model.StylesTable.getCellStyleXfAt(StylesTable.java:305)
at org.apache.poi.xssf.usermodel.XSSFCellStyle.<init>(XSSFCellStyle.java:76)
at org.apache.poi.xssf.model.StylesTable.getStyleAt(StylesTable.java:239)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:483)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:64)
at org.apache.poi.ss.usermodel.DateUtil.isCellDateFormatted(DateUtil.java:412)
at org.apache.poi.xssf.usermodel.XSSFCell.toString(XSSFCell.java:795)
at java.lang.String.valueOf(String.java:2994)
at java.io.PrintStream.println(PrintStream.java:821)
at promotionTest.complexInstruments.TestExcel.test(TestExcel.java:58)


enter image description here



I've tried difference classes but still no result










share|improve this question









New contributor




NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • I suppose it is a problem when you read the generated file. So it would be helpful to know your code around TestExcel, line 58

    – IQV
    17 hours ago


















0















I have two xlsx, one with expected result, another one was generated by our app.
There are no differences visually. From first file I can retrieve all data.



But when I try read data from generated file, all data with currency format cast:



java.lang.IndexOutOfBoundsException: Index: 13, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at org.apache.poi.xssf.model.StylesTable.getCellStyleXfAt(StylesTable.java:305)
at org.apache.poi.xssf.usermodel.XSSFCellStyle.<init>(XSSFCellStyle.java:76)
at org.apache.poi.xssf.model.StylesTable.getStyleAt(StylesTable.java:239)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:483)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:64)
at org.apache.poi.ss.usermodel.DateUtil.isCellDateFormatted(DateUtil.java:412)
at org.apache.poi.xssf.usermodel.XSSFCell.toString(XSSFCell.java:795)
at java.lang.String.valueOf(String.java:2994)
at java.io.PrintStream.println(PrintStream.java:821)
at promotionTest.complexInstruments.TestExcel.test(TestExcel.java:58)


enter image description here



I've tried difference classes but still no result










share|improve this question









New contributor




NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • I suppose it is a problem when you read the generated file. So it would be helpful to know your code around TestExcel, line 58

    – IQV
    17 hours ago














0












0








0








I have two xlsx, one with expected result, another one was generated by our app.
There are no differences visually. From first file I can retrieve all data.



But when I try read data from generated file, all data with currency format cast:



java.lang.IndexOutOfBoundsException: Index: 13, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at org.apache.poi.xssf.model.StylesTable.getCellStyleXfAt(StylesTable.java:305)
at org.apache.poi.xssf.usermodel.XSSFCellStyle.<init>(XSSFCellStyle.java:76)
at org.apache.poi.xssf.model.StylesTable.getStyleAt(StylesTable.java:239)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:483)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:64)
at org.apache.poi.ss.usermodel.DateUtil.isCellDateFormatted(DateUtil.java:412)
at org.apache.poi.xssf.usermodel.XSSFCell.toString(XSSFCell.java:795)
at java.lang.String.valueOf(String.java:2994)
at java.io.PrintStream.println(PrintStream.java:821)
at promotionTest.complexInstruments.TestExcel.test(TestExcel.java:58)


enter image description here



I've tried difference classes but still no result










share|improve this question









New contributor




NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have two xlsx, one with expected result, another one was generated by our app.
There are no differences visually. From first file I can retrieve all data.



But when I try read data from generated file, all data with currency format cast:



java.lang.IndexOutOfBoundsException: Index: 13, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at org.apache.poi.xssf.model.StylesTable.getCellStyleXfAt(StylesTable.java:305)
at org.apache.poi.xssf.usermodel.XSSFCellStyle.<init>(XSSFCellStyle.java:76)
at org.apache.poi.xssf.model.StylesTable.getStyleAt(StylesTable.java:239)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:483)
at org.apache.poi.xssf.usermodel.XSSFCell.getCellStyle(XSSFCell.java:64)
at org.apache.poi.ss.usermodel.DateUtil.isCellDateFormatted(DateUtil.java:412)
at org.apache.poi.xssf.usermodel.XSSFCell.toString(XSSFCell.java:795)
at java.lang.String.valueOf(String.java:2994)
at java.io.PrintStream.println(PrintStream.java:821)
at promotionTest.complexInstruments.TestExcel.test(TestExcel.java:58)


enter image description here



I've tried difference classes but still no result







microsoft-excel java selenium






share|improve this question









New contributor




NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 18 hours ago









Máté Juhász

14.8k63552




14.8k63552






New contributor




NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 18 hours ago









NiG1lisTNiG1lisT

1




1




New contributor




NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






NiG1lisT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • I suppose it is a problem when you read the generated file. So it would be helpful to know your code around TestExcel, line 58

    – IQV
    17 hours ago



















  • I suppose it is a problem when you read the generated file. So it would be helpful to know your code around TestExcel, line 58

    – IQV
    17 hours ago

















I suppose it is a problem when you read the generated file. So it would be helpful to know your code around TestExcel, line 58

– IQV
17 hours ago





I suppose it is a problem when you read the generated file. So it would be helpful to know your code around TestExcel, line 58

– IQV
17 hours ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






NiG1lisT is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1425946%2fread-data-from-cell-by-poi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








NiG1lisT is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















NiG1lisT is a new contributor. Be nice, and check out our Code of Conduct.













NiG1lisT is a new contributor. Be nice, and check out our Code of Conduct.












NiG1lisT is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1425946%2fread-data-from-cell-by-poi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...