Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while reading a record marked to be deleted #15

Open
darkman97i opened this issue Mar 29, 2016 · 0 comments
Open

Error while reading a record marked to be deleted #15

darkman97i opened this issue Mar 29, 2016 · 0 comments

Comments

@darkman97i
Copy link

Hi,

When I'm reading a dbf with a record marked to be deleted it raises and error.

DbfReader reader = new DbfReader(new File("path_to_some_dbf_file"));
Object[] row;
int count = 1;
while ((row = reader.nextRecord()) != null) {
}

The error appears in reader.nextRecord() ( the line 58 of my class )

Caused by: org.jamel.dbf.exception.DbfException: Failed to parse Number from SHB06
at org.jamel.dbf.DbfReader.readNumericValue(DbfReader.java:137)
at org.jamel.dbf.DbfReader.readFieldValue(DbfReader.java:100)
at org.jamel.dbf.DbfReader.nextRecord(DbfReader.java:81)
at com.openkm.plugin.form.values.OptionSelectProveedoresList.getOptions(OptionSelectProveedoresList.java:58)
... 65 more
Caused by: java.lang.NumberFormatException: For input string: "F 0"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1250)
at java.lang.Double.valueOf(Double.java:504)
at org.jamel.dbf.DbfReader.readNumericValue(DbfReader.java:135)
... 68 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant