JDK-4272982 : When running tools/jdb/api, java.net.BindException: Cannot assign requested addr
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: solaris_2.6
  • CPU: x86
  • Submitted: 1999-09-17
  • Updated: 1999-09-27
  • Resolved: 1999-09-27
Description
When running tools/jdb/api in Hotspot 2.0, build C with JDK1.2.2, I got a failure causes by "java.net.BindException: Cannot assign requested address"
This test was ran in CUP02, SIT lab, SUT=DELL1, WinNT
I have rerun jdb/api with Classic VM and it doesn't give this error.

Step to reproduce:
1. Install JDK1.2.2 on Pentium running WinNT
2. Install Hotspot 2.0 Server Beta, build C in JDK 1.2.2
3. Create a test directory calls jdb
4. Compile the attached DebuggerTestFramework.java
5. Compile the attached ArrayTest.java 
6. Run ArrayTest

Result:
Error shows as below

Sample of error shows when ran Hotspot 2.0, Build C, WinNT:
[N:/tool_122/jdb/tests/api] RUNsuitewin
Compiling the Debugger Test Framework
Compiling ArrayTest.java...
Executing ArrayTest...
java.net.BindException: Cannot assign requested address: no further inf
Exception in thread "main" java.lang.NullPointerException
        at DebugTestFramework.doStopAt(DebugTestFramework.java:102)
        at DebugTestFramework.LoadStopAt(DebugTestFramework.java:164)
        at ArrayTest.main(ArrayTest.java:78)

The exception occurs when the following line run: 
java -classpath "d:/jdk1.2.2/lib/tools.jar;n:/tool_122/jdb/tests/supp_t
ests/classes;." -Dapplication.home=d:/jdk1.2.2/ ArrayTest

Comments
EVALUATION I can reproduce this problem with both classic and hotspot. See log: Y:\Bugs\4272982>java -version java version "1.2.2" Java HotSpot(TM) Server VM (2.0beta, mixed mode, internal release build) Y:\Bugs\4272982>java_g -version java version "1.2.2" Java HotSpot(TM) Server VM (2.0beta, mixed mode, internal debug build) Y:\Bugs\4272982>java_g -classic -version Warning: JIT compiler "symcjit" not found. Will use interpreter. java version "1.2.2" Classic VM (build JDK-1.2.2-W, native threads, nojit) Y:\Bugs\4272982>java -classic -version java version "1.2.2" Classic VM (build JDK-1.2.2-W, native threads, symcjit) Y:\Bugs\4272982>java -classic -classpath .;d:\jdk1.2\lib\tools.jar -Dapplication.home=d:\j dk1.2\ ArrayTest java.net.BindException: Cannot assign requested address: no further information Exception in thread "main" java.lang.NullPointerException at DebugTestFramework.doStopAt(DebugTestFramework.java:102) at DebugTestFramework.LoadStopAt(DebugTestFramework.java:164) at ArrayTest.main(ArrayTest.java:78) ^C Y:\Bugs\4272982>java -classpath .;d:\jdk1.2\lib\tools.jar -Dapplication.home=d:\jdk1.2\ A rrayTest java.net.BindException: Cannot assign requested address: no further information Exception in thread "main" java.lang.NullPointerException at DebugTestFramework.doStopAt(DebugTestFramework.java:102) at DebugTestFramework.LoadStopAt(DebugTestFramework.java:164) at ArrayTest.main(ArrayTest.java:78) This likly to be a testprogram bug rene.schmidt@eng 1999-09-27
27-09-1999