Hello,
When I run Java sample "Hello.java", I faced an error. It says "There are no licenses on 127.0.0.1". Could you please tell me how can I solve this problem.
Backgrounds
- I use docker container.
- I use Ubuntu16.04 for docker image.
- my license is cloud trial license
- My install process is following
Select activation type:
1) Local server
2) Remote server
=>1Enter project id:
=>
Do you want to set cloud license params?(y/n)
=> y
Enter license path: /app/ocr/license/SWATxxxxxxxxxxxxxxxxxxxx.ABBYY.Cloud.ActivationToken
Enter license password: xxxxxxxxxxxxxxx==
Configuring samples.. /opt/ABBYY/FREngine12
completed
FineReader Engine is configured for licensing service located on localhost.
Installing licensing service..
Licensing service is already installed, but not running, choose:
1) Remove a previously installed service
2) Run a previously installed service, do not install new one
#? 2
Do you want to activate/deactivate/view licenses now?(y/n) n
Activation completed.
Licensing service seems active.
root@8459d06a3eb7:/opt/ABBYY/FREngine12# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 7628 0.0 0.2 22052 4544 pts/1 Ss 13:49 0:01 bash
root 10674 0.0 1.0 1027800 22068 ? Ssl 15:15 0:00 /usr/local/bin/ABBYY/SDK/12/Licensing/LicensingService -start
root 11259 0.0 0.1 36124 3220 pts/1 R+ 15:40 0:00 ps aux
My FRE version is FRE12R2GM_Linux_part_1366_4_build_12.2.27.1845.sh
Many thanks in advance.
Comments
2 comments
Hello Anno,
Please set up the license path and password in your code, so that you will be able to use the Cloud License. In order to do so, please edit your file "Hello.java"
The code line is
Please replace SamplesConfig.GetCustomerProjectId() by your Project ID (it was in your license e-mail), SamplesConfig.GetLicensePath() by a folder name, where your license token file resides and SamplesConfig.GetLicensePassword() by your password.
Thanks for your kind help Nadezhda.
I already tried that one. I use SampleConfig.java which is generated by activatefre.sh.
When Project id / Activation Token path / Cloud password are all incorrect: When Project id / Activation Token Path are correct but Cloud password is incorrect: When Project id is incorrect but Activation token and Cloud password are correct: Project id / Cloud password are correct but Activation Token is incorrect. only Project id is correct: only Cloud password is correct: only Activation Token is correct: Everything is correct: I found that "no licenses on 127.0.0.1" error has occurred only when project id is correct. Do you have any idea why this is happen? many thanks in advance.I tried some variation.
Please sign in to leave a comment.