2017-10-16 79 views
0

我定义我的码头服务器这样的春天:HTTP/1.1 400测试米娜/码头安装了插座通讯科坏请求

该应用程序运行,通过狸的Java服务包装包裹的服务。 实质上,它只是在侦听来自套接字的请求时运行。

<bean id="jetty" class="org.eclipse.jetty.server.Server" init-method="start"> 
    <constructor-arg name="port" value="${Port}" /> 
</bean> 

,并用于米娜端点

<bean id="minaFactory" class="org.apache.camel.component.mina2.Mina2Component"> 
    <constructor-arg index="0" ref="camel"></constructor-arg> 
</bean> 

<bean id="minaEndpoint" factory-bean="minaFactory" factory-method="createEndpoint"> 
    <constructor-arg index="0" ref="minaConfig1"></constructor-arg> 
</bean> 

然后在的system.xml,

<route> 

    <from ref="minaEndpoint" /> 
     <threads> 
      <bean ref="work-to-do" method="work"/> 
     </threads> 
    </route> 

现在,我使用的插座测试 - https://sourceforge.net/projects/sockettest/?source=typ_redirect

,我可以连接到主机和端口,但我发送请求时不断收到错误:

S:{ “操作”: “测试”, “工作”: “ABC”} HTTP/1.1 400错误的请求 的Content-Length:0 连接:关闭 服务器:码头(7.2.0.v20101020)

Socket Test

回答