#12 UnsupportedOperationException while stopping an application

closed
nobody
5
2005-11-19
2004-11-25
Dharma
No

Hi,
I'm using JRat to extract call tree using the
TreeMethodHandler. When I terminate my application
using ctrl+c (combination of control key and c), I get an
UnsupportedOperationException. JRat is still producing
the call tree. Before I ignore this exception, I want to
make sure that this doesnot really affect the shutdown
hooks that JRat executes during the program termination.

The bad thing about this exception is that it does not
come out always. I may have to execute same program
many times and press ctrl+c to terminate it to get this
exception.

It looks to me that the method "getChild" of StackNode
is not able to perform the update on the hashmap.

Here is the trace I got when my application was
terminated:

------------------------------------------------------
java.lang.UnsupportedOperationException
at java.util.Collections$UnmodifiableMap.put
(Collections.java:1269)
at
org.shiftone.jrat.provider.tree.StackNode.getChild
(StackNode.java:76)
at
org.shiftone.jrat.provider.tree.Delegate.onMethodStart
(Delegate.java:45)
at
org.shiftone.jrat.provider.tree.TreeMethodHandler.onMet
hodStart(TreeMethodHandler.java:49)
------------------------------------------------------

I'm using the latest JRat version: 0.71b. I tried also with
0.6 versions, the same exception is coming.

Any comments ?.

Thanking very much.
Dharma

Discussion

  • Dharma

    Dharma - 2004-11-25

    Logged In: YES
    user_id=1006274

    My application is running in multiple threads.

     
  • Jeff Drost

    Jeff Drost - 2005-11-19

    Logged In: YES
    user_id=348597

    fixed in 0.72

     
  • Jeff Drost

    Jeff Drost - 2005-11-19
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks