Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

tonthatd
Hi

I'm trying to create a very simple test and just to send a message to a queue.

I'm using com.ibm.mq.jms.MQQueueConnectionFactory.

But i'm getting an abstract method error (error stack is attached below) everytime i execute the test.

Has anyone experienced the same problem?
Its driving me nuts.

Thanks
D


Here's what i've declared in my context.xml

 <bean name="connectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
        <property name="hostName" value="hostname"/> 
        <property name="queueManager" value="MQFLDD01"/>
        <property name="channel" value="ABCLD.CLIENTS.00"/>
        <property name="port" value="1421"/>
        <property name="transportType" value="1"/>
   </bean>



   
    <citrus:actor id="client" name="CLIENT"/>
    <citrus:actor id="test" name="TEST"/>

    <citrus:jms-message-sender id="clientRequestSender" destination-name="PRV.UCORELD.BATS.D01.LD.HARNESS1" actor="client">
    <citrus:jms-message-receiver id="clientRequestReceiver" destination-name="PRV.UCORELD.BATS.D01.LD.HARNESS2" actor="test"/>

'******************************************************************************
In my SampleJavaTest.java, i've got

  @CitrusTest(name = "SampleJavaTest")
    public void sampleTest() {
       

        echo("Today is: ");
               send("clientRequestSender").payload("test");

         echo("got to here");

'*****************************************************************************




Results :



-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
11:37:46,299 INFO  port.LoggingReporter|
11:37:46,299 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,299 INFO  port.LoggingReporter| C I T R U S   T E S T S
11:37:46,299 INFO  port.LoggingReporter|
11:37:46,299 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,299 INFO  port.LoggingReporter| BEFORE TEST SUITE
11:37:46,299 INFO  port.LoggingReporter|
11:37:46,299 INFO  port.LoggingReporter|
11:37:46,299 INFO  port.LoggingReporter| BEFORE TEST SUITE: SUCCESS
11:37:46,299 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,299 INFO  port.LoggingReporter|
11:37:46,315 DEBUG stContextFactoryBean| Created new test context - using global variables: '{project.name=Citrus Integration Tests}'
11:37:46,315 INFO  port.LoggingReporter|
11:37:46,315 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,315 INFO  port.LoggingReporter| STARTING TEST SampleJavaTest <com.XXXXXX.citrus>
11:37:46,315 INFO  port.LoggingReporter|
11:37:46,315 DEBUG      citrus.TestCase| Initializing test case
11:37:46,315 DEBUG      citrus.TestCase| Global variables:
11:37:46,316 DEBUG      citrus.TestCase| project.name = Citrus Integration Tests
11:37:46,316 INFO  port.LoggingReporter|
11:37:46,316 INFO  port.LoggingReporter| TEST STEP 1/3
11:37:46,316 INFO  port.LoggingReporter| Test action <EchoAction>
11:37:46,317 INFO    actions.EchoAction| Today is:
11:37:46,317 INFO  port.LoggingReporter| Test action <EchoAction> done
11:37:46,317 INFO  port.LoggingReporter| TEST STEP 1/3 done
11:37:46,317 INFO  port.LoggingReporter|
11:37:46,317 INFO  port.LoggingReporter| TEST STEP 2/3
11:37:46,320 INFO  port.LoggingReporter| Test action <SendMessageAction>
11:37:46,323 INFO  jms.JmsMessageSender| Sending JMS message to destination: 'PRV.UCORELD.ABC.D01.LD.HARNESS1'
11:37:46,363 INFO  port.LoggingReporter|
11:37:46,363 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,363 INFO  port.LoggingReporter| AFTER TEST SUITE
11:37:46,363 INFO  port.LoggingReporter|
11:37:46,363 INFO  port.LoggingReporter|
11:37:46,364 INFO  port.LoggingReporter| AFTER TEST SUITE: SUCCESS
11:37:46,364 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,364 INFO  port.LoggingReporter|
11:37:46,364 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,364 INFO  port.LoggingReporter|
11:37:46,364 INFO  port.LoggingReporter| CITRUS TEST RESULTS
11:37:46,364 INFO  port.LoggingReporter|
11:37:46,364 INFO  port.LoggingReporter|
11:37:46,364 INFO  port.LoggingReporter| Number of skipped tests: 0 (0.0%)
11:37:46,364 INFO  port.LoggingReporter|
11:37:46,364 INFO  port.LoggingReporter| TOTAL: 0
11:37:46,364 INFO  port.LoggingReporter| FAILED: 0 (0.0%)
11:37:46,368 INFO  port.LoggingReporter| SUCCESS: 0 (0.0%)
11:37:46,368 INFO  port.LoggingReporter|
11:37:46,368 INFO  port.LoggingReporter| ------------------------------------------------------------------------
11:37:46,368 INFO   report.HtmlReporter| Generating HTML test report ...
11:37:46,369 DEBUG       util.FileUtils| Reading file resource (encoding is 'windows-1252')
11:37:46,381 DEBUG       util.FileUtils| Reading file resource (encoding is 'windows-1252')
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.789 sec <<< FAILURE!

Results :

Failed tests:
  sampleTest(com.barcap.citrus.SampleJavaTest)

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.401s
[INFO] Finished at: Tue Oct 01 11:37:46 BST 2013
[INFO] Final Memory: 7M/183M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (citrus-integration-tests) on project citrusTest: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Development\citrusTest\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (citrus-integration-tests) on project citrusTest: There are test failures.

Please refer to C:\Development\citrusTest\target\surefire-reports for the individual test results.



The error is as follows :
-------------------------------------------------------------------------------
Test set: TestSuite
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.785 sec <<< FAILURE!
sampleTest(com.barcap.citrus.SampleJavaTest)  Time elapsed: 0.029 sec  <<< FAILURE!
java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;
        at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
        at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:456)
        at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543)
        at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:620)
        at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:607)
        at com.consol.citrus.jms.JmsMessageSender.send(JmsMessageSender.java:53)
        at com.consol.citrus.actions.SendMessageAction.doExecute(SendMessageAction.java:82)
        at com.consol.citrus.actions.AbstractTestAction.execute(AbstractTestAction.java:42)
        at com.consol.citrus.TestCase.run(TestCase.java:136)
        at com.consol.citrus.TestCase.doExecute(TestCase.java:79)
        at com.consol.citrus.actions.AbstractTestAction.execute(AbstractTestAction.java:42)
        at com.consol.citrus.dsl.TestNGCitrusTestBuilder.run(TestNGCitrusTestBuilder.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:194)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:707)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
        at org.testng.TestRunner.privateRun(TestRunner.java:767)
        at org.testng.TestRunner.run(TestRunner.java:617)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
        at org.testng.SuiteRunner.run(SuiteRunner.java:240)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
        at org.testng.TestNG.run(TestNG.java:1031)
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
        at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Christoph Deppisch
