Doesn't reCrash handle non-argument methods?

14 views
Skip to first unread message

Qingzhou

unread,
Mar 16, 2009, 9:17:01 PM3/16/09
to ReCrash
Dear sir:

I have downloaded and tried reCrash and its source code, it's really
impressive. But I am wondering why it doesn't handle non-argument
methods(See Transformer.java), why not just preseving "this" object?
Is it said that non-argument methods is easy to crash again so no need
to instrument?

Thanks a lot.

Qingzhou Luo

Sung Kim

unread,
Mar 16, 2009, 9:24:15 PM3/16/09
to rec...@googlegroups.com
Hi Qingzhou,

We assume that methods with no arguments are less likely to crash.
However, as you pointed out, it is possible to preserve only the
receiver (this) for non-argument methods.

Thanks for your comments.

Sung

Qingzhou

unread,
Mar 17, 2009, 2:06:39 AM3/17/09
to ReCrash
Thanks.

A new problem, when I was using reCrash to instrument some of my own
classes, I encounted this:

com.thoughtworks.xstream.converters.ConversionException: Could not
call java.security.CodeSource.readObject()
---- Debugging information ----
message : Could not call
java.security.CodeSource.readObject()
cause-exception : java.lang.RuntimeException
cause-message : null
class :
edu.mit.csail.pag.recrash.tracer.item.StackTraceItem
required-type : java.security.CodeSource
path : /
edu.mit.csail.pag.recrash.tracer.item.StackTraceItem/vector/default/
elementData/edu.mit.csail.pag.recrash.tracer.item.MethodTraceItem[2]/
serializedArgumentObject/
edu.mit.csail.pag.recrash.tracer.item.ClonedArgumentObject/object/
group/parent/threads/java.lang.Thread/contextClassLoader/pdcache/entry/
java.security.CodeSource/java.security.CodeSource
line number : 485
-------------------------------

I have noticed you have already asked this question to xstream
developer before, do you have any conclusions?
If my version of reCrash or xstream is too old? Seems like an
exception is thrown in xstream library.

Thanks again!
> > Qingzhou Luo- 隐藏被引用文字 -
>
> - 显示引用的文字 -

Qingzhou

unread,
Mar 17, 2009, 11:26:13 PM3/17/09
to ReCrash
I have geot the cause. Xstream doesn't support thread serialization up
now:(
> > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -
Reply all
Reply to author
Forward
0 new messages