Skip to content
Leon Rosenberg edited this page Apr 16, 2024 · 2 revisions

Debugging RMI on TCP Level

Question: I have connection timeouts or problems in the TCP/IP Stack, how can I debug them?

Answer: Check following link for details on RMI options.

http://download.oracle.com/javase/6/docs/technotes/guides/rmi/logging.html

Registry address

Question: How do distributeme components know where the registry is running.

Answer: It is in the file distributeme.json in classpath in variables registryContainerHost and registryContainerPort.

Java Version Requirements

Question: Is a specific Java version required?

Answer: Yes, you should use at least 1.5, but 1.6 is recommended. Note, DistributeMe itself is compiled with 1.6, so if you want to use it with 1.5 you have to compile it from sources.

Updated answer: from version 4.x DistributeMe requires at least Java11.

Version of registry vs. core

Question: Should the registry have the same version number as the other packages?

It should be same major version (the first digit of the version number)

Distributeme-support

Question: Why is distribute-support a separate subproject and what is it for?

Answer: distributeme-support contains classes which are generated by distributeme-generator. Technically belonging to core, they can't be in core due to a dependency graph. Therefor a support project has been created. The support project contains classes that require distributeme technology to function, i.e. call a remote service. All distributeme-support services are @SupportService.

Does distributeme work with Java 1.7 on MacOS X

Question: Why a service can not be started under Java 1.7 on MacOS X?

Answer: Due to BUG http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7180557 its not possible to start services on Mac right now.

However, client can run on Java 1.7 allright. Other platforms may be affected too. The Bug is that a request to getLocalHost() in InetAddress always throws an UnknownHostException under 1.7 and DistributeMe needs to know the host. A workaround is not known right now, but will be provided if the problem persists longer.