tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Vomlel <jan.vom...@gmail.com>
Subject HTTPS Invalid character found in method name. HTTP method names must be tokens.
Date Wed, 13 Mar 2019 14:41:13 GMT
We use selenium for our application testing. Our tests sometime fail 
with message "Invalid character found in method name...." Error occures 
only on https and on on firefox 60 and internet explorer 11. Chrome, 
edge is OK.

We use Tomcat 9.0.16, Java 11 (Adopt Open JDK 11.0.2+9) on Linux, 
browsers are on windows 10.

We think, that there must be some error in https implementation. Log in 
these situations always contains request with application_data and 
change_cipher_spec together. But we do not understand https in these 
details.

Thanks for any advice, Jan Vomlel

javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.326 CET|SSLEngineInputRecord.java:177|Raw read (
   0000: 17 03 03 02 74 00 00 00   00 00 00 00 01 E5 6A 79 ....t.........jy
   0010: CF D2 7A 6E 53 FB B3 97   3B 82 92 E5 7B A8 A2 EA ..znS...;.......
   0020: 4B B5 70 11 DE CD 7E 8C   89 08 AD 67 47 82 E1 16 K.p........gG...
   0030: FE 09 9A 1B F6 77 6C 67   80 0E CA 5F 55 4E 2C 2D .....wlg..._UN,-
   0040: D8 7B D2 71 2E 66 B4 0A   DA 8D 8F 11 C6 C3 27 1B ...q.f........'.
   0050: 18 82 16 FE 82 7C 83 B4   3B 43 D8 81 71 9E 27 22 ........;C..q.'"
   0060: 76 50 EB C6 4C 11 C1 BE   01 8E B9 6A 3A 0B 6C 6F vP..L......j:.lo
   0070: 01 03 74 F1 C4 90 C7 52   A6 8D 4A A8 8D AC EF A0 ..t....R..J.....
   0080: 62 03 3D C7 6E F9 FB 39   C5 FA A6 95 FD 46 C3 51 b.=.n..9.....F.Q
   0090: FE 67 2E 76 44 7B B1 B6   8C 34 F4 30 EC 93 EC 1D .g.vD....4.0....
   00A0: A1 5B 01 2B C1 DA D3 AA   88 EC E8 31 66 5F 59 CA .[.+.......1f_Y.
   00B0: 38 9A 53 C5 89 31 FB FF   1D 59 6D 90 08 66 DB 6C 8.S..1...Ym..f.l
   00C0: 6F 4A 9C F7 3A BE D8 5D   5C 3C AA 3E 2B A5 A8 E2 oJ..:..]\<.>+...
   00D0: 54 50 65 7B 9A BA 92 71   0F 7B AA 58 DF B2 AC 3E TPe....q...X...>
   00E0: 5B 4E A1 29 9C F2 C6 1A   5E 6B 6A 85 19 DE 1C 73 [N.)....^kj....s
   00F0: EF D2 AC 06 48 50 8D DD   66 F7 78 87 50 00 28 26 ....HP..f.x.P.(&
   0100: FB A7 C1 87 30 67 5B FA   C8 B5 C7 41 4A 27 8E 6D ....0g[....AJ'.m
   0110: D8 99 89 BA 32 8A 94 7F   79 2D 66 53 8D F4 6E 82 ....2...y-fS..n.
   0120: 95 22 FF C6 E1 5E 8F B2   AA 44 25 33 14 F4 35 A1 ."...^...D%3..5.
   0130: 50 84 F5 EE 5D 66 B6 AC   5A 21 72 5B 56 A3 32 07 P...]f..Z!r[V.2.
   0140: 83 DF 3B A4 85 A9 3F E9   7B E6 4F 7C 73 F9 87 F5 ..;...?...O.s...
   0150: 16 83 E7 24 CD 50 41 F9   43 37 CD 9D DF BE 69 E4 ...$.PA.C7....i.
   0160: AE 2D 81 BC 24 81 04 42   72 CE AA 76 5D 63 B4 98 .-..$..Br..v]c..
   0170: A7 B4 AB 77 F2 6C 42 4A   75 04 06 BB 19 5A 19 A5 ...w.lBJu....Z..
   0180: CA E6 FE 04 61 8B 90 B4   E5 D1 B5 9D C1 49 27 5C ....a........I'\
   0190: 41 92 DE 7B 91 AB 7D 3B   21 B9 60 A5 A2 C7 92 19 A......;!.`.....
   01A0: 2F 3D 82 17 FB C0 20 7A   E6 79 7C B6 2E CD 50 A9  /=.... 
z.y....P.
   01B0: 6B 8E 7E 04 E9 32 EC 29   22 EC BB 58 C5 5F 8C A6 k....2.)"..X._..
   01C0: 1D 76 CB 4E 5A 56 C7 83   C2 74 AC D5 83 70 05 80 .v.NZV...t...p..
   01D0: 19 8B E8 CF 09 98 32 D1   8B 4A 93 7B 38 F0 8A 7B ......2..J..8...
   01E0: AB 88 D5 99 E3 42 76 1B   C9 EB 62 94 0C F6 DA EF .....Bv...b.....
   01F0: 9F 4D DB F0 30 CA 34 13   E7 1A 07 39 FD 92 F5 08 .M..0.4....9....
   0200: F4 E5 62 26 94 BF 3C 6A   82 4D 06 C8 96 57 12 F3 ..b&..<j.M...W..
   0210: 07 03 09 0B 04 F9 C6 0E   D2 AD 85 DC C4 09 2D 5A ..............-Z
   0220: 44 0D 37 42 57 44 C6 05   F6 F7 4E 9E A7 79 BC F3 D.7BWD....N..y..
   0230: 94 F5 67 96 B9 6C 2D 9E   E2 C4 77 23 11 20 F7 4A ..g..l-...w#. .J
   0240: AE 73 B3 28 20 C7 1F 92   99 C8 55 A3 18 24 85 54  .s.( 
.....U..$.T
   0250: 19 90 1F 24 73 91 A7 3F   15 BA 83 D3 39 03 8C 89 ...$s..?....9...
   0260: D5 70 72 97 AF 91 4B 11   3B 72 E4 91 B5 6D BC 29 .pr...K.;r...m.)
   0270: 51 C6 47 5C 73 58 84 A7   26 14 03 03 00 01 01 16 Q.G\sX..&.......
   0280: 03 03 00 28 00 00 00 00   00 00 00 00 17 E8 48 1B ...(..........H.
   0290: 07 8D 8A E9 98 CA 25 1F   AD D5 02 FC 0A C9 8E 4D ......%........M
   02A0: F6 C6 EA 2E D6 24 8C D0   11 DA 78 D3 .....$....x.
)
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.326 CET|SSLEngineInputRecord.java:214|READ: TLSv1.2 
application_data, length = 628
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.326 CET|SSLEngineInputRecord.java:177|Raw read (
   0000: 14 03 03 00 01 01 16 03   03 00 28 00 00 00 00 00 ..........(.....
   0010: 00 00 00 17 E8 48 1B 07   8D 8A E9 98 CA 25 1F AD .....H.......%..
   0020: D5 02 FC 0A C9 8E 4D F6   C6 EA 2E D6 24 8C D0 11 ......M.....$...
   0030: DA 78 D3                                          
.x.
)
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.326 CET|SSLEngineInputRecord.java:214|READ: TLSv1.2 
change_cipher_spec, length = 1
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.326 CET|ChangeCipherSpec.java:143|Consuming ChangeCipherSpec 
message
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.327 CET|SSLEngineInputRecord.java:177|Raw read (
   0000: 16 03 03 00 28 00 00 00   00 00 00 00 00 17 E8 48 ....(..........H
   0010: 1B 07 8D 8A E9 98 CA 25   1F AD D5 02 FC 0A C9 8E .......%........
   0020: 4D F6 C6 EA 2E D6 24 8C   D0 11 DA 78 D3 M.....$....x.
)
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.327 CET|SSLEngineInputRecord.java:214|READ: TLSv1.2 handshake, 
length = 40
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.327 CET|SSLCipher.java:1629|Plaintext after DECRYPTION (
   0000: 14 00 00 0C 0C 1D 2A A3   97 60 B3 E4 72 E3 31 10 ......*..`..r.1.
)
javax.net.ssl|DEBUG|37|https-jsse-nio-8444-exec-6|2019-02-27 
18:03:16.327 CET|Finished.java:581|Consuming client Finished handshake 
message (
"Finished": {
   "verify data": {
     0000: 0C 1D 2A A3 97 60 B3 E4   72 E3 31 10
   }'}
)
27-Feb-2019 18:03:16.328 INFO [https-jsse-nio-8444-exec-6] 
org.apache.coyote.http11.Http11Processor.service Error parsing HTTP 
request header
  Note: further occurrences of HTTP request parsing errors will be 
logged at DEBUG level.
  java.lang.IllegalArgumentException: Invalid character found in method 
name. HTTP method names must be tokens
     at 
org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:414)
     at 
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294)
     at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
     at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
     at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
     at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
     at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
     at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
     at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     at java.base/java.lang.Thread.run(Thread.java:834)


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message