Hey Andy

I checked the aspectpath, and i found the jar file containing the invalid entry.

Anyway, it would be cool to have a better error message showing the file and 
entry generating this error message. Also a flag like "ignore errors on 
classpath", maybe "-proceedOnError" would be good to ignore such errors.

Regards
Mirko

-----Ursprüngliche Nachricht-----
Von: aspectj-users-boun...@eclipse.org 
[mailto:aspectj-users-boun...@eclipse.org] Im Auftrag von Andy Clement
Gesendet: Mittwoch, 11. Mai 2011 19:29
An: aspectj-users@eclipse.org
Betreff: Re: [aspectj-users] ZipException upon compilation with AspectJ1.6.10

Hi,

>From the stack I can see it is the aspectpath that is having problems,
there is something unusual on that path that is being encountered
whilst looking through the jars on there (looking for aspects).  Can
you check the jars on that aspectpath?  I am confused that it is only
a problem under intellij.  I could perhaps add some better diagnostics
to tell us the jar and the jar entry. I'll do that if you can't find
the problem.

cheers
Andy

On 11 May 2011 05:02, Sertic Mirko, Bedag <mirko.ser...@bedag.ch> wrote:
> Hi@all
>
> I am getting a strange error compiling a project with AspectJ 1.6.10 inside
> IntelliJ10. I am getting the following exception:
>
> abort ABORT -- (ZipException) invalid entry size (expected 1778974728 but
> got 596 bytes)
>
> invalid entry size (expected 1778974728 but got 596 bytes)
>
> java.util.zip.ZipException: invalid entry size (expected 1778974728 but got
> 596 bytes)
>
>         at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:386)
>
>         at java.util.zip.ZipInputStream.read(ZipInputStream.java:156)
>
>         at org.aspectj.util.FileUtil.readAsByteArray(FileUtil.java:1145)
>
>         at
> org.aspectj.weaver.bcel.BcelWeaver.addAspectsFromJarFile(BcelWeaver.java:264)
>
>         at
> org.aspectj.weaver.bcel.BcelWeaver.addLibraryJarFile(BcelWeaver.java:238)
>
>         at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:864)
>
>         at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.performBuild(AjBuildManager.java:245)
>
>         at
> org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:181)
>
>         at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
>
>         at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
>
>         at org.aspectj.tools.ajc.Main.run(Main.java:371)
>
>         at org.aspectj.tools.ajc.Main.runMain(Main.java:248)
>
>         at org.aspectj.tools.ajc.Main.main(Main.java:84)
>
> Any ideas? Compiling the project with Maven or AJC works pretty smooth, but
> inside IntelliJ, i am getting this strange error.
>
> I checked the @param files given to ajc, but i do not know where to start.
> Is the problem related with -classpath or with -aspectpath?
>
> Thanks in advance
>
> Mirko
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to