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 "Jabber W (JIRA)" <ji...@apache.org> on 2006/11/16 10:55:38 UTC

[jira] Created: (AXIS2-1719) array-type bean property: null value causes to NLP

array-type bean property: null value causes to NLP
--------------------------------------------------

                 Key: AXIS2-1719
                 URL: http://issues.apache.org/jira/browse/AXIS2-1719
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.1
            Reporter: Jabber W


In case the array-type bean property  value is null the NLP is thrown, just zero-size arrays are possible:
     at java.lang.reflect.Array.getLength(Native Method)
     at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:120)
     at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:948)
     at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:802)
----------------------------
Details:
the service is the standard axis sample: sample.addressbook.service.AddressBookService. The change is the added a String[] field to the Entry type:
  class Entry {
  .....
  public String[] getStringArray() { return _ar; }
  public void setStringArray(String[] array){_arr = stringArray;} }
}

> Is the array-type bean property allowed to be null in Axis2-1.1? I try to return from my service an object containing the String[] field. In case this field is null I receive the exception:
>     *****


-- 
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

        

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


[jira] Updated: (AXIS2-1719) array-type bean property: null value causes to NLP

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

Davanum Srinivas updated AXIS2-1719:
------------------------------------

    Assignee: Deepal Jayasinghe

> array-type bean property: null value causes to NLP
> --------------------------------------------------
>
>                 Key: AXIS2-1719
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1719
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Jabber W
>         Assigned To: Deepal Jayasinghe
>
> In case the array-type bean property  value is null the NLP is thrown, just zero-size arrays are possible:
>      at java.lang.reflect.Array.getLength(Native Method)
>      at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:120)
>      at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:948)
>      at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:802)
> ----------------------------
> Details:
> the service is the standard axis sample: sample.addressbook.service.AddressBookService. The change is the added a String[] field to the Entry type:
>   class Entry {
>   .....
>   public String[] getStringArray() { return _ar; }
>   public void setStringArray(String[] array){_arr = stringArray;} }
> }
> > Is the array-type bean property allowed to be null in Axis2-1.1? I try to return from my service an object containing the String[] field. In case this field is null I receive the exception:
> >     *****

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2-1719) array-type bean property: null value causes to NLP

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

Deepal Jayasinghe resolved AXIS2-1719.
--------------------------------------

    Resolution: Fixed

issue is fixed in the current SVN

> array-type bean property: null value causes to NLP
> --------------------------------------------------
>
>                 Key: AXIS2-1719
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1719
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Jabber W
>         Assigned To: Deepal Jayasinghe
>
> In case the array-type bean property  value is null the NLP is thrown, just zero-size arrays are possible:
>      at java.lang.reflect.Array.getLength(Native Method)
>      at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:120)
>      at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:948)
>      at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:802)
> ----------------------------
> Details:
> the service is the standard axis sample: sample.addressbook.service.AddressBookService. The change is the added a String[] field to the Entry type:
>   class Entry {
>   .....
>   public String[] getStringArray() { return _ar; }
>   public void setStringArray(String[] array){_arr = stringArray;} }
> }
> > Is the array-type bean property allowed to be null in Axis2-1.1? I try to return from my service an object containing the String[] field. In case this field is null I receive the exception:
> >     *****

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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