Contributions
Maven, special character encoding
Some time ago, I posted this question about sending request having special character (like "éèàù") inside of them. The problem is now fixed, however, when I try to launch my test using maven, I have the same problem again. Here is my pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.myproject.soapuitest</groupId> <artifactId>running-soapui-test</artifactId> <version>1.0-SNAPSHOT</version> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <pluginRepositories> <pluginRepository> <id>smartbear-sweden-plugin-repository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.1.0</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>5.5.0</version> <dependencies> <dependency> <groupId>com.jgoodies</groupId> <artifactId>jgoodies-forms</artifactId> <version>1.9.0</version> </dependency> </dependencies> <configuration> <projectFile>myproject-soapui-project.xml</projectFile> <outputFolder>${project.basedir}\output</outputFolder> <junitReport>true</junitReport> </configuration> <executions> <execution> <id>soapUI1</id> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> As you can see, I tried to set the encoding to UTF-8, but with no success (so far). So, any suggestions as how to fix this issue?1.1KViews0likes0CommentsSending special character
I have a REST POST request who is sending a lot of json data. Part of those data contains special character letters like in "éèêàù". When I send the data like that, I got an error message saying: HTTP Status 500 – Internal Server Error Type Exception Report Message Servlet execution threw an exception Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception javax.servlet.ServletException: Servlet execution threw an exception org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) Root Cause java.lang.NoSuchMethodError: javax.ws.rs.InternalServerErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response; javax.ws.rs.InternalServerErrorException.<init>(InternalServerErrorException.java:126) org.apache.cxf.jaxrs.utils.SpecExceptions.toInternalServerErrorException(SpecExceptions.java:79) org.apache.cxf.jaxrs.utils.ExceptionUtils.toInternalServerErrorException(ExceptionUtils.java:113) org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.convertExceptionToResponseIfPossible(JAXRSInInterceptor.java:226) org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:215) org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77) org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254) org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180) org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299) org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:218) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) Note The full stack trace of the root cause is available in the server logs. Apache Tomcat/8.5.32 However, if I remove all special character from the request, everything goes fine. I have try adding "Encoding" "UTF-8" to my header but it doesn't work. So, what should I do to be able to send data containing special character? (Note that the same request with special character work on Postman)Solved3.8KViews0likes1CommentUnexpected element: CDATA soapUI maven plugin
I have tests for a REST API using json. I use properties and property Transfer. When I run the property transfer inside soapUI (version 5.4.0), everything goes fine. However, when I run them using soapui-maven-plugin:4.6.1, I got the following error: Status: FAILED Time Taken: 51 Size: 0 Timestamp: Mon Dec 31 09:47:23 GMT+01:00 2018 TestStep: Property Transfer Error:com.eviware.soapui.impl.wsdl.teststeps.PropertyTransferException: error: Unexpected element: CDATA ----------------- Messages ------------------------------ Error performing transfer [zipCode] - error: Unexpected element: CDATA ---------------------------------------------------- zipCode transferred [[error: Unexpected element: CDATA]] from [Properties.zipCode] to [Address.Request] ------------ target path ------------- $.zipCode Any idea about what I'm doing wrong? Notes: I'm not using any parameter, I'm just selecting "Media Type: application/json" and putting my json underneath.Solved2.1KViews0likes2Comments