Skip to content

java.lang.NumberFormatException: For input string: "101f-00000001" #28

@FibreFoX

Description

@FibreFoX

I am having trouble with some stored .msg-files I want to load/parse.

final OutlookMessageParser parser = new OutlookMessageParser();

try{
    parser.parseMsg("somefile.msg");
} catch(Throwable ex){
    // NO-OP please ignore, this is example code, you know
}

When trying to load the file I get this stacktrace:

23:28:23.790 [main] INFO org.simplejavamail.outlookmessageparser.OutlookMessageParser - Could not parse directory entry __substg1.0_8009101F-00000001
java.lang.NumberFormatException: For input string: "101f-00000001"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at org.simplejavamail.outlookmessageparser.OutlookMessageParser.analyzeDocumentEntry(OutlookMessageParser.java:577)
	at org.simplejavamail.outlookmessageparser.OutlookMessageParser.getMessagePropertyFromDocumentEntry(OutlookMessageParser.java:395)
	at org.simplejavamail.outlookmessageparser.OutlookMessageParser.checkDirectoryDocumentEntry(OutlookMessageParser.java:258)
	at org.simplejavamail.outlookmessageparser.OutlookMessageParser.checkDirectoryEntry(OutlookMessageParser.java:204)
	at org.simplejavamail.outlookmessageparser.OutlookMessageParser.parseMsg(OutlookMessageParser.java:129)
	at org.simplejavamail.outlookmessageparser.OutlookMessageParser.parseMsg(OutlookMessageParser.java:98)

Using some example-files (https://github.com/bbottema/outlook-message-parser/tree/master/src/test/resources/test-messages) provided by this project it works. I will try to get some example file ready, but as this is some kind of paid-work stuff, this will take some time to provide a proper .msg-file for debugging.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions