[ 
https://issues.apache.org/jira/browse/AXIS2-3015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vesa Varimo updated AXIS2-3015:
-------------------------------

    Description: 

I have simple domain class generated with Hyperjaxb2 0.6.2.
The class is called LogResponseImpl (included as an attachment) and the XSD for 
it is following:

        <xs:complexType name="logResponse">
                <xs:sequence>
                        <xs:element name="succeeded" type="xs:boolean" 
nillable="true" />
                </xs:sequence>
        </xs:complexType>

Besides the method get/setSucceeded HyperJAXB2 generates method 
getPrimaryInterface() that returns java.lang.Class as a return value.
ADB in Axis2 tries to solve this property and ends up giving the error message: 
"can not find read method for :  defaultAssertionStatus".

I fixed this issue by adding following condition to BeanUtil.java line 110:

for (int i = 0; i < properties.length; i++) {
JProperty property = properties[i];
if (property.getType().getQualifiedName().indexOf("Class") == -1) {
propertyList.add(property);
}
}

 

  was:

I have simple domain class generated with Hyperjaxb2 0.6.2.
The class is called LogResponseImpl (included as an attachment) and the XSD for 
it is following:

        <xs:complexType name="logResponse">
                <xs:sequence>
                        <xs:element name="succeeded" type="xs:boolean" 
nillable="true" />
                </xs:sequence>
        </xs:complexType>

Besides the method get/setSucceeded HyperJAXB2 generates method 
getInterfaceClass that returns java.lang.Class as a return value.
ADB in Axis2 tries to solve this property and ends up giving the error message: 
"can not find read method for :  defaultAssertionStatus".

I fixed this issue by adding following condition to BeanUtil.java line 110:

for (int i = 0; i < properties.length; i++) {
JProperty property = properties[i];
if (property.getType().getQualifiedName().indexOf("Class") == -1) {
propertyList.add(property);
}
}

 


> ERROR can not find read method for :  defaultAssertionStatus. Bug with 
> Class-type properties.
> ---------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3015
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3015
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.3
>         Environment: Axis 2 1.3-RC2 (20.7.2007), JBoss 4.0.5 GA with Spring 
> 1.2 and Hibernate 3 integrated inside AAR modules. 
>            Reporter: Vesa Varimo
>         Attachments: LogResponseImpl.java
>
>
> I have simple domain class generated with Hyperjaxb2 0.6.2.
> The class is called LogResponseImpl (included as an attachment) and the XSD 
> for it is following:
>       <xs:complexType name="logResponse">
>               <xs:sequence>
>                       <xs:element name="succeeded" type="xs:boolean" 
> nillable="true" />
>               </xs:sequence>
>       </xs:complexType>
> Besides the method get/setSucceeded HyperJAXB2 generates method 
> getPrimaryInterface() that returns java.lang.Class as a return value.
> ADB in Axis2 tries to solve this property and ends up giving the error 
> message: "can not find read method for :  defaultAssertionStatus".
> I fixed this issue by adding following condition to BeanUtil.java line 110:
> for (int i = 0; i < properties.length; i++) {
> JProperty property = properties[i];
> if (property.getType().getQualifiedName().indexOf("Class") == -1) {
> propertyList.add(property);
> }
> }
>  

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