> My product MaintainJ uses AspectJ load time weaving to capture the call
> trace at runtime. When weaving an application, the following exception is
> Caused by: java.io.NotSerializableException:
> at java.io.ObjectOutputStream.writeObject0(Unknown Source)
> at java.io.ObjectOutputStream.writeObject(Unknown Source)
> at xxx.yyyyy.ZZZClass.writeExternal_aroundBody4(ZZZClass.java:70)
> AspectJ LTW seems to insert many fields as below in the class files and
> serializing them seems to be failing.
> private static final org.aspectj.lang.JoinPoint.StaticPart ajc$tjp_0; /*
> synthetic field */
> Is there any quick fix for this? Can AspectJ make these fields transient
> without any other issues?
> Choudary Kothapalli
> MaintainJ Inc.