Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stack Overflow Error - URGENT

 
Tanmay Agarwal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kamesh Loganathan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am not sure why this is happening in your application but in genral this happens in swing when there is a dead lock. Since swing is event driven, if for some reason there is an event that triggers another and that inturn triggers the first one, then you end up with Stack overflow exception. Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic