这里是谷歌上的相关帖子:
badMessage:HttpChannelOverHttp的400个未知版本
我从状态代码400(未知版本)得到一个例外httpParser,但我不明白发生了什么以及我如何解决问题.这种例外的原因是什么?守则说:version == null
这是代码:
String version=takeString();
_version=HttpVersion.CACHE.get(version);
if (_version==null)
throw new BadMessage(HttpStatus.BAD_REQUEST_400,"Unknown Version");
setState(State.SPACE1);
Run Code Online (Sandbox Code Playgroud) 我正在编译并运行一些名为Structr(https://github.com/structr/structr)的项目的源代码.我可以使用maven mvn命令正确运行程序,但不能使用JVM java命令.
编译步骤顺利 maven clean install -DskipTests
在运行前端(在structr-ui目录中)时,如果使用maven exec:exec但是失败则进展顺利java -cp target/lib/*;target/structr-ui-0.8.2.jar org.structr.Ui.我有一些指示堆栈跟踪java.lang.NoClassDefFoundError的org.structr.core.entity.AbstractNode和org.structr.core.EntityContext.我觉得奇怪的是我们拥有的exec条目中的maven pom.xml文件
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-server</argument>
<argument>-Dfile.encoding=utf-8</argument>
<argument>-XX:+UseNUMA</argument>
<argument>-Xms1g</argument>
<argument>-Xmx1g</argument>
<argument>-classpath</argument>
<argument>target/lib/*;target/structr-ui-0.8.2.jar</argument>
<argument>org.structr.Ui</argument>
</arguments>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
整个pom.xml读取
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.structr</groupId>
<artifactId>structr</artifactId>
<version>0.8.2</version>
</parent>
<groupId>org.structr</groupId>
<artifactId>structr-ui</artifactId>
<packaging>jar</packaging>
<version>0.8.2</version>
<name>structr-ui</name>
<description>Structr is an open source framework based on the popular Neo4j graph database.</description>
<developers>
<developer>
<name>Axel …Run Code Online (Sandbox Code Playgroud)