Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用JAXB/Spring OXM解组XML时出错_Spring_Xsd_Jaxb_Jaxb2_Oxm - Fatal编程技术网

使用JAXB/Spring OXM解组XML时出错

使用JAXB/Spring OXM解组XML时出错,spring,xsd,jaxb,jaxb2,oxm,Spring,Xsd,Jaxb,Jaxb2,Oxm,我正在尝试使用xjc将xsd转换为Java对象。类被生成。 但是,当我尝试使用SpringOXM将示例xml文件解组为java对象时,它失败了,错误如下 org.springframework.oxm.UnmarshallingFailureException: JAXB unmarshalling exception; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"urn:vali

我正在尝试使用xjc将xsd转换为Java对象。类被生成。 但是,当我尝试使用SpringOXM将示例xml文件解组为java对象时,它失败了,错误如下

org.springframework.oxm.UnmarshallingFailureException: JAXB unmarshalling exception; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"urn:validfilenotification", local:"ValidFileNotification"). Expected elements are <{urn:notificationbase}ActionRequestedGrp>,<{urn:notificationbase}DocTypeIndicCd>,<{urn:notificationbase}FATCANotificationCd>,<{urn:notificationbase}FATCANotificationHeaderGrp>,<{urn:notificationbase}FATCAReportTypeCd>,<{urn:notificationbase}FieldErrorGrp>,<{urn:notificationbase}FileTypeCd>,<{urn:notificationbase}MessageTypeCd>,<{urn:notificationbase}OriginalFileMessageSpecGrp>,<{urn:notificationbase}OriginalFileMetadataGrp>,<{urn:notificationbase}OriginalFileProcessingDataGrp>,<{urn:notificationbase}OriginalPaperRecordMetadataGrp>,<{urn:notificationbase}PaperRecordDocumentTypeCd>,<{urn:notificationbase}RecordLevelErrorCd>,<{urn:notification
org.springframework.oxm.UnmarshallingFailureException:JAXB解组异常;嵌套异常是javax.xml.bind.UnmarshaleException:意外元素(uri:“urn:validfilenotification”,local:“validfilenotification”)。预期的元素为,,,,,,,,,,,,,,