Status: In Progress
Affects Version/s: 1.2.1
Fix Version/s: None
Component/s: Stream Module
See the attatched log (xd.out) showing :
Caused by: java.lang.IllegalStateException: A connection to a distributed system already exists in this VM. It has the following configuration:
Steps to reproduce:
1) Install the the attached keystore
2) Install attached gemfire.properties in $XD_INSTALL/xd/config
3) Install a copy of gemfire.properties in the server path, e.g., if using the gemfire server app installed with the distribution, $XD_INSTALL/gemfire, and run bin/gemfire
4) Start the gemfire server
5) Start xd singlenode
6) Start the shell and deploy a stream using a gemfire module (this was reported with gemfire-json-server sink, but in theory it will affect any since it occurs during client cache creation).
Note: I verified this SSL configuration works with a simple SDG client against the XD server. (Use SDG 1.6.2, and gemfire 8.0.0). Also, the gemfire-json-server example in the XD reference works as expected without the SSL configuration.
This may to be related to the module using a its own class loader. `java.lang.IllegalStateException: A connection to a distributed system already exists in this VM` happens because there are 2 instances of DistributedSystem created (one for each class loader?). This happens even when all the module jars are moved to xd/lib to force all gemfire classes to be loaded in the parent class loader.