-
Nov 9th, 2010, 10:24 AM
#1
Problem starting Roo 1.1.0
Hi,
I'm working with Roo 1.0.2 and I really love it.
I downloaded Roo 1.1.0 but when I start it I get the error message at the end of the post.
Do You have any suggestion?
Thanks a lot and keep Roo rocking!
Tommaso Anzidei
ERROR:
Nov 9, 2010 5:16:30 PM org.springframework.roo.felix.JdkDelegatingLogList ener logNow
SEVERE: [org.springframework.roo.felix [41]] FrameworkEvent ERROR
org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory exception: null
at org.apache.felix.framework.ServiceRegistrationImpl .getFactoryUnchecked(ServiceRegistrationImpl.java: 310)
at org.apache.felix.framework.ServiceRegistrationImpl .getService(ServiceRegistrationImpl.java:220)
at org.apache.felix.framework.ServiceRegistry.getServ ice(ServiceRegistry.java:322)
at org.apache.felix.framework.Felix.getService(Felix. java:2913)
at org.apache.felix.framework.BundleContextImpl.getSe rvice(BundleContextImpl.java:330)
at org.apache.felix.scr.impl.manager.DependencyManage r.getService(DependencyManager.java:761)
at org.apache.felix.scr.impl.manager.DependencyManage r$1.getInstance(DependencyManager.java:1003)
at org.apache.felix.scr.impl.helper.BindMethod.getPar ameters(BindMethod.java:436)
at org.apache.felix.scr.impl.helper.BaseMethod.invoke Method(BaseMethod.java:212)
at org.apache.felix.scr.impl.helper.BaseMethod.access $500(BaseMethod.java:38)
at org.apache.felix.scr.impl.helper.BaseMethod$Resolv ed.invoke(BaseMethod.java:542)
at org.apache.felix.scr.impl.helper.BaseMethod$NotRes olved.invoke(BaseMethod.java:500)
at org.apache.felix.scr.impl.helper.BaseMethod.invoke (BaseMethod.java:434)
at org.apache.felix.scr.impl.manager.DependencyManage r.invokeBindMethod(DependencyManager.java:991)
at org.apache.felix.scr.impl.manager.DependencyManage r.bind(DependencyManager.java:907)
at org.apache.felix.scr.impl.manager.DependencyManage r.open(DependencyManager.java:831)
at org.apache.felix.scr.impl.manager.ImmediateCompone ntManager.createImplementationObject(ImmediateComp onentManager.java:200)
at org.apache.felix.scr.impl.manager.ImmediateCompone ntManager.createComponent(ImmediateComponentManage r.java:118)
at org.apache.felix.scr.impl.manager.AbstractComponen tManager$Unsatisfied.activate(AbstractComponentMan ager.java:991)
at org.apache.felix.scr.impl.manager.AbstractComponen tManager.activateInternal(AbstractComponentManager .java:298)
at org.apache.felix.scr.impl.manager.AbstractComponen tManager$3.doRun(AbstractComponentManager.java:505 )
at org.apache.felix.scr.impl.ComponentActivatorTask.r un(ComponentActivatorTask.java:67)
at org.apache.felix.scr.impl.ComponentActorThread.run (ComponentActorThread.java:96)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.apache.felix.log.LogException: java.lang.ExceptionInInitializerError: null
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.felix.scr.impl.manager.ImmediateCompone ntManager.createImplementationObject(ImmediateComp onentManager.java:183)
at org.apache.felix.scr.impl.manager.ImmediateCompone ntManager.createComponent(ImmediateComponentManage r.java:118)
at org.apache.felix.scr.impl.manager.DelayedComponent Manager.createRealComponent(DelayedComponentManage r.java:91)
at org.apache.felix.scr.impl.manager.AbstractComponen tManager$Registered.getService(AbstractComponentMa nager.java:1139)
at org.apache.felix.scr.impl.manager.DelayedComponent Manager.getService(DelayedComponentManager.java:85 )
at org.apache.felix.framework.ServiceRegistrationImpl .getFactoryUnchecked(ServiceRegistrationImpl.java: 306)
... 23 more
Caused by: org.apache.felix.log.LogException: java.security.ProviderException: Could not initialize NSS
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.jav a:201)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.jav a:103)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:532)
at sun.security.jca.ProviderConfig$3.run(ProviderConf ig.java:262)
at sun.security.jca.ProviderConfig$3.run(ProviderConf ig.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(Pro viderConfig.java:244)
at sun.security.jca.ProviderConfig.getProvider(Provid erConfig.java:224)
at sun.security.jca.ProviderList.loadAll(ProviderList .java:281)
at sun.security.jca.ProviderList.removeInvalid(Provid erList.java:298)
at sun.security.jca.Providers.getFullProviderList(Pro viders.java:170)
at java.security.Security.insertProviderAt(Security.j ava:361)
at java.security.Security.addProvider(Security.java:4 08)
at org.springframework.roo.felix.pgp.PgpServiceImpl.< clinit>(PgpServiceImpl.java:71)
... 35 more
-
Nov 10th, 2010, 06:21 PM
#2
It's because our registration of Bouncy Castle as a security library fails. We need BC for PGP features central to add-on security.
I did a quick Google and found http://bugs.sun.com/bugdatabase/view...bug_id=6348425, but it doesn't look close enough to me to your problem.
I suspect your JVM has an unusual security policy file, or maybe needs an update. Or it could be the NSS library on the machine is too old as per the above bug.
-
Nov 11th, 2010, 04:02 AM
#3
thanks
Thanks a lot Ben,
I will investigate your suggestions and I'll let You know!
Best Regards
Tommaso
-
Nov 12th, 2010, 07:42 AM
#4
solved!
Just moved from OpenJDK to JDK 1.6 and the error vanished!
-
Nov 24th, 2010, 03:15 PM
#5
I had the same problem, but I have already jdk1.6.0_22, or did I missunderstand your answer??
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules