ClassCastException: Query cannot be cast to class ExtendedQueryImpl (#74)
Closed
wojciech.kapcia@tigase.net opened 3 years ago
[2022-05-03 11:09:13:858] [SEVERE  ] [              in_4-mix ] StanzaProcessor.processPacket()  : class tigase.pubsub.modules.mam.Query cannot be cast to class tigase.pubsub.modules.mam.ExtendedQueryImpl (tigase.pubsub.modules.mam.Query and tigase.pubsub.modules.mam.ExtendedQueryImpl are in unnamed module of loader 'app') when processing from=s2s@ip-172-31-0-99.us-west-2.compute.internal, to=null, serverAuthorisedStanzaFrom=Optional.empty, DATA=<presence to="tigase@mix.tigase.im/" xmlns="jabber:client" id="11daf22d-0922-46b1-92e0-28888c4c9f1c" from="…@…/dino.…"><x xmlns="http://jabber.org/protocol/muc"><history since="2022-04-08T13:56:50Z"/></x><c xmlns="http://jabber.org/protocol/caps" node="https://dino.im" hash="sha-1" ver="+bPJh+zCpHFebqXv9tkFIt8rcAg="/><x xmlns="vcard-temp:x:update"><photo>…</photo></x></presence>, SIZE=446, XMLNS=jabber:client, PRIORITY=PRESENCE, PERMISSION=REMOTE, TYPE=null, STABLE_ID=null
java.lang.ClassCastException: class tigase.pubsub.modules.mam.Query cannot be cast to class tigase.pubsub.modules.mam.ExtendedQueryImpl (tigase.pubsub.modules.mam.Query and tigase.pubsub.modules.mam.ExtendedQueryImpl are in unnamed module of loader 'app')
	at tigase.pubsub.repository.PubSubDAOJDBC.queryItems(PubSubDAOJDBC.java:48)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at tigase.stats.StatisticsInvocationHandler.invoke(StatisticsInvocationHandler.java:75)
	at jdk.proxy2/jdk.proxy2.$Proxy51.queryItems(Unknown Source)
	at tigase.pubsub.repository.PubSubDAOPool.queryItems(PubSubDAOPool.java:415)
	at tigase.pubsub.repository.cached.CachedPubSubRepository.queryItems(CachedPubSubRepository.java:506)
	at tigase.pubsub.repository.cached.CachedPubSubRepository.queryItems(CachedPubSubRepository.java:66)
	at tigase.mix.modules.RoomPresenceModule.process(RoomPresenceModule.java:139)
	at tigase.component.modules.StanzaProcessor.execute(StanzaProcessor.java:214)
	at tigase.component.modules.StanzaProcessor.process(StanzaProcessor.java:201)
	at tigase.component.modules.StanzaProcessor.processPacket(StanzaProcessor.java:103)
	at tigase.component.AbstractKernelBasedComponent.processPacket(AbstractKernelBasedComponent.java:81)
	at tigase.pubsub.PubSubComponent.processPacket(PubSubComponent.java:191)
	at tigase.pubsub.cluster.PubSubComponentClustered.processPacket(SourceFile:183)
	at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1398)
Andrzej Wójcik (Tigase) commented 3 years ago

This issue is now fixed. NPE was caused by MIX using the invalid method to create an instance of the Query class in MIX-MUC integration module.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.3.0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-message-archiving#74
Please wait...
Page is in error, reload to recover