Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.3
-
None
-
Grails 2.4.2, java 7 openjdk
Description
I get the following stacktrace when running some tests using either groovy http-builder 0.7.2 or the grails rest-client-builder plugin 2.0.3. The problem goes away in grails 2.3.10. I believe the bug is in groovy 2.3.X and is caused by the following commit in StreamingMarkupBuilder where the return type for the bind() method was changed to Writeable:
Here is a sample stacktrace:
Failure: testGetLastTransactions(grails.plugins.pinpayments.PinPaymentsServiceTests) |
java.lang.NoSuchMethodError: groovy.xml.StreamingMarkupBuilder.bind(Ljava/lang/Object;)Ljava/lang/Object; at grails.plugins.rest.client.RequestCustomizer.xml(RequestCustomizer.groovy:259) at grails.plugins.pinpayments.PinPaymentsService$_createSubscriber_closure1.doCall(PinPaymentsService.groovy:38) at grails.plugins.rest.client.RestBuilder.doRequestInternal(RestBuilder.groovy:269) at grails.plugins.rest.client.RestBuilder.doRequestInternal(RestBuilder.groovy:261) at grails.plugins.rest.client.RestBuilder.post(RestBuilder.groovy:147) at grails.plugins.pinpayments.PinPaymentsService.createSubscriber(PinPaymentsService.groovy:36) at grails.plugins.pinpayments.PinPaymentsServiceTests.testGetLastTransactions(PinPaymentsServiceTests.groovy:204) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) |