Forum Discussion
MaximStanovov
Occasional Contributor
Look at my stacktrace. Is it a bug of SoupUI? Why does error have curly brackets around Exception e in the stacktrace - } catch {Exception e} {?
Mon Mar 06 19:02:26 MSK 2017:ERROR:org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script25.groovy: 97: unexpected token: catch @ line 97, column 4. } catch {Exception e} { ^ org.codehaus.groovy.syntax.SyntaxException: unexpected token: catch @ line 97, column 4.
MaximStanovov
8 years agoOccasional Contributor
This code works well.
Problem was in my script that I call at mock response.
You can use this code to convert UTF-8-BOM request to UTF-8 without BOM.
def mockRequestContent try { mockRequestContent = mockRequest.getRequestContent() mockRequest.setRequestContent(mockRequestContent.substring(1)) } catch (Exception e) { log.info(e) }
Related Content
- 6 years ago
- 6 years ago
Recent Discussions
- 15 years ago