OIDC Server is not available:: java.io.EOFException: not enough content

Solution Verified - Updated -

Issue

  • During the integration of a CEQ application with RHBK on RHOCP, using Quarkus OIDC, the following problem occurs:

    WARN  | io.qua.oid.com.run.OidcCommonUtils | vert.x-eventloop-thread-1 | camelcontext:  | flowId:  | route:  | breadcrumbId:  | boCode:  | boId:  | flowMode:  | partner:  | partnerMessageId:  | properties:  | log: OIDC Server is not available:: java.io.EOFException: not enough content
        at java.base/sun.security.util.DerValue.<init>(DerValue.java:429)
        at java.base/sun.security.util.DerInputStream.getDerValue(DerInputStream.java:110)
        at java.base/sun.security.util.DerInputStream.getOptional(DerInputStream.java:351)
        at java.base/com.sun.crypto.provider.PBES2Parameters.parseKDF(PBES2Parameters.java:298)
        at java.base/com.sun.crypto.provider.PBES2Parameters.engineInit(PBES2Parameters.java:234)
        at java.base/java.security.AlgorithmParameters.init(AlgorithmParameters.java:311)
        at java.base/sun.security.x509.AlgorithmId.decodeParams(AlgorithmId.java:149)
        at java.base/sun.security.x509.AlgorithmId.<init>(AlgorithmId.java:131)
        at java.base/sun.security.x509.AlgorithmId.parse(AlgorithmId.java:416)
        at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2052)
        at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:228)
        at java.base/java.security.KeyStore.load(KeyStore.java:1500)
        at io.vertx.core.net.impl.KeyStoreHelper.loadKeyStore(KeyStoreHelper.java:266)
        at io.vertx.core.net.KeyStoreOptionsBase.getHelper(KeyStoreOptionsBase.java:188)
        at io.vertx.core.net.KeyStoreOptionsBase.getTrustManagerFactory(KeyStoreOptionsBase.java:224)
        at io.vertx.core.net.impl.SSLHelper.lambda$build$6(SSLHelper.java:291)
        at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$5(ContextImpl.java:205)
        at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:270)
        at io.vertx.core.impl.ContextImpl$1.execute(ContextImpl.java:221)
        at io.vertx.core.impl.WorkerTask.run(WorkerTask.java:56)
        at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:81)
        at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
        at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1495)
        at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:11)
        at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:11)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:1583)
    

Environment

  • Red Hat build of Apache Camel for Quarkus (CEQ) 3.15.4
  • Red Hat Build Of Keycloak (RHBK) 26
  • Red Hat OpenShift Container Platform (RHOCP) 4.15

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content