axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: [Axis2] Build failure
Date Sun, 08 Jun 2014 10:37:50 GMT
Even better would be to actually fix that issue...

Probably the root cause is simply the following block of code in
DefaultSchemaGenerator:

        for (Method method : serviceClass.getMethods()) {
            if (method.getDeclaringClass() != Object.class) {
                serviceMethods.add(method);
            }
        }

The getMethods method doesn't specify the order in which methods are
returned and that order may be different depending on the Java
version. It should be enough to sort the returned methods using some
deterministic order. Since we don't support overloading (or do we?),
this would just be alphabetical order.

Andreas

On Mon, Mar 31, 2014 at 7:15 AM, Shameera Rathnayaka
<shameerainfo@gmail.com> wrote:
> Hi Deepal,
>
> I too got test failures with JDK 1.7 and got build success with JDK 1.6. Do
> we have documented this ? if not isn't it better to do that ?
>
> Thanks,
> Shameera.
>
>
> On Mon, Mar 31, 2014 at 6:48 AM, Deepal jayasinghe <deepalk@gmail.com>
> wrote:
>>
>> Found the problem, I was using JDK1.7 and seems like build has some issues
>> with it. Downgraded (set the JAVA_HOME) to and problem went away.
>>
>> Deepal
>>
>>
>>
>>
>>
>>
>> > Date: Sun, 30 Mar 2014 11:45:01 -0700
>> > From: deepalk@gmail.com
>> > To: java-dev@axis.apache.org
>> > Subject: [Axis2] Build failure
>> >
>> > I am getting following build error, is that only for me?
>> >
>> > Failed tests:
>> >
>> >
>> > SchemaDataLocatorTest.testOutputInlineForm:79->XMLSchemaTest.assertSimilarXML:
>> > 66 XML similar org.custommonkey.xmlunit.Diff
>> > [different] Expected attribute value 'echoStringArray' but was
>> > 'echoString' - co
>> > mparing <xs:element name="echoStringArray"...> at
>> > /schema[1]/element[1]/@name to
>> > <xs:element name="echoString"...> at /schema[1]/element[1]/@name
>> MG>package org.apache.axis2.sample.echo;
>> public class EchoImpl {
>>     public EchoImpl() {
>>     }
>>     public java.lang.String echoString(java.lang.String in) {
>>         return in;
>>     }
>>     public java.lang.String[] echoStringArray(java.lang.String[] in) {
>>         return in;
>>     }
>> }
>> MG>
>>
>> MG> referencing META-INF/services.xml
>> <service name="">
>>     <description>
>>         This is a testing service , to test the system is working or not
>>     </description>
>>     <parameter
>> name="ServiceClass">org.apache.axis2.sample.echo.EchoImpl</parameter>
>>     <operation name="echoStringArray">
>>         <message label="In">
>>             <parameter name="messageIN">messageIN</parameter>
>>         </message>
>>         <message label="Out">
>>             <parameter name="messageOut">messageOut</parameter>
>>         </message>
>>     </operation>
>> </service>
>> MG>
>>
>> MG>the binding in WSDL
>>  <binding name="Axis2SampleDocLitPortBinding"
>> type="tns:Axis2SampleDocLitPortType">
>>   <soap:binding style="document"
>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>   <operation name="echoStringArray">
>>    <soap:operation soapAction="echoStringArray" style="document"/>
>>    <input>
>>     <soap:body use="literal"
>> namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
>>    </input>
>>    <output>
>>     <soap:body use="literal"
>> namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
>>    </output>
>>   </operation>
>> MG>it looks as if your default namespace is
>> http://userguide.axis2.apache.org/Axis2SampleDocLit
>> which is in same location as Flight MH370
>> MG>what happens when you switch your default namespace to your own XSD?
>> MG>Martin
>>
>> >
>> >
>> > DefaultSchemaGeneratorTest.testExtendedPOJO:541->testClass:115->XMLSchemaTest.
>> > assertSimilarXML:66 XML similar org.custommonkey.xmlunit.Diff
>> > [different] Expected attribute value 'setSss' but was 'getSss' -
>> > comparing <xs:e
>> > lement name="setSss"...> at /schema[1]/element[1]/@name to <xs:element
>> > name="get
>> > Sss"...> at /schema[1]/element[1]/@name
>> >
>> >
>> >
>> > DefaultSchemaGeneratorTest.testAbstractPOJO:545->testClass:115->XMLSchemaTest.
>> > assertSimilarXML:66 XML similar org.custommonkey.xmlunit.Diff
>> > [different] Expected attribute value 'setS' but was 'getI' - comparing
>> > <xs:eleme
>> > nt name="setS"...> at /schema[1]/element[1]/@name to <xs:element
>> > name="getI"...>
>> > at /schema[1]/element[1]/@name
>> >
>> >
>> >
>> > DefaultSchemaGeneratorTest.testConcretePOJO:549->testClass:115->XMLSchemaTest.
>> > assertSimilarXML:66 XML similar org.custommonkey.xmlunit.Diff
>> > [different] Expected attribute value 'setS' but was 'isBool' - comparing
>> > <xs:ele
>> > ment name="setS"...> at /schema[1]/element[1]/@name to <xs:element
>> > name="isBool"
>> > ...> at /schema[1]/element[1]/@name
>> >
>> >
>> >
>> > DocLitBareSchemaGeneratorTest>DefaultSchemaGeneratorTest.testExtendedPOJO:541-
>> >
>> > > >DefaultSchemaGeneratorTest.testClass:115->XMLSchemaTest.assertSimilarXML:66
>> > XML
>> > similar org.custommonkey.xmlunit.Diff
>> > [different] Expected attribute value 'sss' but was 'getSssResult' -
>> > comparing <x
>> > s:element name="sss"...> at /schema[1]/element[1]/@name to <xs:element
>> > name="get
>> > SssResult"...> at /schema[1]/element[1]/@name
>> >
>> >
>> >
>> > DocLitBareSchemaGeneratorTest>DefaultSchemaGeneratorTest.testAbstractPOJO:545-
>> >
>> > > >DefaultSchemaGeneratorTest.testClass:115->XMLSchemaTest.assertSimilarXML:66
>> > XML
>> > similar org.custommonkey.xmlunit.Diff
>> > [different] Expected attribute value 's' but was 'getIResult' -
>> > comparing <xs:el
>> > ement name="s"...> at /schema[1]/element[1]/@name to <xs:element
>> > name="getIResul
>> > t"...> at /schema[1]/element[1]/@name
>> >
>> > Thanks
>> > Deepal
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>> > For additional commands, e-mail: java-dev-help@axis.apache.org
>> >
>>
>>
>
>
>
> --
> Best Regards,
> Shameera Rathnayaka.
>
> email: shameera AT apache.org , shameerainfo AT gmail.com
> Blog : http://shameerarathnayaka.blogspot.com/

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