Skip to content

Commit 9b9958d

Browse files
authored
ring-jetty version update (#19)
1 parent dcad015 commit 9b9958d

File tree

3 files changed

+5
-37
lines changed

3 files changed

+5
-37
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here the list of libraries tested:
3232
| :x: | [monger](./monger) | An idiomatic Clojure MongoDB driver with sane defaults | |
3333
| :white_check_mark: | [next.jdbc + honeysql](./next-jdbc) | Database driver and SQL-in-Clojure | |
3434
| :warning: | [nippy](./nippy) | Clojure serialization/deserialization library | *Can't serialize exceptions* |
35-
| :x: | [ring/jetty](./ring-jetty) | Web server | *Runtime error* |
35+
| :white_check_mark: | [ring/jetty](./ring-jetty) | Web server | |
3636
| :white_check_mark: | [safely](./safely) | Circuit breaker | |
3737
| :white_check_mark: | [secure-random](./secure-random) | `SecureRandom` initialization | |
3838

ring-jetty/README.md

+2-34
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Testing whether [Ring](https://github.com/ring-clojure/ring) library can be used
66

77
Currently testing:
88

9-
[ring/ring-core "1.8.0"]
10-
[ring/ring-jetty-adapter "1.8.0"]
9+
[ring/ring-core "1.8.1"]
10+
[ring/ring-jetty-adapter "1.8.1"]
1111

1212
Test with:
1313

@@ -25,35 +25,3 @@ Server: Jetty(9.4.12.v20180830)
2525
2626
Hello GraalVM
2727
```
28-
29-
## Runtime failure
30-
31-
Currently using GraalVM 20, Ring-1.8.0 still getting a runtime error:
32-
33-
``` text
34-
2020-02-22 17:42:56.571:WARN:oejs.HttpChannel:qtp2084389003-28: /
35-
java.lang.IllegalArgumentException: No matching field found: getDispatcherType for class org.eclipse.jetty.server.Request
36-
at clojure.lang.Reflector.getInstanceField(Reflector.java:397)
37-
at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:440)
38-
at ring.adapter.jetty$proxy_handler$fn__410.invoke(jetty.clj:25)
39-
at ring.adapter.jetty.proxy$org.eclipse.jetty.server.handler.AbstractHandler$ff19274a.handle(Unknown Source)
40-
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
41-
at org.eclipse.jetty.server.Server.handle(Server.java:500)
42-
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:386)
43-
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:562)
44-
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:378)
45-
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
46-
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
47-
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
48-
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
49-
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
50-
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
51-
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
52-
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
53-
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)
54-
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
55-
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
56-
at java.lang.Thread.run(Thread.java:834)
57-
at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:527)
58-
at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:193)
59-
```

ring-jetty/project.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
(defproject ring-jetty "0.1.0-SNAPSHOT"
22

33
:dependencies [[org.clojure/clojure "1.10.1"]
4-
[ring/ring-core "1.8.0"]
5-
[ring/ring-jetty-adapter "1.8.0"]]
4+
[ring/ring-core "1.8.1"]
5+
[ring/ring-jetty-adapter "1.8.1"]]
66

77
:main simple.main
88

0 commit comments

Comments
 (0)