-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2_21
-
b01
-
x86
-
windows_xp
J2RE 1.4.2 Update 13, 19, and 21 gives java.lang.StackOverflowError, when
trying to deserialize a serialized object, independently of -Xss setting.
The issue is strictly reproducible on Windows platform:
> java -Xss20m -classpath ./classes;./lib/jaxrpc-api.jar;./lib/s
ap.com~xapps~osp~infra~ejbmodule_assembly.jar;./lib/sap.com~xapps~osp~infra~serv
ices~ejbmodule.jar;./lib/sap.com~xapps~osp~itemhandler~ejbmodule.jar;./lib/webse
rvices_api.jar;./lib/sap.com~xapps~osp~formatter~wsproxy.jar;./lib/webservices_l
ib.jar;./lib/logging.jar;./lib/exception.jar;./lib/sapxmltoolkit.jar test.jms.De
serializeTest 11470100_bad.ser
Exception in thread "main" java.lang.StackOverflowError
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source
)
at java.io.ObjectInputStream.readHandle(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
[ ... ]
>
trying to deserialize a serialized object, independently of -Xss setting.
The issue is strictly reproducible on Windows platform:
> java -Xss20m -classpath ./classes;./lib/jaxrpc-api.jar;./lib/s
ap.com~xapps~osp~infra~ejbmodule_assembly.jar;./lib/sap.com~xapps~osp~infra~serv
ices~ejbmodule.jar;./lib/sap.com~xapps~osp~itemhandler~ejbmodule.jar;./lib/webse
rvices_api.jar;./lib/sap.com~xapps~osp~formatter~wsproxy.jar;./lib/webservices_l
ib.jar;./lib/logging.jar;./lib/exception.jar;./lib/sapxmltoolkit.jar test.jms.De
serializeTest 11470100_bad.ser
Exception in thread "main" java.lang.StackOverflowError
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source
)
at java.io.ObjectInputStream.readHandle(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
[ ... ]
>