Skip to content

Instantly share code, notes, and snippets.

@volkflo
Created March 1, 2022 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save volkflo/ca55ec52a6700a6b8489f8e272b9b8f8 to your computer and use it in GitHub Desktop.
Save volkflo/ca55ec52a6700a6b8489f8e272b9b8f8 to your computer and use it in GitHub Desktop.
[ERROR] 2022-03-01 11:14:08.135 [weld-worker-4] NotificationService - An error occurred in the asynchronous part of the notification subsystem. This error likely did not return directly to the requester: {0}
java.util.concurrent.CompletionException: java.lang.NullPointerException
at org.jboss.weld.event.ObserverNotifier.handleExceptions(ObserverNotifier.java:463) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverNotifier.lambda$createSupplier$9(ObserverNotifier.java:451) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Suppressed: java.lang.NullPointerException
at io.apiman.manager.api.notifications.email.SimpleMailNotificationService.findTemplateFor(SimpleMailNotificationService.java:162) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.SimpleMailNotificationService$Proxy$_$$_WeldClientProxy.findTemplateFor(Unknown Source) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.handlers.ContractApprovalRequestEmailNotification.handle(ContractApprovalRequestEmailNotification.java:43) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.handlers.ContractApprovalRequestEmailNotification$Proxy$_$$_WeldClientProxy.handle(Unknown Source) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.EmailNotificationDispatcher.lambda$dispatch$1(EmailNotificationDispatcher.java:72) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[?:?]
at io.apiman.manager.api.notifications.email.EmailNotificationDispatcher.dispatch(EmailNotificationDispatcher.java:72) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.EmailNotificationDispatcher.processNotification(EmailNotificationDispatcher.java:58) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.injection.MethodInvocationStrategy$DefaultMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:144) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at javax.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:124) ~[cdi-api-2.0.SP1.jar:${parsedVersion.osgiVersion}]
at org.jboss.weld.util.Observers.notify(Observers.java:166) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverNotifier.notifyAsyncObserver(ObserverNotifier.java:415) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverNotifier.lambda$notifyAsyncObservers$5(ObserverNotifier.java:358) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverNotifier.lambda$createSupplier$8(ObserverNotifier.java:442) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.security.spi.SecurityServices.lambda$getSecurityContextAssociator$0(SecurityServices.java:80) ~[weld-spi-3.1.SP4.jar:3.1.0.SP4]
at org.jboss.weld.event.ObserverNotifier.lambda$createSupplier$9(ObserverNotifier.java:438) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.NullPointerException
at io.apiman.manager.api.notifications.email.SimpleMailNotificationService.findTemplateFor(SimpleMailNotificationService.java:162) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.SimpleMailNotificationService$Proxy$_$$_WeldClientProxy.findTemplateFor(Unknown Source) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.handlers.ContractApprovalRequestEmailNotification.handle(ContractApprovalRequestEmailNotification.java:43) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.handlers.ContractApprovalRequestEmailNotification$Proxy$_$$_WeldClientProxy.handle(Unknown Source) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.EmailNotificationDispatcher.lambda$dispatch$1(EmailNotificationDispatcher.java:72) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) ~[?:?]
at io.apiman.manager.api.notifications.email.EmailNotificationDispatcher.dispatch(EmailNotificationDispatcher.java:72) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at io.apiman.manager.api.notifications.email.EmailNotificationDispatcher.processNotification(EmailNotificationDispatcher.java:58) ~[apiman-manager-api-rest-impl-8.1.0-SNAPSHOT.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.injection.MethodInvocationStrategy$DefaultMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:144) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at javax.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:124) ~[cdi-api-2.0.SP1.jar:${parsedVersion.osgiVersion}]
at org.jboss.weld.util.Observers.notify(Observers.java:166) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverNotifier.notifyAsyncObserver(ObserverNotifier.java:415) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverNotifier.lambda$notifyAsyncObservers$5(ObserverNotifier.java:358) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.event.ObserverNotifier.lambda$createSupplier$8(ObserverNotifier.java:442) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
at org.jboss.weld.security.spi.SecurityServices.lambda$getSecurityContextAssociator$0(SecurityServices.java:80) ~[weld-spi-3.1.SP4.jar:3.1.0.SP4]
at org.jboss.weld.event.ObserverNotifier.lambda$createSupplier$9(ObserverNotifier.java:438) ~[weld-core-impl-3.1.8.Final.jar:3.1.8.Final]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment