Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There's a couple of problems:</p> <ol> <li><p><code>ParseInt</code> and <code>ParseDouble</code> are used for <em>reading</em> CSV Strings into <code>Integer</code> and <code>Double</code> respectively. See the handy table <a href="http://supercsv.sourceforge.net/cell_processors.html" rel="nofollow">here</a> to see what cell processors can be used for reading/writing or both. You can leave them <code>null</code> if you want, and Super CSV will just call <code>toString()</code> on each object.</p></li> <li><p>The exception you're getting (1 column / 8 processors) indicates that you're expecting there to be 8 columns (i.e. 8 elements in your List), but there's only 1. You're only passing a single String into <code>Arrays.asList()</code> - looks like you're assuming this method actually splits the String into a List (it doesn't!).</p></li> <li><p>Why are you converting your rent data List to a String? That is really bizarre. If your data needs any manipulation (I'm not sure if it does), then you should be updating each element in your List, not converting the whole List to a String then trying to split it up again.</p></li> <li><p>What is the output when you don't do any replacement, i.e. what happens when you pass your <code>rentData</code> list directly to <code>listWriter.write()</code>?</p></li> </ol> <p>Can I suggest you fix the processor set up (replace the <code>ParseInt</code> and <code>ParseDouble</code> with <code>null</code>), pass the <code>rentData</code> List directly to Super CSV...</p> <pre><code>listWriter.write(rentData, processors); </code></pre> <p>...then post the result (output/stacktrace) to your question. </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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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