Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7900

Map instance returns null when unmarshalling in JAXB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.2
    • Web Services
    • None
    • Hide

      1. Unzip sample.zip(<SAMPLE>)
      3. java files in <SAMPLE>/ws_src are copied to <jboss-eap-5.1>/seam/examples/seambay/src/org/jboss/seam/example/seambay.
      4. Execute "ant" command on <jboss-eap-5.1>/seam/examples/seambay.
      5. Start EAP server
      6. Execute following command on <SAMPLE>/client.
      > java -classpath ./sample-client.jar sample.TestClient
      7. You can confirm following output in EAP stdout.
      > 16:28:52,620 INFO [STDOUT] ----- TestDto.getTb :

      {key : 1=value : 1}

      8. Execute following command on <SAMPLE>/client.
      > java -classpath ./sample-client.jar sample.TestClient 100
      9. You can confirm following output in EAP stdout.
      > 17:42:00,453 INFO [STDOUT] ----- TestDto.getTb : null

      Show
      1. Unzip sample.zip(<SAMPLE>) 3. java files in <SAMPLE>/ws_src are copied to <jboss-eap-5.1>/seam/examples/seambay/src/org/jboss/seam/example/seambay. 4. Execute "ant" command on <jboss-eap-5.1>/seam/examples/seambay. 5. Start EAP server 6. Execute following command on <SAMPLE>/client. > java -classpath ./sample-client.jar sample.TestClient 7. You can confirm following output in EAP stdout. > 16:28:52,620 INFO [STDOUT] ----- TestDto.getTb : {key : 1=value : 1} 8. Execute following command on <SAMPLE>/client. > java -classpath ./sample-client.jar sample.TestClient 100 9. You can confirm following output in EAP stdout. > 17:42:00,453 INFO [STDOUT] ----- TestDto.getTb : null
    • Release Notes
    • An upstream patch applied to the Java Architecture for XML Binding (JAXB) component was found to not be thread safe. The issue was patched and the patched version of JAXB has been included in this release of JBoss Enterprise Application Platform 5.
    • Documented as Resolved Issue
    • NEW

    Description

      Fix of [1] in JAXB is not thread safe. Therefore, Map instance is returned by null at the time of high load.
      I guess that fix of [2] is required in EAP.

      [1] Map Unmarshaller modifies the map after setting it
      http://java.net/jira/browse/JAXB-596
      http://java.net/projects/jaxb/sources/version2/revision/2847

      [2] http://java.net/projects/jaxb/sources/version2/revision/3371

      Attachments

        1. glassfish-jaxb-JBPAPP-7900.patch
          2 kB
        2. jaxb-impl.jar
          872 kB
        3. sample.zip
          46 kB

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              rhn-support-enagai Eiichi Nagai (Inactive)
              Scott Thomas Scott Thomas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: