Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-52

MarshallDocLiteralTestCase.testEchoDateTimeArray failure under Java5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-ws4ee-4.0.2
    • jboss-ws4ee-4.0.1
    • jbossws-native
    • None

    Description

      When running the current 4.0 branch code under java5, there is one failure in the web services org.jboss.test.webservice.marshalltest.MarshallDocLiteralTestCase.testEchoDateTimeArray that does not show up under jdk1.4.2_06. The vm version only affects the client. The server can be running java5.

      I have added some debugging to the org.apache.axis.encoding.ser.DateDeserializer and there seems to be a problem with the date string being passed in. I added the following print statement to line 192 of the DateDeserializer class:

      System.err.println("date source: "source" zone: "+zonePortion);

      Under java 5, the third source string passed in is a very different datetime string:

      date source: 2004-12-21+08:00 zone: +08:00
      date source: 2004-12-21Z zone: Z
      date source: 2004-06-10T00:00:00.000-07:00 zone: T00:00:00.000-07:00

      that results in an invalid timezone error:

      java.lang.NumberFormatException: Invalid timezone, T00:00:00.000-07:00
      at org.apache.axis.encoding.ser.DateDeserializer.adjustByZone(DateDeserializer.java:119)
      at org.apache.axis.encoding.ser.DateDeserializer.makeValue(DateDeserializer.java:193)
      at org.apache.axis.encoding.ser.SimpleDeserializer.onEndElement(SimpleDeserializer.java:236)
      at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:582)
      at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1247)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:252)
      at org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1387)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:262)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:396)
      at org.apache.axis.client.Call.invoke(Call.java:2641)
      at org.apache.axis.client.Call.invoke(Call.java:2513)
      at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
      at org.apache.axis.client.Call.invoke(Call.java:1914)
      at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
      at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:372)
      at $Proxy3.echoDateTimeArray(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:111)
      at $Proxy4.echoDateTimeArray(Unknown Source)
      at org.jboss.test.webservice.marshalltest.MarshallDocLiteralTestCase.testEchoDateTimeArray(MarshallDocLiteralTestCase.java:353)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)

      Attachments

        Issue Links

          Activity

            People

              jgreene@redhat.com Jason Greene
              starksm64 Scott Stark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: