Server problems using Java Code sample (Server redirected too many times)

  • Last Post 2 weeks ago
viji posted this 2 weeks ago


I have downloaded the sample Java code from

I had given the application id, application password and the proxy details. But I'm not able to convert the document.

The error message that I am getting is as follows.

 Exception occured:Server redirected too many  times (20) Server redirected too many  times (20)

at Source)

at Source)

at Source)

at Source)

at com.abbyy.ocrsdk.Client.getResponse(

at com.abbyy.ocrsdk.Client.postFileToUrl(

at com.abbyy.ocrsdk.Client.processImage(

at TestApp.performRecognition(

at TestApp.main(


Please let me know your thoughts on this!

Order By: Standard | Newest | Votes
Koen de Leijer posted this 2 weeks ago


I/we did not have any trouble getting the samples to work in both Java and Python (your other post) ,
can you provide the complete source-code (excl license information) you are using?

Best regards
Koen de Leijer

Oksana Serdyuk posted this 2 weeks ago

@Koen, thanks for your answers and the attitude!

@Viji, according to our database, the requests from your application do not come to ABBYY side. Have you specified the correct authentication credentials:

  • Application ID is a human friendly name which you entered when creating the application
  • Application Password is a password to the application that should have been sent together with the Application ID right after the application registration

in the code sample?

Also please see the Stackoverflow developer’s forum, where similar issues are also discussed.

And if the persists, kindly send us the logs from the Fiddler debugger. For this please download and install Fiddler and let it run and capture traffic while you reproduce the problem. Then press the Save button on the top toolbar to save a .saz-file and send it to