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 "TAM Tenfold5 (Created) (JIRA)" <ji...@apache.org> on 2011/11/26 10:57:40 UTC

[jira] [Created] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
---------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-5199
                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
             Project: Axis2
          Issue Type: Bug
          Components: adb, client-api, databinding
    Affects Versions: 1.6.0
            Reporter: TAM Tenfold5


I have described beans as follows:
public class A implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
          private B[] propArrayB;
          private C[] propArrayC;
         //getter and setter methods
}

public class B implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
         //getter and setter methods
}

public class C implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
         //getter and setter methods
}

I have implemented a web-service with an exposed operation as:
public boolean saveAes(A[] aes, String token)

The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)

The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).

I am using ADB data-binding at client-side and and axis2 version is 1.6.0.

Regards,
TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Marian CHlapecka (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184869#comment-13184869 ] 

Marian CHlapecka commented on AXIS2-5199:
-----------------------------------------

Hello,
I had similar problem, but in version 1.7.0 the problem is resolved. I can send to server some object with any attribute which is array via Axis2.
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: Axis2Test.7z
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158262#comment-13158262 ] 

Sagara Gunathunga  commented on AXIS2-5199:
-------------------------------------------

Yes , AXIS2-5195  is already fixed in the trunk and 1.6.2 branch. Please try with snapshot version and let me know your results.  
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Resolved] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5199.
---------------------------------------

    Resolution: Fixed
    
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: Axis2Test.7z
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13214666#comment-13214666 ] 

Sagara Gunathunga  commented on AXIS2-5199:
-------------------------------------------

@TAM 
We have done lot of improvements for Axis2 POJO support recently targeting 1.7.0 release and most of them not available on 1,6 branch and will not ship with 1.6.2. My suggestion is test with 1.7.0-SNAPSHOT version and If you still having same issue provide a small sample (single Java class with a service.xml) to reproduce this issue that will help both of us to resolve this issue if it really exists. Your provided code is bit of a complex and just can't find enough time  to look into it in near future.  
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: Axis2Test.7z
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Resolved] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5199.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
                   1.6.2

AXIS2-5195 already fixed this. 
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Assigned] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  reassigned AXIS2-5199:
-----------------------------------------

    Assignee: Sagara Gunathunga 
    
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168304#comment-13168304 ] 

Sagara Gunathunga  commented on AXIS2-5199:
-------------------------------------------

Is this exception occur with public boolean saveAes(A[] aes, String token) method or with new one ?

I have tested again public boolean saveAes(A[] aes, String token) with following input message.

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:axis="http://axis5199.sample" xmlns:xsd="http://axis5199.sample/xsd">
   <soap:Header/>
   <soap:Body>
      <axis:saveAes>       
         <axis:aes>           
            <xsd:prop1>prop</xsd:prop1>       
            <xsd:prop2>2011-12-15</xsd:prop2>       
            <xsd:prop3>45</xsd:prop3>        
            <xsd:prop4>42.3</xsd:prop4>       
            <xsd:propArrayB>          
               <xsd:prop1>prop</xsd:prop1>           
               <xsd:prop2>2011-12-15</xsd:prop2>             
               <xsd:prop3>56</xsd:prop3>           
               <xsd:prop4>42.3</xsd:prop4>
            </xsd:propArrayB>      
            <xsd:propArrayC>           
               <xsd:prop1>prop</xsd:prop1>            
               <xsd:prop2>2011-12-15</xsd:prop2>             
               <xsd:prop3>67</xsd:prop3>            
               <xsd:prop4>42.3</xsd:prop4>
            </xsd:propArrayC>
         </axis:aes>
         <axis:token>token</axis:token>
      </axis:saveAes>
   </soap:Body>
</soap:Envelope>


Can you provide input message you used and services.xml file of this service ? 
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Reopened] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

TAM Tenfold5 reopened AXIS2-5199:
---------------------------------

    
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13157623#comment-13157623 ] 

Sagara Gunathunga  commented on AXIS2-5199:
-------------------------------------------

Recently I have fixed a issue that something similar to this not sure this also got fix with it. (See https://issues.apache.org/jira/browse/AXIS2-5195)
Can you download snapshot version from here https://builds.apache.org/view/A-F/view/Axis2/job/Axis2/ws/axis2/modules/distribution/target/ and test your sample again. If you will face same exception please attach all relevant server side source files in order to recreate this issue .  
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

TAM Tenfold5 updated AXIS2-5199:
--------------------------------

    Attachment: Axis2Test.7z

Attaching my web project created in Eclipse. The jars from 1.7.0 SNAPSHOT version are in the WEB-INF/lib folder. The client class is test.client.TestServiceTest. The exception can be seen while making a call to the web-service (test.TestService). Client side stub created using ADB data-binding.

Regards,
Tam Tenfold5
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: Axis2Test.7z
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Issue Comment Edited] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179855#comment-13179855 ] 

TAM Tenfold5 edited comment on AXIS2-5199 at 1/4/12 8:53 PM:
-------------------------------------------------------------

Attaching a web project Axis2Test.7z created in Eclipse. The jars from 1.7.0 SNAPSHOT version are in the WEB-INF/lib folder. The client class is test.client.TestServiceTest. The exception can be seen while making a call to the web-service (test.TestService). Client side stub created using ADB data-binding.

Regards,
Tam Tenfold5
                
      was (Author: tam_tenfold5):
    Attaching my web project created in Eclipse. The jars from 1.7.0 SNAPSHOT version are in the WEB-INF/lib folder. The client class is test.client.TestServiceTest. The exception can be seen while making a call to the web-service (test.TestService). Client side stub created using ADB data-binding.

Regards,
Tam Tenfold5
                  
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: Axis2Test.7z
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Issue Comment Edited] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158251#comment-13158251 ] 

TAM Tenfold5 edited comment on AXIS2-5199 at 11/28/11 7:07 AM:
---------------------------------------------------------------

Hello Sagara,

https://issues.apache.org/jira/browse/AXIS2-5195 seems to be exactly describe the issue that I am facing currently.

Error is thrown at below line infinitely, finally leading to java.lang.StackOverflowError:
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467) 

AXIS2-5195 indicates that fix is present in version 1.6.2 and 1.7.0. So I would try to use the snapshot version and check if the issue exists. 

Regards,
TAM Tenfold5, GDev.
                
      was (Author: tam_tenfold5):
    Hello Sagara,

https://issues.apache.org/jira/browse/AXIS2-5195 seems to be exactly describing the issue that I am facing currently.

Error is thrown at below line infinitely finally leading to java.lang.StackOverflowError:
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467) 

AXIS2-5195 indicated that fix is present in version 1.6.2 and 1.7.0. So I would try to use the snapshot version and check if the issue exists. 

Regards,
TAM Tenfold5, GDev.
                  
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213535#comment-13213535 ] 

TAM Tenfold5 commented on AXIS2-5199:
-------------------------------------

Ok, let's call this issue resolved for now. I will test it with 1.6.2 once it releases and reopen the issue if need be.

Thanks for the help extended.

Regards.
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: Axis2Test.7z
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213480#comment-13213480 ] 

Sagara Gunathunga  commented on AXIS2-5199:
-------------------------------------------

@TAM

As I mentioned earlier I can invoke following method without any issue. 

public boolean saveAes(A[] aes, String token)

Above method is smiler to GenericReturnDTO updateTimesheets(String token, TimesheetItem[] timesheets) and should work too.

I'm getting some build issue with the project you shared  also it contains lot of classes/configurations I don't have time to fix those build issues and debug your issue. If you still facing to same exception please create a simple project to reproduce this issue and attach here. I think single Java class with a service.xml file is enough for this.   
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>         Attachments: Axis2Test.7z
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158251#comment-13158251 ] 

TAM Tenfold5 commented on AXIS2-5199:
-------------------------------------

Hello Sagara,

https://issues.apache.org/jira/browse/AXIS2-5195 seems to be exactly describing the issue that I am facing currently.

Error is thrown at below line infinitely finally leading to java.lang.StackOverflowError:
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467) 

AXIS2-5195 indicated that fix is present in version 1.6.2 and 1.7.0. So I would try to use the snapshot version and check if the issue exists. 

Regards,
TAM Tenfold5, GDev.
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166874#comment-13166874 ] 

TAM Tenfold5 commented on AXIS2-5199:
-------------------------------------

The deserialization issue is fixed in 1.7.0 SNAPSHOT version. But before the response is generate below exception is thrown ->

java.lang.NullPointerException
	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:96)
	at org.apache.axis2.databinding.utils.BeanUtil.getPropertyQnameList(BeanUtil.java:391)
	at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:97)
	at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:127)
	at org.apache.axis2.rpc.receivers.RPCUtil.processResponseAsDocLitWrapped(RPCUtil.java:533)
	at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:155)
	at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
	at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:176)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:163)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:662)
                
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Assignee: Sagara Gunathunga 
>            Priority: Blocker
>             Fix For: 1.6.2, 1.7.0
>
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5199) Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error

Posted by "TAM Tenfold5 (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

TAM Tenfold5 updated AXIS2-5199:
--------------------------------

       Priority: Blocker  (was: Major)
    Description: 
I have described beans as follows:
public class A implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
          private B[] propArrayB;
          private C[] propArrayC;
         //getter and setter methods
}

public class B implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
         //getter and setter methods
}

public class C implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
         //getter and setter methods
}

I have implemented a web-service with an exposed operation as:
public boolean saveAes(A[] aes, String token)

The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)

The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).

I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 

I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.

Regards,
TAM Tenfold5

  was:
I have described beans as follows:
public class A implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
          private B[] propArrayB;
          private C[] propArrayC;
         //getter and setter methods
}

public class B implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
         //getter and setter methods
}

public class C implements Serializable {
          private String prop1;
          private Date prop2;
          private Integer prop3;
          private Double prop4;
         //getter and setter methods
}

I have implemented a web-service with an exposed operation as:
public boolean saveAes(A[] aes, String token)

The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)

The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).

I am using ADB data-binding at client-side and and axis2 version is 1.6.0.

Regards,
TAM Tenfold5

    Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
    
> Deserialization of an array type property of a bean, while calling a web-service operation with an array of beans in the request, gives error
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5199
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5199
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb, client-api, databinding
>    Affects Versions: 1.6.0
>         Environment: ADB data-binding at client-side and and axis2 version is 1.6.0.
>            Reporter: TAM Tenfold5
>            Priority: Blocker
>
> I have described beans as follows:
> public class A implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>           private B[] propArrayB;
>           private C[] propArrayC;
>          //getter and setter methods
> }
> public class B implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> public class C implements Serializable {
>           private String prop1;
>           private Date prop2;
>           private Integer prop3;
>           private Double prop4;
>          //getter and setter methods
> }
> I have implemented a web-service with an exposed operation as:
> public boolean saveAes(A[] aes, String token)
> The below line is giving an error, and finally a java.lang.StackOverflowError is thrown:
> org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:467)
> The error seems to be at the server-side before the object in SOAP request is deserialized into POJO. The web-service operation is not getting called (log statements within implemented 'init' method of org.apache.axis2.service.Lifecycle and the web-service operation are not seen).
> I am able to obtain request message from the MessageContext and the soap message structure of request message seems ok. 
> I have another web-service operation in which sends a bean containing A[] in response. The above error is not seen in this case. So I think this issue is only when an array is sent to server packaged within a bean, and not when server is sending back a similar object in response.
> Regards,
> TAM Tenfold5

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org