-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta2
-
generic
-
solaris_7
-
Verified
When the setInput method of the standard GIF or PNG readers is called, a number
of instance variables may still hold settings obtained from the previous
stream. When a read occurs, these settings will not match the new stream
position and contents, which may result in erroneous behavior.
This behavior was found by Pravenn Mohan, who supplied a test case where
the GIF reader throws an OutOfMemoryException. I have streamlined this case
and will place it in test/javax/imageio/SetInputTest.java.
-----------------------------------------------------------
al.smith@eng 2001-04-18
Regression test javax/imageio/SetInputTest.java fails with Merlin build build60 on sol2.7, host tiggr. This is a new test since b57.
Setting state back to NYI because of this failure. eMail al.smith@eng with any questions.
For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
#Test Results (version 2)
#Mon Apr 16 22:07:25 PDT 2001
#checksum:2f03397ed1414886
#-----testdescription-----
$file=/export1/regression/merlin/jdk1.4Tests/b60/javax/imageio/SetInputTest.java
$root=/export1/regression/merlin/jdk1.4Tests/b60
keywords=bug4429154
run=USER_SPECIFIED main SetInputTest\n
source=SetInputTest.java
title=Checks if GIFImageReader.setInput removes previous stream settings
#-----environment-----
#-----testresult-----
description=file:///export1/regression/merlin/jdk1.4Tests/b60/javax/imageio/SetInputTest.java
end=Mon Apr 16 22:07:25 PDT 2001
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
javatestOS=SunOS 5.7 (sparc)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile main
start=Mon Apr 16 22:07:22 PDT 2001
status=Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
test=javax/imageio/SetInputTest.java
work=/export0/results/regression/merlin/b60/tiggr5.7-jthb60-jdk14b60.04-16.19.50-noAwt2-64/javax/imageio
#section:script_messages
----------messages:(4/201)----------
JDK under test: (/export1/java/jdk14b60)
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b60)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b60, mixed mode)
#section:build
----------messages:(3/98)----------
command: build SetInputTest
reason: Named class compiled on demand
elapsed time (seconds): 3.001
result: Passed. Compilation successful
#section:compile
----------messages:(3/173)----------
command: compile /export1/regression/merlin/jdk1.4Tests/b60/javax/imageio/SetInputTest.java
reason: .class file out of date or does not exist
elapsed time (seconds): 2.999
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:main
----------messages:(3/110)----------
command: main SetInputTest
reason: User specified action: run main SetInputTest
elapsed time (seconds): 0.81
----------System.out:(0/0)----------
----------System.err:(13/662)----------
java.lang.NullPointerException
at SetInputTest.main(SetInputTest.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:579)
JavaTest Message: Test threw exception: java.lang.NullPointerException
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.NullPointerException
result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
test result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
al.smith@eng 2001-05-08
Regression test javax/imageio/SetInputTest.java fails in merlin build 63
of instance variables may still hold settings obtained from the previous
stream. When a read occurs, these settings will not match the new stream
position and contents, which may result in erroneous behavior.
This behavior was found by Pravenn Mohan, who supplied a test case where
the GIF reader throws an OutOfMemoryException. I have streamlined this case
and will place it in test/javax/imageio/SetInputTest.java.
-----------------------------------------------------------
al.smith@eng 2001-04-18
Regression test javax/imageio/SetInputTest.java fails with Merlin build build60 on sol2.7, host tiggr. This is a new test since b57.
Setting state back to NYI because of this failure. eMail al.smith@eng with any questions.
For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
#Test Results (version 2)
#Mon Apr 16 22:07:25 PDT 2001
#checksum:2f03397ed1414886
#-----testdescription-----
$file=/export1/regression/merlin/jdk1.4Tests/b60/javax/imageio/SetInputTest.java
$root=/export1/regression/merlin/jdk1.4Tests/b60
keywords=bug4429154
run=USER_SPECIFIED main SetInputTest\n
source=SetInputTest.java
title=Checks if GIFImageReader.setInput removes previous stream settings
#-----environment-----
#-----testresult-----
description=file:///export1/regression/merlin/jdk1.4Tests/b60/javax/imageio/SetInputTest.java
end=Mon Apr 16 22:07:25 PDT 2001
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
javatestOS=SunOS 5.7 (sparc)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile main
start=Mon Apr 16 22:07:22 PDT 2001
status=Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
test=javax/imageio/SetInputTest.java
work=/export0/results/regression/merlin/b60/tiggr5.7-jthb60-jdk14b60.04-16.19.50-noAwt2-64/javax/imageio
#section:script_messages
----------messages:(4/201)----------
JDK under test: (/export1/java/jdk14b60)
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b60)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b60, mixed mode)
#section:build
----------messages:(3/98)----------
command: build SetInputTest
reason: Named class compiled on demand
elapsed time (seconds): 3.001
result: Passed. Compilation successful
#section:compile
----------messages:(3/173)----------
command: compile /export1/regression/merlin/jdk1.4Tests/b60/javax/imageio/SetInputTest.java
reason: .class file out of date or does not exist
elapsed time (seconds): 2.999
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:main
----------messages:(3/110)----------
command: main SetInputTest
reason: User specified action: run main SetInputTest
elapsed time (seconds): 0.81
----------System.out:(0/0)----------
----------System.err:(13/662)----------
java.lang.NullPointerException
at SetInputTest.main(SetInputTest.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:579)
JavaTest Message: Test threw exception: java.lang.NullPointerException
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.NullPointerException
result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
test result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
al.smith@eng 2001-05-08
Regression test javax/imageio/SetInputTest.java fails in merlin build 63