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

DOM2Utils isn't thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • jboss-ws4ee-4.0.3
    • None
    • None
    • None

      DOM2Utils resues a DocumentBuilder across all threads. DocumentBuilder is not guaranteed to be thread-safe, and the xerces implementation is not.

      19:29:14,390 Thread-2 ERROR org.jboss.webservice.client.ServiceFactoryImpl Cannot construct meta data from:
      [junit] at org.jboss.webservice.deployment.TypeMappingDescription.initMetaDataFromJavaXMLTypeMapping(TypeMappingDescription.java:141)
      [junit] at org.jboss.webservice.deployment.TypeMappingDescription.<init>(TypeMappingDescription.java:89)
      [junit] at org.jboss.webservice.deployment.ServiceDescription.initTypeMappings(ServiceDescription.java:924)
      [junit] at org.jboss.webservice.deployment.ServiceDescription.initServiceDescription(ServiceDescription.java:141)
      [junit] at org.jboss.webservice.deployment.ServiceDescription.<init>(ServiceDescription.java:108)
      [junit] at org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:171)
      [junit] at edu.msu.ais.webservice.client.AuthenticationClient.getConnection(AuthenticationClient.java:417)
      [junit] at edu.msu.ais.webservice.client.AuthenticationClient.getCredential(AuthenticationClient.java:236)
      [junit] at edu.msu.ais.webservice.unittest.StressTestCase$ClientProcessor.runTest(StressTestCase.java:101)
      [junit] at net.sourceforge.groboutils.junit.v1.TestRunnable.run(TestRunnable.java:88)
      [junit] at java.lang.Thread.run(Thread.java:595)

              jgreene@redhat.com Jason Greene
              jgreene@redhat.com Jason Greene
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: