org.apache.felix.log.LogException: java.lang.IllegalArgumentException: java.io.IOException: invalid header encountered

SpringSource Issue Tracker | Steffen Pingel | 5 years ago
  1. 0

    Steps: 1. Open two Roo shells 2. Close both shells at the same time This corrupts the ~/.spring_roo_pgp.bpg file leading to errors on the next start. Work-around: Close Roo and remove ~/.spring_roo_pgp.bpg. 8-Jul-2011 8:32:38 PM org.springframework.roo.felix.JdkDelegatingLogListener logNow SEVERE: [org.springframework.roo.felix [38]] [org.springframework.roo.felix.pgp.PgpServiceImpl] The activate method has thrown an exception org.apache.felix.log.LogException: java.lang.IllegalArgumentException: java.io.IOException: invalid header encountered at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:145) at org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:160) at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeys(PgpServiceImpl.java:103) at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeysIfRequired(PgpServiceImpl.java:87) at org.springframework.roo.felix.pgp.PgpServiceImpl.activate(PgpServiceImpl.java:80) 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:306) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) 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.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:306) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.springframework.roo.shell.eclipse.Bootstrap.initShell(Bootstrap.java:575) at org.springframework.roo.shell.eclipse.Bootstrap.access$2(Bootstrap.java:545) at org.springframework.roo.shell.eclipse.Bootstrap$RooShellStartupMonitor.run(Bootstrap.java:619) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: invalid header encountered at org.bouncycastle.bcpg.BCPGInputStream.readPacket(Unknown Source) at org.bouncycastle.openpgp.PGPLiteralData.<init>(Unknown Source) 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:132) ... 48 more 8-Jul-2011 8:32:38 PM org.spr

    SpringSource Issue Tracker | 5 years ago | Steffen Pingel
    org.apache.felix.log.LogException: java.lang.IllegalArgumentException: java.io.IOException: invalid header encountered
  2. 0

    Steps: 1. Open two Roo shells 2. Close both shells at the same time This corrupts the ~/.spring_roo_pgp.bpg file leading to errors on the next start. Work-around: Close Roo and remove ~/.spring_roo_pgp.bpg. 8-Jul-2011 8:32:38 PM org.springframework.roo.felix.JdkDelegatingLogListener logNow SEVERE: [org.springframework.roo.felix [38]] [org.springframework.roo.felix.pgp.PgpServiceImpl] The activate method has thrown an exception org.apache.felix.log.LogException: java.lang.IllegalArgumentException: java.io.IOException: invalid header encountered at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:145) at org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:160) at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeys(PgpServiceImpl.java:103) at org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeysIfRequired(PgpServiceImpl.java:87) at org.springframework.roo.felix.pgp.PgpServiceImpl.activate(PgpServiceImpl.java:80) 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:306) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) 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.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:306) at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220) at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322) at org.apache.felix.framework.Felix.getService(Felix.java:2913) at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330) at org.springframework.roo.shell.eclipse.Bootstrap.initShell(Bootstrap.java:575) at org.springframework.roo.shell.eclipse.Bootstrap.access$2(Bootstrap.java:545) at org.springframework.roo.shell.eclipse.Bootstrap$RooShellStartupMonitor.run(Bootstrap.java:619) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: invalid header encountered at org.bouncycastle.bcpg.BCPGInputStream.readPacket(Unknown Source) at org.bouncycastle.openpgp.PGPLiteralData.<init>(Unknown Source) 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:132) ... 48 more 8-Jul-2011 8:32:38 PM org.spr

    SpringSource Issue Tracker | 5 years ago | Steffen Pingel
    org.apache.felix.log.LogException: java.lang.IllegalArgumentException: java.io.IOException: invalid header encountered
  3. 0

    encryption.bouncy-castle.devel - Re: Problem with PKCS12 KeyStore (and example) - msg#00058 - Recent Discussion OSDir.com

    osdir.com | 1 year ago
    java.io.IOException: invalid header encountered at org.bouncycastle.bcpg.BCPGInputStream.readPacket(BCPGInputStream.java:134)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Creating Jar Files

    Oracle Community | 1 decade ago | 807607
    java.io.IOException: invalid header field
  6. 0

    "invalid header field" (in manifest?) when creating JAR

    Stack Overflow | 3 years ago | Joe Mabel
    java.io.IOException: invalid header field

    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. java.io.IOException

      invalid header encountered

      at org.bouncycastle.bcpg.BCPGInputStream.readPacket()
    2. Bouncy Castle OpenPGP API
      PGPPublicKeyRingCollection.<init>
      1. org.bouncycastle.bcpg.BCPGInputStream.readPacket(Unknown Source)
      2. org.bouncycastle.openpgp.PGPLiteralData.<init>(Unknown Source)
      3. org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source)
      4. org.bouncycastle.openpgp.PGPPublicKeyRingCollection.<init>(Unknown Source)
      4 frames
    3. org.springframework.roo
      PgpServiceImpl.activate
      1. org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:132)
      2. org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:160)
      3. org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeys(PgpServiceImpl.java:103)
      4. org.springframework.roo.felix.pgp.PgpServiceImpl.trustDefaultKeysIfRequired(PgpServiceImpl.java:87)
      5. org.springframework.roo.felix.pgp.PgpServiceImpl.activate(PgpServiceImpl.java:80)
      5 frames
    4. 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
    5. Apache Felix Declarative Services
      DelayedComponentManager.getService
      1. org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
      2. org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      3. org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
      4. org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
      5. org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
      6. org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
      7. org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      8. org.apache.felix.scr.impl.manager.DelayedComponentManager.createRealComponent(DelayedComponentManager.java:95)
      9. org.apache.felix.scr.impl.manager.AbstractComponentManager$Registered.getService(AbstractComponentManager.java:1148)
      10. org.apache.felix.scr.impl.manager.DelayedComponentManager.getService(DelayedComponentManager.java:88)
      10 frames
    6. Apache Felix Framework
      BundleContextImpl.getService
      1. org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306)
      2. org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220)
      3. org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322)
      4. org.apache.felix.framework.Felix.getService(Felix.java:2913)
      5. org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330)
      5 frames
    7. Apache Felix Declarative Services
      DelayedComponentManager.getService
      1. org.apache.felix.scr.impl.manager.DependencyManager.getService(DependencyManager.java:785)
      2. org.apache.felix.scr.impl.manager.DependencyManager$1.getInstance(DependencyManager.java:1039)
      3. org.apache.felix.scr.impl.helper.BindMethod.getParameters(BindMethod.java:564)
      4. org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:226)
      5. org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      6. org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
      7. org.apache.felix.scr.impl.helper.BaseMethod$NotResolved.invoke(BaseMethod.java:548)
      8. org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
      9. org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1028)
      10. org.apache.felix.scr.impl.manager.DependencyManager.bind(DependencyManager.java:944)
      11. org.apache.felix.scr.impl.manager.DependencyManager.open(DependencyManager.java:868)
      12. org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:200)
      13. org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      14. org.apache.felix.scr.impl.manager.DelayedComponentManager.createRealComponent(DelayedComponentManager.java:95)
      15. org.apache.felix.scr.impl.manager.AbstractComponentManager$Registered.getService(AbstractComponentManager.java:1148)
      16. org.apache.felix.scr.impl.manager.DelayedComponentManager.getService(DelayedComponentManager.java:88)
      16 frames
    8. Apache Felix Framework
      BundleContextImpl.getService
      1. org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:306)
      2. org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:220)
      3. org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:322)
      4. org.apache.felix.framework.Felix.getService(Felix.java:2913)
      5. org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:330)
      5 frames
    9. org.springframework.roo
      Bootstrap$RooShellStartupMonitor.run
      1. org.springframework.roo.shell.eclipse.Bootstrap.initShell(Bootstrap.java:575)
      2. org.springframework.roo.shell.eclipse.Bootstrap.access$2(Bootstrap.java:545)
      3. org.springframework.roo.shell.eclipse.Bootstrap$RooShellStartupMonitor.run(Bootstrap.java:619)
      3 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame