You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Pavlenko (JIRA)" <ji...@apache.org> on 2007/06/29 14:06:07 UTC
[jira] Created: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
[classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
---------------------------------------------------------------------------
Key: HARMONY-4307
URL: https://issues.apache.org/jira/browse/HARMONY-4307
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: SLES 10 x86_64, DRLVM release build
Reporter: Andrey Pavlenko
The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Deakin resolved HARMONY-4307.
------------------------------------
Resolution: Fixed
Fix Version/s: 5.0M14
6.0M2
Hope you don't mind me stealing this issue Tony ;)
Thanks Andrey and Mikhail. Patch applied at repo revision r926547 - please check that it was applied as expected.
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Assignee: Oliver Deakin
> Fix For: 6.0M2, 5.0M14
>
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511381 ]
Mikhail Markov commented on HARMONY-4307:
-----------------------------------------
Although i could not create a reproducer to confirm the issue, after some code investigation i've found a gap allowing type to be null:
It's package-private constructor of ObjectStreamField - if called then type is null and getType() not only could return null, but in some circumstances could throw NPE. It's expected that other classes in java.io package using this constructor will call resolve() method before actual class using but until that the class is in invalid state. So, it seems that type should be initialized to some non-null value in this case. I'll provide the patch soon.
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Vladimir Ivanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509789 ]
Vladimir Ivanov commented on HARMONY-4307:
------------------------------------------
For me the test org.apache.harmony.awt.ListenerListTest failed not intermittently on the SLES 9 x86_64, DRLVM debug build.
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Markov updated HARMONY-4307:
------------------------------------
Attachment: H-4307.patch
Here is the patch adding default type resolution to ObjectStreamField.
Could someone from committers please try it? Thanks!
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12872160#action_12872160 ]
Mark Hindess commented on HARMONY-4307:
---------------------------------------
Removed test from exclude list with commit r948719.
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Assignee: Oliver Deakin
> Fix For: 6.0M2, 5.0M14
>
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tony Wu reassigned HARMONY-4307:
--------------------------------
Assignee: Tony Wu
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Assignee: Tony Wu
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Vladimir Ivanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512357 ]
Vladimir Ivanov commented on HARMONY-4307:
------------------------------------------
Last days the test org.apache.harmony.awt.ListenerListTest failed on the Win x86_64 with the same execution log:
Test: testSerialize
Class: org.apache.harmony.awt.ListenerListTest
java.lang.NullPointerException
at java.io.ObjectStreamClass.buildFieldDescriptors(ObjectStreamClass.java:322)
at java.io.ObjectStreamClass.createClassDesc(ObjectStreamClass.java:229)
at java.io.ObjectStreamClass.lookupStreamClass(ObjectStreamClass.java:907)
at java.io.ObjectStreamClass.lookupStreamClass(ObjectStreamClass.java:884)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1844)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1770)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1734)
at org.apache.harmony.awt.ListenerList.writeObject(ListenerList.java:180)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1301)
at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1659)
at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1927)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1770)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1734)
at org.apache.harmony.awt.ListenerListTest.writeAndRead(ListenerListTest.java:57)
at org.apache.harmony.awt.ListenerListTest.testSerialize(ListenerListTest.java:46)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
Test will be excluded for the Windows X86_64 too.
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Assignee: Tony Wu
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Deakin reassigned HARMONY-4307:
--------------------------------------
Assignee: Oliver Deakin (was: Tony Wu)
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Assignee: Oliver Deakin
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Deakin closed HARMONY-4307.
----------------------------------
Closing...
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Assignee: Oliver Deakin
> Fix For: 6.0M2, 5.0M14
>
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4307) [classlib][luni]
java.io.ObjectStreamField.getType() sometimes returns null
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512397 ]
Mikhail Markov commented on HARMONY-4307:
-----------------------------------------
Tony, is everything ok with my patch - are you going to integrate it?
> [classlib][luni] java.io.ObjectStreamField.getType() sometimes returns null
> ---------------------------------------------------------------------------
>
> Key: HARMONY-4307
> URL: https://issues.apache.org/jira/browse/HARMONY-4307
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: SLES 10 x86_64, DRLVM release build
> Reporter: Andrey Pavlenko
> Assignee: Tony Wu
> Attachments: H-4307.patch
>
>
> The method java.io.ObjectStreamField.getType() sometimes returns null. Because of this issue the test org.apache.harmony.awt.ListenerListTest sometimes fails on Linux x86_64 on release build of DRLVM. I'm not sure if it's classlib issue, but it's most probably not AWT issue.
> For additional info please see the discussion in the dev-list http://thread.gmane.org/gmane.comp.java.harmony.devel/27651
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.