Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2578 Upgrade from Camel 2.19.x to 2.20.1
  3. FUSETOOLS-2620

Spring-based templates test are not working with Camel 2.20

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Major
    • 10.2.0
    • None
    • None
    • None

    Description

      [INFO] Scanning for projects...
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Fuse AMQ Quickstart - Spring 1.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ camel-activemq-spring ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 8 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ camel-activemq-spring ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to C:\install\eclipse-committers-oxygen-R-win32-x86_64\eclipse\ws_fusetooling_dev\amq2.20.0\target\classes
      [INFO] 
      [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ camel-activemq-spring ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ camel-activemq-spring ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to C:\install\eclipse-committers-oxygen-R-win32-x86_64\eclipse\ws_fusetooling_dev\amq2.20.0\target\test-classes
      [INFO] 
      [INFO] --- maven-surefire-plugin:2.20.1:test (default-test) @ camel-activemq-spring ---
      [INFO] 
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running com.mycompany.camel.activemq.CamelContextXmlTest
      [                          main] CamelContextXmlTest            INFO  ********************************************************************************
      [                          main] CamelContextXmlTest            INFO  Testing: testCamelRoute(com.mycompany.camel.activemq.CamelContextXmlTest)
      [                          main] CamelContextXmlTest            INFO  ********************************************************************************
      [                          main] DefaultTypeConverter           INFO  Type converters loaded (core: 192, classpath: 4)
      [                          main] SpringCamelContext             INFO  Apache Camel 2.20.0 (CamelContext: amq-example-context) is starting
      [                          main] ManagedManagementStrategy      INFO  JMX is enabled
      [                          main] DefaultStreamCachingStrategy   INFO  StreamCaching in use with spool directory: C:\Users\AURELI~1\AppData\Local\Temp\camel\camel-tmp-c184509e-4009-4ad7-88bb-0eeedb62d344 and rules: [Spool > 128K body size]
      [                          main] CamelContextXmlTest            INFO  ********************************************************************************
      [                          main] CamelContextXmlTest            INFO  Testing done: testCamelRoute(com.mycompany.camel.activemq.CamelContextXmlTest)
      [                          main] CamelContextXmlTest            INFO  Took: 2.268 seconds (2268 millis)
      [                          main] CamelContextXmlTest            INFO  ********************************************************************************
      [                          main] SpringCamelContext             INFO  Apache Camel 2.20.0 (CamelContext: amq-example-context) is shutting down
      [                          main] SpringCamelContext             INFO  Apache Camel 2.20.0 (CamelContext: amq-example-context) uptime 0.765 seconds
      [                          main] SpringCamelContext             INFO  Apache Camel 2.20.0 (CamelContext: amq-example-context) is shutdown in 0.023 seconds
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.407 s <<< FAILURE! - in com.mycompany.camel.activemq.CamelContextXmlTest
      [ERROR] testCamelRoute(com.mycompany.camel.activemq.CamelContextXmlTest)  Time elapsed: 2.302 s  <<< ERROR!
      java.lang.NoSuchMethodError: org.springframework.jms.listener.AbstractMessageListenerContainer.setSubscriptionShared(Z)V
      
      [INFO] 
      [INFO] Results:
      [INFO] 
      [ERROR] Errors: 
      [ERROR]   CamelContextXmlTest>CamelTestSupport.setUp:239->CamelTestSupport.doSetUp:335->CamelTestSupport.startCamelContext:545 » NoSuchMethod
      [INFO] 
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6.556 s
      [INFO] Finished at: 2017-10-23T14:56:58+02:00
      [INFO] Final Memory: 30M/265M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project camel-activemq-spring: There are test failures.
      [ERROR] 
      [ERROR] Please refer to C:\install\eclipse-committers-oxygen-R-win32-x86_64\eclipse\ws_fusetooling_dev\amq2.20.0\target\surefire-reports for the individual test results.
      [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      

      Attachments

        Activity

          People

            apupier@redhat.com Aurélien Pupier
            apupier@redhat.com Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: