That would be awesome, Deepal. > I'm preparing a patch for this issue as well as a couple of other Java > 7 issues. I will commit the changes tomorrow. > > Andreas > > On Sun, Jun 8, 2014 at 6:38 PM, Deepal jayasinghe <[email protected]> wrote: >> I agree and that is exactly what I did to solve the issue, but I did not >> submit the code (instead I used different JVM version). Let's fix the >> code, I will try to update the code unless you have done that already. >> >> Deepal >>> 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 >>> <[email protected]> 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 <[email protected]> >>>> 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: [email protected] >>>>>> To: [email protected] >>>>>> 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: [email protected] >>>>>> For additional commands, e-mail: [email protected] >>>>>> >>>> >>>> -- >>>> Best Regards, >>>> Shameera Rathnayaka. >>>> >>>> email: shameera AT apache.org , shameerainfo AT gmail.com >>>> Blog : http://shameerarathnayaka.blogspot.com/ >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
