Stack Overflow Error - URGENT

Problem Scenario :

We have a J2EE application, which has a front end developed in Java Swing with usage of heavy graphics & managed by the weblogic server. There are several application details in the Hash-Maps containing with nested Hash-Maps &Hash maps contains the Serializable Java Value Objects. These serializable Java Objects contains values which are Java Primitive Types as well as Other Java Value Objects. When the client launches the application & tries to read these Hash-Maps from the server, the Stack Over Flow Exception as given below occurs. This has started occurring from a few days only.

Stack Trace :

java.lang.StackOverflowError

at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1812)

at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)

at java.util.HashMap.writeObject(HashMap.java:798)

at java.lang.reflect.Method.invoke(Native Method)

at java.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1864)

at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)

at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1827)

at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)

at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)

Can you suggest something in this regard?This is VERY URGENT !!

Regards

Tanmay Agarwal

agarwal.tanmay@gmail.com

[1652 byte] By [TanmayCreationsa] at [2007-10-2 18:59:46]
# 1
If it is so urgent - why are you wasting peoples time by cross-posting?
tschodta at 2007-7-13 20:38:23 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 2
Anyone know what happens if the object to be serialized contains a "reference loop"?
tschodta at 2007-7-13 20:38:23 > top of Java-index,Enterprise & Remote Computing,AVK Portability...
# 3

This works fine, writing the object to the stderr:

import java.io.*;

public class a implements Serializable

{

Objectother;

public static void main( String args[] ) throws IOException

{

aw1 = new a();

aw2 = new a();

w1.other = w2;

w2.other = w1;

ObjectOutputStream o = new ObjectOutputStream( System.err );

o.writeObject( w1 );

o.flush();

System.out.println( "let us call it a day" );

}

}

BIJ001a at 2007-7-13 20:38:23 > top of Java-index,Enterprise & Remote Computing,AVK Portability...