我是java web服務和apache axis2的新手。每次運行我的客戶端時,都會收到輸入流爲傳入消息的錯誤爲空的錯誤。這些問題是什麼?我已附上我的日誌log4j:WARN No appenders could be found for logger (org.apache.axis2.util.Loader). log4j:WARN Please initialize the log4j system properly. org.apache.axis2.AxisFault: The input stream for an incoming message is null. at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.csapi.www.wsdl.parlayx.sms.notification_manager.v2_3.service.SmsNotificationManagerServiceStub.startSmsNotification(SmsNotificationManagerServiceStub.java:619) at org.di.custom.Notification.startNotification(Notification.java:142) at org.di.custom.Notification.main(Notification.java:57)
。axis2錯誤:傳入消息的輸入流爲空
4
A
回答
0
我設法在我選項對象添加設置下
options.setProperty(Constants.Configuration.MESSAGE_TYPE,HTTPConstants.MEDIA_TYPE_APPLICATION_ECHO_XML);
options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,Boolean.TRUE);
+0
我也有同樣的問題,但你的解決方案不適用於我的情況。 – RizN81
0
添加以下語句
options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,Boolean.TRUE);
解決了這個問題在我的方案來解決錯誤。
相關問題
- 1. MassTransit消息輸入錯誤
- 2. 輸入發送空消息
- 3. 輸入旁邊的錯誤消息
- 4. 輸入流錯誤
- 5. 在輸入錯誤的輸入時顯示無效消息
- 6. 錯誤消息,當輸入用C
- 7. 輸入數組錯誤消息
- 8. 錯誤消息內嵌輸入
- 9. 輸入文件組件錯誤消息
- 10. 包裝紙輸入錯誤消息
- 11. Visual Basic輸入錯誤消息
- 12. 錯誤的輸入流
- 13. 空輸入錯誤
- 14. 刪除輸入錯誤消息後點擊輸入
- 15. HTML&Django - 爲什麼類字段models.dateField(null = True)仍爲空輸入錯誤消息?
- 16. ASP compareValidator的錯誤消息在輸入有效輸入後不會消失
- 17. 在輸入框中輸入錯誤拼寫時返回錯誤消息
- 18. 輸入中的錯誤狀態錯誤消息
- 19. 顯示錯誤消息時錯誤輸入的密碼
- 20. boost serialiaze輸入流錯誤
- 21. html5輸入錯誤信息
- 22. 如何爲無效輸入自定義錯誤消息?
- 23. 消息傳遞需要輸入嗎?
- 24. 如何使用直接消息的Twitter流作爲輸入?
- 25. 爲未經檢查的錯誤寫入錯誤消息?
- 26. WCF,流式傳輸,消息合同錯誤:反序列化請求消息正文中的錯誤
- 27. Java中的Servlet導入錯誤消息?
- 28. 寫入form_for錯誤消息的條件
- 29. 寫入有意義的錯誤消息
- 30. 門控簽入時的錯誤消息
看看http://stackoverflow.com/a/8879520/283084。如果沒有幫助,請發佈代碼的相關部分。 – harpun
嗨@harpun我已經嘗試了上述鏈接,但我仍然收到相同的錯誤。 – Martin