2017-12-10 42 views
0

Ich versuche, vorhandenen Spring Web Service zu jdk 1.8 und Webphere 9 von der aktuellen Version von jdk 1.6 und Websphere zu migrieren 6. Mein Web-Service funktioniert wie erwartet mit JDK 1.6 und Websphere 6.org.springframework.ws.server.endpoint.MethodEndpoint.invoke() -Methode löst IllegalArgumentException: Argumenttypenkonflikt

org.springframework.ws.server.endpoint.MethodEndpoint.invoke() ruft richtige Methode aber das Verfahren wird mit dem Parameter org.apache aufgerufen. xmlbeans.impl.values.XmlComplexContentImpl anstelle von XXXRequestDocumentImpl, das die XmlComplexContentImpl-Klasse erweitert.

Fehler auf der Konsole:

[err] java.lang.IllegalArgumentException: argument type mismatch 
[err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
[err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) 
[err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) 
[err] at java.lang.reflect.Method.invoke(Method.java:508) 
[err] at org.springframework.ws.server.endpoint.MethodEndpoint.invoke(MethodEndpoint.java:115) 

Fehler in Soap UI

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
    <SOAP-ENV:Header/> 
    <SOAP-ENV:Body> 
     <SOAP-ENV:Fault> 
     <faultcode>SOAP-ENV:Client</faultcode> 
     <faultstring xml:lang="en">Invalid request</faultstring> 
     </SOAP-ENV:Fault> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

Antwort

0

mit JDK 1.8 und XMLBeans 2.6.0 Ich war oben Fehler immer und Ursache wurde XMLConfig Tag fehlte in xmlbeans-maven-plugin. Aufgrund dessen hat xmlbeans-maven-plugin nicht den Ordner schemaorg_apache_xmlbeans unter \ target \ generated-classes \ xmlbeans \ schemaorg_apache_xmlbeans erzeugt.

  <plugin> 
      <groupId>org.codehaus.mojo</groupId> 
      <artifactId>xmlbeans-maven-plugin</artifactId> 
      <version>2.3.2</version> 
      <executions> 
       <execution> 
        <goals> 
         <goal>xmlbeans</goal> 
        </goals> 
       </execution> 
      </executions> 
      <!--<inherited>true</inherited>--> 
      <configuration> 
       <schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory> 
       <javaSource>1.8</javaSource> 
       <xmlConfigs> 
        <xmlConfig implementation="java.io.File">${basedir}/src/main/resources/xsdconfig/xxxxx.xsdconfig</xmlConfig> 
       </xmlConfigs> 
      </configuration> 
     </plugin> 
Verwandte Themen