cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
avdhesh
Level 5

Getting Error during running "Capability Request.java" Example.

Hi,

I successfully run my server  on my localhost using "8090" port .when i try to run the "CapabilityRequest.java " i got some error .

I attached the error snapshot and also   "CapabilityRequest.java"  file that i am using.

 

0 Kudos
(33) Replies

It was of great help , Thank you.
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.
0 Kudos
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

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,

0 Kudos

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.

0 Kudos
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

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

0 Kudos

Please find the attachment of the the output using "./flexnetlsadmin.sh -server http://192.168.1.61:7070 -licenses -verbose "  command.

0 Kudos
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

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,

0 Kudos

Yeah i try it its work fine and also
"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 .

0 Kudos
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

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.

0 Kudos

Yes, you were right, my server was blocking external request on port 7070. Now we have resolved this issue .
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.
0 Kudos
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

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:

  1. Collect the device (or license server) ID from your customer
  2. Create the license template file for the target device with the desired license features
  3. Convert the license template file to a binary capability response file
  4. Send the capability response file to your customer   

Thanks,

0 Kudos

Thank you so much, but I have one more question , We have used only FlexNet Embedded Tool for all of those task , So, my question is , What is the use of FlexNet Publisher ?
0 Kudos
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

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,  

0 Kudos

Thanks for your response .
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)

0 Kudos