[Geoserver-devel] [JIRA] (GEOS-10655) JMS clustering xstream.security.ForbiddenClassException

Jari Kukkonen created an issue

GeoServer / BugGEOS-10655

JMS clustering xstream.security.ForbiddenClassException

Issue Type:

BugBug

Affects Versions:

2.21.1

Assignee:

Unassigned

Components:

Community modules

Created:

16/Sep/22 12:12 PM

Priority:

HighHigh

Reporter:

Jari Kukkonen

When exchanging messages through the community module JMS Clustering, exceptions are thrown.

geoserver-node-1 | 16 058 09:58:28 WARN [client.JMSContainer] - Execution of JMS message listener failed, and no ErrorHandler has been set.
geoserver-node-1 | javax.jms.JMSException: org.geoserver.cluster.impl.events.configuration.JMSGlobalModifyEvent
geoserver-node-1 | at org.geoserver.cluster.client.JMSQueueListener.onMessage(JMSQueueListener.java:161)
geoserver-node-1 | at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:736)
geoserver-node-1 | at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:696)
geoserver-node-1 | at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:674)
geoserver-node-1 | at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:318)
geoserver-node-1 | at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:257)
geoserver-node-1 | at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1186)
geoserver-node-1 | at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1176)
geoserver-node-1 | at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1073)
geoserver-node-1 | at java.base/java.lang.Thread.run(Thread.java:829)
geoserver-node-1 | Caused by: com.thoughtworks.xstream.security.ForbiddenClassException: org.geoserver.cluster.impl.events.configuration.JMSGlobalModifyEvent
geoserver-node-1 | at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)
geoserver-node-1 | at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)
geoserver-node-1 | at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
geoserver-node-1 | at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
geoserver-node-1 | at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
geoserver-node-1 | at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:135)
geoserver-node-1 | at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
geoserver-node-1 | at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)
geoserver-node-1 | at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)
geoserver-node-1 | at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1284)
geoserver-node-1 | at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1275)
geoserver-node-1 | at org.geoserver.cluster.impl.handlers.configuration.JMSConfigurationHandler.deserialize(JMSConfigurationHandler.java:42)
geoserver-node-1 | at org.geoserver.cluster.impl.handlers.configuration.JMSConfigurationHandler.deserialize(JMSConfigurationHandler.java:19)
geoserver-node-1 | at org.geoserver.cluster.client.JMSQueueListener.onMessage(JMSQueueListener.java:155)
geoserver-node-1 | … 9 more

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207-sha1:30c8888)

Atlassian logo