You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/05/25 08:40:16 UTC

[jira] Created: (HARMONY-3968) [classlib][swing] javax.swing.text.html.FormViewTest fails

[classlib][swing] javax.swing.text.html.FormViewTest fails
----------------------------------------------------------

                 Key: HARMONY-3968
                 URL: https://issues.apache.org/jira/browse/HARMONY-3968
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows 2003, Windows XP
            Reporter: Alexey Varlamov


javax.swing.text.html.FormViewTest stably fails on Windows, both on laptop and server machines:

  <testcase classname="javax.swing.text.html.FormViewTest" name="testFormView" time="0.29">
    <error type="java.lang.NullPointerException">java.lang.NullPointerException
	at java.awt.Container.addImpl(Container.java:419)
	at java.awt.Container.add(Container.java:214)
	at javax.swing.text.ComponentView.setParent(ComponentView.java:173)
	at javax.swing.text.html.FormViewTest.testFormView(FormViewTest.java:163)
	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
	at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
	at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
</error>

  <testcase classname="javax.swing.text.html.FormViewTest" name="testCreateComponent_Models" time="3.785">
    <failure type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError
	at javax.swing.text.html.FormViewTest.checkWithoutlModel(FormViewTest.java:980)
	at javax.swing.text.html.FormViewTest.checkWithoutlModel(FormViewTest.java:969)
	at javax.swing.text.html.FormViewTest.testCreateComponent_Models(FormViewTest.java:392)
	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
	at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
	at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
</failure>

  <testcase classname="javax.swing.text.html.FormViewTest" name="testGetMaximumSpan" time="0.291">
    <error type="java.lang.NullPointerException">java.lang.NullPointerException
	at java.awt.Container.addImpl(Container.java:419)
	at java.awt.Container.add(Container.java:214)
	at javax.swing.text.ComponentView.setParent(ComponentView.java:173)
	at javax.swing.text.html.FormViewTest.checkFormViewSpans(FormViewTest.java:950)
	at javax.swing.text.html.FormViewTest.testGetMaximumSpan(FormViewTest.java:510)
	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
	at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
	at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
</error>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-3968) [classlib][swing] javax.swing.text.html.FormViewTest fails

Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Pavlenko updated HARMONY-3968:
-------------------------------------

    Attachment: HARMONY-3968.patch

The errors are caused by missed comparison for null in the ComponentView.setParent() method.
The failure is caused by the issue in the FormViewTest.checkWithoutlModel() method. The reference to the element in this method should be updates after removing the attribute.
This patch fixes the issue.

> [classlib][swing] javax.swing.text.html.FormViewTest fails
> ----------------------------------------------------------
>
>                 Key: HARMONY-3968
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3968
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows 2003, Windows XP
>            Reporter: Alexey Varlamov
>         Attachments: HARMONY-3968.patch
>
>
> javax.swing.text.html.FormViewTest stably fails on Windows, both on laptop and server machines:
>   <testcase classname="javax.swing.text.html.FormViewTest" name="testFormView" time="0.29">
>     <error type="java.lang.NullPointerException">java.lang.NullPointerException
> 	at java.awt.Container.addImpl(Container.java:419)
> 	at java.awt.Container.add(Container.java:214)
> 	at javax.swing.text.ComponentView.setParent(ComponentView.java:173)
> 	at javax.swing.text.html.FormViewTest.testFormView(FormViewTest.java:163)
> 	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> 	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
> 	at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
> 	at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
> 	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
> 	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
> 	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
> </error>
>   <testcase classname="javax.swing.text.html.FormViewTest" name="testCreateComponent_Models" time="3.785">
>     <failure type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError
> 	at javax.swing.text.html.FormViewTest.checkWithoutlModel(FormViewTest.java:980)
> 	at javax.swing.text.html.FormViewTest.checkWithoutlModel(FormViewTest.java:969)
> 	at javax.swing.text.html.FormViewTest.testCreateComponent_Models(FormViewTest.java:392)
> 	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> 	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
> 	at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
> 	at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
> 	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
> 	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
> 	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
> </failure>
>   <testcase classname="javax.swing.text.html.FormViewTest" name="testGetMaximumSpan" time="0.291">
>     <error type="java.lang.NullPointerException">java.lang.NullPointerException
> 	at java.awt.Container.addImpl(Container.java:419)
> 	at java.awt.Container.add(Container.java:214)
> 	at javax.swing.text.ComponentView.setParent(ComponentView.java:173)
> 	at javax.swing.text.html.FormViewTest.checkFormViewSpans(FormViewTest.java:950)
> 	at javax.swing.text.html.FormViewTest.testGetMaximumSpan(FormViewTest.java:510)
> 	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> 	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
> 	at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
> 	at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
> 	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
> 	at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
> 	at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
> </error>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.