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

Floriana Fascritti  Identity Verified
Italy
Local time: 14:38
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: 08:38
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: 14:38
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: 14:38
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: 14:38
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: 14:38
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






SDL Trados Business Manager Lite
Create customer quotes and invoices from within SDL Trados Studio

SDL Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »
SDL Trados Studio 2019 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2019 has evolved to bring translators a brand new experience. Designed with user experience at its core, Studio 2019 transforms how new users get up and running, helps experienced users make the most of the powerful features.

More info »



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