[ROO-3573] Cannot uninstall or update any osgi bundles Created: 16/Dec/14  Updated: 09/Jan/15  Resolved: 09/Jan/15

Status: Resolved
Project: Spring Roo
Component/s: @ ROO SHELL
Affects Version/s: 1.3.0.RELEASE
Fix Version/s: 1.3.1.RC2, 2.0.0.M1

Type: Bug Priority: Blocker
Reporter: Phillip Singer Assignee: Juan Carlos García del Canto
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.10.1, Java 1.8.0_05, Spring roo installed via "brew install spring-roo"



 Description   

Any attempt to update or uninstall an osgi bundle results in an exception:

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)


 Comments   
Comment by Phillip Singer [ 19/Dec/14 ]

It appears this may be fixed in 1.3.1.RC1

Comment by Juan Carlos García del Canto [ 09/Jan/15 ]

Solved issues on OSGI commands.

This bug fixes will be available on 1.3.1.RC2

https://github.com/spring-projects/spring-roo/commit/a9b72255f417276874a8bdf75aff50a73429780e

Generated at Sat Nov 23 02:22:11 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.