NullPointerException ved henting av forretningskvittering
Closed this issue · 1 comments
Vil melde om at følgende kall som skal hente kvittering fra meldingsformidler gir nullpointerexception.
ForretningsKvittering forretningsKvittering = postklient.hentKvittering(KvitteringForespoersel.builder(Prioritet.NORMAL).build());
12:47:29.799 [pool-1-thread-1] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.
java.lang.NullPointerException: null
at no.difi.sdp.client.internal.KvitteringBuilder.buildForretningsKvittering(KvitteringBuilder.java:43) ~[sikker-digital-post-java-klient-1.0-SNAPSHOT.jar:na]
at no.difi.sdp.client.SikkerDigitalPostKlient.hentKvitteringOgBekreftForrige(SikkerDigitalPostKlient.java:102) ~[sikker-digital-post-java-klient-1.0-SNAPSHOT.jar:na]
at no.difi.sdp.client.SikkerDigitalPostKlient.hentKvittering(SikkerDigitalPostKlient.java:80) ~[sikker-digital-post-java-klient-1.0-SNAPSHOT.jar:na]
at no.difi.sdp.webclient.service.MessageService.getReceipt(MessageService.java:253) ~[classes/:na]
at no.difi.sdp.webclient.configuration.SdpClientConfiguration.retrieveRecieptPeriodically(SdpClientConfiguration.java:291) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_40]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_40]
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_40]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_40]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_40]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_40]
at java.lang.Thread.run(Thread.java:724) [na:1.7.0_40]
Denne skal være fikses nå. Takk for beskjeden!