Hello Alex,
the getConnection method has been renamed to "getSockectConnectionTimeOutMs"
by the release number 7068 (3 weeks ago, that is to say after 2.1 M2) :
Deprecated the Client#connectTimeout property as it is hard to find
compared to other connector parameters. Also, it isn't available for
all connectors so it can be confusing to expose it.
Use the "socketConnectTimeoutMs" connector parameter instead or
the "maxIoIdleTimeMs" parameter for internal NIO connectors.
I wonder if you are using parts of the framework from several releases which
can explain the mix. Can you confirm that?
Best regards,
Thierry Boileau
hi,
>
> something went very wrong...
>
> I try to connect to a restlet inside a Wicket application (if you don't
> know wicket: it is a web framework based on the Java Servlet API). I use
> HttpClientConnector to do so. There is a NoSuchMethodException (see below).
> To me, it seems very odd, because Method existance should be checked on
> compile time, shouldn't it?
> Are there any tips how to solve it? The problem appears with 2.1-M1,
> 2.1-M2 and 2.1-SNAPSHOT of the ClientConnector. The other restlet
> dependencies are 2.1-SNAPSHOT. The application server (with the wicket
> application on it) is jetty. Server side the jetty connector is used.
>
> Here is the error:
>
> java.lang.NoSuchMethodError:
> org.restlet.ext.httpclient.HttpClientHelper.getConnectTimeout()I
> at
>
> org.restlet.ext.httpclient.HttpClientHelper.configure(HttpClientHelper.java:226)
> at
>
> org.restlet.ext.httpclient.HttpClientHelper.start(HttpClientHelper.java:453)
> at org.restlet.Client.start(Client.java:246)
> at org.restlet.Restlet.handle(Restlet.java:225)
> at org.restlet.Client.handle(Client.java:176)
> at org.restlet.resource.ClientResource.handle(ClientResource.java:941)
> at org.restlet.resource.ClientResource.handle(ClientResource.java:909)
> at
> org.restlet.resource.ClientResource$1.invoke(ClientResource.java:1666)
>
> best regards,
> Alex
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2699954
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2699967