Projects tigase _server tigase-muc Issues #145
NPE in JDBCMucDAO.setSubject (#145)
wojciech.kapcia@tigase.net opened 3 years ago
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
	at tigase.muc.modules.RoomConfigurationModule.process(RoomConfigurationModule.java:111)
	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.muc.MUCComponent.processPacket(MUCComponent.java:122)
	at tigase.muc.cluster.MUCComponentClustered.processPacket(SourceFile:87)
	at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1398)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at tigase.muc.repository.inmemory.InMemoryMucRepository.roomConfigChanged(InMemoryMucRepository.java:406)
	at tigase.muc.cluster.InMemoryMucRepositoryClustered.roomConfigChanged(SourceFile:126)
	at tigase.muc.repository.inmemory.InMemoryMucRepository$2.onConfigChanged(InMemoryMucRepository.java:108)
	at tigase.muc.RoomConfig.fireConfigChanged(RoomConfig.java:564)
	at tigase.muc.RoomConfig.fireConfigChanged(RoomConfig.java:558)
	at tigase.muc.RoomConfig.copyFrom(RoomConfig.java:177)
	at tigase.muc.RoomConfig.copyFrom(RoomConfig.java:169)
	at tigase.muc.modules.RoomConfigurationModule.processSet(RoomConfigurationModule.java:256)
	at tigase.muc.modules.RoomConfigurationModule.process(RoomConfigurationModule.java:102)
	... 7 more
Caused by: java.lang.NullPointerException
	at tigase.muc.repository.JDBCMucDAO.setSubject(JDBCMucDAO.java:310)
	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 com.sun.proxy.$Proxy52.setSubject(Unknown Source)
	at tigase.muc.repository.MucDAOMDBean.setSubject(MucDAOMDBean.java:117)
	at tigase.muc.repository.inmemory.InMemoryMucRepository.roomConfigChanged(InMemoryMucRepository.java:393)
	... 15 more



wojciech.kapcia@tigase.net commented 3 years ago

Full log entry:

[2021-09-22 17:44:12:876] [SEVERE  ] [              in_2-muc ] StanzaProcessor.processPacket()  : java.lang.RuntimeException: java.lang.NullPointerException when processing from=sess-man@ip-172-31-38-91.us-west-2.compute.internal, to=null, serverAuthorisedStanzaFrom=Optional.empty, DATA=<iq type="set" id="AeGQfp" to="try@muc.tigase.im" xmlns="jabber:client" from="jonathanbacolod@tigase.im/movimt1RzSm"><query xmlns="http://jabber.org/protocol/muc#owner" xmlns:default="jabber:x:data"><x type="submit" xmlns="jabber:x:data"><field var="FORM_TYPE"><value>http://jabber.org/protocol/muc#roomconfig</value></field><field var="muc#roomconfig_roomname"><value>try</value></field><field var="muc#roomconfig_persistentroom"><value>true</value></field><field var="muc#roomconfig_changesubject"><value>false</value></field><field var="muc#roomconfig_membersonly"><value>true</value></field><field var="muc#roomconfig_whois"><value>anyone</value></field><field var="muc#roomconfig_publicroom"><value>false</value></field></x></query></iq>, SIZE=742, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=set, STABLE_ID=null
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
	at tigase.muc.modules.RoomConfigurationModule.process(RoomConfigurationModule.java:111)
	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.muc.MUCComponent.processPacket(MUCComponent.java:122)
	at tigase.muc.cluster.MUCComponentClustered.processPacket(SourceFile:87)
	at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1398)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at tigase.muc.repository.inmemory.InMemoryMucRepository.roomConfigChanged(InMemoryMucRepository.java:406)
	at tigase.muc.cluster.InMemoryMucRepositoryClustered.roomConfigChanged(SourceFile:126)
	at tigase.muc.repository.inmemory.InMemoryMucRepository$2.onConfigChanged(InMemoryMucRepository.java:108)
	at tigase.muc.RoomConfig.fireConfigChanged(RoomConfig.java:564)
	at tigase.muc.RoomConfig.fireConfigChanged(RoomConfig.java:558)
	at tigase.muc.RoomConfig.copyFrom(RoomConfig.java:177)
	at tigase.muc.RoomConfig.copyFrom(RoomConfig.java:169)
	at tigase.muc.modules.RoomConfigurationModule.processSet(RoomConfigurationModule.java:256)
	at tigase.muc.modules.RoomConfigurationModule.process(RoomConfigurationModule.java:102)
	... 7 more
Caused by: java.lang.NullPointerException
	at tigase.muc.repository.JDBCMucDAO.setSubject(JDBCMucDAO.java:310)
	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 com.sun.proxy.$Proxy52.setSubject(Unknown Source)
	at tigase.muc.repository.MucDAOMDBean.setSubject(MucDAOMDBean.java:117)
	at tigase.muc.repository.inmemory.InMemoryMucRepository.roomConfigChanged(InMemoryMucRepository.java:393)
	... 15 more

Payload:

<iq type="set" id="AeGQfp" to="try@muc.tigase.im" xmlns="jabber:client" from="jonathanbacolod@tigase.im/movimt1RzSm">
    <query xmlns="http://jabber.org/protocol/muc#owner">
        <x type="submit" xmlns="jabber:x:data">
            <field var="FORM_TYPE">
                <value>http://jabber.org/protocol/muc#roomconfig</value>
            </field>
            <field var="muc#roomconfig_roomname">
                <value>try</value>
            </field>
            <field var="muc#roomconfig_persistentroom">
                <value>true</value>
            </field>
            <field var="muc#roomconfig_changesubject">
                <value>false</value>
            </field>
            <field var="muc#roomconfig_membersonly">
                <value>true</value>
            </field>
            <field var="muc#roomconfig_whois">
                <value>anyone</value>
            </field>
            <field var="muc#roomconfig_publicroom">
                <value>false</value>
            </field>
        </x>
    </query>
</iq>
wojciech.kapcia@tigase.net commented 2 years ago

OK, so for now we have no idea what happened. From the discussion we had it was agreed to re-work database (#issue #149). Closing for now.

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