Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] jetty-dev Digest, Vol 145, Issue 1

Hi,

On Thu, Mar 4, 2021 at 3:40 AM Prakash Nandihal <p.nandihal@xxxxxxxxx> wrote:
>
> Hi Simone Bordet,
>
> We have below libraries in WEB-INF/lib
>
> jetty-alpn-openjdk8-client-9.4.35.v20201120.jar
> jetty-alpn-client-9.4.35.v20201120.jar
> jetty-client-9.4.35.v20201120.jar
> jetty-http-9.4.35.v20201120.jar
> jetty-io-9.4.35.v20201120.jar
> jetty-util-9.4.35.v20201120.jar
> http2-http-client-transport-9.4.35.v20201120.jar
> http2-hpack-9.4.35.v20201120.jar
> http2-client-9.4.35.v20201120.jar
> http2-common-9.4.35.v20201120.jar
>
> This exception (java.lang.IllegalStateException: No Client ALPNProcessors! ) happening only when i invoke http2 post request
> from JMS Consumer thread.  We use IBM MQ, once message is consumed from Queue , using the same consumer thread
> we are making an http2 post request using jetty library.
>
> I debugged and found that ServiceLoader.load() is not loading this service org.eclipse.jetty.alpn.openjdk8.client.OpenJDK8ClientALPNProcessor
> eventhough jetty-alpn-openjdk8-client-9.4.35.v20201120.jar is in WEB-INF/lib.
>
> JMS Consumer thread is using java.net.URLClassLoader@49e202ad . Please let us know what could be the root cause for this issue.

Could be that the JMS consumer thread does not set properly the thread
context classloader.

Try to set it manually before you make the HTTP/2 call, setting it to
the web application classloader.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top