You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Gautier DI FOLCO (JIRA)" <se...@james.apache.org> on 2018/06/21 10:55:00 UTC

[jira] [Created] (JAMES-2437) When the publickey is missing in the keystore a NPE is thrown

Gautier DI FOLCO created JAMES-2437:
---------------------------------------

             Summary: When the publickey is missing in the keystore a NPE is thrown
                 Key: JAMES-2437
                 URL: https://issues.apache.org/jira/browse/JAMES-2437
             Project: James Server
          Issue Type: Bug
          Components: webadmin
            Reporter: Gautier DI FOLCO


The NPE happens when james can't find the certificate in the keystore.

In the configuration file, we set "value1" as alias for the certificate but if we built the keystore with "value2", we get a NPE.

 
{code:java}
 
Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
    at org.apache.james.modules.protocols.JMAPServerModule$JMAPModuleConfigurationPerformer.initModule(JMAPServerModule.java:78)
    at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:372)
    at java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:175)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
    at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
    at org.apache.james.utils.ConfigurationsPerformer.processConfigurables(ConfigurationsPerformer.java:53)
    at org.apache.james.utils.ConfigurationsPerformer.initModules(ConfigurationsPerformer.java:43)
    at org.apache.james.GuiceJamesServer.start(GuiceJamesServer.java:74)
    at org.apache.james.CassandraJamesServerMain.main(CassandraJamesServerMain.java:117)
Caused by: java.lang.NullPointerException
    at org.apache.james.jmap.crypto.JamesSignatureHandler.init(JamesSignatureHandler.java:69)
    at org.apache.james.modules.protocols.JMAPServerModule$JMAPModuleConfigurationPerformer.initModule(JMAPServerModule.java:73)
    ... 24 more
{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org