[
http://jira.codehaus.org/browse/MFINDBUGS-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert updated MFINDBUGS-99:
------------------------------------
Attachment: auxclasspath_fix.patch
> Findbugs 2.2 fails with "FileNotFoundException" and "Premature end of file"
> ---------------------------------------------------------------------------
>
> Key: MFINDBUGS-99
> URL: http://jira.codehaus.org/browse/MFINDBUGS-99
> Project: Maven 2.x FindBugs Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: Windows XP SP3, JDK 1.6
> Reporter: Stefan Seifert
> Attachments: auxclasspath_fix.patch
>
>
> after building the auxClassPath the findbugs:findbugs execution fails with an
> error like this:
> {noformat}
> [java] Exception in thread "main" java.io.FileNotFoundException:
> D:\Develop\svn-public\day_cqstone\medialib\und (Das System kann die
> angegebene Datei nicht finden)
> [java] at java.util.zip.ZipFile.open(Native Method)
> [java] at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> [java] at java.util.zip.ZipFile.<init>(ZipFile.java:131)
> [java] at
> edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.<init>(ZipFileCodeBase.java:53)
> [java] at
> edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.countUsingZipFile(ZipCodeBaseFactory.java:92)
> [java] at
> edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(ZipCodeBaseFactory.java:46)
> [java] at
> edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(ClassFactory.java:97)
> [java] at
> edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(FilesystemCodeBaseLocator.java:75)
> [java] at
> edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:564)
> [java] at
> edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:195)
> [java] at
> edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:584)
> [java] at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:181)
> [java] at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:348)
> [java] at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1057)
> [java] Scanning archives (0 / 111)
> [java] Java Result: 1
> [Fatal Error] :-1:-1: Premature end of file.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An error has occurred in FindBugs Report report generation.
> Embedded error: Premature end of file.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 32 seconds
> [INFO] Finished at: Wed Nov 25 12:21:00 CET 2009
> [INFO] Final Memory: 27M/48M
> [INFO]
> ------------------------------------------------------------------------
> {noformat}
> paths with spaces in it (like "Dokumente und Einstellungen" / "Documents and
> Settings") make problems since 2.2.
> the reason is the change made for MFINDBUGS-89 - the auxclasspath is passed
> as an external file. this seems not to work as expected on windows (i've not
> testes it no other platforms).
> attached is a patch that fixes the problem in my environment
> [^auxclasspath_fix.patch]
> the "responseFile" is removed again, and the path is passed using an "arg"
> element with "path" property.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email