Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3817

MockedResourceResolverImplTest.testMapping fails under Java 8 with Illegal group reference: group index is missing

    XMLWordPrintableJSON

Details

    Description

      Error Message

      Illegal group reference: group index is missing

      Stacktrace

      java.lang.IllegalArgumentException: Illegal group reference: group index is missing
      	at java.util.regex.Matcher.appendReplacement(Matcher.java:819)
      	at java.util.regex.Matcher.replaceFirst(Matcher.java:1004)
      	at org.apache.sling.resourceresolver.impl.mapping.MapEntry.replace(MapEntry.java:276)
      	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.map(ResourceResolverImpl.java:479)
      	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.map(ResourceResolverImpl.java:369)
      	at org.apache.sling.resourceresolver.impl.MockedResourceResolverImplTest.testMapping(MockedResourceResolverImplTest.java:489)

      Standard Error

      946 [main] INFO org.apache.sling.resourceresolver.impl.mapping.MapEntry - createMapEntry: Configuration has external redirect to http://www.example.com/; not creating mapping for configuration in /etc/map/http/example.com.80
      946 [main] INFO org.apache.sling.resourceresolver.impl.mapping.MapEntry - createMapEntry: Configuration has external redirect to http://www.example.com/; not creating mapping for configuration in /etc/map/http/any_example.com.80
      947 [main] INFO org.apache.sling.resourceresolver.impl.mapping.MapEntry - createMapEntry: URL localhost\.\d*/cgi-bin/ contains a regular expression; not creating mapping for configuration in /etc/map/http/example.com.80/cgi-bin
      947 [main] INFO org.apache.sling.resourceresolver.impl.mapping.MapEntry - createMapEntry: URL localhost\.\d*/gateway/ contains a regular expression; not creating mapping for configuration in /etc/map/http/example.com.80/gateway
      947 [main] INFO org.apache.sling.resourceresolver.impl.mapping.MapEntry - createMapEntry: URL localhost\.\d*/stories/ contains a regular expression; not creating mapping for configuration in /etc/map/http/example.com.80/stories
      947 [main] INFO org.apache.sling.resourceresolver.impl.mapping.MapEntry - createMapEntry: URL localhost\.\d* contains a regular expression; not creating mapping for configuration in /etc/map/http/localhost_any

      Attachments

        1. SLING-3817.patch
          0.8 kB
          Bob Paulin

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: