IllegalArgumentException in MessageArchiveVHostItemExtension (#55)
wojciech.kapcia@tigase.net opened 5 years ago
java.lang.reflect.InvocationTargetException
        at jdk.internal.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at tigase.kernel.BeanUtils.setValue(BeanUtils.java:172)
        at tigase.kernel.core.Kernel.inject(Kernel.java:1232)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1318)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.getInstance(Kernel.java:303)
        at tigase.db.beans.SDRepositoryBean.initialize(SDRepositoryBean.java:130)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:136)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.injectDependency(Kernel.java:869)
        at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1536)
        at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:568)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:1036)
        at tigase.kernel.core.Kernel.getInstance(Kernel.java:308)
        at tigase.server.Bootstrap.start(Bootstrap.java:326)
        at tigase.server.XMPPServer.start(XMPPServer.java:188)
        at tigase.server.XMPPServer.main(XMPPServer.java:141)
Caused by: java.lang.IllegalArgumentException
        at tigase.archive.StoreMethod.valueof(StoreMethod.java:53)
        at tigase.archive.MessageArchiveVHostItemExtension.initFromData(MessageArchiveVHostItemExtension.java:91)
        at tigase.vhosts.VHostItemImpl.initExtension(VHostItemImpl.java:612)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at tigase.vhosts.VHostItemImpl.initFromElement(VHostItemImpl.java:596)
        at tigase.vhosts.VHostItemImpl$VHostItemWrapper.initFromElement(VHostItemImpl.java:1708)
        at tigase.db.comp.UserRepoRepository.reload(UserRepoRepository.java:89)
        at tigase.vhosts.VHostJDBCRepository.reload(VHostJDBCRepository.java:145)
        at tigase.vhosts.VHostJDBCRepository.reloadIfReady(VHostJDBCRepository.java:344)
        at tigase.vhosts.VHostJDBCRepository.setExtensionManager(VHostJDBCRepository.java:314)
        at jdk.internal.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at tigase.kernel.BeanUtils.setValue(BeanUtils.java:172)
        at tigase.kernel.core.Kernel.inject(Kernel.java:1232)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1318)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.getInstance(Kernel.java:303)
        at tigase.db.beans.SDRepositoryBean.initialize(SDRepositoryBean.java:130)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:136)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.injectDependency(Kernel.java:869)
        at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1536)
        at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:568)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:1036)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:136)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.injectDependency(Kernel.java:869)
        at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1536)
        at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:568)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:128)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.initBean(Kernel.java:131)
        at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:1257)
        at tigase.kernel.core.Kernel.injectIfRequired(Kernel.java:1036)
        at tigase.kernel.core.Kernel.getInstance(Kernel.java:308)
        at tigase.server.Bootstrap.start(Bootstrap.java:326)
        at tigase.server.XMPPServer.start(XMPPServer.java:188)
        at tigase.server.XMPPServer.main(XMPPServer.java:141)
wojciech.kapcia@tigase.net commented 5 years ago

It was caused by legacy element in database:

<xep0136RequiredStoreMethod type="S">null</xep0136RequiredStoreMethod>

tigase.util.repository.DataTypes#decodeValueType was returning "null" String object instead of null itself.

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