This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Exception in parse method of opencsv Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Exception in parse method of opencsv" Watch "Exception in parse method of opencsv" New topic

Exception in parse method of opencsv

Abhishek Mish

Joined: Dec 21, 2007
Posts: 29
Hi All,
I am using openCsv to bind the csv content to java bean object.
Below is the code snippet,

Above code works fine if my bean class as below

But the problem if setCode of my bean class accept any other datatype other than String. If the getters/setters are changed as below

Then it throws exception while parsing csv file, does that mean it will work only for strings.

Thanks in Advance.
I agree. Here's the link:
subject: Exception in parse method of opencsv
It's not a secret anymore!