Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ajdt-dev] StreamCorruptedException


Hi,

Can I ask if you are binary weaving?  I recently modified type mungers (which represent ITDs) to remember their source location when they are written into a class file - it looks like you are hitting a situation where the source location can't be read in successfully.  The only case I can think of that would give rise to your problem is if you are binary weaving and the aspect you are weaving was built by an old version of AspectJ ?

cheers,
Andy.
---
Andy Clement
AspectJ
IBM Hursley Park




"James CE Johnson" <jcej@xxxxxxxxxx>
Sent by: ajdt-dev-admin@xxxxxxxxxxx

11/01/2005 17:43

Please respond to
ajdt-dev@xxxxxxxxxxx

To
<ajdt-dev@xxxxxxxxxxx>
cc
Subject
[ajdt-dev] StreamCorruptedException





Forgive me if this is the wrong place to post this. I've dug through the
various archives and google'd to no avail.

I'm getting the following stacktrace when trying to build my project in
Eclipse:

java.io.StreamCorruptedException: invalid stream header
       at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
       at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253)
       at
org.aspectj.weaver.ResolvedTypeMunger.readSourceLocation(ResolvedTypeMunger.java:153)
       at
org.aspectj.weaver.NewMethodTypeMunger.readMethod(NewMethodTypeMunger.java:47)
       at
org.aspectj.weaver.ResolvedTypeMunger.read(ResolvedTypeMunger.java:107)
       at org.aspectj.weaver.WeaverStateInfo.read(WeaverStateInfo.java:106)
       at org.aspectj.weaver.AjAttribute.read(AjAttribute.java:95)
       at
org.aspectj.weaver.bcel.BcelAttributes.readAjAttributes(BcelAttributes.java:39)
       at
org.aspectj.weaver.bcel.BcelObjectType.unpackAspectAttributes(BcelObjectType.java:172)
       at
org.aspectj.weaver.bcel.BcelObjectType.<init>(BcelObjectType.java:91)
       at
org.aspectj.weaver.bcel.BcelWorld.makeBcelObjectType(BcelWorld.java:213)
       at
org.aspectj.weaver.bcel.BcelWorld.addSourceObjectType(BcelWorld.java:243)
       at
org.aspectj.weaver.bcel.BcelWeaver.addLibraryJarFile(BcelWeaver.java:155)
       at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:500)
       at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:151)
       at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:102)
       at
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:122)
       at
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:165)


eclipse-SDK-3.1M4-linux-gtk

Eclipse Platform
Version: 3.1.0
Build id: 200412162000

With AJDT 1.5.0.2004122110

On a rather old Mandrake 9.0 distribution.


I've upgraded Eclipse and AJDT to the bleeding edge this morning due to
the problem. Prior to that I was using 3.1M3 though I don't remember which
version of AJDT (200411 I believe).

What else can I tell you about my environment to help track this down?

Thanks,
James

_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/ajdt-dev


Back to the top