You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Zhang (JIRA)" <ji...@apache.org> on 2006/08/15 05:35:13 UTC
[jira] Created: (HARMONY-1183) [classlib][nio]
o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
[classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
---------------------------------------------------------------------------
Key: HARMONY-1183
URL: http://issues.apache.org/jira/browse/HARMONY-1183
Project: Harmony
Issue Type: Test
Components: Classlib
Reporter: Andrew Zhang
Priority: Minor
o.a.h.tests.java.nio.channels.SelectorTest fails sometimes, though unfrequently.
The failure stack trace looks like:
java.lang.NullPointerException at org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_CONNECT(SelectorTest.java:391) at org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectJ(SelectorTest.java:241) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
It's caused by resource release in method assert_select_OP_CONNECT:
finally {
try {
ssc.accept().close();
} catch (IOException e) {
// do nothing
}
...
Notice that accept() may return null if client channel connected to server in nonblocking mode.
I'll upload a patch to fix this problem soon. Thanks!
Best regards,
Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-1183) [classlib][nio]
o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1183?page=all ]
Paulex Yang closed HARMONY-1183.
--------------------------------
Verified by Andrew.
> [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
> ---------------------------------------------------------------------------
>
> Key: HARMONY-1183
> URL: http://issues.apache.org/jira/browse/HARMONY-1183
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Priority: Minor
> Attachments: Harmony-1183.diff
>
>
> o.a.h.tests.java.nio.channels.SelectorTest fails sometimes, though unfrequently.
> The failure stack trace looks like:
> java.lang.NullPointerException at org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_CONNECT(SelectorTest.java:391) at org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectJ(SelectorTest.java:241) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> It's caused by resource release in method assert_select_OP_CONNECT:
> finally {
> try {
> ssc.accept().close();
> } catch (IOException e) {
> // do nothing
> }
> ...
> Notice that accept() may return null if client channel connected to server in nonblocking mode.
> I'll upload a patch to fix this problem soon. Thanks!
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-1183) [classlib][nio]
o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1183?page=all ]
Paulex Yang reassigned HARMONY-1183:
------------------------------------
Assignee: Paulex Yang
> [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
> ---------------------------------------------------------------------------
>
> Key: HARMONY-1183
> URL: http://issues.apache.org/jira/browse/HARMONY-1183
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Priority: Minor
> Attachments: Harmony-1183.diff
>
>
> o.a.h.tests.java.nio.channels.SelectorTest fails sometimes, though unfrequently.
> The failure stack trace looks like:
> java.lang.NullPointerException at org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_CONNECT(SelectorTest.java:391) at org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectJ(SelectorTest.java:241) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> It's caused by resource release in method assert_select_OP_CONNECT:
> finally {
> try {
> ssc.accept().close();
> } catch (IOException e) {
> // do nothing
> }
> ...
> Notice that accept() may return null if client channel connected to server in nonblocking mode.
> I'll upload a patch to fix this problem soon. Thanks!
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-1183) [classlib][nio]
o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
Posted by "Andrew Zhang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1183?page=all ]
Andrew Zhang updated HARMONY-1183:
----------------------------------
Attachment: Harmony-1183.diff
Hi,
Would you please try my patch? Thanks!
Best regards,
Andrew
> [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
> ---------------------------------------------------------------------------
>
> Key: HARMONY-1183
> URL: http://issues.apache.org/jira/browse/HARMONY-1183
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Priority: Minor
> Attachments: Harmony-1183.diff
>
>
> o.a.h.tests.java.nio.channels.SelectorTest fails sometimes, though unfrequently.
> The failure stack trace looks like:
> java.lang.NullPointerException at org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_CONNECT(SelectorTest.java:391) at org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectJ(SelectorTest.java:241) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> It's caused by resource release in method assert_select_OP_CONNECT:
> finally {
> try {
> ssc.accept().close();
> } catch (IOException e) {
> // do nothing
> }
> ...
> Notice that accept() may return null if client channel connected to server in nonblocking mode.
> I'll upload a patch to fix this problem soon. Thanks!
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-1183) [classlib][nio]
o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
Posted by "Andrew Zhang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1183?page=comments#action_12428055 ]
Andrew Zhang commented on HARMONY-1183:
---------------------------------------
Hi Paulex,
The fix looks good, thanks!
Best regards,
Andrew
> [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
> ---------------------------------------------------------------------------
>
> Key: HARMONY-1183
> URL: http://issues.apache.org/jira/browse/HARMONY-1183
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Priority: Minor
> Attachments: Harmony-1183.diff
>
>
> o.a.h.tests.java.nio.channels.SelectorTest fails sometimes, though unfrequently.
> The failure stack trace looks like:
> java.lang.NullPointerException at org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_CONNECT(SelectorTest.java:391) at org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectJ(SelectorTest.java:241) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> It's caused by resource release in method assert_select_OP_CONNECT:
> finally {
> try {
> ssc.accept().close();
> } catch (IOException e) {
> // do nothing
> }
> ...
> Notice that accept() may return null if client channel connected to server in nonblocking mode.
> I'll upload a patch to fix this problem soon. Thanks!
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (HARMONY-1183) [classlib][nio]
o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1183?page=all ]
Paulex Yang resolved HARMONY-1183.
----------------------------------
Resolution: Fixed
Andrew, patch applied at revision r431550, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.
> [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
> ---------------------------------------------------------------------------
>
> Key: HARMONY-1183
> URL: http://issues.apache.org/jira/browse/HARMONY-1183
> Project: Harmony
> Issue Type: Test
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Priority: Minor
> Attachments: Harmony-1183.diff
>
>
> o.a.h.tests.java.nio.channels.SelectorTest fails sometimes, though unfrequently.
> The failure stack trace looks like:
> java.lang.NullPointerException at org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_CONNECT(SelectorTest.java:391) at org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectJ(SelectorTest.java:241) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> It's caused by resource release in method assert_select_OP_CONNECT:
> finally {
> try {
> ssc.accept().close();
> } catch (IOException e) {
> // do nothing
> }
> ...
> Notice that accept() may return null if client channel connected to server in nonblocking mode.
> I'll upload a patch to fix this problem soon. Thanks!
> Best regards,
> Andrew
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira