You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/04/10 06:38:33 UTC

[Bug 64334] New: Netbeans cannot debug test classes with uninitialised jvmarg

https://bz.apache.org/bugzilla/show_bug.cgi?id=64334

            Bug ID: 64334
           Summary: Netbeans cannot debug test classes with uninitialised
                    jvmarg
           Product: Tomcat 8
           Version: 8.5.54
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Meta
          Assignee: dev@tomcat.apache.org
          Reporter: Brian@PingToo.com
  Target Milestone: ----

Created attachment 37163
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37163&action=edit
diff for TOMCAT_8_5_54/tomcat/res/ide-support/netbeans/nb-tomcat.xml

I do not understand the use intended by this jvmarg, which is undefined. I can
compile and run a single unit test class, but the debug action crashes.

debug-selected-file-in-test:
debugging test: org.apache.catalina.realm.TestJNDIRealm
Error: Could not find or load main class ${test.jvmarg.egd}
Testsuite: org.apache.catalina.realm.TestJNDIRealm
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec

Simply commenting-out the offending line in:-

TOMCAT_8_5_54/tomcat/res/ide-support/netbeans/nb-tomcat.xml

... allows the unit test to be debugged successfully.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64334] Netbeans cannot debug test classes with uninitialised jvmarg

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64334

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
On one level, that JVM argument is there because it was present in the patch
you provided for bug 54899 ;)

It looks like an attempt to pass that test.jvmarg.egd value from the build.xml
file to JVM used for the test run to address potential entropy issues.

Things have moved on a bit since the time of bug 54899 and I am assuming that
the egd hack is no longer necessary. I'll remove that setting from the sample
NetBeans configs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64334] Netbeans cannot debug test classes with uninitialised jvmarg

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64334

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Done.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org