Internal Server Error while accessing Pingfederate console which is deployed using PingIdentity devops on Kubernetes cluster - kubernetes-ingress

First of all, apologies if I missed giving more information on the issue. I'm new to pingfederate. I tried to put all the steps followed below.
I have setup a single node k3s cluster on EC2 centos instance, there is also a traefik ingress deployed along with the k3s cluster.
I deployed the pingfederate using the 20-kubernetes/07-license-as-secret since I have an existing pingfederate license.
For testing purpose, I customized the pingidentiy-server-profiles/baseline/pingfederate profile by following how to modify profile using GitHub repository method.
I also created an ingress for the pingfederate service using the 10-ingress/pingfederate-standalone-ingress. I have modified the hostname to the one which I have created.
When I try to access the application using the ingress hostname, I get the internal server error.
Note: I have already tried the same setup on my local k3s cluster but without an ingress and just using port-forward it works, I’m able to login to the console.
Troubleshooting steps done so far:
Enabled logs to DEBUG mode following this link and deployed the pingfederate server. There is a ClosedChannelException in the org.eclipse.jetty.io.WriteFlusher. Below is the server.log leading to the error I mentioned.
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.AbstractEndPoint] close SocketChannelEndPoint#71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/0,kio=1,kro=1}->SslConnection#271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint#30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection#106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#662996bf{s=START}]=>HttpChannelOverHttp#2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill] EatWhatYouKill#63ccb1b2/SelectorProducer#1165a952/IDLE/p=true/QueuedThreadPool[qtp1642619282]#61e86192{STARTED,1<=6<=10,i=3,r=1,q=1}[ReservedThreadExecutor#7204d98f{s=0/1,p=1}][pc=0,pic=0,pec=24,epc=3744]#2020-12-29T17:43:06.124489Z tryProduce true
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.AbstractEndPoint] close(null) SocketChannelEndPoint#71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/0,kio=1,kro=1}->SslConnection#271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint#30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection#106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#662996bf{s=START}]=>HttpChannelOverHttp#2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] updateable 0
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] updates 0
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill] EatWhatYouKill#63ccb1b2/SelectorProducer#1165a952/IDLE/p=true/QueuedThreadPool[qtp1642619282]#61e86192{STARTED,1<=6<=10,i=3,r=1,q=1}[ReservedThreadExecutor#7204d98f{s=0/1,p=1}][pc=0,pic=0,pec=24,epc=3744]#2020-12-29T17:43:06.124474Z m=EXECUTE_PRODUCE_CONSUME t=CEP:SocketChannelEndPoint#71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/0,kio=1,kro=1}->SslConnection#271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint#30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection#106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#662996bf{s=START}]=>HttpChannelOverHttp#2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}:runFillable:BLOCKING/BLOCKING
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ChannelEndPoint] doClose SocketChannelEndPoint#71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=FI,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}->SslConnection#271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint#30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection#106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#662996bf{s=START}]=>HttpChannelOverHttp#2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ChannelEndPoint] Key interests updated 1 -> 0 on SocketChannelEndPoint#71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=FI,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}->SslConnection#271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint#30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection#106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#662996bf{s=START}]=>HttpChannelOverHttp#2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] Selector sun.nio.ch.EPollSelectorImpl#aa7427f waiting with 2 keys
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.FillInterest] fillable FillInterest#21d544d7{SSLC.NBReadCB#271ff47b{SslConnection#271ff47b::SocketChannelEndPoint#71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=FI,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}->SslConnection#271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint#30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection#106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#662996bf{s=START}]=>HttpChannelOverHttp#2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}}}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.WriteFlusher] ignored: WriteFlusher#655f6d8{IDLE}->null
java.nio.channels.ClosedChannelException: null
at org.eclipse.jetty.io.WriteFlusher.onClose(WriteFlusher.java:492) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.onClose(AbstractEndPoint.java:353) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ChannelEndPoint.onClose(ChannelEndPoint.java:215) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:225) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:175) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.doClose(SslConnection.java:1197) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:220) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:175) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection.close(AbstractConnection.java:248) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:254) ~[jetty-server-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:427) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:321) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at java.lang.Thread.run(Thread.java:834) [?:?]
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.FillInterest] onClose FillInterest#21d544d7{null}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] Wakeup ManagedSelector#1b868ef0{STARTED} id=0 keys=1 selected=0 updates=0
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.util.thread.QueuedThreadPool] queue org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint#68bc5d59
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.WriteFlusher] ignored: WriteFlusher#43cde001{IDLE}->null
java.nio.channels.ClosedChannelException: null
at org.eclipse.jetty.io.WriteFlusher.onClose(WriteFlusher.java:492) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.onClose(AbstractEndPoint.java:353) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:225) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:175) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection.close(AbstractConnection.java:248) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:254) ~[jetty-server-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:427) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:321) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at java.lang.Thread.run(Thread.java:834) [?:?]
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.FillInterest] onClose FillInterest#6bc9a8a7{null}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.server.HttpConnection]
Please shout if more details are required. Any assistance will be much appreciated. Thanks in advance.

I ran into a similar issue and what worked for me was to add hostAliases with hostnames that I was publicly exposing, in th YAML defining the pod. Also the certificate provided needed to include the hostnames for the SNI entries.

Related

Puppeteer core not executing chromium binary from #sparticuz/chrome-aws-lambda

Trying to run puppeteer-core & #sparticuz/chrome-aws-lambda on a lambda function.
Error: Failed to launch the browser process!\n/tmp/chromium: /tmp/chromium: cannot execute binary file\n\n\nTROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md\n\n at onClose (/var/task/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:248:20)\n at Interface. (/var/task/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:238:68)\n at Interface.emit (node:events:539:35)\n at Interface.emit (node:domain:475:12)\n at Interface.close (node:readline:586:8)\n at Socket.onend (node:readline:277:10)\n at Socket.emit (node:events:539:35)\n at Socket.emit (node:domain:475:12)\n at endReadableNT (node:internal/streams/readable:1345:12)\n

Apache Camel returns NullPointerException when calling CXF Endpoint. This is failing after upgrading camel from 2.X to 3.0

I have a CXFEndpoint as below
CxfEndpoint cxfEndpoint =new CxfEndpoint();
cxfEndpoint.setAddress("http://localhost:9201/mock");
cxfEndpoint.setDataFormat(DataFormat.CXF_MESSAGE);
cxfEndpoint.setWsdlURL(serviceSoapOutboundWsdl);
cxfEndpoint.setContinuationTimeout(continutionTimeout);
cxfEndpoint.getOutFaultInterceptors().add(postOutFaultInterceptor);
.....
.....
exchange.setProperty("cxfEndpoint", cxfEndpoint);
I call this endpoint from my route builder as below
.toD("${exchangeProperty.cxfEndpoint}")
I am getting following exception
Exception occured while sending outbound message to Receiver::: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: http://localhost:9201/mock. Reason: java.lang.NullPointerException
at org.apache.camel.impl.engine.DefaultProducerCache.acquireProducer(DefaultProducerCache.java:139)
at org.apache.camel.impl.engine.DefaultProducerCache.doInAsyncProducer(DefaultProducerCache.java:264)
at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:151)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:228)
at org.apache.camel.processor.TryProcessor$TryState.run(TryProcessor.java:95)
at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:185)
at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:59)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:87)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:228)
at org.apache.camel.component.cxf.CxfConsumer$CxfConsumerInvoker.asyncInvoke(CxfConsumer.java:182)
at org.apache.camel.component.cxf.CxfConsumer$CxfConsumerInvoker.invoke(CxfConsumer.java:158)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:247)
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:79)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1296)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:190)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1211)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:386)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:562)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:378)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at org.apache.camel.impl.engine.ServicePool$SinglePool.acquire(ServicePool.java:234)
at org.apache.camel.impl.engine.ServicePool$SinglePool.acquire(ServicePool.java:220)
at org.apache.camel.impl.engine.ServicePool.acquire(ServicePool.java:111)
at org.apache.camel.impl.engine.DefaultProducerCache.acquireProducer(DefaultProducerCache.java:112)
... 40 more
I am receiving this error after upgrading camel from 2.X to 3.0. Any inputs to solve this issue will be appreciated.

Unable to post jdbc kafka sink connector config using rest call

