This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Marshal Exception: Best way to find cause Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Marshal Exception: Best way to find cause" Watch "Marshal Exception: Best way to find cause" New topic
Author

Marshal Exception: Best way to find cause

Alton Hernandez
Ranch Hand

Joined: May 30, 2003
Posts: 443
Hi,

Our middleware projects runs on BEA Weblogic. From time to time we would get CORBA Marshal Exception. The problem is when we get this error there is almost nothing in the error message that would give us a hint on what's causing it.

So what is the best way of debugging this kind of error? Are there any debugging tools out there that can at least identify what part of the object that we are passing is causing the error?

tks.
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 288

You have my condolances. You're working through many interfaces. Each can raise exceptions and when they propagate up the chain details are often lost.

If you have a minor code then you can get some help by looking up that code. This is all I have used. Then it's a matter of guess work.


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 625

Use open source framework like log4j. Put debug statement and see where it goes.
Alton Hernandez
Ranch Hand

Joined: May 30, 2003
Posts: 443
Originally posted by Jignesh Patel:
Use open source framework like log4j. Put debug statement and see where it goes.


Loggers(like log4j) or debuggers doesn't help much in this case as the error happens when the client calls the remote object, unless there is a way to actually debug the call.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Marshal Exception: Best way to find cause
 
Similar Threads
java heap size out of memory error
IJ Debugging issue
Servlet code causes webserver to crash - sometimes
NX: Exception handling implementing the DBAccess
Becoming a Hardman