Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-799

use the latest xerces to replace the jaxp-ri-1.4.4 to resolve cocurrent issue

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0
    • Component/s: None
    • Labels:
      None

      Description

      In jaxp-ri-1.4.4, com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance() is synchronized, this could cause performance issue when a lot of thread access this method at the same time.
      Per the post[1], this issue already get resolved after xerces-2.9.1, we need ship latest xerces but not the buggy jaxp-ri.

      [1]http://old.nabble.com/Re%3A-DTDDVFactory-td28314363.html

        Activity

        Show
        ffang Freeman Fang added a comment - commit fix http://svn.apache.org/viewvc?rev=1089810&view=rev
        Hide
        gertvanthienen Gert Vanthienen added a comment -

        Freeman,

        With this change, ServiceMix no longer starts correctly for me - I get CNFE for Xalan classes. If I add both xalan and xalan's serializer jar to the lib/endorsed folder, things start working again.

        Could you take a look at this?

        Thanks,

        Gert

        Show
        gertvanthienen Gert Vanthienen added a comment - Freeman, With this change, ServiceMix no longer starts correctly for me - I get CNFE for Xalan classes. If I add both xalan and xalan's serializer jar to the lib/endorsed folder, things start working again. Could you take a look at this? Thanks, Gert
        Hide
        ffang Freeman Fang added a comment -

        Hi Gert,

        I can't see this start problem with both jdk5(1.5.0_19) and jdk6(1.6.0_13) on my mac, also examples pass with this change.

        I guess this is a jvm specific problem, something like some jvm not ship xalan class. I'll add xalan jar to endorsed folder and run examples again, if it's ok, we can add xalan jar also.

        Freeman

        Show
        ffang Freeman Fang added a comment - Hi Gert, I can't see this start problem with both jdk5(1.5.0_19) and jdk6(1.6.0_13) on my mac, also examples pass with this change. I guess this is a jvm specific problem, something like some jvm not ship xalan class. I'll add xalan jar to endorsed folder and run examples again, if it's ok, we can add xalan jar also. Freeman
        Hide
        ffang Freeman Fang added a comment -

        also add xalan jar to the endorsed folder
        http://svn.apache.org/viewvc?rev=1090102&view=rev

        Show
        ffang Freeman Fang added a comment - also add xalan jar to the endorsed folder http://svn.apache.org/viewvc?rev=1090102&view=rev

          People

          • Assignee:
            ffang Freeman Fang
            Reporter:
            ffang Freeman Fang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development