This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 8.1 Beta (Build 201508041349) Operating System = Mac OS X version 10.10.5 running on x86_64 Java; VM; Vendor = 1.8.0_45 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Run my class in debug mode causes error in ZipFile class. NetBeans: JPDA Listening Start... JPDA Address: Kranji.fritz.box:61053 Port:61053 cd /Users/martin/Develop/gitRepos/SAClient/SAClientNetty; JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home M2_HOME=/Users/martin/Application/apache/apache-maven-3.3.1 /Users/martin/Application/apache/apache-maven-3.3.1/bin/mvn "-Dexec.args=-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=61053 -classpath %classpath com.analyzer.message.client.MessageClientFacadeTest" -Dexec.executable=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -Dexec.classpathScope=test -Djpda.listen=true -DskipTests=true -Djpda.address=61053 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts. Scanning for projects... ------------------------------------------------------------------------ Building Source Analyzer (Netty Client) 1.0.0-SNAPSHOT ------------------------------------------------------------------------ --- exec-maven-plugin:1.2.1:exec (default-cli) @ SANettyClient --- Listening on 61053 User program running Exception java.util.zip.ZipException(<Current thread can not invoke methods. Probably was not suspended by an event (breakpoint, step, etc.).>) breakpoint hit in java.util.zip.ZipFile at line ? by thread main. Thread main stopped at ZipFile.java.open. User program running Exception java.util.zip.ZipException("error in opening zip file") breakpoint hit in sun.misc.URLClassPath$JarLoader at line 865 by thread main. Thread main stopped at URLClassPath.java:865. If I don't run the program in debug mode it works without problems. What is going wrong ? Regards Martin
Created attachment 155997 [details] IDE log
Reassigned for further evaluation.
Do you know which ZIP file it has problem to open? Can you compare the classpath used in debug mode with the classpath used without the debug mode? You have some breakpoint there (probably an exception breakpoint), which is hit in the native method ZipFile.open() Is the value of "name" argument accessible in debugger? If yes, it can be used to find out what is the problematic ZIP file and how it got on the classpath.
Resolving as incomplete, please provide a sample project. Otherwise it's not clear what can we do about it.