Spring Roo PGP Exception


Today when I fired Spring Roo shell I started getting exception as shown below and I was not able to execute any command. I uninstalled Spring Roo (thinking that it might have got corrupted) but it didn’t helped after lot of firefighting I figured out the solution to overcome this problem. The problem was that yesterday I trusted some pgp keys and somehow Roo was not able to find them and started throwing exception. The solution is to remove a file name .spring_roo_pgp.bpg and restart Spring Roo. Spring Roo will create a new clean file.

[org.springframework.roo.felix [47]] [org.springframework.roo.felix.pgp.PgpServiceImpl] The activate method has thrown an exception
java.lang.IllegalArgumentException: Unable to get truested keys
    at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:197)
    at org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:402)
    at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeys(PgpServiceImpl.java:443)
    at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeysIfRequired(PgpServiceImpl.java:455)
    at org.springframework.roo.felix.pgp.PgpServiceImpl.activate(PgpServiceImpl.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
    at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
    at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
    at org.apache.felix.scr.impl.manager.DelayedComponentManager.createRealComponent(DelayedComponentManager.java:95)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Registered.getService(AbstractComponentManager.java:1148)
    at org.apache.felix.scr.impl.manager.DelayedComponentManager.getService(DelayedComponentManager.java:88)
    at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)
    at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)
    at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)
    at org.apache.felix.framework.Felix.getService(Felix.java:3139)
    at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:411)
    at org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:785)
    at org.apache.felix.scr.impl.manager.DependencyManager$3.getInstance(DependencyManager.java:1139)
    at org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:564)
    at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:226)
    at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
    at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
    at org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:548)
    at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
    at org.apache.felix.scr.impl.manager.DependencyManager.invokeUnbindMethod(DependencyManager.java:1129)
    at org.apache.felix.scr.impl.manager.DependencyManager.unbind(DependencyManager.java:993)
    at org.apache.felix.scr.impl.manager.DependencyManager.close(DependencyManager.java:880)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:211)
    at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
    at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:283)
    at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:170)
    at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)
    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)
    at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
    at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3890)
    at org.apache.felix.framework.Felix.access$000(Felix.java:79)
    at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:728)
    at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)
    at org.apache.felix.framework.Felix.registerService(Felix.java:2979)
    at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:313)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:449)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:460)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:157)
    at org.apache.felix.scr.impl.config.ConfiguredComponentHolder.enableComponents(ConfiguredComponentHolder.java:256)
    at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:253)
    at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
    at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
    at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
    at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
    at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
    at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
    at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
    at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3879)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1850)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
    at java.lang.Thread.run(Thread.java:662)
[org.springframework.roo.felix [47]] [org.springframework.roo.felix.pgp.PgpServiceImpl] Failed creating the component instance; see log for reason
[org.springframework.roo.addon.roobot.client [34]] [org.springframework.roo.addon.roobot.client.AddOnRooBotOperationsImpl] Component instance could not be created, activation failed
[org.springframework.roo.felix [47]] FrameworkEvent ERROR

About these ads

7 thoughts on “Spring Roo PGP Exception

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s