• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stackoverflowerror

 
Robert Easton
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting a stackoverflowerror when I try and populate my origin and destination JCombo boxes using the following procedure to return a String Array, the error only occurs when I execute this while using a remote connection. The code is local to my client and works fine against a local connection. Any Ideas ?

[ March 19, 2003: Message edited by: Robert Easton ]
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stack overflow is commonly the result of a recursive call. Why don't you post the code of your entire method so that we could figure what's going on. Also, how does the stacktrace look like?
Eugene.
 
Robert Easton
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the complete method. I will print a stacktrace when the exception occurs and post that as well. Is it a good idea to always print a stack trace when a fatel error occurs ?
 
Robert Easton
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the problem. Of course it was Eugene who reminded about a stacktrace. My RemoteDataImp class was calling getRecordCount() instead of connectedData.getRecordCount() It was all in the trace.
Thanks Eugene
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic