axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Valine (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5435) Axis2 BeanUtil doesn't appear to support is/has getter forms for fields.
Date Thu, 11 Oct 2012 15:35:03 GMT

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

Thomas Valine commented on AXIS2-5435:
--------------------------------------

Hi Shameera,

It looks like POJO's using autobox boolean type do not support the is/has naming convention.
 
java.lang.RuntimeException: java.lang.RuntimeException: org.apache.axis2.AxisFault: The service
cannot be found for the endpoint reference (EPR) http://localhost:8082/api/call/<REMOVED>
is thrown if I use the following style of autoboxed POJO.

public class Foo {
    private Boolean bar;
    public Boolean isBar() {
        return bar;
    }
    public void setBar(Boolean bar) {
        this.bar = bar;
    }
}

The endpoint is generated correctly if the following style of primitive POJO is used.

public class Foo {
    private boolean bar;
    public boolean isBar() {
        return bar;
    }
    public void setBar(boolean bar) {
        this.bar = bar;
    }
}


                
> Axis2  BeanUtil doesn't appear to support is/has getter forms for fields.
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-5435
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5435
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.6.2
>         Environment: Windows 7 64. Java 1.7
>            Reporter: Thomas Valine
>              Labels: adb, databinding
>
> Binding POJO's having boolean getter methods of the form isBool, hasBool doesn't appear
to work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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


Mime
View raw message