Skip to content
This repository was archived by the owner on Feb 24, 2022. It is now read-only.
This repository was archived by the owner on Feb 24, 2022. It is now read-only.

Hanging on glassfish, but not Tomcat #139

@adprocas

Description

@adprocas

Hey,

I have a sample app working on Tomcat, but it is failing on Glassfish. In particular, it's hanging.

I can't find anything that seems to be related in the logs.

It seems to be looping and retrying. I've tried different timeouts and retry settings, but it doesn't seem to change anything.

When I step into something that starts the ETCD connection, like the following, I can't seem to find out exactly where the issue is. I don't see it looping anywhere.

EtcdHealthResponse health = client.getHealth();

Here's the code I am using for my connection. Again, this works on tomcat just fine. It's just Glassfish that is blowing up. They're both using the same version of Java - Java 1.8.

File pemFile = new File(this.getClass().getResource("/cacert.pem").toURI());
                SslContext sslContext = SslContextBuilder.forClient().trustManager(pemFile).build();

                client = new EtcdClient(sslContext,"user", "pass", URI.create("https://my.url.yo:2379")).setRetryHandler(new RetryNTimes(200, 2)); //NOSONAR

Of course, that's wrapped in a try catch. An exception is never caught, so I'm not sure what is going on. It just hangs and the page never loads. It seems to use up like every Glassfish resource.

Also, this is for Glassfish 4.1.1 and 4.1.0.

I also have the following versions of required libraries

        <dependency org="org.mousio" name="etcd4j" rev="2.13.0" conf="core->default"/>
        <dependency org="io.netty" name="netty-all" rev="4.1.7.Final" conf="core->default"/>
        <dependency org="com.fasterxml.jackson.core" name="jackson-core" rev="2.8.6" conf="core->default"/>
        <dependency org="com.fasterxml.jackson.core" name="jackson-databind" rev="2.8.6" conf="core->default"/>
        <dependency org="com.fasterxml.jackson.core" name="jackson-annotations" rev="2.8.6" conf="core->default"/>
        <dependency org="com.fasterxml.jackson.module" name="jackson-module-afterburner" rev="2.8.6" conf="core->default"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions