[ 
https://issues.apache.org/jira/browse/AXIS2-3864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610182#action_12610182
 ] 

Dmitry Yakovlev commented on AXIS2-3864:
----------------------------------------

I am sorry too. But what kind of information you expect me to give?
Actually, the problem is that I can't pass thought web-services java bean that 
extends other java bean.
If you take a look at org.apache.axis2.databinding.utils.BeanUtil(line 137) you 
will see the problem.

Look here is a source code of BeanUtil.java that I have downloaded from 
apache.org

            while (!supClass.getQualifiedName().startsWith("java.")) {
                properties = supClass.getDeclaredProperties();
                ExcludeInfo excludeInfo = axisService.getExcludeInfo();  <<<< 
NPE occurred here
                if (excludeInfo != null) {
                    beanExcludeInfo = 
excludeInfo.getBeanExcludeInfoForClass(supClass.getQualifiedName());
                }

the problem is coming from here

            AxisService axisService = null;
            if (MessageContext.getCurrentMessageContext() != null) {
                axisService = 
MessageContext.getCurrentMessageContext().getAxisService();
            }

see? If your MessageContext.getCurrentMessageContext() is null then axisService 
is null too.

> NPE at 
> org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:137)
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-3864
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3864
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.4
>         Environment: Windows + Jboss 4.2.1
>            Reporter: Dmitry Yakovlev
>
> I have a JavaBean that I was trying to pass though web-services.
> here is a java classes:
> class A implements Serializable {
>       private static final long serialVersionUID = -3124131057978320628L;
>       private Integer loadDeletedItems = 0;
>       public Integer getLoadDeletedItems() {
>               return loadDeletedItems;
>       }
>       public void setLoadDeletedItems(Integer loadDeletedItems) {
>               this.loadDeletedItems = loadDeletedItems;
>       }
> }
> class B extends A {
>       private Integer index = 0;
>        .... // getter/setter of index field
> }
> If I pass instance of class "A" it works fine. But if I pass instance of 
> class B I get an NPE at 
> org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:137).
> More over, It worked in AXIS2 - 1.3 but does not work in AXIS2-1.4.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to