Projects tigase _server tigase-muc Issues #126
NPE while querying VCard of non-persistent room (#126)
wojciech.kapcia@tigase.net opened 5 years ago
<!--   2019-12-05T15:05:18Z   >>>>   -->
<iq to='awesome_room@muc.atlantiscity' type='get' id='E8BB3A4A-CC98-4D20-A994-AD08115C54D0'>
<vCard xmlns='vcard-temp'/>
</iq>

Returns:

<!--   2019-12-05T15:05:18Z   <<<<   -->
<iq from='awesome_room@muc.atlantiscity' to='admin@atlantiscity/1204607085-tigase-1' xmlns='jabber:client' id='E8BB3A4A-CC98-4D20-A994-AD08115C54D0' type='error'>
<vCard xmlns='vcard-temp'/>
<error code='500' type='wait'>
<internal-server-error xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
[2019-12-05 16:07:06:458] [SEVERE  ] [             in_22-muc ] StanzaProcessor.processPacket()  : java.lang.NullPointerException when processing from=sess-man@localhost, to=null, DATA=<iq from="admin@atlantiscity/1204607085-tigase-1" to="awesome_room@muc.atlantiscity" xmlns="jabber:client" type="get" id="E8BB3A4A-CC98-4D20-A994-AD08115C54D0">
<vCard xmlns="vcard-temp"/>
</iq>, SIZE=194, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ADMIN, TYPE=get
java.lang.RuntimeException: java.lang.NullPointerException
	at tigase.muc.modules.VCardModule.process(VCardModule.java:133)
	at tigase.component.modules.StanzaProcessor.process(StanzaProcessor.java:164)
	at tigase.component.modules.StanzaProcessor.processPacket(StanzaProcessor.java:85)
	at tigase.component.AbstractKernelBasedComponent.processPacket(AbstractKernelBasedComponent.java:81)
	at tigase.muc.MUCComponent.processPacket(MUCComponent.java:122)
	at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1401)
Caused by: java.lang.NullPointerException
	at tigase.muc.repository.JDBCMucDAO.getRoomAvatar(JDBCMucDAO.java:250)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at tigase.stats.StatisticsInvocationHandler.invoke(StatisticsInvocationHandler.java:75)
	at com.sun.proxy.$Proxy48.getRoomAvatar(Unknown Source)
	at tigase.muc.repository.MucDAOMDBean.getRoomAvatar(MucDAOMDBean.java:111)
	at tigase.muc.repository.inmemory.InMemoryMucRepository.getRoomAvatar(InMemoryMucRepository.java:128)
	at tigase.muc.modules.VCardModule.processGet(VCardModule.java:169)
	at tigase.muc.modules.VCardModule.process(VCardModule.java:124)
	... 5 more
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-muc#126
Please wait...
Page is in error, reload to recover