我有一个奇怪的问题需要你的帮助!
我已经将drools server 5.5.0 部署到我的tomcat 上,并且在上周键入时可以毫无问题地使用包装好的测试用例http://xxx:8080/camel-client/test.jsp
那么响应将是
Request: "Hello World"
Response: "Hello World"
今天一开始正常运行,后来想尝试用https所以把url改成
https://xxx:8443/camel-client/test.jsp
然而结果是
Request: "Hello World"
Response: ""
然后我改回使用http,仍然有空响应
我查看了日志,返回了执行结果:
19:23:56,018 TRACE InstrumentationProcessor:88 - to: Recording duration: 182 millis for exchange: Exchange[Message: <?xml version='1.0' encoding='UTF-8'?><execution-results><result identifier="message"><org.test.Message><text>echo:Hello World</text></org.test.Message></result><fact-handle identifier="message" external-form="0:2:1391417336:1391417336:2:DEFAULT"/></execution-results>]
但只是响应是空的
19:23:56,019 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
任何人都可以检查我的问题吗?我已经调试了一整天,但还没有弄清楚这个奇怪的问题。
我什至尝试重新部署 drools camel 服务器,但问题仍然存在!我确实可以在最后一周成功运行它。我没有更改任何库,我相信 https 也不应该导致问题
以下是供参考的日志
19:23:56,015 TRACE CxfRsProducer:183 - Response body = org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,016 TRACE DefaultCxfRsBinding:195 - Populate external header Date=[Tue, 12 Nov 2013 11:23:55 GMT] as Date
19:23:56,016 TRACE DefaultCxfRsBinding:195 - Populate external header Content-Length=[268] as Content-Length
19:23:56,016 TRACE DefaultCxfRsBinding:195 - Populate external header Content-Type=[text/plain] as Content-Type
19:23:56,016 TRACE DefaultCxfRsBinding:195 - Populate external header Server=[Apache-Coyote/1.1] as Server
19:23:56,017 TRACE DefaultTypeConverter:88 - Converting org.apache.cxf.jaxrs.impl.ResponseImpl -> java.lang.String with value: org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,018 TRACE DefaultTypeConverter:88 - Fallback type converter StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) converted type from: java.lang.String to: org.apache.cxf.jaxrs.impl.ResponseImpl
19:23:56,018 TRACE InstrumentationProcessor:88 - to: Recording duration: 182 millis for exchange: Exchange[Message: <?xml version='1.0' encoding='UTF-8'?><execution-results><result identifier="message"><org.test.Message><text>echo:Hello World</text></org.test.Message></result><fact-handle identifier="message" external-form="0:2:1391417336:1391417336:2:DEFAULT"/></execution-results>]
19:23:56,018 TRACE DefaultTypeConverter:82 - Converting org.apache.cxf.jaxrs.impl.ResponseImpl -> java.lang.String with value: org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,019 TRACE DefaultTypeConverter:82 - Fallback type converter StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) converted type from: java.lang.String to: org.apache.cxf.jaxrs.impl.ResponseImpl
19:23:56,019 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,019 TRACE DefaultTypeConverter:82 - Converting org.apache.cxf.jaxrs.impl.ResponseImpl -> java.lang.String with value: org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,020 TRACE DefaultTypeConverter:82 - Fallback type converter StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) converted type from: java.lang.String to: org.apache.cxf.jaxrs.impl.ResponseImpl
19:23:56,020 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,020 TRACE DefaultTypeConverter:82 - Converting org.apache.cxf.jaxrs.impl.ResponseImpl -> java.lang.String with value: org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,021 TRACE DefaultTypeConverter:82 - Fallback type converter StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) converted type from: java.lang.String to: org.apache.cxf.jaxrs.impl.ResponseImpl
19:23:56,021 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,021 TRACE DefaultTypeConverter:82 - Converting org.apache.cxf.jaxrs.impl.ResponseImpl -> java.lang.String with value: org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,022 TRACE DefaultTypeConverter:82 - Fallback type converter StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) converted type from: java.lang.String to: org.apache.cxf.jaxrs.impl.ResponseImpl
19:23:56,022 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,023 TRACE DefaultErrorHandler:513 - Is exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 interrupted? false
19:23:56,023 TRACE DefaultErrorHandler:496 - Is exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 done? true
19:23:56,023 TRACE DefaultTypeConverter:82 - Converting org.apache.cxf.jaxrs.impl.ResponseImpl -> java.lang.String with value: org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,023 TRACE DefaultTypeConverter:82 - Fallback type converter StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) converted type from: java.lang.String to: org.apache.cxf.jaxrs.impl.ResponseImpl
19:23:56,024 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,024 TRACE Pipeline:90 - Processing exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 is continued being processed synchronously
19:23:56,024 TRACE Pipeline:186 - ExchangeId: ID-icilszxnb126-46148-1384255363195-1-1 should continue routing: true
19:23:56,024 TRACE DefaultTypeConverter:113 - Converting org.apache.cxf.jaxrs.impl.ResponseImpl -> java.lang.String with value: org.apache.cxf.jaxrs.impl.ResponseImpl@26d6466f
19:23:56,025 TRACE DefaultTypeConverter:113 - Fallback type converter StaticMethodFallbackTypeConverter: public static java.lang.Object org.apache.camel.component.cxf.converter.CxfConverter.convertTo(java.lang.Class,org.apache.camel.Exchange,java.lang.Object,org.apache.camel.spi.TypeConverterRegistry) converted type from: java.lang.String to: org.apache.cxf.jaxrs.impl.ResponseImpl
19:23:56,025 TRACE Pipeline:113 - Processing exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 >>> Exchange[Message: ]
19:23:56,025 TRACE BeanProcessor:95 - Using a custom adapter as bean invocation: org.drools.camel.component.PostCxfrs@1a6313e1
19:23:56,026 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,026 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,026 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,027 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,027 TRACE DefaultErrorHandler:513 - Is exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 interrupted? false
19:23:56,027 TRACE DefaultErrorHandler:496 - Is exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 done? true
19:23:56,027 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,028 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,028 TRACE Pipeline:90 - Processing exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 is continued being processed synchronously
19:23:56,028 TRACE Pipeline:186 - ExchangeId: ID-icilszxnb126-46148-1384255363195-1-1 should continue routing: false
19:23:56,028 TRACE DefaultTypeConverter:101 - Converting java.lang.String -> java.lang.String with value:
19:23:56,028 TRACE Pipeline:101 - Processing complete for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 >>> Exchange[Message: ]
19:23:56,029 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,029 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,029 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,029 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,030 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,030 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,030 TRACE DefaultErrorHandler:513 - Is exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 interrupted? false
19:23:56,030 TRACE DefaultErrorHandler:496 - Is exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 done? true
19:23:56,031 TRACE DefaultTypeConverter:88 - Converting java.lang.String -> java.lang.String with value:
19:23:56,031 TRACE InstrumentationProcessor:88 - route: Recording duration: 200 millis for exchange: Exchange[Message: ]
19:23:56,031 TRACE DefaultTypeConverter:203 - Converting java.lang.String -> java.lang.String with value:
19:23:56,031 TRACE DefaultUnitOfWork:203 - UnitOfWork done for ExchangeId: ID-icilszxnb126-46148-1384255363195-1-1 with Exchange[Message: ]
19:23:56,032 TRACE DefaultInflightRepository:58 - Total 0 inflight exchanges. Last removed: ID-icilszxnb126-46148-1384255363195-1-1
19:23:56,032 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,032 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,032 TRACE DefaultTypeConverter:82 - Converting java.lang.String -> java.lang.String with value:
19:23:56,032 TRACE AsyncProcessorHelper:82 - Exchange processed and is continued routed synchronously for exchangeId: ID-icilszxnb126-46148-1384255363195-1-1 -> Exchange[Message: ]
19:23:56,033 TRACE DefaultTypeConverter:155 - Converting java.lang.String -> java.lang.String with value: