org.apache.felix.log.LogException: java.lang.IllegalStateException: java.lang.NullPointerException

Spring JIRA | Ken Rimple | 5 years ago
  1. 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
  2. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    ClassNotFoundException for a type that is available to the OSGi runtime ( io.netty.common )

    Stack Overflow | 3 years ago | pgn
    org.apache.felix.log.LogException: java.lang.NoClassDefFoundError: io/netty/util/concurrent/EventExecutorGroup

    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.lang.NullPointerException

      at org.springframework.roo.felix.pgp.PgpServiceImpl.isResourceSignedBySignature()
    2. org.springframework.roo
      HttpPgpUrlStreamHandlerServiceImpl.openConnection
      1. org.springframework.roo.felix.pgp.PgpServiceImpl.isResourceSignedBySignature(PgpServiceImpl.java:414)
      2. org.springframework.roo.felix.HttpPgpUrlStreamHandlerServiceImpl.openConnection(HttpPgpUrlStreamHandlerServiceImpl.java:109)
      2 frames
    3. Apache Felix Framework
      URLHandlersStreamHandlerProxy.openConnection
      1. org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:271)
      1 frame
    4. Java RT
      URL.openConnection
      1. java.net.URL.openConnection(URL.java:945)
      1 frame
    5. Apache Felix Bundle Repository
      ObrCommandImpl.execute
      1. org.apache.felix.bundlerepository.impl.FileUtil.openURL(FileUtil.java:199)
      2. org.apache.felix.bundlerepository.impl.ResolverImpl.deploy(ResolverImpl.java:598)
      3. org.apache.felix.bundlerepository.impl.ObrCommandImpl._deploy(ObrCommandImpl.java:395)
      4. org.apache.felix.bundlerepository.impl.ObrCommandImpl.deploy(ObrCommandImpl.java:333)
      5. org.apache.felix.bundlerepository.impl.ObrCommandImpl.execute(ObrCommandImpl.java:119)
      5 frames
    6. Apache Felix Shell Service
      Activator$ShellServiceImpl.executeCommand
      1. org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
      1 frame
    7. org.springframework.roo
      FelixDelegator.obrStart
      1. org.springframework.roo.felix.FelixDelegator.perform(FelixDelegator.java:256)
      2. org.springframework.roo.felix.FelixDelegator.obrStart(FelixDelegator.java:245)
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. org.springframework.roo
      ReflectionUtils.invokeMethod
      1. org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      1 frame