outlook-message-parser icon indicating copy to clipboard operation
outlook-message-parser copied to clipboard

Fix #62: MimeType NoClassDefFoundError

Open gregorycollins opened this issue 3 years ago • 2 comments

See https://stackoverflow.com/questions/16570523/getresourceasstream-returns-null; the two fixes are

  • call the class' getResourceAsStream() instead of the ClassLoader's
  • use an absolute path to get the resource.

Passes mvn test here.

gregorycollins avatar Mar 31 '23 15:03 gregorycollins

Thank you so much for taking the time to fix this. Yeah, this kind of file retrieval is a pain in the black hole, because I'm sure this version will fail too in some other context, perhaps when deployed as part of a... Tomcat war or whatever.

So I don't think I'm going to be happy about this, until we attempt both ways, sort of like a graceful degradation. Basically if result null, try the other way. If you add that, I'll merge and release right away.

bbottema avatar Apr 05 '23 13:04 bbottema

Any update on your side? It would be a helpful change, but I'll close the PR otherwise.

bbottema avatar Apr 04 '24 19:04 bbottema

Closed as a result of prolonged inactivity.

bbottema avatar Apr 24 '24 12:04 bbottema