You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jihong Jin (JIRA)" <ax...@ws.apache.org> on 2005/07/21 16:57:57 UTC
[jira] Created: (AXIS-2133) NullPointerException on Java Bean serialization when Java Bean is null
NullPointerException on Java Bean serialization when Java Bean is null
----------------------------------------------------------------------
Key: AXIS-2133
URL: http://issues.apache.org/jira/browse/AXIS-2133
Project: Apache Axis
Type: Bug
Components: Serialization/Deserialization
Versions: 1.2RC3
Environment: window
Reporter: Jihong Jin
File: BeanPropertyDescriptor
Package: org.apache.axis.utils
Line No.: 127
Code: return readMethod.invoke(obj, noArgs);
Description: NPE is thrown when obj is null
Caller Info:
File: BeanSerializer
Package: org.apache.axis.encoding.ser
LIne No.: 177
Code: Object propValue =
propertyDescriptor[i].get(value);
Description: It calls BeanPropertyDescriptor.get(Object obj) and the value is null
--
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: (AXIS-2133) NullPointerException on Java Bean serialization when Java Bean is null
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2133?page=all ]
Davanum Srinivas resolved AXIS-2133:
------------------------------------
Resolution: Fixed
got fixed in later versions of axis. closing for now. please ping us and we can reopen it if you see it in 1.2.1 or above.
-- dims
> NullPointerException on Java Bean serialization when Java Bean is null
> ----------------------------------------------------------------------
>
> Key: AXIS-2133
> URL: http://issues.apache.org/jira/browse/AXIS-2133
> Project: Apache Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2RC3
> Environment: window
> Reporter: Jihong Jin
>
> File: BeanPropertyDescriptor
> Package: org.apache.axis.utils
> Line No.: 127
> Code: return readMethod.invoke(obj, noArgs);
> Description: NPE is thrown when obj is null
> Caller Info:
> File: BeanSerializer
> Package: org.apache.axis.encoding.ser
> LIne No.: 177
> Code: Object propValue =
> propertyDescriptor[i].get(value);
> Description: It calls BeanPropertyDescriptor.get(Object obj) and the value is null
--
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: (AXIS-2133) NullPointerException on Java Bean serialization when Java Bean is null
Posted by "Jihong Jin (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2133?page=comments#action_12316362 ]
Jihong Jin commented on AXIS-2133:
----------------------------------
As mentioned in the bug report, it is for AXIS 1.2RC3.
The NPE is originated in BeanPropertyDescriptor line 127 as I listed before, when BeanSerializer catches the NPE, it throws IOException on line 260: throw new IOException(e.toString());
Jihong
> NullPointerException on Java Bean serialization when Java Bean is null
> ----------------------------------------------------------------------
>
> Key: AXIS-2133
> URL: http://issues.apache.org/jira/browse/AXIS-2133
> Project: Apache Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2RC3
> Environment: window
> Reporter: Jihong Jin
>
> File: BeanPropertyDescriptor
> Package: org.apache.axis.utils
> Line No.: 127
> Code: return readMethod.invoke(obj, noArgs);
> Description: NPE is thrown when obj is null
> Caller Info:
> File: BeanSerializer
> Package: org.apache.axis.encoding.ser
> LIne No.: 177
> Code: Object propValue =
> propertyDescriptor[i].get(value);
> Description: It calls BeanPropertyDescriptor.get(Object obj) and the value is null
--
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: (AXIS-2133) NullPointerException on Java Bean serialization when Java Bean is null
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2133?page=comments#action_12316358 ]
Davanum Srinivas commented on AXIS-2133:
----------------------------------------
can you please post the whole stack trace? AND are u using Axis 1.2.1? it's probably fixed by now.
-- dims
> NullPointerException on Java Bean serialization when Java Bean is null
> ----------------------------------------------------------------------
>
> Key: AXIS-2133
> URL: http://issues.apache.org/jira/browse/AXIS-2133
> Project: Apache Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2RC3
> Environment: window
> Reporter: Jihong Jin
>
> File: BeanPropertyDescriptor
> Package: org.apache.axis.utils
> Line No.: 127
> Code: return readMethod.invoke(obj, noArgs);
> Description: NPE is thrown when obj is null
> Caller Info:
> File: BeanSerializer
> Package: org.apache.axis.encoding.ser
> LIne No.: 177
> Code: Object propValue =
> propertyDescriptor[i].get(value);
> Description: It calls BeanPropertyDescriptor.get(Object obj) and the value is null
--
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