Hello!
I have a sitemapitem with the name 'login' and
componentconfigurationid of hst:pages/login. When I try to access this
page through the URL
http://localhost:8080/site/login it automatically
gets redirected to
https://localhost:8080/site/login. The browser
renders the following error:
Fout tijdens het verbinden met
localhost:8080. SSL ontving een record die de maximaal toegestane lengte
heeft overschreden. Foutcode: SSL_ERROR_RX_RECORD_TOO_LONG
Attempt to an english translation:
Error while establishing connection with localhost:8080. SSL recieved a record exceeding the maximum allowed length. Errorcode: SSL_ERROR_RX_RECORD_TOO_LONGIn addition I get the following stacktrace:
[INFO]
[talledLocalContainer] 27-Mar-2017 13:13:27.331 INFO
[http-nio-8080-exec-2]
org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing
HTTP request header
[INFO] [talledLocalContainer]
java.lang.IllegalArgumentException: Invalid character found in method
name. HTTP method names must be tokens
[INFO] [talledLocalContainer]
at
org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:232)
[INFO] [talledLocalContainer] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1013)
[INFO]
[talledLocalContainer] at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:745)
In production this page should off course be https, but I would like it to work locally as well. What to do?