java.lang.IllegalArgumentException: Unable to get truested keys

Spring JIRA | Adam Pullen | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    There is a jenkins build machine that builds several Spring Roo based jobs. Before the build roo is started to reproduce the *.aj files "every now and then" roo produces the following output * Please wait - still loading * 2,792 (or until the build is aborted) * java.lang.IllegalArgumentException: Unable to get truested keys * [org.springframework.roo.felix.pgp.PgpServiceImpl] Failed creating the component instance; see log for reason (however entries in the roo.log) * [org.springframework.roo.felix.HttpPgpUrlStreamHandlerServiceImpl] Cannot create component instance due to failure to bind reference pgpService * [org.springframework.roo.felix.pgp.PgpServiceImpl] The activate method has thrown an exception java.lang.IllegalArgumentException: Unable to get truested keys at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:197) at org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:402) Attached is a zip file containing two .spring_roo_pgp.bpg files. The one with the extension .working is ok, the one named .spring_roo_pgp.bpg is from the build machine. I am able to swap my working file with the broken one to reproduce the problem locally. After the file becomes corrupt all the jobs need to be stopped and the .spring_roo_pgp.bpg file needs to be deleted, after this the builds will work for upto 3 days then the .spring_roo_pgp.bpg becomes corrupt again. My guess is that when roo begins downloading an updated package and 2 or more other roo instances are also doing the same, a race condition occurs and the two roo instances are updating the .spring_roo_pgp.bpg file leaving it in an inconsistent state for the next builds.

    Spring JIRA | 5 years ago | Adam Pullen
    java.lang.IllegalArgumentException: Unable to get truested keys
  2. 0

    There is a jenkins build machine that builds several Spring Roo based jobs. Before the build roo is started to reproduce the *.aj files "every now and then" roo produces the following output * Please wait - still loading * 2,792 (or until the build is aborted) * java.lang.IllegalArgumentException: Unable to get truested keys * [org.springframework.roo.felix.pgp.PgpServiceImpl] Failed creating the component instance; see log for reason (however entries in the roo.log) * [org.springframework.roo.felix.HttpPgpUrlStreamHandlerServiceImpl] Cannot create component instance due to failure to bind reference pgpService * [org.springframework.roo.felix.pgp.PgpServiceImpl] The activate method has thrown an exception java.lang.IllegalArgumentException: Unable to get truested keys at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:197) at org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:402) Attached is a zip file containing two .spring_roo_pgp.bpg files. The one with the extension .working is ok, the one named .spring_roo_pgp.bpg is from the build machine. I am able to swap my working file with the broken one to reproduce the problem locally. After the file becomes corrupt all the jobs need to be stopped and the .spring_roo_pgp.bpg file needs to be deleted, after this the builds will work for upto 3 days then the .spring_roo_pgp.bpg becomes corrupt again. My guess is that when roo begins downloading an updated package and 2 or more other roo instances are also doing the same, a race condition occurs and the two roo instances are updating the .spring_roo_pgp.bpg file leaving it in an inconsistent state for the next builds.

    Spring JIRA | 5 years ago | Adam Pullen
    java.lang.IllegalArgumentException: Unable to get truested keys

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Unable to get truested keys

      at org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys()
    2. org.springframework.roo
      PgpServiceImpl.trust
      1. org.springframework.roo.felix.pgp.PgpServiceImpl.getTrustedKeys(PgpServiceImpl.java:197)
      2. org.springframework.roo.felix.pgp.PgpServiceImpl.trust(PgpServiceImpl.java:402)
      2 frames