JDK-6438682 : regression test java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.html fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2006-06-14
  • Updated: 2018-10-24
  • Resolved: 2018-10-24
Related Reports
Duplicate :  
Duplicate :  
Description
Java Version: build 1.6.0-rc-b87
Platform: solaris-sparc10

Problems:
The regression test fails in recent builds.
The exceptions as following:
java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1
	at WheelEventsConsumed.start(WheelEventsConsumed.java:64)
	at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:134)
	at java.lang.Thread.run(Thread.java:619)
STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1
result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1


test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1

How to reproduce:
1. set JAVA_HOME to mustang b87
2. sh runsolaris.sh 
   which is attached.
JAVA_HOME="JAVA_HOME"

/net/cady.sfbay/export/dtf/unified/knight-ws/suites/regression/jct-tools/2.1.6/archive/fcs/binaries/solaris/bin/jtreg \
-cpa:/net/cady.sfbay/export/dtf/unified/knight-ws/suites/regression/sail16/Jemmy/jemmy.jar \
-r:./2d-reportDir \
-w:./2d-workDir \
/java/re/jdk/1.6.0/promoted/rc/b87/ws/j2se/test/java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.html


jtr file is also attached.
#Test Results (version 2)
#Tue Jun 13 16:17:59 PDT 2006
#checksum:61a876da8e67cf37
#-----testdescription-----
$file=/net/jre.sfbay/p/v06/jdk/6.0/rc/b87/ws/j2se/test/java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.html
$root=/net/jre.sfbay/p/v06/jdk/6.0/rc/b87/ws/j2se/test
author=andrei.dmitriev : area=awt.choice
keywords=bug6253211
run=USER_SPECIFIED applet WheelEventsConsumed.html\n
source=WheelEventsConsumed.html
title=PIT: MouseWheel events not triggered for Choice drop down in XAWT

#-----environment-----

#-----testresult-----
description=file:///net/jre.sfbay/p/v06/jdk/6.0/rc/b87/ws/j2se/test/java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.html
end=Tue Jun 13 16:17:59 PDT 2006
environment=regtest
execStatus=Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1
javatestOS=SunOS 5.10 (sparc)
javatestVersion=2.1.6
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile applet
start=Tue Jun 13 16:17:43 PDT 2006
status=Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1
test=java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.html
work=/net/cady/export4/2d-workDir/java/awt/Choice/WheelEventsConsumed

#section:script_messages
----------messages:(4/213)----------
JDK under test: (/java/re/jdk/1.6.0/promoted/rc/b87/binaries/solaris-sparc)
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b87)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b87, mixed mode)

#section:build
----------messages:(3/105)----------
command: build WheelEventsConsumed 
reason: Named class compiled on demand
elapsed time (seconds): 9.183
result: Passed. Compilation successful

#section:compile
----------messages:(3/208)----------
command: compile /net/jre.sfbay/p/v06/jdk/6.0/rc/b87/ws/j2se/test/java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 9.176
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:applet
----------messages:(3/139)----------
command: applet WheelEventsConsumed.html
reason: User specified action: run applet WheelEventsConsumed.html 
elapsed time (seconds): 5.246
----------System.out:(0/0)----------
----------System.err:(5/518)----------
java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1
	at WheelEventsConsumed.start(WheelEventsConsumed.java:64)
	at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:134)
	at java.lang.Thread.run(Thread.java:619)
STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1
result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1


test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Test failed. Choice should generate MOUSE_WHEEL events.1

Comments
EVALUATION I've come to the conclusion this is a bug in test(s) because: - xev reports that all neccessary native events are coming. - simple test works good and reports about all Java events correctly - I remotely login into testing machine and all tests runs fine. I'm including logging into them and they also looks good.
20-06-2006

EVALUATION Submitter reported that native apps are works fine with the wheel. Moreover, xev shows button5 events. Seem it's a problem in JDK.
19-06-2006

EVALUATION Possibly it's due to disabled wheel. To verify use xev (or other way : native windows should react on wheel rotations). xev tool located : /usr/openwin/demo/xev Store the mouse pointer into the window (not the rectangle inside it) and rotate the wheel If a series of events being logged into the terminal then wheel enabled on this system. Otherwise - not. The second case means JDK just not receiving any of wheel events and thus this is not a defect. Possibly 6438691 has the same root cause. Asking submitter for a help.
15-06-2006