Duplicate :
|
Name: iaR10016 Date: 06/22/2004 Filed By : J2SE-SQA [###@###.### JDK : JDK1.5.0-b56 (I am not able to reproduce the failure with JDK1.5.0-b55, JDK1.4.2-b28) JCK : JCK1.5-runtime (b21) Platform[s] : all switch/Mode : default JCK test owner: http://javaweb.sfbay/jcce/tcks/jck/1.5/project/data_reports/owners.jto Falling test : api/javax_swing/interactive/JEditorPaneTests.html#JEditorPane [JEditorPaneTest0003] JCK1.5-runtime api/javax_swing/interactive/JEditorPaneTests.html#JEditorPane test fails with JDK1.5.0-b56 on all platforms. This bug is not reproducible with previous JDK builds. Please, run the script from "How to reproduce" section and click the "Next page"/"Previous page" links several times to reproduce the failure. One time from 5 approximately the second page contains extra "Copyright 2003 Sun Microsystems, Inc. All rights reserved." string which overlaps the "Simple table" table. When it happens, I get the following exception intermittently when move the mouse inside the tested JEditorPane: ... Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.text.html.TableView$RowView.findViewAtPoint(TableView.java:1328) at javax.swing.text.html.TableView.getViewAtPoint(TableView.java:126) at javax.swing.text.CompositeView.viewToModel(CompositeView.java:406) at javax.swing.text.BoxView.viewToModel(BoxView.java:477) at javax.swing.text.CompositeView.viewToModel(CompositeView.java:408) at javax.swing.text.BoxView.viewToModel(BoxView.java:477) at javax.swing.text.CompositeView.viewToModel(CompositeView.java:408) at javax.swing.text.BoxView.viewToModel(BoxView.java:477) at javax.swing.plaf.basic.BasicTextUI$RootView.viewToModel(BasicTextUI.java:1469) at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1014) at javax.swing.text.html.HTMLEditorKit$LinkController.mouseMoved(HTMLEditorKit.java:654) at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:272) at java.awt.Component.processMouseMotionEvent(Component.java:5531) at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3111) at java.awt.Component.processEvent(Component.java:5255) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3953) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3801) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1766) at java.awt.Component.dispatchEvent(Component.java:3801) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) ... Test source location: ===================== /java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15/tests/api/javax_swing/interactive/JEditorPaneTests.java jtr file location: ================== /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b56/jck15/linux/Cinnabar_Gnome__linux-12/workDir/api-interactive/javax_swing/interactive/JEditorPaneTests_JEditorPane.jtr How to reproduce: ================= Run the following script (you may need to change its variables) --- script start --- #!/bin/sh #Paths in Java Software: JDK="/java/re/jdk/1.5.0/promoted/all/b56/binaries/linux-i586" JCK="/java/re/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15" #Alternative paths outside Java Software #JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b56/binaries/linux-i586" #JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta2/b21/binaries/JCK-runtime-15" export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar" echo `cat $JCK/build.txt | grep JCK_VERSION` `cat $JCK/build.txt | grep JCK_BUILD` $JDK/bin/java -showversion javasoft.sqe.tests.api.javax.swing.interactive.JEditorPane.JEditorPaneTests -TestCaseID JEditorPaneTest0003 -TestDirURL file://$JCK/tests/api/javax_swing/interactive/JEditorPaneTests.html#JEditorPane --- script end --- Specific machine info: ====================== Hostname: linux-12 OS: Cinnabar (Gnome) ======================================================================