java.lang.Exception: Error while parsing resource org.jacoco.report/0.6.2.201302030002 at line 30 and column 198

Sonatype JIRA | Rich Seddon | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Create a virtual OBR repository against the default central proxy repository in Nexus. Request this artifact through the central proxy: http://localhost:8081/nexus/content/repositories/central/org/jacoco/org.jacoco.report/0.6.2.201302030002/org.jacoco.report-0.6.2.201302030002.jar Now fire up felix 4.4.1 and add the virtual obr repository to it. This fails due to a missing trailing parenthesis in this declaration: {code} (mandatory:<*bundle-version)): (&(package=org.jacoco.core)(bundle-version=[0.6.2,0.6.3))(mandatory:<*bundle-version)) {code} I don't know if this is because the artifact has invalid metadata, or if there is a bug in the obr.xml file generation. {noformat} ____________________________ Welcome to Apache Felix Gogo g! obr:repos add http://localhost:8081/nexus/content/shadows/obr-central/.meta/obr.xml java.lang.Exception: Error while parsing resource org.jacoco.report/0.6.2.201302030002 at line 30 and column 198 at org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:263) at org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:160) at org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:60) at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:147) at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:118) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl$1.run(RepositoryAdminImpl.java:115) at java.security.AccessController.doPrivileged(Native Method) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:111) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:99) at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:94) at org.apache.felix.gogo.command.OBR.repos(OBR.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92) at org.apache.felix.gogo.shell.Console.run(Console.java:62) at org.apache.felix.gogo.shell.Shell.console(Shell.java:203) at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92) at org.apache.felix.gogo.shell.Activator.run(Activator.java:75) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException at org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:101) at org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:351) at org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:226) ... 39 more Caused by: org.osgi.framework.InvalidSyntaxException: Extraneous trailing characters: (mandatory:<*bundle-version)): (&(package=org.jacoco.core)(bundle-version=[0.6.2,0.6.3))(mandatory:<*bundle-version)) at org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1180) at org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:87) at org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:97) ... 41 more {noformat}

    Sonatype JIRA | 2 years ago | Rich Seddon
    java.lang.Exception: Error while parsing resource org.jacoco.report/0.6.2.201302030002 at line 30 and column 198

    Root Cause Analysis

    1. org.osgi.framework.InvalidSyntaxException

      Extraneous trailing characters: (mandatory:<*bundle-version)): (&(package=org.jacoco.core)(bundle-version=[0.6.2,0.6.3))(mandatory:<*bundle-version))

      at org.apache.felix.utils.filter.FilterImpl$Parser.parse()
    2. Apache Felix Bundle Repository
      RepositoryAdminImpl$1.run
      1. org.apache.felix.utils.filter.FilterImpl$Parser.parse(FilterImpl.java:1180)
      2. org.apache.felix.utils.filter.FilterImpl.newInstance(FilterImpl.java:87)
      3. org.apache.felix.bundlerepository.impl.RequirementImpl.setFilter(RequirementImpl.java:97)
      4. org.apache.felix.bundlerepository.impl.PullParser.parseRequire(PullParser.java:351)
      5. org.apache.felix.bundlerepository.impl.PullParser.parseResource(PullParser.java:226)
      6. org.apache.felix.bundlerepository.impl.PullParser.parse(PullParser.java:160)
      7. org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:60)
      8. org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:147)
      9. org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:118)
      10. org.apache.felix.bundlerepository.impl.RepositoryAdminImpl$1.run(RepositoryAdminImpl.java:115)
      10 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. Apache Felix Bundle Repository
      RepositoryAdminImpl.addRepository
      1. org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:111)
      2. org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:99)
      3. org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:94)
      3 frames
    5. Apache Felix Gogo Command
      OBR.repos
      1. org.apache.felix.gogo.command.OBR.repos(OBR.java:102)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    7. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
      2. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
      3. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
      4. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
      5. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
      7. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
      8. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
      8 frames
    8. Felix Gogo
      Shell.gosh
      1. org.apache.felix.gogo.shell.Console.run(Console.java:62)
      2. org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
      3. org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
      3 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    10. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
      2. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
      3. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
      4. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
      5. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
      7. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
      8. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
      8 frames
    11. Felix Gogo
      Activator.run
      1. org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
      1 frame
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame