-
Bug
-
Resolution: Fixed
-
P1
-
1.4.0
-
rc1
-
generic, x86, sparc
-
generic, linux, windows_nt
-
Verified
Name: iaR10016 Date: 11/09/2001
JDK : JDK1.4.0-beta-b85
(The test passes with JDK1.4.0-beta-b84)
JCK : JCK1.4-b12
Platform[s] : RedHat Linux 7.1, Windows NT 4.0
switch/Mode : -Xincgc -verify -Xfuture
(the test passes in default jvm mode)
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test : api/java_beans/XMLDecoder/index.html#read
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_beans/XMLDecoder/readTests.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/merlin/b85/jck14/win32/winnt4.0client_verify_incgc_linux-20/workDir/api/java_beans/XMLDecoder/index_read.jtr
How to reproduce:
====================
Run the following script under RedHat Linux 7.1
(probably, you need to change JCK and JAVA_HOME paths):
--------Script START---------------------
#!/bin/sh
JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
JCK=/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14
export CLASSPATH="$JCK/classes:$JCK/javatest.jar"
executeClass="javasoft.sqe.tests.api.java.beans.XMLDecoder.readTests"
$JAVA_HOME/bin/java -Xincgc -verify -Xfuture ${executeClass}
---------Script END----------------------
Test output:
=============
XMLDecoder2006: Passed. OKAY
XMLDecoder0009: Passed. OKAY
XMLDecoder0010: Passed. OKAY
...
XMLDecoder0043: Passed. OKAY
XMLDecoder0045: Passed. OKAY
java.lang.StackOverflowError
at java.io.PrintStream.println(PrintStream.java:601)
at java.lang.Throwable.printStackTrace(Throwable.java:464)
at java.lang.Throwable.printStackTrace(Throwable.java:454)
at java.beans.MetaData.getBeanInfo(MetaData.java:914)
at java.beans.DefaultPersistenceDelegate.isTransient(DefaultPersistenceDelegate.java:195)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:217)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:257)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:398)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:106)
at java.beans.Encoder.writeObject(Encoder.java:58)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
at java.beans.Encoder.writeExpression(Encoder.java:263)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:354)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:222)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:257)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:398)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:106)
at java.beans.Encoder.writeObject(Encoder.java:58)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
at java.beans.Encoder.writeExpression(Encoder.java:263)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:354)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:222)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:257)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:398)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:106)
at java.beans.Encoder.writeObject(Encoder.java:58)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
at java.beans.Encoder.writeExpression(Encoder.java:263)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:354)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:222)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:257)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:398)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:106)
at java.beans.Encoder.writeObject(Encoder.java:58)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
at java.beans.Encoder.writeExpression(Encoder.java:263)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:354)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:222)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:257)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:398)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:106)
at java.beans.Encoder.writeObject(Encoder.java:58)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
at java.beans.Encoder.writeExpression(Encoder.java:263)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:354)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:222)
...
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:354)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:222)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:257)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:398)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:106)
at java.beans.Encoder.writeObject(Encoder.java:58)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:253)
at java.beans.Encoder.writeExpression(Encoder.java:263)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:354)
at java.beans.DefaultPersistenceDelegate.doProperty(DefaultPersistenceDelegate.java:222)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:257)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:398)
XMLDecoder0046: Failed. Test case throws exception: java.lang.StackOverflowError
XMLDecoder0047: Passed. OKAY
...
====== XMLDecoder0024 ======
====== XMLDecoder0025 ======
====== XMLDecoder0026 ======
====== XMLDecoder0027 ======
====== XMLDecoder0028 ======
====== XMLDecoder0029 ======
====== XMLDecoder0030 ======
====== XMLDecoder0031 ======
====== XMLDecoder0032 ======
====== XMLDecoder0033 ======
====== XMLDecoder0034 ======
====== XMLDecoder0035 ======
====== XMLDecoder0036 ======
====== XMLDecoder0037 ======
====== XMLDecoder0038 ======
====== XMLDecoder0039 ======
====== XMLDecoder0040 ======
====== XMLDecoder0041 ======
====== XMLDecoder0042 ======
====== XMLDecoder0043 ======
====== XMLDecoder0045 ======
====== XMLDecoder0046 ======
====== XMLDecoder0047 ======
====== XMLDecoder0048 ======
STATUS:Failed.tests: 38; passed: 37; failed: 1; first test case failure: XMLDecoder0046
Test failed
Specific Machine Info:
=====================
Hostname: Linux-14
OS: RedHat Linux 7.1
Hostname: Linux-20
OS: Windows NT 4.0
======================================================================
- duplicates
-
JDK-4531728 StackOverflow Exception while calling writeObject() method of XMLEncoder class
- Closed