<Swing Dev> Regression test for 8016551 on Linux/Unix

Volker Simonis volker.simonis at gmail.com
Tue Dec 10 10:54:50 UTC 2013


Hi Leonid,

thanks for the link. Yes, this was indeed one of my problems. The test
runs in VNC with twm and even without any window manager.

However I still can not run the test in agentvm mode because of the
security exception when setting the default close option:

----------System.err:(33/2049)----------
java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1300)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1275)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1350)
        at bug8016551.main(bug8016551.java:46)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:754)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.SecurityException: System.exit() forbidden by JT Harness
        at com.sun.javatest.JavaTestSecurityManager.checkExit(JavaTestSecurityManager.java:117)
        at javax.swing.JFrame.setDefaultCloseOperation(JFrame.java:395)
        at bug8016551$1.run(bug8016551.java:57)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
        at java.awt.EventQueue.access$400(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:697)
        at java.awt.EventQueue$3.run(EventQueue.java:691)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Any idea why this happens? It only happens for this specific test -
all other jdk tests look good now (i.e. 4653 psassed, 6 failed).

It's strange, because the agent VM is running with
-Djava.security.policy=file:/tmp/JTwork/jtreg.policy and the policy
file contains:

grant codebase "file:/share/software/Java/JTREG_from_source/jtreg/build/images/jtreg/lib/jtreg.jar"
{
    permission java.security.AllPermission;
};
grant codebase "file:/share/software/Java/JTREG_from_source/jtreg/build/images/jtreg/lib/javatest.jar"
{
    permission java.security.AllPermission;
};

Maybe a problem of jtreg/jtharness? Which versions of jtreg/jtharness
do you use?

Thank you and best regards,
Volker


On Tue, Dec 10, 2013 at 2:15 AM, Leonid Romanov
<leonid.romanov at oracle.com> wrote:
>
> On Dec 10, 2013, at 1:49 AM, Volker Simonis <volker.simonis at gmail.com>
> wrote:
>
>
>
> On Monday, December 9, 2013, Sergey Bylokhov wrote:
>>
>> Hi, Volker.
>> On 09.12.2013 22:49, Volker Simonis wrote:
>>>
>>> If I run this test standalone or within JTreg with '-othervm' option
>>> on Linux the test displays a frame with the close icon and then it
>>> throws an  sun.awt.SunToolkit$OperationTimedOut() exception because of
>>> the call to SunToolkit.realSync():
>>>
>>> Exception in thread "main" sun.awt.SunToolkit$OperationTimedOut: 10001
>>>      at sun.awt.X11.XToolkit.syncNativeQueue(XToolkit.java:2427)
>>>      at sun.awt.SunToolkit.realSync(SunToolkit.java:1501)
>>>      at bug8016551.main(bug8016551.java:40)
>>
>> What's a bug. This code should not fail. What window manager did you use?
>
>
> I use xfce with ubuntu 12.04. I can try different ones tomorrow if you think
> it is related to the window manager.
>
>
> Ah, I see… This is a known problem:
> https://bugs.openjdk.java.net/browse/JDK-7033533
>
> Regards,
> Leonid.



More information about the swing-dev mailing list