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

java.io.UnsupportedEncodingException: ISO-8859-8-I #57

Open
7UpMan opened this issue Apr 19, 2017 · 9 comments
Open

java.io.UnsupportedEncodingException: ISO-8859-8-I #57

7UpMan opened this issue Apr 19, 2017 · 9 comments

Comments

@7UpMan
Copy link

7UpMan commented Apr 19, 2017

Hi I am processing a 200,000 mail archive a somewhere between 149,000 and 150,000 I got the exception:

Unable to decode string java.io.UnsupportedEncodingException: ISO-8859-8-I at java.lang.StringCoding.decode(StringCoding.java:190) at java.lang.String.<init>(String.java:426) at java.lang.String.<init>(String.java:491) at com.pff.PSTObject.createJavaString(PSTObject.java:327) at com.pff.PSTObject.getStringItem(PSTObject.java:300) at com.pff.PSTMessage.getBodyHTML(PSTMessage.java:717) at com.s4apps.mailIndex.S4Folder.storeMessage(S4Folder.java:218) at com.s4apps.mailIndex.S4Folder.processItems(S4Folder.java:203) at com.s4apps.mailIndex.S4Folder.store(S4Folder.java:77) at com.s4apps.mailIndex.S4Folder.store(S4Folder.java:82) at com.s4apps.mailIndex.S4Folder.store(S4Folder.java:82) at processemail.ProcessEmail.<init>(ProcessEmail.java:80) at processemail.ProcessEmail.main(ProcessEmail.java:56)

The last line of my code reads String bodyTextHtml = msg.getBodyHTML();

The program then went on to completion.

Tracking down the exact item is possible, but rather time consuming.

Thanks

PS - I use NetBeans as the IDE and it grabbed the code from Git. Version: 0.9.5-SNAPSHOT

PPS - love the library, fantastic work.

@rjohnsondev
Copy link
Owner

rjohnsondev commented Apr 19, 2017 via email

@7UpMan
Copy link
Author

7UpMan commented Apr 19, 2017

Will do. I will run it over night and get back to you.

@7UpMan
Copy link
Author

7UpMan commented Apr 20, 2017

I re-ran the test as requested and all ok. I will close this issue.

Thanks.

@7UpMan 7UpMan closed this as completed Apr 20, 2017
@rjohnsondev
Copy link
Owner

Just checking, did the problem exist in 0.9.5-snapshot but not is 0.9.4? I ask because there was some encoding stuff changed, and it's possible a bug was introduced....

@7UpMan
Copy link
Author

7UpMan commented Apr 20, 2017

You are correct. Everything was fine in 0.9.4 but the exception occurred in 0.9.5-snapshot. It was 1 record out of 200,000. I was going to re-run tonight with the 0.9.5-snapshot and see if it is consistent.

Let me know if you have any other things you would like me to try.

@rjohnsondev
Copy link
Owner

cool, going to re-open then; it's probably a quick fix

@rjohnsondev rjohnsondev reopened this Apr 20, 2017
@7UpMan
Copy link
Author

7UpMan commented Apr 21, 2017

I re-ran the test with 0.9.5-snapshot and it failed at the same point. 200,000 rows and 1 failure.

What would you like to do next?

@rjohnsondev
Copy link
Owner

rjohnsondev commented Apr 21, 2017 via email

@7UpMan
Copy link
Author

7UpMan commented Apr 21, 2017

If you are having a dig around in the code I also get a:

Can't get children for folder 2014(33570) child count: 33486 - java.lang.ArrayIndexOutOfBoundsException: 47, using alternate child tree with 33486 items

This seems to be more of a warning than an error.

I also get lots of different unknown message types which don't seem to affect anything:

  • IPM.Note.Rules.OofTemplate.Microsoft
  • IPM.Note.StorageQuotaWarning
  • REPORT.IPM.Note.NDR
  • REPORT.IPM.Note.IPNRN
  • IPM.Note.SpamReportForm_136E441
  • REPORT.IPM.Note.DR
  • REPORT.IPM.Schedule.Meeting.Request.NDR
  • IPM.Sharing
  • REPORT.IPM.Schedule.Meeting.Resp.Neg.NDR
  • IPM.Recall.Report.Success
  • REPORT.IPM.Outlook.Recall.NDR
  • IPM.Recall.Report.Failure
  • IPM
  • REPORT.IPM.Note.IPNNRN
  • IPM.Document.FoxitReader.Document
  • IPM.TaskRequest
  • IPM.Note.Rules.ReplyTemplate.Microsoft
  • IPM.Note.Rules.ExternalOofTemplate.Microsoft
  • REPORT.REPORT.IPM.Note.IPNRN.NDR
  • IPM.Post
  • REPORT.IPM.Note.Delayed.DR
  • IPM.Note.NotSupportedICal
  • REPORT.IPM.Schedule.Meeting.Canceled.NDR
  • IPM.Note.StorageQuotaWarning.Warning
  • IPM.Note.Mobile.SMS

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

2 participants