Note that there are some explanatory texts on larger screens.

plurals
  1. POjxls-reader: Example from reference doesn't work
    primarykey
    data
    text
    <p>I need to read XLS files from Java. For that purpose I start evaluating <a href="http://jxls.sourceforge.net/" rel="nofollow">jXLS</a> framework. Unfortunately, I'm still getting following exception while trying to run example on their <a href="http://jxls.sourceforge.net/reference/reader.html" rel="nofollow">XLS reader reference</a> page:</p> <pre><code>Exception in thread "main" net.sf.jxls.reader.XLSDataReadException: Can't read cell A4 on Sheet1 spreadsheet at net.sf.jxls.reader.SimpleBlockReaderImpl.read(SimpleBlockReaderImpl.java:61) at net.sf.jxls.reader.XLSSheetReaderImpl.read(XLSSheetReaderImpl.java:25) at net.sf.jxls.reader.XLSReaderImpl.readSheet(XLSReaderImpl.java:45) at net.sf.jxls.reader.XLSReaderImpl.read(XLSReaderImpl.java:31) at com.oracle.sk.jxls.App.go(App.java:46) at com.oracle.sk.jxls.App.main(App.java:19) </code></pre> <p>Changes I've made against original are:</p> <ul> <li>moved Department.java and Employee.java into the same package where main class is (in other words next to App.java)</li> <li>add empty no-args constructor to both</li> <li>change the varType (full class names for Employee and Department) everywhere in departments.xml accordingly</li> </ul> <p>Both departments.xml and departmentdata.xls are taken directly from the <a href="http://jxls.sourceforge.net/reference/reader.html" rel="nofollow">XLS reader reference page</a>. <a href="http://jxls.sourceforge.net/samples/departmentbean.html" rel="nofollow">Department.java</a> and <a href="http://jxls.sourceforge.net/samples/employeebean.html" rel="nofollow">Employee.java</a> are downloaded from <a href="http://jxls.sourceforge.net/reference/simplebeans.html" rel="nofollow">Simple beans</a> page (on jXLS site too). If necessary, I can provide my complete Maven project.</p> <p>Please, does anyone have a clue, why it is not working?</p> <p>Thank you in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload