java.lang.IllegalArgumentException: Comparison method violates its general contract!


Solutions on the web

Solution icon of web
Comparison method violates its general contract!

Solution icon of stackoverflow
Comparison method violates its general contract!

Solution icon of bugzilla
Comparison method violates its general contract!

Solution icon of bugzilla
Comparison method violates its general contract!

Solution icon of github
via GitHub by friedger
, 1 year ago
Comparison method violates its general contract!

Solution icon of github
Comparison method violates its general contract!

Solution icon of github
via GitHub by d-krupke
, 1 year ago
Comparison method violates its general contract!

Solution icon of github
via GitHub by XileForce
, 11 months ago
Comparison method violates its general contract!

Solution icon of github
via GitHub by mucek4
, 1 year ago
Comparison method violates its general contract!

Solution icon of github
Comparison method violates its general contract!

Stack trace

java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.util.TimSort.mergeLo(TimSort.java:758)
	at java.util.TimSort.mergeAt(TimSort.java:494)
	at java.util.TimSort.mergeCollapse(TimSort.java:421)
	at java.util.TimSort.sort(TimSort.java:225)
	at java.util.TimSort.sort(TimSort.java:184)
	at java.util.Arrays.sort(Arrays.java:670)
	at com.ibm.mq.constants.MQConstants.getFields(MQConstants.java:277)
	at com.ibm.mq.constants.MQConstants.lookup(MQConstants.java:204)
	at com.ibm.mq.constants.MQConstants.lookup(MQConstants.java:264)
	at com.ibm.mq.constants.MQConstants.lookup(MQConstants.java:254)
	at com.ibm.mq.jmqi.remote.api.RemoteFAP.jmqiConnect(RemoteFAP.java:1862)
	at com.ibm.mq.jmqi.remote.api.RemoteFAP.jmqiConnect(RemoteFAP.java:1144)
	at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:337)
	at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createV7ProviderConnection(WMQConnectionFactory.java:6772)
	at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:6151)
	at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createConnection(JmsConnectionFactoryImpl.java:280)
	at com.ibm.mq.jms.MQConnectionFactory.createCommonConnection(MQConnectionFactory.java:6138)
	at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:115)
	at com.ibm.mq.jms.MQQueueConnectionFactory.createConnection(MQQueueConnectionFactory.java:198)
	at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:185)
	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:481)
	at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:566)
	at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:557)
	at com.java.geek.JmsMessageSender.send(JmsMessageSender.java:34)
	at com.java.geek.DemoMain.main(DemoMain.java:20)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
6 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 more bugmates