2011-10-10 169 views
2

我目前正在使用Windows 7,64位。我用spring roo安裝了一個乾淨的版本的sts 2.7.2,起初一切都在工作。後來,我試圖安裝Spring Roo 1.1.5的獨立版本。當我鍵入袋鼠我開始下面的堆棧跟蹤:春天roo不工作

[org.springframework.roo.felix [44]] [org.springframework.roo.felix.pgp.PgpServiceImpl] The activate method has thrown an exc eption org.apache.felix.log.LogException: java.lang.IllegalArgumentException: java.io.IOException: unknown object in stream: 7 at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:152) at org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:168) at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeys(PgpServiceImpl.java:110) at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeysIfRequired(PgpServiceImpl.java:93) at org.springframework.roo.felix.pgp.PgpServiceImpl.activate(PgpServiceImpl.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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$1.getInstance(DependencyManager.java:1039) 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.invokeBindMethod(DependencyManager.java:1028) at org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManager.java:944) at org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:868) at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java: 200) 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.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(Unknown Source) Caused by: java.io.IOException: unknown object in stream: 7 at org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source) at org.bouncycastle.openpgp.PGPPublicKeyRingCollection.<init>(Unknown Source) at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:142) ... 83 more

我試圖尋找這一點,但無法找到任何東西,所以我安裝1.2.0M1版本,但是我得到了同樣的問題。過了一段時間,我放棄了,並試圖繼續工作在以前工作的IDE中的roo shell。儘管如此,我的IDE似乎不再工作了。當我嘗試在現有的roo項目上執行任何命令或嘗試創建一個新項目時,都會一直掛起。 爲了解決它,我試圖刪除STS,再次安裝,重新啓動我的電腦,清理註冊表,安裝不同的版本像1.7.1,改變我的JDK從1.6_22到1.6_27,但我總是得到同樣的問題現在。

我已經閱讀了很多關於spring roo的文章,並且非常期待開始使用它,但是我用完了想法。

有什麼我可以做,讓它再次工作?

在此先感謝您的幫助。

+0

我忘了提及我同時運行eclipse和命令行。 – tsunade21

回答

8

我找到了解決方案,我被STS-1931打了。刪除〜/ .spring_roo_pgp.bpg清除了問題。

+2

我不得不刪除ROO根目錄中的一些其他緩存和STS相關文件,以使其再次工作。感謝您的想法! –

+0

spring_roo_pgp.bpg文件在spring roo中的位置是什麼? –