Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1600

'Unknown namespace for jpa' in JpaNsHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • jpa-2.4.0
    • jpa-2.5.0
    • JPA
    • None

    Description

      The IllegalArgumentException "Unknown namespace for jpa: " is being triggered in org.apache.aries.jpa.blueprint.impl.JpaNsHandler.getSchemaLocation.

      The bundle I am deploying has several extension namespaces defined in the Blueprint XML. I don't have a minimal example that exhibits this problem but I might be able to create one if necessary.

      I'm not sure why the JpaNsHandler is being passed a namespace that it can't handle. However all other implementations of NamespaceHandler that I have seen return null if they are passed a namespace they do not recognize. When I replaced the IllegalArgumentException with returning null the bundle successfully started.

      This is related to ARIES-1403.

      Attachments

        1. unknown-namespace-error.txt
          3 kB
          Panos Kavalagios

        Activity

          People

            cschneider Christian Schneider
            rbedia Rafael Bedia
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: