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 "Yves Langisch (JIRA)" <ax...@ws.apache.org> on 2005/03/07 16:02:54 UTC

[jira] Created: (AXIS-1857) PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)

PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)
------------------------------------------------------------------------------------

         Key: AXIS-1857
         URL: http://issues.apache.org/jira/browse/AXIS-1857
     Project: Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.2RC3    
 Environment: 1.4.2_06-b03, SuSE 9.2
    Reporter: Yves Langisch
    Priority: Critical


PositiveInteger fields in a bean are incorrectly serialized. On the wire there is a attribute "lowestSetBit" attribute for these elements which invalidates the message.

The cause seems to be the change that was made in the class SimpleSerializer (version 1.35 -> 1.36, init() method). Since the if-statement in the init-method ("if (SimpleType.class.isAssignableFrom(javaType)") was removed the propertyDescriptor is sett. This propertyDescriptor then contains the lowestSetBit property as it is a property of the BigInteger class.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1857) PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)

Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1857?page=comments#action_60422 ]
     
Yves Langisch commented on AXIS-1857:
-------------------------------------

The problem occurs with most of the Axis types in org.apache.axis.types. I'll provide a patch later.

> PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)
> ------------------------------------------------------------------------------------
>
>          Key: AXIS-1857
>          URL: http://issues.apache.org/jira/browse/AXIS-1857
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: 1.4.2_06-b03, SuSE 9.2
>     Reporter: Yves Langisch
>     Priority: Critical
>  Attachments: axis_1857.patch
>
> PositiveInteger fields in a bean are incorrectly serialized. On the wire there is a attribute "lowestSetBit" attribute for these elements which invalidates the message.
> The cause seems to be the change that was made in the class SimpleSerializer (version 1.35 -> 1.36, init() method). Since the if-statement in the init-method ("if (SimpleType.class.isAssignableFrom(javaType)") was removed the propertyDescriptor is sett. This propertyDescriptor then contains the lowestSetBit property as it is a property of the BigInteger class.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1857) PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)

Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1857?page=comments#action_60374 ]
     
Yves Langisch commented on AXIS-1857:
-------------------------------------

I meant org.apache.axis.types.NonPositiveInteger and NonNegativeInteger, not BigInteger

> PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)
> ------------------------------------------------------------------------------------
>
>          Key: AXIS-1857
>          URL: http://issues.apache.org/jira/browse/AXIS-1857
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: 1.4.2_06-b03, SuSE 9.2
>     Reporter: Yves Langisch
>     Priority: Critical

>
> PositiveInteger fields in a bean are incorrectly serialized. On the wire there is a attribute "lowestSetBit" attribute for these elements which invalidates the message.
> The cause seems to be the change that was made in the class SimpleSerializer (version 1.35 -> 1.36, init() method). Since the if-statement in the init-method ("if (SimpleType.class.isAssignableFrom(javaType)") was removed the propertyDescriptor is sett. This propertyDescriptor then contains the lowestSetBit property as it is a property of the BigInteger class.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1857) PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1857?page=comments#action_60364 ]
     
Davanum Srinivas commented on AXIS-1857:
----------------------------------------

Yves,

would adding a if condition that checks for class's package starts with java. or javax. work?

thanks,
dims

> PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)
> ------------------------------------------------------------------------------------
>
>          Key: AXIS-1857
>          URL: http://issues.apache.org/jira/browse/AXIS-1857
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: 1.4.2_06-b03, SuSE 9.2
>     Reporter: Yves Langisch
>     Priority: Critical

>
> PositiveInteger fields in a bean are incorrectly serialized. On the wire there is a attribute "lowestSetBit" attribute for these elements which invalidates the message.
> The cause seems to be the change that was made in the class SimpleSerializer (version 1.35 -> 1.36, init() method). Since the if-statement in the init-method ("if (SimpleType.class.isAssignableFrom(javaType)") was removed the propertyDescriptor is sett. This propertyDescriptor then contains the lowestSetBit property as it is a property of the BigInteger class.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1857) PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1857?page=history ]
     
Davanum Srinivas resolved AXIS-1857:
------------------------------------

    Resolution: Fixed

Thanks. Applied Patch.

-- dims

> PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)
> ------------------------------------------------------------------------------------
>
>          Key: AXIS-1857
>          URL: http://issues.apache.org/jira/browse/AXIS-1857
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: 1.4.2_06-b03, SuSE 9.2
>     Reporter: Yves Langisch
>     Priority: Critical
>  Attachments: axis_1857.patch
>
> PositiveInteger fields in a bean are incorrectly serialized. On the wire there is a attribute "lowestSetBit" attribute for these elements which invalidates the message.
> The cause seems to be the change that was made in the class SimpleSerializer (version 1.35 -> 1.36, init() method). Since the if-statement in the init-method ("if (SimpleType.class.isAssignableFrom(javaType)") was removed the propertyDescriptor is sett. This propertyDescriptor then contains the lowestSetBit property as it is a property of the BigInteger class.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1857) PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)

Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1857?page=history ]

Yves Langisch updated AXIS-1857:
--------------------------------

    Attachment: axis_1857.patch

patch

> PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)
> ------------------------------------------------------------------------------------
>
>          Key: AXIS-1857
>          URL: http://issues.apache.org/jira/browse/AXIS-1857
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: 1.4.2_06-b03, SuSE 9.2
>     Reporter: Yves Langisch
>     Priority: Critical
>  Attachments: axis_1857.patch
>
> PositiveInteger fields in a bean are incorrectly serialized. On the wire there is a attribute "lowestSetBit" attribute for these elements which invalidates the message.
> The cause seems to be the change that was made in the class SimpleSerializer (version 1.35 -> 1.36, init() method). Since the if-statement in the init-method ("if (SimpleType.class.isAssignableFrom(javaType)") was removed the propertyDescriptor is sett. This propertyDescriptor then contains the lowestSetBit property as it is a property of the BigInteger class.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1857) PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)

Posted by "Yves Langisch (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1857?page=comments#action_60369 ]
     
Yves Langisch commented on AXIS-1857:
-------------------------------------

Dims,

Another proposal which should solve the problem:

We add java.math.BigInteger to the basic datatypes in SimpleDeserializerFactory.isBasic(Class javaType).

What do you think?

Yves  

> PositiveInteger fields in a bean are incorrectly serialized (lowestSetBit attribute)
> ------------------------------------------------------------------------------------
>
>          Key: AXIS-1857
>          URL: http://issues.apache.org/jira/browse/AXIS-1857
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: 1.4.2_06-b03, SuSE 9.2
>     Reporter: Yves Langisch
>     Priority: Critical

>
> PositiveInteger fields in a bean are incorrectly serialized. On the wire there is a attribute "lowestSetBit" attribute for these elements which invalidates the message.
> The cause seems to be the change that was made in the class SimpleSerializer (version 1.35 -> 1.36, init() method). Since the if-statement in the init-method ("if (SimpleType.class.isAssignableFrom(javaType)") was removed the propertyDescriptor is sett. This propertyDescriptor then contains the lowestSetBit property as it is a property of the BigInteger class.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira