java.lang.IllegalArgumentException: Cannot coerce headers(Long) to any of [(Bundle[])]

Spring JIRA | Valentin Mayamsin | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I'm unable to execute essential osgi command: {code} roo> osgi framework command headers 1 Cannot coerce headers(Long) to any of [(Bundle[])] java.lang.IllegalArgumentException: Cannot coerce headers(Long) to any of [(Bundle[])] at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:178) 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.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:234) at org.springframework.roo.felix.FelixDelegator.shell(FelixDelegator.java:319) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:325) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:71) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:44) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:242) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:149) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539) at java.lang.Thread.run(Thread.java:745) roo> osgi framework command help headers headers - display bundle headers scope: felix parameters: Bundle[] target bundles {code}

    Spring JIRA | 2 years ago | Valentin Mayamsin
    java.lang.IllegalArgumentException: Cannot coerce headers(Long) to any of [(Bundle[])]
  2. 0

    I'm unable to execute essential osgi command: {code} roo> osgi framework command headers 1 Cannot coerce headers(Long) to any of [(Bundle[])] java.lang.IllegalArgumentException: Cannot coerce headers(Long) to any of [(Bundle[])] at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:178) 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.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:234) at org.springframework.roo.felix.FelixDelegator.shell(FelixDelegator.java:319) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:325) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:71) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:44) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:242) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:149) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539) at java.lang.Thread.run(Thread.java:745) roo> osgi framework command help headers headers - display bundle headers scope: felix parameters: Bundle[] target bundles {code}

    Spring JIRA | 2 years ago | Valentin Mayamsin
    java.lang.IllegalArgumentException: Cannot coerce headers(Long) to any of [(Bundle[])]
  3. 0

    Any attempt to update or uninstall an osgi bundle results in an exception: {code} roo> osgi update --bundleSymbolicName org.apache.felix.gogo.runtime Cannot coerce update(Long) to any of [(Bundle, String), (Bundle)] java.lang.IllegalArgumentException: Cannot coerce update(Long) to any of [(Bundle, String), (Bundle)] at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:178) 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.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:185) at org.springframework.roo.felix.FelixDelegator.update(FelixDelegator.java:298) 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.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:325) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:71) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:44) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:226) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:136) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539) at java.lang.Thread.run(Thread.java:745) {code}

    Spring JIRA | 2 years ago | Phillip Singer
    java.lang.IllegalArgumentException: Cannot coerce update(Long) to any of [(Bundle, String), (Bundle)]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Any attempt to update or uninstall an osgi bundle results in an exception: {code} roo> osgi update --bundleSymbolicName org.apache.felix.gogo.runtime Cannot coerce update(Long) to any of [(Bundle, String), (Bundle)] java.lang.IllegalArgumentException: Cannot coerce update(Long) to any of [(Bundle, String), (Bundle)] at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:178) 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.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:185) at org.springframework.roo.felix.FelixDelegator.update(FelixDelegator.java:298) 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.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:325) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:71) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:44) at org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:226) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:136) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539) at java.lang.Thread.run(Thread.java:745) {code}

    Spring JIRA | 2 years ago | Phillip Singer
    java.lang.IllegalArgumentException: Cannot coerce update(Long) to any of [(Bundle, String), (Bundle)]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot coerce headers(Long) to any of [(Bundle[])]

      at org.apache.felix.gogo.runtime.Reflective.invoke()
    2. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:178)
      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
    3. org.springframework.roo
      FelixDelegator.shell
      1. org.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:234)
      2. org.springframework.roo.felix.FelixDelegator.shell(FelixDelegator.java:319)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    5. org.springframework.roo
      JLineShell.run
      1. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:47)
      2. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:325)
      3. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:71)
      4. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:44)
      5. org.springframework.roo.shell.AbstractShell.executeCommandImpl(AbstractShell.java:242)
      6. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:149)
      7. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:421)
      8. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:539)
      8 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame