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
  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
  2. 0

    eclipse won't start after updated from older version

    Stack Overflow | 2 years ago | Joyal
    java.lang.IllegalArgumentException: Invalid filter directive
  3. 0

    java.lang.IllegalArgumentException: Declaration is invalid: osgi.native; (…) when execute tests against Luna

    Eclipse Bugzilla | 3 years ago | dobromir.zahariev
    java.lang.IllegalArgumentException: Declaration is invalid: osgi.native; native.paths.7:List<String>="natives/com/sap/jvm/inspector/rs6000_64/libsapjvm_inspector.so"; native.paths.8:List<String>="natives/com/sap/jvm/inspector/linuxs390x/libsapjvm_inspector.so"; native.paths.9:List<String>="natives/com/sap/jvm/inspector/linuxppc64/libsapjvm_inspector.so"; native.paths.15:List<String>="natives/com/sap/jvm/inspector/bsdintel/libsapjvm_inspector.dylib"; native.paths.14:List<String>="natives/com/sap/jvm/inspector/bsdx86_64/libsapjvm_inspector.dylib"; native.paths.13:List<String>="natives/com/sap/jvm/inspector/as400_pase_64/libsapjvm_inspector.so"; native.paths.12:List<String>="natives/com/sap/jvm/inspector/hp_64/libsapjvm_inspector.sl"; native.paths.6:List<String>="natives/com/sap/jvm/inspector/sun_64/libsapjvm_inspector.so"; native.paths.5:List<String>="natives/com/sap/jvm/inspector/sunx86_64/libsapjvm_inspector.so"; native.paths.4:List<String>="natives/com/sap/jvm/inspector/linuxx86_64/libsapjvm_inspector.so"; native.paths.3:List<String>="natives/com/sap/jvm/inspector/linuxintel/libsapjvm_inspector.so"; native.paths.2:List<String>="natives/com/sap/jvm/inspector/ntia64/sapjvm_inspector.dll"; native.paths.11:List<String>="natives/com/sap/jvm/inspector/hpia64/libsapjvm_inspector.so"; native.paths.1:List<String>="natives/com/sap/jvm/inspector/ntintel/sapjvm_inspector.dll"; native.paths.10:List<String>="natives/com/sap/jvm/inspector/linuxia64/libsapjvm_inspector.so"; native.paths.0:List<String>="natives/com/sap/jvm/inspector/ntamd64/sapjvm_inspector.dll"; filter:="(|(&(|(osgi.native.osname~=windows server 2012)(osgi.native.osname~=windows server 2012 r2)(osgi.native.osname~=windows 8.1)(osgi.native.osname~=windows 8)(osgi.native.osname~=windows nt \(unknown\))(osgi.native.osname~=Windows XP)(osgi.native.osname~=windows 7)(osgi.native.osname~=Windows 2003)(osgi.native.osname~=Windows Vista)(osgi.native.osname~=Windows Server 2008)(osgi.native.osname~=Windows Server 2008 R2))(osgi.native.processor~=amd64))(&(|(osgi.native.osname~=windows server 2012)(osgi.native.osname~=windows server 2012 r2)(osgi.native.osname~=windows 8.1)(osgi.native.osname~=windows 8)(osgi.native.osname~=windows nt \(unknown\))(osgi.native.osname~=windows 7)(osgi.native.osname~=Windows XP)(osgi.native.osname~=Windows 2003)(osgi.native.osname~=Windows Vista)(osgi.native.osname~=Windows Server 2008)(osgi.native.osname~=Windows Server 2008 R2))(|(osgi.native.processor~=i386)(osgi.native.processor~=X86)(osgi.native.processor~=x86)))(&(|(osgi.native.osname~=windows server 2012)(osgi.native.osname~=windows server 2012 r2)(osgi.native.osname~=windows 8.1)(osgi.native.osname~=windows 8)(osgi.native.osname~=windows nt \(unknown\))(osgi.native.osname~=windows 7)(osgi.native.osname~=Windows XP)(osgi.native.osname~=Windows 2003)(osgi.native.osname~=Windows Vista)(osgi.native.osname~=Windows Server 2008)(osgi.native.osname~=Windows Server 2008 R2))(osgi.native.processor~=ntia64))(&(osgi.native.osname~=linux)(|(osgi.native.processor~=i386)(osgi.native.processor~=X86)))(&(osgi.native.osname~=linux)(|(osgi.native.processor~=amd64)(osgi.native.processor~=x86_64)))(&(osgi.native.osname~=sunos)(|(osgi.native.processor~=amd64)(osgi.native.processor~=x86)))(&(osgi.native.osname~=sunos)(|(osgi.native.processor~=sparcv9)(osgi.native.processor~=sparc)))(&(osgi.native.osname~=aix)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(|(osgi.native.processor~=zarch_64)(osgi.native.processor~=s390x)))(&(osgi.native.osname~=linux)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=linux)(osgi.native.processor~=ia64))(&(osgi.native.osname~=hp-ux)(|(osgi.native.processor~=ia64)(osgi.native.processor~=ia64n)))(&(osgi.native.osname~=hp-ux)(|(osgi.native.processor~=pa_risc2.0w)(osgi.native.processor~=pa_risc2.0)))(&(osgi.native.osname~=os400)(osgi.native.processor~=ppc64))(&(osgi.native.osname~=macosx)(|(osgi.native.processor~=amd64)(osgi.native.processor~=x86_64)))(&(osgi.native.osname~=macosx)(|(osgi.native.processor~=x86)(osgi.native.processor~=i386))))"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.osgi.framework.InvalidSyntaxException: Missing ( at character 1

    Eclipse Bugzilla | 1 decade ago | yspaik
    org.osgi.framework.InvalidSyntaxException: Missing ( at character 1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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