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

NullPointerException when running regression tests LoadProfileTest by using openjdk-7-b144

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b63
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Java Version:
        openjdk version "1.7.0-ea"
        OpenJDK Runtime Environment (build 1.7.0-ea-b144)
        OpenJDK Client VM (build 21.0-b14, mixed mode)

        Problems:

        When run these two regression tests:
        test/closed/java/awt/color/ICC_Profile/LoadProfileTest.java
        and MalformedProfileTest.java using openjdk-7-b144, the nullPointerException threw as below:

        C:\openjdk-7-b144\j2sdk-image\bin\java LoadProfileTest
        Exception in thread "main" java.lang.NullPointerException
                at java.awt.color.ICC_Profile.intFromBigEndian(ICC_Profile.java:1764)
                at java.awt.color.ICC_Profile.getColorSpaceType(ICC_Profile.java:1237)
                at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:785)
                at java.awt.color.ICC_Profile.readObject(ICC_Profile.java:2052)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        sorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:601)
                at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991
        )
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)

                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
        771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
                at LoadProfileTest.main(LoadProfileTest.java:35)


        C:\openjdk-7-b144\j2sdk-image\bin\java MalformedProfileTest
        Exception in thread "main" java.lang.NullPointerException
               at java.awt.color.ICC_Profile.intFromBigEndian(ICC_Profile.java:1770)
               at java.awt.color.ICC_Profile.getColorSpaceType(ICC_Profile.java:1237)
               at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:785)
               at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:1013)
               at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:978)
               at MalformedProfileTest.main(MalformedProfileTest.java:18)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bae Andrew Brygin
                  Reporter:
                  ttzhang Tao Zhang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: