JDK-6335158 : remote X11 app doesnt work
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P5
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: x86
  • Submitted: 2005-10-11
  • Updated: 2011-02-16
  • Resolved: 2006-05-18
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_05-b05, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux  2.6.9-11.ELsmp #1 SMP Fri May 20 18:25:30 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
Whenever I try to run a remote X application, I just get a blank window.
The server is running java 64 bit for Opteron AMD. The application is just a simple
JFrame with a JLabel inside. Whens started remotely, what I get on my X client is just an empty window. All my GUI applications using Szing behave similarly.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compiling and running this on the server is enough to test:

import javax.swing.*;
class JHello {
    public static void main( String argv[] ){
	JFrame frame = new JFrame("Hello");
	frame.getContentPane().add( new JLabel("Hello") );
	frame.setSize( 600, 600 );
	frame.setVisible(true);
    }
}

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A window should appear on the X11 client machine with a small window with a "Hello" text inside.
ACTUAL -
The window appears but is blank.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------

import javax.swing.*;
class JHello {
    public static void main( String argv[] ){
	JFrame frame = new JFrame("Hello");
	frame.getContentPane().add( new JLabel("Hello") );
	frame.setSize( 600, 600 );
	frame.setVisible(true);
    }

---------- END SOURCE ----------

Comments
EVALUATION I'm using ReflectionX 11 and unable to reproduce the same with all relevant options enabled so it might be an issue in reflection tool.
11-10-2005

EVALUATION It's possible to reproduce it on WRQ ReflectionsX 8.0.2 with all MSwindows options selected in WM section. (dont allow remote WM). I've restarted xserver and tried to show java GUI and find the empty content. In the same time I see xlogo with cross in it center. This regularly reproducible with all JDK i've tested - at least affected 5.0 and 6.0. It's also useful to check if the same happen with newer WRQ products.
11-10-2005