Administrator
I wonder why this is, because this is simple Spring Jms functionality used by Citrus.

Are you sure to have proper IBM jms libs in classpath? Which version of IBM MQSeries do you use here?

Maybe you have a look at this example, too:

spring-and-ibm-mq-series

Cheers,
Christoph
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

tonthatd
Yeah, we were using an old version of mq series. As soon as i got the jars for version 7 in worked.
thanks for responding.
D
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

shashi2k6
In reply to this post by tonthatd
Hi ,

I am new to citrus framework,i have few question on citrus framework :

public class SampleTest extends AbstractJUnit4CitrusTest {
    @Test
    public void sampleTest() {
        executeTest();
    }
}

I am using junit4,what is used of execute test, how do sedn the message to MQ using  citrus, can u pelase share any sample poject, it would be helful...

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Mounika
In reply to this post by tonthatd
Hi
I was also working on the similar scenario where i was accessing  send("clientRequestSender").payload("test");
 getting an exception like NoSuchBeanDefinitionException
can i have the PI of this test case

Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Christoph Deppisch
Administrator
NoSuchBeanDefinitionException tells me that you do not have a proper endpoint component named "clientRequestSender" in your Citrus configuration. Please double check component configuration and proper naming. If this is not the solution please provide your configuration and the exact stack trace information of the error.
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Mounika
  This is my context.xml file
