org.apache.felix.log.LogException: java.lang.IllegalStateException: java.io.FileNotFoundException: C :\.spring_roo_pgp.bpg (A required privilege is not held by the client)

Spring JIRA | W B | 2 years ago
  1. 0

    Spring roo is not working

    Stack Overflow | 5 years ago | tsunade21
    org.apache.felix.log.LogException: java.lang.IllegalArgumentException: java.io.IOException: unknown object in stream: 7
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    apache felix: Cannot register Component because has already been registered by another Bundle

    Stack Overflow | 3 years ago | user3122668
    org.apache.felix.log.LogException: org.osgi.service.component.ComponentException: The component name 'com.aaaa.osgi.bss.pppp.notifications' has already been registered by Bundle 55 (com.aaaa.osgi.bss.pppp.notifications) as Component of Class com.aaaa.osgi.bss.pppp.internal.notifications.NotificationsService
  4. 0

    This was with first an old upgraded project, but then with a brand new one using Roo 1.2.0.M1 Commands: {code} // Spring Roo 1.2.0.M1 [rev 63a3136] log opened at 2011-09-18 11:22:46 project --topLevelPackage org.foo --projectName bar persistence setup --provider HIBERNATE --database MYSQL- addon search mysql osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml addon install id 01 {code} Stack trace: {code} org.foo roo> addon install id 01 Target resource(s): ------------------- Spring Roo - Wrapping - mysql-connector-java (5.1.17.0020) Required resource(s): --------------------- slf4j-api (1.6.1) slf4j-nop (1.6.1) Deploying...done. [org.apache.felix.bundlerepository [4]] Resolver: Install error - slf4j.api org.apache.felix.log.LogException: java.lang.IllegalStateException: java.lang.NullPointerException at org.springframework.roo.felix.pgp.PgpServiceImpl.isResourceSignedBySignature(PgpServiceImpl.java:414) at org.springframework.roo.felix.HttpPgpUrlStreamHandlerServiceImpl.openConnection(HttpPgpUrlStreamHandlerServiceImpl.java:109) at org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:271) at java.net.URL.openConnection(URL.java:945) at org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:199) at org.apache.felix.bundlerepository.impl.ResolverImpl.deploy(ResolverImpl.java:598) at org.apache.felix.bundlerepository.impl.ObrCommandImpl._deploy(ObrCommandImpl.java:395) at org.apache.felix.bundlerepository.impl.ObrCommandImpl.deploy(ObrCommandImpl.java:333) at org.apache.felix.bundlerepository.impl.ObrCommandImpl.execute(ObrCommandImpl.java:119) at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286) at org.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:256) at org.springframework.roo.felix.FelixDelegator.obrStart(FelixDelegator.java:245) 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.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) Downloaded 100% of slf4j-api-1.6.1.jar at org.springframework.roo.process.manager.internal.DefaultProcessMananager.java:184) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:147) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:201) at org.springframework.roo.addon.roobot.client.AddOnRooBotOperationsImpl.installOrUpgradeAddOn(AddOnRooBotOperationsImpl.java:253) at org.springframework.roo.addon.roobot.client.AddOnRooBotOperationsImpl.installAddon(AddOnRooBotOperationsImpl.java:230) at org.springframework.roo.addon.roobot.client.AddOnRooBotOperationsImpl.installAddOn(AddOnRooBotOperationsImpl.java:225) at org.springframework.roo.addon.roobot.client.AddOnCommands.installId(AddOnCommands.java:82) 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.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:184) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:147) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:201) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:392) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.NullPointerException at org.springframework.roo.felix.pgp.PgpServiceImpl.isSignatureAcceptable(PgpServiceImpl.java:355) at org.springframework.roo.felix.pgp.PgpServiceImpl.isResourceSignedBySignature(PgpServiceImpl.java:393) ... 38 more Unable to install add-on: Spring Roo - Wrapping - mysql-connector-java [version: 5.1.17.0020] {code}

    Spring JIRA | 5 years ago | Ken Rimple
    org.apache.felix.log.LogException: java.lang.IllegalStateException: java.lang.NullPointerException

    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. org.apache.felix.log.LogException

      java.lang.IllegalStateException: java.io.FileNotFoundException: C :\.spring_roo_pgp.bpg (A required privilege is not held by the client)

      at org.springframework.roo.felix.pgp.PgpServiceImpl.trust()
    2. org.springframework.roo
      PgpServiceImpl.activate
      1. org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:475)
      2. org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeys(PgpServiceImpl.java:499)
      3. org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeysIfRequired(PgpServiceImpl.java:401)
      4. org.springframework.roo.felix.pgp.PgpServiceImpl.activate(PgpServiceImpl.java:394)
      4 frames