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

    • Steps to Reproduce:
      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
    • Affects:
      Release Notes
    • Release Notes Text:
      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.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      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

        Gliffy Diagrams

          Attachments

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

            Issue Links

              Activity

                People

                • Assignee:
                  asoldano Alessio Soldano
                  Reporter:
                  enagai Eiichi Nagai
                  Writer:
                  Scott Thomas
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: