9 Replies Latest reply on Dec 29, 2017 9:01 PM by dshaykhutdinov RSS
    dshaykhutdinov Newbie

    Error parsing HTTP request by Thingworx on localhost

    Hi, i'm installed Thingworx on localhost - Apache 9.0 , jre1.8.0_111, Thingworx version 7.2.1 - all setting as manual in Installing_ThingWorx_7.1_1.pdf.


    1) Am i right when i wrote in apache server.xml file or not?

      <Connector executor="tomcatThreadPool"

                   port="80" protocol="HTTP/1.1"


                   redirectPort="8443" />


    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"

                maxThreads="200" scheme="https" secure="true" SSLEnabled="true"

               clientAuth="false" sslProtocol="TLS"/>


    2) I have a thing with the same properties and on thingworx.com my code work without problems, but on the localhost i can't take properties from my thing, in logs a have errors like


    [19/Jan/2017:19:38:07 +0300] "POST null null" 400 -

    [19/Jan/2017:19:38:09 +0300] "POST null null" 400 -

    [19/Jan/2017:19:38:11 +0300] "POST null null" 400 -


    and in catalina.log

    19-Jan-2017 19:23:31.851 INFO [http-nio-80-exec-6] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header

    Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

    java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

      at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:452)

      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:667)

      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:745)

      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)

      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

      at java.lang.Thread.run(Unknown Source)


    what's wrong ?

    my arduino's code in attachment