Conflict with Java and Adobe Illustrator

Hi,
I have created a project in Java and when my script saves a number I have this error with Adobe Illustrator. This error appears with random numbers and I don’t know how to solve it. Does anyone can help me to solve the error with Java and Adobe Illustrator? Please explain me why I have this error? Regards!

The operation cannot complete because of an unknown error. [CANT ]
