2011-01-26 110 views
3

這從來沒有發生過。我從來沒有看到任何這些警告。必須有一個小的修復程序,我錯過了。使用Eclipse的JAX-RPC規範中不支持數據類型的大錯誤

我無法取出類,對象,地圖等的所有實例,因爲它說我必須。我以前在相同的Web服務中使用過這些,並沒有問題。我添加了一個類似於其餘的方法,我得到這個= S

任何人都可以幫忙嗎?

The service class "aaa.bbb.Indy.WebService.Functions" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly. 
    The field or property "headers" on the value type "org.apache.axis.AxisFault" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.util.ArrayList", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "cause" on the value type "java.rmi.RemoteException" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.lang.Throwable", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "noClasses" on the value type "org.apache.axis.description.TypeDesc" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.lang.Class", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "noObjects" on the value type "org.apache.axis.description.TypeDesc" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.lang.Object", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "propertyDescriptorMap" on the value type "org.apache.axis.description.TypeDesc" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.util.Map", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "type" on the value type "org.apache.axis.utils.BeanPropertyDescriptor" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.lang.Class", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "actualType" on the value type "org.apache.axis.utils.BeanPropertyDescriptor" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.lang.Class", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "javaType" on the value type "org.apache.axis.description.FieldDesc" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.lang.Class", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "headers" on the value type "org.apache.axis.AxisFault" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.util.ArrayList", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The field or property "cause" on the value type "java.rmi.RemoteException" used via the service class "aaa.bbb.Indy.WebService.Functions" has a data type, "java.lang.Throwable", that is not supported by the JAX-RPC 1.1 specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. 
    The value type "org.w3c.dom.Element" used via the service class "aaa.bbb.Indy.WebService.Functions" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization. 
    The value type "org.w3c.dom.TypeInfo" used via the service class "aaa.bbb.Indy.WebService.Functions" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization. 
    The value type "org.apache.axis.description.TypeDesc" used via the service class "aaa.bbb.Indy.WebService.Functions" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization. 
    The value type "org.apache.axis.utils.BeanPropertyDescriptor" used via the service class "aaa.bbb.Indy.WebService.Functions" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization. 
    The value type "org.apache.axis.description.FieldDesc" used via the service class "aaa.bbb.Indy.WebService.Functions" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization. 
    The service class "aaa.bbb.Indy.WebService.Functions" does not have a public default constructor. Chapter 10.1 of the JAX-RPC 1.1 specification requires a service class to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the service class to handle an incoming request message. 

謝謝!

+0

你可以發佈你的方法簽名?我想你正在使用一些不可序列化的類。 – 2011-02-21 22:48:59

+0

感謝您的答覆=)我知道實際的代碼不是問題,因爲我將該課程發送給我的同事,並且在他的環境中構建和部署,沒有任何問題。這是一個日食問題=( – Garrett 2011-02-22 16:17:47

回答

1

這可能是因爲您嘗試傳遞List作爲參數,並且JAX-RPC規範沒有指定java.util.List對象和XML之間的明確映射。好消息是您有其他選項。對於你的例子,你可以在參數本身中聲明'actors'的類型。例如,使用String []或Actors [](其中Actors是一個複雜類型)。

2

檢查在創建Web Service時Web Service運行時配置是否正確。

您可能試圖使用Apache Axis而不是Apache CXF 2.x.在第一個Web服務對話框中,單擊Web服務運行時並選擇Apache CXF 2.x.