Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8039082

[TEST_BUG] Test java/awt/dnd/BadSerializationTest/BadSerializationTest.java fails

    Details

    • Subcomponent:
    • Introduced In Build:
      b07
    • Introduced In Version:
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Testsuite: Regression
        Test name: java/awt/dnd/BadSerializaionTest/BadSerializationTest.java
        JDK tested: JDK 8u20 b07
        OS tested: Linux 32-bit, Windows 7 64-bit

        Test fails since 8u20 b07 after it was integrated in fix to JDK-8037215.
        It seems that the bug is in the test.

        LOG Oracle Linux 32 bit:

        java.lang.RuntimeException: FAILED: UnexpectedException
                at BadSerializationTest.testReadObject(BadSerializationTest.java:69)
                at BadSerializationTest.main(BadSerializationTest.java:52)
                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.MainWrapper$MainThread.run(MainWrapper.java:94)
                at java.lang.Thread.run(Thread.java:744)
        Caused by: java.io.InvalidObjectException: null component
                at java.awt.dnd.DragGestureEvent.readObject(DragGestureEvent.java:341)
                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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
                at BadSerializationTest.testReadObject(BadSerializationTest.java:60)
                ... 7 more

        LOG Windows 7 64 bit:

        java.lang.RuntimeException: FAILED: ClassNotFoundException
                at BadSerializationTest.testReadObject(BadSerializationTest.java:66)
                at BadSerializationTest.main(BadSerializationTest.java:52)
                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.MainWrapper$MainThread.run(MainWrapper.java:94)
                at java.lang.Thread.run(Thread.java:744)
        Caused by: java.lang.ClassNotFoundException: sun.lwawt.macosx.CMouseDragGestureRecognizer
                at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
                at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
                at java.lang.Class.forName0(Native Method)
                at java.lang.Class.forName(Class.java:340)
                at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:626)
                at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)
                at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
                at java.awt.Component.readObject(Component.java:8758)
                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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
                at java.io.ObjectInputStream.access$300(ObjectInputStream.java:206)
                at java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2157)
                at java.io.ObjectInputStream.readFields(ObjectInputStream.java:541)
                at java.awt.dnd.DragGestureEvent.readObject(DragGestureEvent.java:330)
                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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
                at BadSerializationTest.testReadObject(BadSerializationTest.java:60)
                ... 7 more

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  kshefov Konstantin Shefov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: