Rod Morehead's Blog

Sparc Solaris Java 1.1.1 Green Threads RPC Bug

With the release of the Sparc Solaris JDK 1.1.1, any Java native methods which depend on RPC no longer work. These RPC calls did/do work with JDK 1.0.2. The Sparc Solaris JDK 1.1.3 release fixes this issue.

Background

The project which I was working on in 1997 was to provide Java access to an existing API which is implemented in C and is built on top of RPC. This product works fine against JDK 1.0.2 (on Solaris and other platforms) but does not work with JDK 1.1.1.

Example

To make this bug easily reproducible, I am providing this sample code which demonstrates the problem in a fairly minimal fashion.

This code should be more than enough to at least identify and fix the basic conflict. Also keep in mind that other common RPC calls (like create_clnt) are also broken.

Feedback

I submitted the bug to Javasoft, but have never heard any official response. Thanks to the efforts of one JavaSoft engineer outside of normal channels this bug was fixed.

Resolution/Status

The fix was confirmed with the release of JDK 1.1.3 in June 1997. I never heard any official resolution from Sun/JavaSoft.

Log