- Revenera Community
- :
- FlexNet Embedded
- :
- FlexNet Embedded Forum
- :
- Getting Error during running "Capability Request.java" Example.
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Getting Error during running "Capability Request.java" Example.
We Successfully run the server on Linux and activate the license but when i send the capability request(using "server http://192.168.1.61:7070/fne/bin/capability") from another machine(windows) then we got the below Error:
Number of features loaded from trusted storage: 0
request url : http://192.168.1.61:7070/fne/bin/capability
Error occure --com.flexnet.lm.FlxException: Connection Exception.
com.flexnet.lm.FlxException: Connection Exception.
at com.flexnet.lm.net.Comm.sendBinaryMessage(SourceFile:208)
at flxexamples.CapabilityRequest.talkToServer(CapabilityRequest.java:246)
at flxexamples.CapabilityRequest.main(CapabilityRequest.java:140)
and also run from cmd using "caprequestutil.bat -id .\IdentityClient.bin -host TESTCLIENT http://172.17.0.1:7070/request -feature IDSBatch 1.0 1" the we below Error:
Problem sending request to server:
Connection timed out: connect
Is there any thing that i missed.
Hi @avdhesh ,
I have the Linux server running in a VM on my windows machine and was able to request a license from both the Windows and Linux Capability Request examples. Perhaps you have a communication issue between your client and server. Can you ping the server? What is the IP address of your Linux machine running the license server? In your post you reference requests against both 192.168.1.61 and 172.17.0.1. For reference /fne/bin/capability and /request are the same endpoint and can be used interchangeably.
Thanks,
Yes, i can ping the Linux server.
Is there any problem with the ip's , i mean my Linux server running on localhost(http://localhost:7070) and we are access it with Linux machine ip address(http://192.168.1.61:7070) on windows machine.
Is it ok or i need to change the running server localhost to its ip.
Specifying the ip address of the server should work just fine. Can you provide the output of the following from the enterprise directory?
./flexnetlsadmin.sh -server http://192.168.1.61:7070 -licenses -verbose
Please find the attachment of the the output using "./flexnetlsadmin.sh -server http://192.168.1.61:7070 -licenses -verbose " command.
Your server appears to be activated and running just fine. It looks like a communication issue between client and server. Did you try running "caprequestutil.bat -id .\IdentityClient.bin -host TESTCLIENT http://172.17.0.1:7070/request -feature IDSBatch 1.0 1" on the same system that is running the license server? If not please try, and also try replacing the ip address with localhost as a test.
Thanks,
"caprequestutil -id .\IdentityClient.bin -host TESTCLIENT http://192.168.1.61:7070/request -feature IDSBatch 1.0 1" cmd work fine in linux server running machine .
So if the caprequest works fine on the system where the local server is running but not on an external system then I believe that points to an access issue. Perhaps the linux system is blocking external requests to the server on port 7070.
Have some queries mentioned below:
1: I am able to acquire the license but how Should i release the license.
2: Here we are creating a manually demo.lic file and then createing a demo.bin file then we use demo.bin in server.
if i want to distribute the license to my customer then how tis process will work and what license file i will give them.
Thanks.
Hi @avdhesh ,
Glad to hear your technical issues are now resolved!
- To return a license back to the server you can request the feature(s) with a quantity of 0.
- FlexNet Embedded Licensing is intended for use with FlexNet Operations for volume license fulfillment. With FlexNet Operations you can programmatically activate online devices or provide customer self-fulfillment via the FlexNet Operations customer portal for offline activation. Without FlexNet Operations license fulfillment is a manual process. You will need to do the following:
- Collect the device (or license server) ID from your customer
- Create the license template file for the target device with the desired license features
- Convert the license template file to a binary capability response file
- Send the capability response file to your customer
Thanks,
FlexNet Publisher is Flexera's license technology that has been in the industry for 30+ years. FlexNet Embedded Licensing was introduced ~10 years ago and supports newer license models. Please contact your Flexera Sales Representative for further details.
Best regards,
i tried as suggested but still there was an error but different message as below:
Number of features loaded from trusted storage: 0
request url : http://localhost:7070/fne/bin/capability
Error occure --com.flexnet.lm.FlxException: Connection Exception.
com.flexnet.lm.FlxException: Connection Exception.
at com.flexnet.lm.net.Comm.sendBinaryMessage(SourceFile:208)
at flxexamples.CapabilityRequest.talkToServer(CapabilityRequest.java:239)
at flxexamples.CapabilityRequest.main(CapabilityRequest.java:137)
BUILD SUCCESSFUL (total time: 7 seconds)