java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Adam Pullen,
  • 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.
    via by Adam Pullen,
    • 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)
    No Bugmate found.