Menu

Error 500: NullPointerException when accessing CryptoToken

Help
2018-08-08
2018-08-24
  • Petr Vsetecka

    Petr Vsetecka - 2018-08-08

    Hello,

    I am running SignServer 4.0.0 CE on WildFly and have met a strange bug. One server has a habit of eventually (so far two exact measurements of 44 minutes and 21 hours have been made) refusing to issue more TimeStamps and instead returning error 500.

    After closer examination of the error message, I found out that function org.signserver.server.BaseProcessable.getCryptoToken(BaseProcessable.java:301) returns NullPointerException. So far, my solution to this problem is to call bin/signserver getstatus complete all which finishes successfully and tells me that everything is working (and it actually makes it work).

    I suspect that somehow the CryptoToken worker is put to sleep and cannot wake up when asked by the TimeStampWorker. I tried rebooting the machine and restarting the server. The SignServer usually starts in this "sleep mode" and needs to be woken up by the aforementioned command.

    Do you have any ideas that might fix this weird behaviour?

    Thanks in advance,
    Petr

     
  • Markus Kilås

    Markus Kilås - 2018-08-24

    Hi Petr,

    What CryptoToken are you using? i.e. KeystoreCryptoToken or PKCS11CryptoToken and if the last what HSM brand/model?

    Regards,
    Markus
    PrimeKey Solutions

    Join PrimeKey Tech Days!
    18 - 19 September, Stockholm, Sweden
    www.primekey.com/tech-days

     

Log in to post a comment.