1 Reply Latest reply on Oct 8, 2008 3:05 AM by Richard Opalka

    Ant tests FAILED

    Bonnie Kenison Newbie

      I just installed jbossws-native-3.0.3.GA. I'm using jboss 4.2.3. I ran the "ant tests" and passed most of them, however, I'm failing on XOPBareTestCase and XOPHandlerTestCase


      Here is the output from those tests:

      [junit] Running org.jboss.test.ws.jaxws.samples.xop.doclit.XOPBareTestCase
      [junit] Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 8.48 sec
      [junit] Corrupt JPEG DATA: 1 extraneous bytes before marker 0xc4
      [junit] Corrupt JPEG DATA: 1 extraneous bytes before marker 0xc4
      [junit] Test.org.jboss.test.ws.jaxws.samples.xop.doclit.XOPBareTestCase FAILED
      [junit] Running org.jboss.test.ws.jaxws.samples.xop.doclit.XOPHandlerTestCase
      [junit] Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 8.516 sec
      [junit] Corrupt JPEG DATA: 1 extraneous bytes before marker 0xc4
      [junit] Corrupt JPEG DATA: 1 extraneous bytes before marker 0xc4
      [junit] Test.org.jboss.test.ws.jaxws.samples.xop.doclit.XOPHandlerTestCase FAILED


      In the output files, the following information was recorded:

      Testsuite: org.jboss.test.ws.jaxws.samples.xop.doclit.XOPBareTestCase
      Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 8.485 sec

      Testcase: testDataHandlerRoundtrip took 2.75 sec
      Testcase: testDataHandlerResponseOptimzed took 0.453 sec
      Testcase: testImgRoundtrip took 1.734 sec
      Testcase: testImgResponseOptimized took 1.079 sec
      Testcase: testSourceRoundtrip took 0.39 sec
      Testcase: testSourceResponseOptimized took 0.547 sec
      Testcase: testAttachmentpartSwap took 0.375 sec
      FAILED
      Attachment part swap file does still exist: JBossWSattachment32227.dat
      junit.framework.AssertionFailedError: Attachment part swap file does still exist: JBossWSattachment32227.dat
      at org.jboss.test.ws.jaxws.samples.xop.doclit.XOPBase.testAttachmentpartSwap(XOPBase.java:155)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
      at junit.extensions.TestSetup.run(TestSetup.java:23)

      There was the same error for XOPHandlerTestCase.


      We are planning to use XOP with these web services, so I am concerned about the test failure. Can anyone give me more information on what I might do to pass these tests?

        • 1. Re: Ant tests FAILED
          Richard Opalka Master

          Hi,

          yes, we know about this windows only problem. The reason of failure is there are some tests that don't close the file streams and our attachments handler is unable to delete such files on windows platform in it's destroy() method. The solution is always ensure you're closing the data handler input streams in your web services.