Itiviti / simple-slack-api

(simple) Java Slack client library
470 stars 193 forks source link

Socket option not supported by PlainDatagramSocketImp #193

Open adriens opened 7 years ago

adriens commented 7 years ago

Hi,

i'm trying to embed slack features. My code locally runs with success (send messages) but as soon as i try to embed it (in Oracle), i get the following exception :

Jul 10, 2017 4:08:44 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://slack.com:443
Jul 10, 2017 4:08:44 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.SocketException) caught when processing request to
{s}->https://slack.com:443: Socket option not supported by
PlainDatagramSocketImp
L┐opÚration a rÚussi.
Jul 10, 2017 4:08:44 PM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://slack.com:443
Unable to send message : Socket option not supported by PlainDatagramSocketImp
L┐opÚration a rÚussi.
SQL> call dbms_java.set_output(1000000);

I've crawled a lot of posts around this in forums without any success.

I know this is not a bug of the api, but as you have coded the api, maybe could you have a workaround idea ?

Cheers, Adrien

adriens commented 7 years ago

As a depency i use :


<dependency>
            <groupId>org.glassfish.tyrus.bundles</groupId>
            <artifactId>tyrus-standalone-client</artifactId>
            <version>1.13.1</version>
</dependency>
adriens commented 7 years ago

I don't really have hop for this issue as it seems like the library strongly relies on sockets :cry:

cobr123 commented 6 years ago

recompiled my svnkit lib without socket.setKeepAlive(true) method of the connection, the more the error is not coming down. maybe there is the same problem.