I created the distributed connect cluster using following file:
rest.host.name=localhost
rest.port=8083
rest.advertised.host.name=localhost
rest.advertised.port=8083
bootstrap.servers=kafka:9093
group.id=abc-connect-cluster-st
key.converter=io.confluent.connect.avro.AvroConverter
key.converter.schema.registry.url=https://sr:8081
value.converter=io.confluent.connect.avro.AvroConverter
value.converter.schema.registry.url=https://sr:8081
key.converter.schemas.enable=true
value.converter.schemas.enable=true
offset.storage.topic=abc-offset
config.storage.topic=abc-config
status.storage.topic=abc-storage
plugin.path=share/java
sasl.mechanism=SCRAM-SHA-256
security.protocol=SASL_SSL
ssl.truststore.location=/etc/kafka/secrets/kafka.truststore.jks
ssl.truststore.password=changeit
ssl.keystore.location=/etc/kafka/secrets/kafka.keystore.jks
ssl.keystore.password=changeit
ssl.key.password=changeit
sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required \
username="user" \
password="password";
consumer.ssl.truststore.location=/etc/kafka/secrets/kafka.truststore.jks
consumer.ssl.truststore.password=changeit
consumer.ssl.keystore.location=/etc/kafka/secrets/kafka.keystore.jks
consumer.ssl.keystore.password=changeit
consumer.ssl.key.password=changeit
consumer.sasl.mechanism=SCRAM-SHA-256
consumer.security.protocol=SASL_SSL
consumer.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required \
username="user" \
password="password";
schema.registry.ssl.truststore.location=/etc/kafka/secrets/kafka.truststore.jks
schema.registry.ssl.truststore.password=changeit
schema.registry.ssl.keystore.location=/etc/kafka/secrets/kafka.keystore.jks
schema.registry.ssl.keystore.password=changeit
schema.registry.ssl.key.password=changeit
schema.registry.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required \
username="user" \
password="password";
schema.registry.sasl.mechanism=SCRAM-SHA-256
schema.registry.security.protocol=SASL_SSL
when it run it using : connect-distributed ./etc/kafka/connect-distributed.properties i get following logs:
[2020-03-19 19:07:02,990] INFO [Worker clientId=connect-1, groupId=abc-connect-cluster-st] Joined group at generation 19 with protocol version 2 and got assignment: Assignment{error=0, leader='connect-1-daa61c76-fbb0-4696-89c5-8a63695b3c34', leaderUrl='http://localhost:8083/', offset=-1, connectorIds=[], taskIds=[], revokedConnectorIds=[], revokedTaskIds=[], delay=0} with rebalance delay: 0 (org.apache.kafka.connect.runtime.distributed.DistributedHerder:1540)
[2020-03-19 19:07:02,990] INFO [Worker clientId=connect-1, groupId=abc-connect-cluster-st] Starting connectors and tasks using config offset -1 (org.apache.kafka.connect.runtime.distributed.DistributedHerder:1104)
[2020-03-19 19:07:02,990] INFO [Worker clientId=connect-1, groupId=abc-connect-cluster-st] Finished starting connectors and tasks (org.apache.kafka.connect.runtime.distributed.DistributedHerder:1125)
which indicates my connect cluster is working at http://localhost:8083/
Next I post my mysql sink connector config:
{
"name": "abc-sink-connect-st",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"tasks.max": "1",
"topics": "topic",
"connection.url": "jdbc:mysql://localhost:3306/abc_db",
"connection.user": "root",
"connection.password": "password",
"auto.create": "true",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "https://sr:8081",
"value.converter.schema.registry.url": "https://sr:8081",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.ssl.truststore.location": "/etc/kafka/secrets/kafka.truststore.jks",
"value.converter.schema.registry.ssl.truststore.password": "changeit",
"value.converter.schema.registry.ssl.keystore.location": "/etc/kafka/secrets/kafka.keystore.jks",
"value.converter.schema.registry.ssl.keystore.password": "changeit",
"key.converter.schema.registry.ssl.truststore.location": "/etc/kafka/secrets/kafka.truststore.jks",
"key.converter.schema.registry.ssl.truststore.password": "changeit",
"key.converter.schema.registry.ssl.keystore.location": "/etc/kafka/secrets/kafka.keystore.jks",
"key.converter.schema.registry.ssl.keystore.password": "changeit",
"insert.mode": "insert"
}
}
I get a 201 HTTP response with output:
{
"name": "abc-sink-connect-st",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"tasks.max": "1",
"topics": "topic",
"connection.url": "jdbc:mysql://localhost:3306/abc_db",
"connection.user": "root",
"connection.password": "password",
"auto.create": "true",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "https://sr:8081",
"value.converter.schema.registry.url": "https://sr:8081",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.ssl.truststore.location": "/etc/kafka/secrets/kafka.truststore.jks",
"value.converter.schema.registry.ssl.truststore.password": "changeit",
"value.converter.schema.registry.ssl.keystore.location": "/etc/kafka/secrets/kafka.keystore.jks",
"value.converter.schema.registry.ssl.keystore.password": "changeit",
"key.converter.schema.registry.ssl.truststore.location": "/etc/kafka/secrets/kafka.truststore.jks",
"key.converter.schema.registry.ssl.truststore.password": "changeit",
"key.converter.schema.registry.ssl.keystore.location": "/etc/kafka/secrets/kafka.keystore.jks",
"key.converter.schema.registry.ssl.keystore.password": "changeit",
"insert.mode": "insert"
},
"tasks": [],
"type": "sink"
}
but nothing in the logs other than:
[2020-03-19 19:09:14,268] INFO AbstractConfig values:
(org.apache.kafka.common.config.AbstractConfig:347)
http://localhost:8083/connectors/ says []
No connectors were configured.
Can anybody please help me understand why am I not able to post the jdbc sink connector configuration when the exactly same setup works for standalone connect along with sink.properties file.
Thanks in advance.
I updated log level from INFO to DEBUG and when I post my json i still get the response 201 but i found following exceptions in the logs:
DEBUG SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OPEN,fill=FI,flush=-,to=30004/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=START,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} idle timeout check, elapsed: 30004 ms, remaining: -4 ms (org.eclipse.jetty.io.IdleTimeout:161)
[2020-04-08 11:45:24,432] DEBUG SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OPEN,fill=FI,flush=-,to=30004/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=START,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} idle timeout expired (org.eclipse.jetty.io.IdleTimeout:168)
[2020-04-08 11:45:24,433] DEBUG onFail FillInterest#2fa1a47e{AC.ReadCB#428dc26b{HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OPEN,fill=FI,flush=-,to=30005/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=START,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0}}} (org.eclipse.jetty.io.FillInterest:134)
java.util.concurrent.TimeoutException: Idle timeout expired: 30004/30000 ms
at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:171)
at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
[2020-04-08 11:45:24,435] DEBUG close HttpParser{s=START,0 of -1} (org.eclipse.jetty.http.HttpParser:1804)
[2020-04-08 11:45:24,435] DEBUG START --> CLOSE (org.eclipse.jetty.http.HttpParser:1832)
[2020-04-08 11:45:24,435] DEBUG HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OPEN,fill=-,flush=-,to=30007/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} onFillInterestedFailed {} (org.eclipse.jetty.io.AbstractConnection:167)
[2020-04-08 11:45:24,436] DEBUG shutdownOutput SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OPEN,fill=-,flush=-,to=30007/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractEndPoint:120)
[2020-04-08 11:45:24,436] DEBUG fillInterested HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=-,flush=-,to=30008/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractConnection:133)
[2020-04-08 11:45:24,436] DEBUG interested FillInterest#2fa1a47e{AC.ReadCB#428dc26b{HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0}}} (org.eclipse.jetty.io.FillInterest:79)
[2020-04-08 11:45:24,436] DEBUG Selector sun.nio.ch.KQueueSelectorImpl#3ed14ffe woken up from select, 1/1/1 selected (org.eclipse.jetty.io.ManagedSelector:479)
[2020-04-08 11:45:24,436] DEBUG changeInterests p=false 1->1 for SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.ChannelEndPoint:418)
[2020-04-08 11:45:24,437] DEBUG Queued change org.eclipse.jetty.io.ChannelEndPoint$1#52be2f8a on ManagedSelector#58f50dd0{STARTED} id=1 keys=1 selected=1 updates=0 (org.eclipse.jetty.io.ManagedSelector:162)
[2020-04-08 11:45:24,436] DEBUG Selector sun.nio.ch.KQueueSelectorImpl#3ed14ffe processing 1 keys, 0 updates (org.eclipse.jetty.io.ManagedSelector:492)
[2020-04-08 11:45:24,437] DEBUG ignored: WriteFlusher#3a9f0554{IDLE}->null (org.eclipse.jetty.io.WriteFlusher:490)
java.util.concurrent.TimeoutException: Idle timeout expired: 30004/30000 ms
at org.eclipse.jetty.io.IdleTimeout.checkIdleTimeout(IdleTimeout.java:171)
at org.eclipse.jetty.io.IdleTimeout.idleCheck(IdleTimeout.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
[2020-04-08 11:45:24,437] DEBUG selected 1 channel=java.nio.channels.SocketChannel[connected oshut local=/127.0.0.1:8083 remote=/127.0.0.1:56089], selector=sun.nio.ch.KQueueSelectorImpl#3ed14ffe, interestOps=1, readyOps=1 SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.ManagedSelector:521)
[2020-04-08 11:45:24,471] DEBUG Ignored idle endpoint SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=34/30000}{io=1/1,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractEndPoint:420)
[2020-04-08 11:45:24,471] DEBUG onSelected 1->0 r=true w=false for SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=34/30000}{io=1/0,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.ChannelEndPoint:344)
[2020-04-08 11:45:24,471] DEBUG task CEP:SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/0,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0}:runFillable:BLOCKING (org.eclipse.jetty.io.ChannelEndPoint:356)
[2020-04-08 11:45:24,472] DEBUG ReservedThreadExecutor#1fb71788{s=1/12,p=0} tryExecute EatWhatYouKill#5daad59a/SelectorProducer#5256fbc/PRODUCING/p=false/QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=9<=200,i=1,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=1/12,p=0}][pc=0,pic=0,pec=1,epc=1]#2020-04-08T11:45:24.472168+02:00 (org.eclipse.jetty.util.thread.ReservedThreadExecutor:191)
[2020-04-08 11:45:24,472] DEBUG ReservedThreadExecutor#1fb71788{s=0/12,p=0}#11045320 offer EatWhatYouKill#5daad59a/SelectorProducer#5256fbc/PRODUCING/p=false/QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=9<=200,i=1,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=0/12,p=0}][pc=0,pic=0,pec=1,epc=1]#2020-04-08T11:45:24.472492+02:00 (org.eclipse.jetty.util.thread.ReservedThreadExecutor:260)
[2020-04-08 11:45:24,472] DEBUG ReservedThreadExecutor#1fb71788{s=0/12,p=1} startReservedThread p=1 (org.eclipse.jetty.util.thread.ReservedThreadExecutor:227)
[2020-04-08 11:45:24,472] DEBUG queue ReservedThreadExecutor#1fb71788{s=0/12,p=1}#7e0c212c startThread=false (org.eclipse.jetty.util.thread.QueuedThreadPool:521)
[2020-04-08 11:45:24,472] DEBUG run ReservedThreadExecutor#1fb71788{s=0/12,p=1}#7e0c212c in QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=9<=200,i=0,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=0/12,p=1}] (org.eclipse.jetty.util.thread.QueuedThreadPool:917)
[2020-04-08 11:45:24,473] DEBUG ReservedThreadExecutor#1fb71788{s=1/12,p=1}#7e0c212c started (org.eclipse.jetty.util.thread.ReservedThreadExecutor:348)
[2020-04-08 11:45:24,473] DEBUG EatWhatYouKill#5daad59a/SelectorProducer#5256fbc/IDLE/p=true/QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=9<=200,i=0,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=0/12,p=1}][pc=0,pic=0,pec=1,epc=1]#2020-04-08T11:45:24.473095+02:00 m=EXECUTE_PRODUCE_CONSUME t=CEP:SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=1/30000}{io=1/0,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0}:runFillable:BLOCKING/BLOCKING (org.eclipse.jetty.util.thread.strategy.EatWhatYouKill:291)
[2020-04-08 11:45:24,473] DEBUG ReservedThreadExecutor#1fb71788{s=0/12,p=1}#11045320 task=EatWhatYouKill#5daad59a/SelectorProducer#5256fbc/IDLE/p=true/QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=9<=200,i=0,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=1/12,p=1}][pc=0,pic=0,pec=1,epc=1]#2020-04-08T11:45:24.473274+02:00 (org.eclipse.jetty.util.thread.ReservedThreadExecutor:318)
[2020-04-08 11:45:24,473] DEBUG ReservedThreadExecutor#1fb71788{s=1/12,p=0}#7e0c212c waiting (org.eclipse.jetty.util.thread.ReservedThreadExecutor:277)
[2020-04-08 11:45:24,473] DEBUG EatWhatYouKill#5daad59a/SelectorProducer#5256fbc/IDLE/p=true/QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=9<=200,i=0,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=1/12,p=0}][pc=0,pic=0,pec=1,epc=2]#2020-04-08T11:45:24.473717+02:00 tryProduce true (org.eclipse.jetty.util.thread.strategy.EatWhatYouKill:141)
[2020-04-08 11:45:24,473] DEBUG updateable 1 (org.eclipse.jetty.io.ManagedSelector:418)
[2020-04-08 11:45:24,473] DEBUG fillable FillInterest#2fa1a47e{AC.ReadCB#428dc26b{HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=FI,flush=-,to=1/30000}{io=1/0,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0}}} (org.eclipse.jetty.io.FillInterest:99)
[2020-04-08 11:45:24,474] DEBUG update org.eclipse.jetty.io.ChannelEndPoint$1#52be2f8a (org.eclipse.jetty.io.ManagedSelector:427)
[2020-04-08 11:45:24,474] DEBUG HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=-,flush=-,to=2/30000}{io=1/0,kio=1,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} onFillable enter HttpChannelState#8db6297{s=IDLE a=NOT_ASYNC i=true r=IDLE w=false} null (org.eclipse.jetty.server.HttpConnection:243)
[2020-04-08 11:45:24,474] DEBUG Key interests updated 1 -> 0 on SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=-,flush=-,to=2/30000}{io=0/0,kio=0,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.ChannelEndPoint:384)
[2020-04-08 11:45:24,474] DEBUG updates 0 (org.eclipse.jetty.io.ManagedSelector:447)
[2020-04-08 11:45:24,474] DEBUG shutdownInput SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=-,flush=-,to=3/30000}{io=0/0,kio=0,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractEndPoint:66)
[2020-04-08 11:45:24,475] DEBUG Key interests updated 0 -> 0 on SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,OSHUT,fill=-,flush=-,to=3/30000}{io=0/0,kio=0,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.ChannelEndPoint:384)
[2020-04-08 11:45:24,475] DEBUG doClose SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=3/30000}{io=0/0,kio=0,kro=1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.ChannelEndPoint:194)
[2020-04-08 11:45:24,475] DEBUG Selector sun.nio.ch.KQueueSelectorImpl#3ed14ffe waiting with 1 keys (org.eclipse.jetty.io.ManagedSelector:465)
[2020-04-08 11:45:24,475] DEBUG ignored: WriteFlusher#3a9f0554{IDLE}->null (org.eclipse.jetty.io.WriteFlusher:490)
java.nio.channels.ClosedChannelException
at org.eclipse.jetty.io.WriteFlusher.onClose(WriteFlusher.java:521)
at org.eclipse.jetty.io.AbstractEndPoint.onClose(AbstractEndPoint.java:354)
at org.eclipse.jetty.io.ChannelEndPoint.onClose(ChannelEndPoint.java:214)
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:225)
at org.eclipse.jetty.io.AbstractEndPoint.shutdownInput(AbstractEndPoint.java:107)
at org.eclipse.jetty.io.ChannelEndPoint.fill(ChannelEndPoint.java:237)
at org.eclipse.jetty.server.HttpConnection.fillRequestBuffer(HttpConnection.java:341)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918)
at java.base/java.lang.Thread.run(Thread.java:834)
[2020-04-08 11:45:24,476] DEBUG onClose FillInterest#2fa1a47e{null} (org.eclipse.jetty.io.FillInterest:147)
[2020-04-08 11:45:24,476] DEBUG Wakeup ManagedSelector#58f50dd0{STARTED} id=1 keys=0 selected=0 updates=0 (org.eclipse.jetty.io.ManagedSelector:188)
[2020-04-08 11:45:24,476] DEBUG Selector sun.nio.ch.KQueueSelectorImpl#3ed14ffe woken with none selected (org.eclipse.jetty.io.ManagedSelector:470)
[2020-04-08 11:45:24,476] DEBUG queue org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint#7be31a92 startThread=true (org.eclipse.jetty.util.thread.QueuedThreadPool:521)
[2020-04-08 11:45:24,476] DEBUG Selector sun.nio.ch.KQueueSelectorImpl#3ed14ffe woken up from select, 0/0/0 selected (org.eclipse.jetty.io.ManagedSelector:479)
[2020-04-08 11:45:24,476] DEBUG Starting Thread[qtp292536990-301,5,main] (org.eclipse.jetty.util.thread.QueuedThreadPool:638)
[2020-04-08 11:45:24,476] DEBUG Selector sun.nio.ch.KQueueSelectorImpl#3ed14ffe processing 0 keys, 0 updates (org.eclipse.jetty.io.ManagedSelector:492)
[2020-04-08 11:45:24,477] DEBUG filled -1 HeapByteBuffer#75be409[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 201 Crea...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} (org.eclipse.jetty.io.ChannelEndPoint:250)
[2020-04-08 11:45:24,477] DEBUG Runner started for QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=10<=200,i=0,r=12,q=1}[ReservedThreadExecutor#1fb71788{s=1/12,p=0}] (org.eclipse.jetty.util.thread.QueuedThreadPool:858)
[2020-04-08 11:45:24,477] DEBUG updateable 0 (org.eclipse.jetty.io.ManagedSelector:418)
[2020-04-08 11:45:24,477] DEBUG run org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint#7be31a92 in QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=10<=200,i=0,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=1/12,p=0}] (org.eclipse.jetty.util.thread.QueuedThreadPool:917)
[2020-04-08 11:45:24,477] DEBUG atEOF HttpParser{s=CLOSE,0 of -1} (org.eclipse.jetty.http.HttpParser:1794)
[2020-04-08 11:45:24,477] DEBUG updates 0 (org.eclipse.jetty.io.ManagedSelector:447)
[2020-04-08 11:45:24,477] DEBUG Destroyed SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=6/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.ManagedSelector:954)
[2020-04-08 11:45:24,477] DEBUG HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=6/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} filled -1 HeapByteBuffer#75be409[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 201 Crea...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} (org.eclipse.jetty.server.HttpConnection:350)
[2020-04-08 11:45:24,478] DEBUG onClose HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=6/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractConnection:225)
[2020-04-08 11:45:24,478] DEBUG close SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=6/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractEndPoint:174)
[2020-04-08 11:45:24,477] DEBUG Selector sun.nio.ch.KQueueSelectorImpl#3ed14ffe waiting with 0 keys (org.eclipse.jetty.io.ManagedSelector:465)
[2020-04-08 11:45:24,478] DEBUG close(null) SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=6/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractEndPoint:181)
[2020-04-08 11:45:24,478] DEBUG ran org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint#7be31a92 in QueuedThreadPool[qtp292536990]#116fc29e{STARTED,8<=10<=200,i=0,r=12,q=0}[ReservedThreadExecutor#1fb71788{s=1/12,p=0}] (org.eclipse.jetty.util.thread.QueuedThreadPool:920)
[2020-04-08 11:45:24,478] DEBUG HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=7/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} parse HeapByteBuffer#75be409[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 201 Crea...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} {} (org.eclipse.jetty.server.HttpConnection:367)
[2020-04-08 11:45:24,479] DEBUG parseNext s=CLOSE HeapByteBuffer#75be409[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 201 Crea...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} (org.eclipse.jetty.http.HttpParser:1450)
[2020-04-08 11:45:24,479] DEBUG CLOSE --> CLOSED (org.eclipse.jetty.http.HttpParser:1832)
[2020-04-08 11:45:24,479] DEBUG HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=7/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSED,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} parsed false HttpParser{s=CLOSED,0 of -1} (org.eclipse.jetty.server.HttpConnection:372)
[2020-04-08 11:45:24,479] DEBUG releaseRequestBuffer HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=7/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSED,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.server.HttpConnection:220)
[2020-04-08 11:45:24,479] DEBUG shutdownOutput SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=8/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSED,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} (org.eclipse.jetty.io.AbstractEndPoint:120)
[2020-04-08 11:45:24,479] DEBUG HttpConnection#428dc26b::SocketChannelEndPoint#4ce7f469{/127.0.0.1:56089<->/127.0.0.1:8083,CLOSED,fill=-,flush=-,to=8/30000}{io=0/0,kio=-1,kro=-1}->HttpConnection#428dc26b[p=HttpParser{s=CLOSED,0 of -1},g=HttpGenerator#68ce7c2a{s=START}]=>HttpChannelOverHttp#b64c223{r=2,c=false,c=false/false,a=IDLE,uri=null,age=0} onFillable exit HttpChannelState#8db6297{s=IDLE a=NOT_ASYNC i=true r=IDLE w=false} null (org.eclipse.jetty.server.HttpConnection:301)

CAS: Content encryption header (enc) not set

I got this exception when I tried to log in. As you can see i successfully got the ticket granting ticket. However, for somereason I get the "CAS is Unavailable" screen. Down in the stack trace I can see org.jose4j.lang.InvalidAlgorithmException: Content encryption header (enc) not set. Which might be the root problem, but I can't really find a good solution for that.
2016-09-16 10:21:13,868 INFO [org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit trail record BEGIN
=============================================================
WHO: audit:unknown
WHAT: TGT-**********************************************glwdSALMyP-cas01.example.org
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Fri Sep 16 10:21:13 CEST 2016
CLIENT IP ADDRESS: 0:0:0:0:0:0:0:1
SERVER IP ADDRESS: 0:0:0:0:0:0:0:1
=============================================================
2016-09-16 10:21:13,868 DEBUG [org.jasig.cas.web.support.WebUtils] - Evaluating request to determine if warning cookie should be generated
2016-09-16 10:21:13,868 DEBUG [org.jasig.cas.web.WarningCookieRetrievingCookieGenerator] - Removed cookie with name [CASPRIVACY]
2016-09-16 10:21:13,868 DEBUG [org.jasig.cas.web.support.DefaultCasCookieValueManager] - Encoding cookie value [TGT-**********************************************glwdSALMyP-cas01.example.org#0:0:0:0:0:0:0:1#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0]
2016-09-16 10:21:13,884 DEBUG [org.jasig.cas.util.DefaultCipherExecutor] - Encrypting via [null]
2016-09-16 10:21:14,055 DEBUG [org.jasig.cas.web.FlowExecutionExceptionResolver] - Ignoring the received exception due to a type mismatch
org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing org.jasig.cas.web.flow.SendTicketGrantingTicketAction#53e9a90f in state 'sendTicketGrantingTicket' of flow 'login' -- action execution attributes were 'map[[empty]]'
at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)
at org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:77)
at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
at org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:228)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:116)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:390)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:228)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:116)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:390)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:231)
at org.springframework.webflow.engine.ViewState.resume(ViewState.java:195)
at org.springframework.webflow.engine.Flow.resume(Flow.java:537)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:228)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jasig.cas.security.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:227)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jasig.cas.security.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:250)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jasig.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:279)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Ensure that you have installed JCE Unlimited Strength Jurisdiction Policy Files. Content encryption header (enc) not set.
at org.jasig.cas.util.DefaultCipherExecutor.encryptValue(DefaultCipherExecutor.java:135)
at org.jasig.cas.util.DefaultCipherExecutor.encode_aroundBody0(DefaultCipherExecutor.java:86)
at org.jasig.cas.util.DefaultCipherExecutor$AjcClosure1.run(DefaultCipherExecutor.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
at org.jasig.cas.util.DefaultCipherExecutor.encode(DefaultCipherExecutor.java:85)
at org.jasig.cas.util.DefaultCipherExecutor.encode(DefaultCipherExecutor.java:1)
at org.jasig.cas.web.support.DefaultCasCookieValueManager.buildCookieValue_aroundBody0(DefaultCasCookieValueManager.java:72)
at org.jasig.cas.web.support.DefaultCasCookieValueManager$AjcClosure1.run(DefaultCasCookieValueManager.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
at org.jasig.cas.web.support.DefaultCasCookieValueManager.buildCookieValue(DefaultCasCookieValueManager.java:53)
at org.jasig.cas.web.support.CookieRetrievingCookieGenerator.addCookie_aroundBody0(CookieRetrievingCookieGenerator.java:67)
at org.jasig.cas.web.support.CookieRetrievingCookieGenerator$AjcClosure1.run(CookieRetrievingCookieGenerator.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
at org.jasig.cas.web.support.CookieRetrievingCookieGenerator.addCookie(CookieRetrievingCookieGenerator.java:66)
at org.jasig.cas.web.flow.SendTicketGrantingTicketAction.doExecute(SendTicketGrantingTicketAction.java:85)
at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
... 74 more
Caused by: org.jose4j.lang.InvalidAlgorithmException: Content encryption header (enc) not set.
at org.jose4j.jwe.JsonWebEncryption.getContentEncryptionAlgorithm(JsonWebEncryption.java:131)
at org.jose4j.jwe.JsonWebEncryption.getCompactSerialization(JsonWebEncryption.java:242)
at org.jasig.cas.util.DefaultCipherExecutor.encryptValue(DefaultCipherExecutor.java:133)
... 93 more
Turns out you have to add keys in the cas.properties for the TGC encryption:
# The encryption secret key. By default, must be a octet string of size 256.
tgc.encryption.key=***
# The signing secret key. By default, must be a octet string of size 512.
tgc.signing.key=***
In order to get keys use this tool.
Here is the reference in the CAS 4.2.x documentation.
It mentioned that the CAS server will automatically generate keys for the TGC if not set before, but I couldn't find them in my console so I used the mentioned tool. Don't forget to choose oct as the key type.

Facing issue while sending mail in gmail mule esb

When i tried to send mail in gmail i got following error. In gmail global connector i add fromAddress,replyToAddress and all....
********************************************************************************
WARN 2015-02-10 10:58:28,526 [[mailexample].connector.http.mule.default.receiver.02] org.mule.api.security.tls.TlsProperties: File tls-default.conf not found, using default configuration.
INFO 2015-02-10 10:58:31,354 [[mailexample].connector.http.mule.default.receiver.02] org.mule.api.security.tls.TlsPropertiesMapper: Defaulting mule.email.smtps trust store to client Key Store
WARN 2015-02-10 10:58:31,355 [[mailexample].connector.http.mule.default.receiver.02] org.mule.api.security.tls.TlsProperties: File tls-default.conf not found, using default configuration.
ERROR 2015-02-10 10:58:33,485 [[mailexample].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy:
********************************************************************************
Message : Unable to connect to mail transport.
Code : MULE_ERROR--2
--------------------------------------------------------------------------------
Exception stack is:
1. 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbuRg
534-5.7.14 yGa3WdTfxBAchlMvo6NtJgJK6JL823P9UTvFhfcpUfm5tgTi4Zzdsm1J9NfGCqjG4iAvCi
534-5.7.14 6BRop8ALCvZUrZ1sa9ICkR_u-WykguB7aGSc5jLH5mH1FGGlkusqWnqTyvE-AhRNcJo-PQ
534-5.7.14 rH1WuTiUITDEFdAlfy19PaiFDED6aos2shRxO4-jdEHzGGUTmgFXWUthbF5nSKBPq76Eb5
534-5.7.14 s5b7LbA> Please log in via your web browser and then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 c17sm18040119pdl.6 - gsmtp
(javax.mail.AuthenticationFailedException)
com.sun.mail.smtp.SMTPTransport$Authenticator:648 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/mail/AuthenticationFailedException.html)
2. Unable to connect to mail transport. (org.mule.api.endpoint.EndpointException)
org.mule.transport.email.SmtpMessageDispatcher:67 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/endpoint/EndpointException.html)
In browser i got following error
Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=smtp://<emailaddress>%40gmail.com:<password>#smtp.gmail.com, connector=GmailSmtpConnector
{
name=smtpGmailConnector
lifecycle=start
this=103a0ec
numberOfConcurrentTransactedReceivers=4
createMultipleTransactedReceivers=true
connected=true
supportedProtocols=[smtp]
serviceOverrides=<none>
}
, name='endpoint.smtp.emailaddress.gmail.com', mep=ONE_WAY, properties={toAddresses=to_emailaddress#gmail.com, subject=Test email message, fromAddress=emailaddress}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: MimeMessage
following is my flow
<smtp:gmail-connector name="emailConnector" />
<flow name="mailTestFlow1" doc:name="mailTestFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"
path="sendMail"/>
<component doc:name="Java" class="Component1"/>
<smtp:outbound-endpoint host="smtp.gmail.com" port="587"
user="yourEmailAddress%40gmail.com" password="pass" to="javaroots#gmail.com"
from="yourEmailAddress%40gmail.com" subject="Testing mule" responseTimeout="10000" connector-ref="gmail" doc:name="Send notification email"/>
</flow>
Now,What changes i have to do??
can you please check below conditions in the smtp endpoint
if the password contains any character that can be decoded, then specify the decoded password.
test by giving from address with out #gmail.com
3.Specify the <email:string-to-email-transformer/> transformer
<smtp:outbound-endpoint ...... doc:name="email-notification">
<email:string-to-email-transformer/>
</smtp:outbound-endpoint>
Hope this helps.
According to the doc, the GMail connector needs to be configured with non-escaped # signs:
<smtp:gmail-connector name="smtpGmailConnector"
bccAddresses="abc#example.com" ccAddresses="bcd#example.com"
contentType="foo/bar" fromAddress="cde#example.com"
replyToAddresses="def#example.com" subject="subject">
You are using connector-ref="gmail". Try using connector-ref="emailConnector" instead, It should work.
I got the following configuration running:
<smtp:gmail-connector name="GmailConnector" contentType="text/html" validateConnections="true" doc:name="Gmail"/>
...
<smtp:outbound-endpoint host="smtp.gmail.com" port="587" user="${smtp.user}" password="${smtp.password}" connector-ref="GmailConnector" to="${smtp.to}" subject="${smtp.subject}" responseTimeout="10000" doc:name="SMTP"/>
The config.properties file contains:
#
# SMTP Configuration
#
smtp.user=focadiz
smtp.password=xXxXxXxXxX
smtp.to=email#domain.com
smtp.subject=Mule Notification