Help: error message "Comparison method violates its general contract"
Thread poster: Floriana Fascritti

Floriana Fascritti  Identity Verified
Italy
Local time: 09:57
Member (2007)
English to Italian
+ ...
Oct 31, 2018

Hi everyone,

I am a new user of OmegaT. I have a problem with uploading a file that I need to translate. The message error is as follows:

"Failed to load specified project!
java.io.IOException: /Users/floriana/Documents/.../source/bilancio 2015.pdf
java.lang.IllegalArgumentException: Comparison method violates its general contract"

What does this mean? And how can I solve it?

Thanks in advance for your help.

Floriana


 

Susan Welsh  Identity Verified
United States
Local time: 03:57
Member (2008)
Russian to English
+ ...
java Oct 31, 2018

This is a "java" thing, incomprehensible to ordinary mortals such as myself. It doesn't seem to have anything to do with OmegaT itself, which uses java, or with the file you tried to upload.

Until an expert replies to you, I suggest updating your java version and trying again.

If you're in a hurry, ask the Yahoo group: https://groups.yahoo.com/neo/g
... See more
This is a "java" thing, incomprehensible to ordinary mortals such as myself. It doesn't seem to have anything to do with OmegaT itself, which uses java, or with the file you tried to upload.

Until an expert replies to you, I suggest updating your java version and trying again.

If you're in a hurry, ask the Yahoo group: https://groups.yahoo.com/neo/groups/OmegaT/conversations/messages
Collapse


 

Didier Briel  Identity Verified
France
Local time: 09:57
English to French
+ ...
More details needed Oct 31, 2018

Floriana Fascritti wrote:
I am a new user of OmegaT. I have a problem with uploading a file that I need to translate. The message error is as follows:

"Failed to load specified project!
java.io.IOException: /Users/floriana/Documents/.../source/bilancio 2015.pdf
java.lang.IllegalArgumentException: Comparison method violates its general contract"

What does this mean?

This is probably a bug, either in OmegaT, or in the library used by OmegaT to load PDF files. Or (in rare cases), it could be a mixed case, where the PDF document is not conform to specifications.

And how can I solve it?

By giving more details. To start with: version of OmegaT, operating system, version of Java.

Once these are checked, you may have to provide the document to the OmegaT development team, so that we can check what is happening.

As Susan wrote, it's probably best to subscribe to the Yahoo support group, so that we can follow-up on this.

Didier


 

Floriana Fascritti  Identity Verified
Italy
Local time: 09:57
Member (2007)
English to Italian
+ ...
TOPIC STARTER
Here are more details Oct 31, 2018

Thanks for both your answers.

I have just tried updating my version of Java passing from Java 8 Update 181 to Java 8 Update 191.
After this I tried to upload the file again, but it still doesn't work. I have other files which have similar characteristics and for some of them I don't have any problem uploading them on OmegaT.

Anyways, here are the details you (Didier) requested (sorry I don't know how to use quote in this forum):

Java 8 Update 191... See more
Thanks for both your answers.

I have just tried updating my version of Java passing from Java 8 Update 181 to Java 8 Update 191.
After this I tried to upload the file again, but it still doesn't work. I have other files which have similar characteristics and for some of them I don't have any problem uploading them on OmegaT.

Anyways, here are the details you (Didier) requested (sorry I don't know how to use quote in this forum):

Java 8 Update 191
Mac OSX Mojave 10.14
OmegaT 3.6.0_10

I was wondering if I should download OmegaT latest version.

I will try and ask also in the Yahoo Group OmegaT support forum, but maybe you already have an answer with these details.

Thanks again a lot!

Floriana
Collapse


 

Didier Briel  Identity Verified
France
Local time: 09:57
English to French
+ ...
Try with OmegaT 4 Oct 31, 2018

Floriana Fascritti wrote:
I have just tried updating my version of Java passing from Java 8 Update 181 to Java 8 Update 191.

This cannot change anything, as the Mac version provides its own version of the JRE.

OmegaT 3.6.0_10

I was wondering if I should download OmegaT latest version.

Yes.

OmegaT 3.6 uses pdfbox-app (the library used to handle PDF files) 1.8.1, while OmegaT 4.1 uses 2.0.11.
In addition, OmegaT now handles correctly password-protected files (which can be a reason for failure).

Didier


 

Floriana Fascritti  Identity Verified
Italy
Local time: 09:57
Member (2007)
English to Italian
+ ...
TOPIC STARTER
Many thanks Oct 31, 2018

Thanks Didier,
I will try the latest version then.


 


There is no moderator assigned specifically to this forum.
To report site rules violations or get help, please contact site staff »


Help: error message "Comparison method violates its general contract"

Advanced search






Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search