bean name="connectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory">
    <property name="queueManager" value="" />
    <property name="hostName" value="" />
    <property name="channel" value="" />
    <property name="port" value="" />
</bean>
       
<citrus:actor id="client" name="CLIENT"/>
<citrus:actor id="test" name="TEST"/>
   
    <citrus:jms-message-sender name="clientRequestSender" destination-name="JJT.IN" actor="client"/>
    <citrus:jms-message-receiver id="clientRequestReceiver" destination-name="HPC.RESPONSE" actor="test"/ >
</beans>

and here is my test case
@Test
        @CitrusTest(name = "SampleMQ")
        public void sample() {
                                send("clientRequestSender")
                .payload(new ClassPathResource("TestRequest.xml"))
                        .header("Country", "MM")
                        .header("ID", "1");
                             
            }

Can you have a look and update where i was gone wrong
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Christoph Deppisch
Administrator
StackTrace? Also I see that you are using a very old Citrus Version. What version are you using and are you able to update?
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Mounika
I was using citrus of version 2.7.2

and here is the stack trace
2017-09-29 20:29:10 ERROR TestContextManager:234 - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@61230f6a] to prepare test instance [com.citrus.sample.MQSample@d8305c2]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.citrus.sample.MQSample': Unsatisfied dependency expressed through field 'connectionfactory'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.jms.ConnectionFactory' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:386)
        at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118)
        at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
        at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
        at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.jms.ConnectionFactory' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1486)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1104)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
        ... 28 more
2017-09-29 20:29:10 INFO  GenericApplicationContext:984 - Closing org.springframework.context.support.GenericApplicationContext@294425a7: startup date [Fri Sep 29 20:29:09 IST 2017]; root of context hierarchy
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Mounika
Sry before i posted the wrong stack trace here is the one

Stacktrace:
------------
2017-09-29 20:49:22 ERROR TestContextManager:234 - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1f28c152] to prepare test instance [com.citrus.sample.MQSample@2eae8e6e]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.citrus.sample.MQSample': Unsatisfied dependency expressed through field 'clientRequestSender'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.consol.citrus.jms.endpoint.JmsEndpoint' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:386)
        at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118)
        at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
        at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
        at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.consol.citrus.jms.endpoint.JmsEndpoint' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1486)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1104)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)
        ... 28 more
2017-09-29 20:49:22 INFO  GenericApplicationContext:984 - Closing org.springframework.context.support.GenericApplicationContext@59e5ddf: startup date [Fri Sep 29 20:49:21 IST 2017]; root of context hierarchy
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Christoph Deppisch
Administrator
I do not understand why you are using outdated very old configuration components citrus:jms-message-sender and citrus:jms-message-receiver even if you are using latest Citrus 2.7.2 version. Please update your configuration to use citrus-jms:endpoint components as described in the latest user documentation http://www.citrusframework.org/reference/html/index.html#jms.

This should fix a lot of problems

Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Mounika
I guess you are talking about this.if yes, i even tried with this
    <citrus-jms:endpoint id="clientRequestSender"
          destination-name="Queuename"
          timeout="10000"/>
Reply | Threaded
Open this post in threaded view
|

Re: Problem connecting to jms MQ queue - java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection()Ljavax/jms/Connection;

Christoph Deppisch
Administrator
You should definitely get a different error StackTrace when using citrus-jms:endpoint. Please share the updated configuration using citrus-jms:endpoint and your error message when executing with that configuration.