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.

Bug 255116 - Problems running program in debug mode
Summary: Problems running program in debug mode
Status: RESOLVED INCOMPLETE
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 07:13 UTC by Martin_Absmeier
Modified: 2015-09-15 16:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (98.84 KB, text/plain)
2015-09-09 07:13 UTC, Martin_Absmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin_Absmeier 2015-09-09 07:13:15 UTC
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
Comment 1 Martin_Absmeier 2015-09-09 07:13:22 UTC
Created attachment 155997 [details]
IDE log
Comment 2 Jiri Kovalsky 2015-09-09 20:26:30 UTC
Reassigned for further evaluation.
Comment 3 Martin Entlicher 2015-09-10 16:34:07 UTC
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.
Comment 4 Martin Entlicher 2015-09-15 16:38:37 UTC
Resolving as incomplete, please provide a sample project. Otherwise it's not clear what can we do about it.