-
Bug
-
Resolution: Fixed
-
P2
-
1.4.2_14, 1.4.2_15
-
b08
-
x86
-
solaris_10
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2174446 | 1.4.2_21 | Abhijit Saha | P3 | Resolved | Fixed | b01 |
"Permissions/receiveDataGramSocketTest" test case failed on Solaris 10 AMD64 when "-Xcheck:jni" is used. Error message:
"
FATAL ERROR in native method: JNI call made with exception pending
at java.net.PlainDatagramSocketImpl.peekData(Native Method)
- locked <0xf2833c60> (a java.net.PlainDatagramSocketImpl)
at java.net.DatagramSocket.receive(DatagramSocket.java:661)
- locked <0xf2844ed0> (a java.net.DatagramPacket)
- locked <0xf2832500> (a java.net.DatagramSocket)
at myDataGramClient.run(myDataGramClient.java:18)
Abort
"
For reproduce it:
1. login to "stt-33.russia.sun.com"
2. cd /net/vice.russia/export/home0/dtf/dtf_ws/dtf3-exec/142_Suites-142_14b06_security_Sol10_x64-2007-05-03-18-17-08-0942/results/reguser.Solaris.x86/receiveDataGramSocketTest
3. perform test:
[stt-robot@stt-33]$ /export/JDK/j2sdk1.4.2_14/bin/java -Xbootclasspath:privileged.jar:/export/JDK/j2sdk1.4.2_14/jre/lib/rt.jar -Xcheck:jni -Djava.security.manager -Djava.security.policy=noSocketPermission.jp receiveDataGramSocketTest void false
FATAL ERROR in native method: JNI call made with exception pending
at java.net.PlainDatagramSocketImpl.peekData(Native Method)
- locked <0xf2833c60> (a java.net.PlainDatagramSocketImpl)
at java.net.DatagramSocket.receive(DatagramSocket.java:661)
- locked <0xf2844ed0> (a java.net.DatagramPacket)
- locked <0xf2832500> (a java.net.DatagramSocket)
at myDataGramClient.run(myDataGramClient.java:18)
Abort
4. If you remove -Xcheck:jni you can see:
"
[stt-robot@stt-33]$ /export/JDK/j2sdk1.4.2_14/bin/java -Xbootclasspath:privileged.jar:/export/JDK/j2sdk1.4.2_14/jre/lib/rt.jar -Djava.security.manager -Djava.security.policy=noSocketPermission.jp receiveDataGramSocketTest void false -----------------------------------
Test Name = receiveDataGramSocketTest
Test Args = void Expected Result = false
Test Result = PASS: the test got Security exception as expected
"
platform: amd 64
OS: Solaris 10
JDK: 142_14 all builds
testing machine: stt-33.russia.sun.com
results in:
net/vice.russia/export/home0/dtf/dtf_ws/dtf3-exec/142_Suites-142_14b06_security_Sol10_x64-2007-05-03-18-17-08-0942/results/
"
FATAL ERROR in native method: JNI call made with exception pending
at java.net.PlainDatagramSocketImpl.peekData(Native Method)
- locked <0xf2833c60> (a java.net.PlainDatagramSocketImpl)
at java.net.DatagramSocket.receive(DatagramSocket.java:661)
- locked <0xf2844ed0> (a java.net.DatagramPacket)
- locked <0xf2832500> (a java.net.DatagramSocket)
at myDataGramClient.run(myDataGramClient.java:18)
Abort
"
For reproduce it:
1. login to "stt-33.russia.sun.com"
2. cd /net/vice.russia/export/home0/dtf/dtf_ws/dtf3-exec/142_Suites-142_14b06_security_Sol10_x64-2007-05-03-18-17-08-0942/results/reguser.Solaris.x86/receiveDataGramSocketTest
3. perform test:
[stt-robot@stt-33]$ /export/JDK/j2sdk1.4.2_14/bin/java -Xbootclasspath:privileged.jar:/export/JDK/j2sdk1.4.2_14/jre/lib/rt.jar -Xcheck:jni -Djava.security.manager -Djava.security.policy=noSocketPermission.jp receiveDataGramSocketTest void false
FATAL ERROR in native method: JNI call made with exception pending
at java.net.PlainDatagramSocketImpl.peekData(Native Method)
- locked <0xf2833c60> (a java.net.PlainDatagramSocketImpl)
at java.net.DatagramSocket.receive(DatagramSocket.java:661)
- locked <0xf2844ed0> (a java.net.DatagramPacket)
- locked <0xf2832500> (a java.net.DatagramSocket)
at myDataGramClient.run(myDataGramClient.java:18)
Abort
4. If you remove -Xcheck:jni you can see:
"
[stt-robot@stt-33]$ /export/JDK/j2sdk1.4.2_14/bin/java -Xbootclasspath:privileged.jar:/export/JDK/j2sdk1.4.2_14/jre/lib/rt.jar -Djava.security.manager -Djava.security.policy=noSocketPermission.jp receiveDataGramSocketTest void false -----------------------------------
Test Name = receiveDataGramSocketTest
Test Args = void Expected Result = false
Test Result = PASS: the test got Security exception as expected
"
platform: amd 64
OS: Solaris 10
JDK: 142_14 all builds
testing machine: stt-33.russia.sun.com
results in:
net/vice.russia/export/home0/dtf/dtf_ws/dtf3-exec/142_Suites-142_14b06_security_Sol10_x64-2007-05-03-18-17-08-0942/results/
- backported by
-
JDK-2174446 "Permissions/receiveDataGramSocketTest" test case failed when "-Xcheck:jni" is used
- Resolved
- relates to
-
JDK-6231286 "FATAL ERROR in native method: ... with exception ..." from DatagramSocket.recei
- Resolved
-
JDK-6273094 api/java_net/DatagramSocket/index.html#Close
- Resolved