我正在使用BIRT生成我们数据的报告。使用内部Eclipse查看器时,它会生成并显示正常。当我将它部署到我的localhost Tomcat 9.0时,我在日志中收到以下错误。
样本报告中也会出现我用于配置环境的说明,但它不会发生在" test" BIRT查看器附带的报告。
INFO [http-nio-8080-exec-4] 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:456)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:380)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:796)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1372)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
我已经在调试模式下启动了Tomcat,这就是日志所说的内容。
127.0.0.1 - - [30/Jul/2017:15:05:38 -0500] "GET / HTTP/1.1" 200 11458
127.0.0.1 - - [30/Jul/2017:15:05:50 -0500] "GET /manager/html HTTP/1.1" 401 2536
127.0.0.1 - admin [30/Jul/2017:15:05:54 -0500] "GET /manager/html HTTP/1.1" 200 19627
127.0.0.1 - - [30/Jul/2017:15:05:54 -0500] "GET /manager/images/tomcat.gif HTTP/1.1" 200 2066
127.0.0.1 - - [30/Jul/2017:15:05:54 -0500] "GET /manager/images/asf-logo.svg HTTP/1.1" 200 19908
127.0.0.1 - - [30/Jul/2017:15:05:59 -0500] "GET null null" 400 -
127.0.0.1 - - [30/Jul/2017:15:06:37 -0500] "GET null null" 400 -
127.0.0.1 - - [30/Jul/2017:15:11:10 -0500] "GET / HTTP/1.1" 200 11458
127.0.0.1 - - [30/Jul/2017:15:11:46 -0500] "GET null null" 400 -
127.0.0.1 - - [30/Jul/2017:15:14:08 -0500] "GET / HTTP/1.1" 200 11458
127.0.0.1 - - [30/Jul/2017:15:14:28 -0500] "GET null null" 400 -
127.0.0.1 - - [30/Jul/2017:15:14:45 -0500] "GET null null" 400 -
127.0.0.1 - - [30/Jul/2017:15:14:48 -0500] "GET null null" 400 -
127.0.0.1 - - [30/Jul/2017:15:14:49 -0500] "GET null null" 400 -
我试图找到一种上传代码示例的方法,而不会太长时间。现在,如果可以的话,这里是XML的链接吗?
https://www.eclipse.org/birt/phoenix/examples/solution/SalesInvoice.rptdesign
答案 0 :(得分:0)
这已经解决了。放置报告的说明是错误的。他们需要进入BIRT Viewer的主文件夹,而不是像说明文件那样的\ Report文件夹。