- Revenera Community
- :
- FlexNet Embedded
- :
- FlexNet Embedded Forum
- :
- Connection Exception in Java Toolkit CapabilityRequest example
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Connection Exception in Java Toolkit CapabilityRequest example
Hi folks,
I am seeing this connection exception in the CapabilityRequest example provided as part of the Java Toolkit. The client is trying to communicate with an embedded local license server, where the license activation is completed. I am connecting to the URI specified in the example client.
"For FlexNet Embedded License Server, use http://hostname:7070/fne/bin/capability."
The BasicClient and Client examples which run on the same host as the embedded server work fine.
java -cp .:lib/flxClientNative.jar:lib/flxClient.jar:lib/flxBinary.jar flxexamples.CapabilityRequest -server http://192.168.56.201:7070/fne/bin/capability
Number of features loaded from trusted storage: 0
com.flexnet.lm.FlxException: Connection Exception.
at com.flexnet.lm.net.Comm.sendBinaryMessage(SourceFile:208)
at flxexamples.CapabilityRequest.talkToServer(CapabilityRequest.java:241)
at flxexamples.CapabilityRequest.main(CapabilityRequest.java:131)
$ curl http://192.168.56.201:7077/api/1.0/instances
[ {
"id" : 210,
"serverInstanceId" : "XXXXXXXXXXXX",
"requestId" : "1",
"enterpriseId" : "XXXXXXXX",
"tenantId" : "",
"pendingDeletion" : false,
"maintenanceEndTime" : "1970-01-01T00:00:00.000Z",
"suspended" : false,
"ready" : true,
"publisherName" : "XXXXX",
"lastSyncTime" : "1970-01-01T00:00:00.000Z",
"lastUpdateTime" : "2024-10-07T20:44:07.000Z",
"lastUpdateHostid" : {
"hostidValue" : "0800271E085D",
"hostidType" : "ETHERNET"
},
"lastClientDropTime" : "1970-01-01T00:00:00.000Z",
"lastServerToServerSyncTime" : "1970-01-01T00:00:00.000Z",
"failOverRole" : "MAIN",
"identityName" : "xxx-xxxxx-xxxx-1.0.0"
} ]