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

Spring JIRA | Phillip Singer | 2 years ago
  1. 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)]
  2. 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)]
  3. 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[])]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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[])]
  6. 0

    Error while saving document in Elastic search. mapper [rank.raw] cannot be changed from type [long] to [string]

    Stack Overflow | 4 months ago | ravi
    java.lang.IllegalArgumentException: mapper [rank.raw] cannot be changed from type [long] to [string]

    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. java.lang.IllegalArgumentException

      Cannot coerce update(Long) to any of [(Bundle, String), (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.update
      1. org.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:185)
      2. org.springframework.roo.felix.FelixDelegator.update(FelixDelegator.java:298)
      2 frames
    4. 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
    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:226)
      6. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:136)
      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