[Red Hat JIRA] (AG-154) Connection leak when DB connection closed during transaction rollback
by Wojciech Kopciewicz (Jira)
[ https://issues.redhat.com/browse/AG-154?page=com.atlassian.jira.plugin.sy... ]
Wojciech Kopciewicz commented on AG-154:
----------------------------------------
It was confirmed that issue is triggered by shutting down the server for maintenance.
> Connection leak when DB connection closed during transaction rollback
> ---------------------------------------------------------------------
>
> Key: AG-154
> URL: https://issues.redhat.com/browse/AG-154
> Project: Agroal
> Issue Type: Bug
> Components: narayana, pool
> Affects Versions: 1.9
> Reporter: Wojciech Kopciewicz
> Assignee: Luis Barreiro
> Priority: Major
>
> We are using Quarkus 1.9.2 with Hibernate and Agroal to access PostgreSQL DB.
> It looks like Agroal is leaking connections when connection is closed (somewhere) on the server side during transaction rollback.
> The following log was observed:
> Error trying to transactionRollback local transaction: This connection has been closed.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months
[Red Hat JIRA] (WFCORE-5146) WFLYPRT0057 message handling improvement
by Katarína Hermanová (Jira)
[ https://issues.redhat.com/browse/WFCORE-5146?page=com.atlassian.jira.plug... ]
Katarína Hermanová edited comment on WFCORE-5146 at 1/11/21 8:14 AM:
---------------------------------------------------------------------
Closed as the design.
was (Author: khermano):
Closing as upstream has been closed.
> WFLYPRT0057 message handling improvement
> ----------------------------------------
>
> Key: WFCORE-5146
> URL: https://issues.redhat.com/browse/WFCORE-5146
> Project: WildFly Core
> Issue Type: Enhancement
> Components: CLI, Management, Remoting
> Reporter: Katarína Hermanová
> Assignee: Katarína Hermanová
> Priority: Major
>
> WFLYPRT0057 message may or may not be output.
> This message is output if an AsyncTaskRunner runable thread is not null(_ManagementRequestContextImpl.java:139_).
> {code:java|title=org/jboss.as/protocol/mgmt/ManagementRequestContextImpl.java}
> 126 private abstract static class AsyncTaskRunner implements Runnable, Cancellable {
> --- snip ---
> 135 @Override
> 136 public Cancellable cancel() {
> 137 if (cancellable && cancelled.compareAndSet(false, true)) {
> 138 final Thread thread = this.thread;
> 139 if(thread != null) {
> 140 thread.interrupt();
> 141 ProtocolLogger.ROOT_LOGGER.cancelledAsyncTask(getClass().getSimpleName(), thread);
> 142 }
> 143 }
> 144 return this;
> 145 }
> --- snip ---
> 152 @Override
> 153 public void run() {
> 154 if (cancellable && cancelled.get()) {
> 155 Thread.currentThread().interrupt();
> 156 ProtocolLogger.ROOT_LOGGER.cancelledAsyncTaskBeforeRun(getClass().getSimpleName());
> 157 }
> 158 this.thread = Thread.currentThread();
> 159 try {
> 160 doExecute();
> 161 } finally {
> 162 this.thread = null;
> 163 }
> 164 }
> {code}
> The process is working on multi thread, so the WFLYPRT0057 message is output by race condition of null thread handling(_ManagementRequestContextImpl.java:162_).
> This is just a timing, we cannot determine the need for this message.
> {noformat}
> - Thread dump
> "management task-2" #139 prio=5 os_prio=0 tid=0x0000562c38351800 nid=0x3626 at breakpoint[0x00007facf3098000]
> java.lang.Thread.State: RUNNABLE
> at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.cancel(ManagementRequestContextImpl.java:141)
> at org.jboss.as.protocol.mgmt.ActiveOperationImpl.asyncCancel(ActiveOperationImpl.java:150)
> at org.jboss.as.protocol.mgmt.AbstractMessageHandler.cancelAllActiveOperations(AbstractMessageHandler.java:441)
> at org.jboss.as.protocol.mgmt.AbstractMessageHandler.shutdownNow(AbstractMessageHandler.java:150)
> at org.jboss.as.remoting.AbstractChannelOpenListenerService$2.handleClose(AbstractChannelOpenListenerService.java:181)
> at org.jboss.as.remoting.AbstractChannelOpenListenerService$2.handleClose(AbstractChannelOpenListenerService.java:178)
> at org.jboss.remoting3.spi.SpiUtils.safeHandleClose(SpiUtils.java:50)
> at org.jboss.remoting3.spi.AbstractHandleableCloseable$CloseHandlerTask.run(AbstractHandleableCloseable.java:520)
> at org.jboss.remoting3.spi.AbstractHandleableCloseable.runCloseTask(AbstractHandleableCloseable.java:425)
> at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeComplete(AbstractHandleableCloseable.java:286)
> at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:508)
> at org.jboss.remoting3.spi.AbstractHandleableCloseable.close(AbstractHandleableCloseable.java:150)
> at org.jboss.as.protocol.mgmt.ManagementChannelReceiver.handleEnd(ManagementChannelReceiver.java:129)
> at org.jboss.remoting3.remote.RemoteConnectionChannel.lambda$notifyEnd$0(RemoteConnectionChannel.java:273)
> at org.jboss.remoting3.remote.RemoteConnectionChannel$$Lambda$737/243506564.run(Unknown Source)
> at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:991)
> at org.jboss.remoting3.EndpointImpl$TrackingExecutor$$Lambda$720/801134859.run(Unknown Source)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748)
> "management-handler-thread - 3" #145 prio=5 os_prio=0 tid=0x0000562c38d5b000 nid=0x3b80 at breakpoint[0x00007facf416f000]
> java.lang.Thread.State: RUNNABLE
> at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:162)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748)
> at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> - log
> 09:45:24,686 INFO [org.jboss.as.protocol] (management task-2) WFLYPRT0057: cancelled task by interrupting thread Thread[management-handler-thread - 3,5,management-handler-thread]{noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months
[Red Hat JIRA] (WFLY-14276) java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity
by Alessandro Moscatelli (Jira)
[ https://issues.redhat.com/browse/WFLY-14276?page=com.atlassian.jira.plugi... ]
Alessandro Moscatelli updated WFLY-14276:
-----------------------------------------
Steps to Reproduce:
I reproduce the problem when adding new nodes to an HA cluster using JGROUPS with JDBC_PING.
I am also using Elytron Security.
> java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity
> -----------------------------------------------------------------------------------
>
> Key: WFLY-14276
> URL: https://issues.redhat.com/browse/WFLY-14276
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 21.0.0.Final
> Reporter: Alessandro Moscatelli
> Assignee: Brian Stansberry
> Priority: Major
>
> Sometimes, when new members are added to an HA Wildfly Cluster, I see several errors like these :
> [0m[33m11:27:18,146 WARN [org.infinispan.PERSISTENCE] (default task-15) ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject': java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity[0m[33m11:27:18,146 WARN [org.infinispan.PERSISTENCE] (default task-15) ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject': java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:272) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1141) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1099) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:266) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.util.MapExternalizer.writeObject(MapExternalizer.java:63) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.util.MapExternalizer.writeObject(MapExternalizer.java:40) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ExternalizerProvider.writeObject(ExternalizerProvider.java:41) at org.wildfly.clustering.marshalling.jboss@21.0.0.Final//org.wildfly.clustering.marshalling.jboss.ExternalizerObjectTable$ExternalizerWriter.writeObject(ExternalizerObjectTable.java:142) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:139) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111) at org.wildfly.clustering.marshalling.jboss@21.0.0.Final//org.wildfly.clustering.marshalling.jboss.JBossByteBufferMarshaller.writeTo(JBossByteBufferMarshaller.java:92) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshaller.write(ByteBufferMarshaller.java:55) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshalledValue.getBuffer(ByteBufferMarshalledValue.java:59) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshalledValueExternalizer.writeObject(ByteBufferMarshalledValueExternalizer.java:63) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshalledValueExternalizer.writeObject(ByteBufferMarshalledValueExternalizer.java:37) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ExternalizerProvider.writeObject(ExternalizerProvider.java:41) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.ExternalizerMarshaller.writeTo(ExternalizerMarshaller.java:69) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:105) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:110) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.TypedObjectMarshaller.writeTo(TypedObjectMarshaller.java:57) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.MarshallerProvider.writeTo(MarshallerProvider.java:46) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.AnyMarshaller.writeTo(AnyMarshaller.java:84) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.AnyMarshaller.writeTo(AnyMarshaller.java:41) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:105) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:110) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.ProtoStreamByteBufferMarshaller.writeTo(ProtoStreamByteBufferMarshaller.java:83) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.protostream.ProtoStreamMarshaller.writeObject(ProtoStreamMarshaller.java:76) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToBuffer(AbstractMarshaller.java:107) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:101) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:76) at org.infinispan@11.0.4.Final//org.infinispan.marshall.protostream.impl.MarshallableUserObject$Marshaller.writeTo(MarshallableUserObject.java:149) at org.infinispan@11.0.4.Final//org.infinispan.marshall.protostream.impl.MarshallableUserObject$Marshaller.writeTo(MarshallableUserObject.java:102) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:257) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.toWrappedStream(ProtobufUtil.java:194) at org.infinispan@11.0.4.Final//org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToByteBuffer(PersistenceMarshallerImpl.java:133) at org.infinispan@11.0.4.Final//org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToByteBuffer(PersistenceMarshallerImpl.java:145) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeRawUnknown(GlobalMarshaller.java:638) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeUnknown(GlobalMarshaller.java:627) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeUnknown(GlobalMarshaller.java:618) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNonNullableObject(GlobalMarshaller.java:384) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNullableObject(GlobalMarshaller.java:352) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.BytesObjectOutput.writeObject(BytesObjectOutput.java:26) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.writeTo(PutKeyValueCommand.java:83) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:81) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:77) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:65) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeInternal(GlobalMarshaller.java:656) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNonNullableObject(GlobalMarshaller.java:371) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNullableObject(GlobalMarshaller.java:352) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.BytesObjectOutput.writeObject(BytesObjectOutput.java:26) at org.infinispan@11.0.4.Final//org.infinispan.commands.remote.SingleRpcCommand.writeTo(SingleRpcCommand.java:52) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:81) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.CacheRpcCommandExternalizer.marshallParameters(CacheRpcCommandExternalizer.java:142) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:138) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:81) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeInternal(GlobalMarshaller.java:656) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNonNullableObject(GlobalMarshaller.java:371) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNullableObject(GlobalMarshaller.java:352) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeObjectOutput(GlobalMarshaller.java:181) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeObjectOutput(GlobalMarshaller.java:174) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.objectToBuffer(GlobalMarshaller.java:302) at org.infinispan@11.0.4.Final//org.infinispan.remoting.transport.jgroups.JGroupsTransport.marshallRequest(JGroupsTransport.java:1061) at org.infinispan@11.0.4.Final//org.infinispan.remoting.transport.jgroups.JGroupsTransport.sendCommand(JGroupsTransport.java:1244) at org.infinispan@11.0.4.Final//org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeCommand(JGroupsTransport.java:913) at org.infinispan@11.0.4.Final//org.infinispan.remoting.rpc.RpcManagerImpl.invokeCommand(RpcManagerImpl.java:173) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.distribution.BaseDistributionInterceptor.primaryReturnHandler(BaseDistributionInterceptor.java:310) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextThenApply(BaseAsyncInterceptor.java:86) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.distribution.BaseDistributionInterceptor.handleNonTxWriteCommand(BaseDistributionInterceptor.java:236) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.distribution.NonTxDistributionInterceptor.visitPutKeyValueCommand(NonTxDistributionInterceptor.java:108) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.asyncInvokeNext(BaseAsyncInterceptor.java:232) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheLoaderInterceptor.visitDataCommand(CacheLoaderInterceptor.java:206) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheLoaderInterceptor.visitPutKeyValueCommand(CacheLoaderInterceptor.java:143) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.asyncInvokeNext(BaseAsyncInterceptor.java:232) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.EntryWrappingInterceptor.setSkipRemoteGetsAndInvokeNextForDataCommand(EntryWrappingInterceptor.java:739) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.EntryWrappingInterceptor.visitPutKeyValueCommand(EntryWrappingInterceptor.java:342) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndFinally(BaseAsyncInterceptor.java:155) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.lambda$nonTxLockAndInvokeNext$3(AbstractLockingInterceptor.java:308) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.SyncInvocationStage.andHandle(SyncInvocationStage.java:69) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.nonTxLockAndInvokeNext(AbstractLockingInterceptor.java:303) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitNonTxDataWriteCommand(AbstractLockingInterceptor.java:128) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor.visitDataWriteCommand(NonTransactionalLockingInterceptor.java:40) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitPutKeyValueCommand(AbstractLockingInterceptor.java:82) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndHandle(BaseAsyncInterceptor.java:188) at org.infinispan@11.0.4.Final//org.infinispan.statetransfer.StateTransferInterceptor.handleNonTxWriteCommand(StateTransferInterceptor.java:307) at org.infinispan@11.0.4.Final//org.infinispan.statetransfer.StateTransferInterceptor.handleWriteCommand(StateTransferInterceptor.java:251) at org.infinispan@11.0.4.Final//org.infinispan.statetransfer.StateTransferInterceptor.visitPutKeyValueCommand(StateTransferInterceptor.java:96) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheMgmtInterceptor.updateStoreStatistics(CacheMgmtInterceptor.java:246) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheMgmtInterceptor.visitPutKeyValueCommand(CacheMgmtInterceptor.java:210) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndExceptionally(BaseAsyncInterceptor.java:128) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.InvocationContextInterceptor.visitCommand(InvocationContextInterceptor.java:90) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:61) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:49) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.AsyncInterceptorChainImpl.invoke(AsyncInterceptorChainImpl.java:244) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.InvocationHelper.doInvoke(InvocationHelper.java:298) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.InvocationHelper.invoke(InvocationHelper.java:102) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.InvocationHelper.invoke(InvocationHelper.java:84) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.CacheImpl.put(CacheImpl.java:1268) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.DecoratedCache.put(DecoratedCache.java:678) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.DecoratedCache.put(DecoratedCache.java:537) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.AbstractDelegatingCache.put(AbstractDelegatingCache.java:449) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.EncoderCache.put(EncoderCache.java:711) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.AbstractDelegatingCache.put(AbstractDelegatingCache.java:449) at org.wildfly.clustering.ee.infinispan@21.0.0.Final//org.wildfly.clustering.ee.infinispan.CacheEntryMutator.mutate(CacheEntryMutator.java:59) at org.wildfly.clustering.web.cache@21.0.0.Final//org.wildfly.clustering.web.cache.session.coarse.CoarseSessionAttributes.close(CoarseSessionAttributes.java:100) at org.wildfly.clustering.web.cache@21.0.0.Final//org.wildfly.clustering.web.cache.session.CompositeSession.close(CompositeSession.java:78) at org.wildfly.clustering.web.cache@21.0.0.Final//org.wildfly.clustering.web.cache.session.ValidSession.close(ValidSession.java:88) at org.wildfly.clustering.web.undertow@21.0.0.Final//org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:90) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:960) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:590) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:328) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:174) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.ComponentStartupCountdownHandler.handleRequest(ComponentStartupCountdownHandler.java:51) at io.undertow.core@2.2.2.Final//io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:69) at io.undertow.core@2.2.2.Final//io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:104) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.Host$OptionsHandler.handleRequest(Host.java:399) at io.undertow.core@2.2.2.Final//io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:69) at com.stijndewitt.undertow.cors//com.stijndewitt.undertow.cors.Filter.handleRequest(Filter.java:676) at io.undertow.core@2.2.2.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:387) at io.undertow.core@2.2.2.Final//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841) at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at org.jboss.xnio@3.8.2.Final//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: an exception which occurred: in field org.wildfly.elytron.web.undertow.server.servlet.ServletSecurityContextImpl$IdentityContainer.securityIdentity in object org.wildfly.elytron.web.undertow.server.servlet.ServletSecurityContextImpl$IdentityContainer@67a5b40d in object org.wildfly.elytron.web.undertow.server.servlet.ServletSecurityContextImpl$IdentityContainer@67a5b40d in object java.util.concurrent.ConcurrentHashMap@a4c648b6
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months
[Red Hat JIRA] (WFLY-14276) java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity
by Alessandro Moscatelli (Jira)
Alessandro Moscatelli created WFLY-14276:
--------------------------------------------
Summary: java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity
Key: WFLY-14276
URL: https://issues.redhat.com/browse/WFLY-14276
Project: WildFly
Issue Type: Bug
Affects Versions: 21.0.0.Final
Reporter: Alessandro Moscatelli
Assignee: Brian Stansberry
Sometimes, when new members are added to an HA Wildfly Cluster, I see several errors like these :
[0m[33m11:27:18,146 WARN [org.infinispan.PERSISTENCE] (default task-15) ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject': java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity[0m[33m11:27:18,146 WARN [org.infinispan.PERSISTENCE] (default task-15) ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject': java.io.NotSerializableException: org.wildfly.security.auth.server.SecurityIdentity at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:272) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1141) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1099) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:266) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.util.MapExternalizer.writeObject(MapExternalizer.java:63) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.util.MapExternalizer.writeObject(MapExternalizer.java:40) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ExternalizerProvider.writeObject(ExternalizerProvider.java:41) at org.wildfly.clustering.marshalling.jboss@21.0.0.Final//org.wildfly.clustering.marshalling.jboss.ExternalizerObjectTable$ExternalizerWriter.writeObject(ExternalizerObjectTable.java:142) at org.jboss.marshalling.river@2.0.9.Final//org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:139) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58) at org.jboss.marshalling@2.0.9.Final//org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111) at org.wildfly.clustering.marshalling.jboss@21.0.0.Final//org.wildfly.clustering.marshalling.jboss.JBossByteBufferMarshaller.writeTo(JBossByteBufferMarshaller.java:92) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshaller.write(ByteBufferMarshaller.java:55) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshalledValue.getBuffer(ByteBufferMarshalledValue.java:59) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshalledValueExternalizer.writeObject(ByteBufferMarshalledValueExternalizer.java:63) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ByteBufferMarshalledValueExternalizer.writeObject(ByteBufferMarshalledValueExternalizer.java:37) at org.wildfly.clustering.marshalling.spi@21.0.0.Final//org.wildfly.clustering.marshalling.spi.ExternalizerProvider.writeObject(ExternalizerProvider.java:41) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.ExternalizerMarshaller.writeTo(ExternalizerMarshaller.java:69) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:105) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:110) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.TypedObjectMarshaller.writeTo(TypedObjectMarshaller.java:57) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.MarshallerProvider.writeTo(MarshallerProvider.java:46) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.AnyMarshaller.writeTo(AnyMarshaller.java:84) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.AnyMarshaller.writeTo(AnyMarshaller.java:41) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:105) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.writeTo(ProtobufUtil.java:110) at org.wildfly.clustering.marshalling.protostream@21.0.0.Final//org.wildfly.clustering.marshalling.protostream.ProtoStreamByteBufferMarshaller.writeTo(ProtoStreamByteBufferMarshaller.java:83) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.protostream.ProtoStreamMarshaller.writeObject(ProtoStreamMarshaller.java:76) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToBuffer(AbstractMarshaller.java:107) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:101) at org.wildfly.clustering.infinispan.marshalling@21.0.0.Final//org.wildfly.clustering.infinispan.marshalling.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:76) at org.infinispan@11.0.4.Final//org.infinispan.marshall.protostream.impl.MarshallableUserObject$Marshaller.writeTo(MarshallableUserObject.java:149) at org.infinispan@11.0.4.Final//org.infinispan.marshall.protostream.impl.MarshallableUserObject$Marshaller.writeTo(MarshallableUserObject.java:102) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:257) at org.infinispan.protostream@4.3.4.Final//org.infinispan.protostream.ProtobufUtil.toWrappedStream(ProtobufUtil.java:194) at org.infinispan@11.0.4.Final//org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToByteBuffer(PersistenceMarshallerImpl.java:133) at org.infinispan@11.0.4.Final//org.infinispan.marshall.persistence.impl.PersistenceMarshallerImpl.objectToByteBuffer(PersistenceMarshallerImpl.java:145) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeRawUnknown(GlobalMarshaller.java:638) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeUnknown(GlobalMarshaller.java:627) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeUnknown(GlobalMarshaller.java:618) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNonNullableObject(GlobalMarshaller.java:384) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNullableObject(GlobalMarshaller.java:352) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.BytesObjectOutput.writeObject(BytesObjectOutput.java:26) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.writeTo(PutKeyValueCommand.java:83) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:81) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:77) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:65) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeInternal(GlobalMarshaller.java:656) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNonNullableObject(GlobalMarshaller.java:371) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNullableObject(GlobalMarshaller.java:352) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.BytesObjectOutput.writeObject(BytesObjectOutput.java:26) at org.infinispan@11.0.4.Final//org.infinispan.commands.remote.SingleRpcCommand.writeTo(SingleRpcCommand.java:52) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:81) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.CacheRpcCommandExternalizer.marshallParameters(CacheRpcCommandExternalizer.java:142) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:138) at org.infinispan@11.0.4.Final//org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:81) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeInternal(GlobalMarshaller.java:656) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNonNullableObject(GlobalMarshaller.java:371) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeNullableObject(GlobalMarshaller.java:352) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeObjectOutput(GlobalMarshaller.java:181) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.writeObjectOutput(GlobalMarshaller.java:174) at org.infinispan@11.0.4.Final//org.infinispan.marshall.core.GlobalMarshaller.objectToBuffer(GlobalMarshaller.java:302) at org.infinispan@11.0.4.Final//org.infinispan.remoting.transport.jgroups.JGroupsTransport.marshallRequest(JGroupsTransport.java:1061) at org.infinispan@11.0.4.Final//org.infinispan.remoting.transport.jgroups.JGroupsTransport.sendCommand(JGroupsTransport.java:1244) at org.infinispan@11.0.4.Final//org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeCommand(JGroupsTransport.java:913) at org.infinispan@11.0.4.Final//org.infinispan.remoting.rpc.RpcManagerImpl.invokeCommand(RpcManagerImpl.java:173) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.distribution.BaseDistributionInterceptor.primaryReturnHandler(BaseDistributionInterceptor.java:310) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextThenApply(BaseAsyncInterceptor.java:86) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.distribution.BaseDistributionInterceptor.handleNonTxWriteCommand(BaseDistributionInterceptor.java:236) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.distribution.NonTxDistributionInterceptor.visitPutKeyValueCommand(NonTxDistributionInterceptor.java:108) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.asyncInvokeNext(BaseAsyncInterceptor.java:232) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheLoaderInterceptor.visitDataCommand(CacheLoaderInterceptor.java:206) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheLoaderInterceptor.visitPutKeyValueCommand(CacheLoaderInterceptor.java:143) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.asyncInvokeNext(BaseAsyncInterceptor.java:232) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.EntryWrappingInterceptor.setSkipRemoteGetsAndInvokeNextForDataCommand(EntryWrappingInterceptor.java:739) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.EntryWrappingInterceptor.visitPutKeyValueCommand(EntryWrappingInterceptor.java:342) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndFinally(BaseAsyncInterceptor.java:155) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.lambda$nonTxLockAndInvokeNext$3(AbstractLockingInterceptor.java:308) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.SyncInvocationStage.andHandle(SyncInvocationStage.java:69) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.nonTxLockAndInvokeNext(AbstractLockingInterceptor.java:303) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitNonTxDataWriteCommand(AbstractLockingInterceptor.java:128) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor.visitDataWriteCommand(NonTransactionalLockingInterceptor.java:40) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.locking.AbstractLockingInterceptor.visitPutKeyValueCommand(AbstractLockingInterceptor.java:82) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndHandle(BaseAsyncInterceptor.java:188) at org.infinispan@11.0.4.Final//org.infinispan.statetransfer.StateTransferInterceptor.handleNonTxWriteCommand(StateTransferInterceptor.java:307) at org.infinispan@11.0.4.Final//org.infinispan.statetransfer.StateTransferInterceptor.handleWriteCommand(StateTransferInterceptor.java:251) at org.infinispan@11.0.4.Final//org.infinispan.statetransfer.StateTransferInterceptor.visitPutKeyValueCommand(StateTransferInterceptor.java:96) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheMgmtInterceptor.updateStoreStatistics(CacheMgmtInterceptor.java:246) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.CacheMgmtInterceptor.visitPutKeyValueCommand(CacheMgmtInterceptor.java:210) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndExceptionally(BaseAsyncInterceptor.java:128) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.InvocationContextInterceptor.visitCommand(InvocationContextInterceptor.java:90) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:61) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitPutKeyValueCommand(DDAsyncInterceptor.java:59) at org.infinispan@11.0.4.Final//org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:63) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:49) at org.infinispan@11.0.4.Final//org.infinispan.interceptors.impl.AsyncInterceptorChainImpl.invoke(AsyncInterceptorChainImpl.java:244) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.InvocationHelper.doInvoke(InvocationHelper.java:298) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.InvocationHelper.invoke(InvocationHelper.java:102) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.InvocationHelper.invoke(InvocationHelper.java:84) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.CacheImpl.put(CacheImpl.java:1268) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.DecoratedCache.put(DecoratedCache.java:678) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.DecoratedCache.put(DecoratedCache.java:537) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.AbstractDelegatingCache.put(AbstractDelegatingCache.java:449) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.EncoderCache.put(EncoderCache.java:711) at org.infinispan@11.0.4.Final//org.infinispan.cache.impl.AbstractDelegatingCache.put(AbstractDelegatingCache.java:449) at org.wildfly.clustering.ee.infinispan@21.0.0.Final//org.wildfly.clustering.ee.infinispan.CacheEntryMutator.mutate(CacheEntryMutator.java:59) at org.wildfly.clustering.web.cache@21.0.0.Final//org.wildfly.clustering.web.cache.session.coarse.CoarseSessionAttributes.close(CoarseSessionAttributes.java:100) at org.wildfly.clustering.web.cache@21.0.0.Final//org.wildfly.clustering.web.cache.session.CompositeSession.close(CompositeSession.java:78) at org.wildfly.clustering.web.cache@21.0.0.Final//org.wildfly.clustering.web.cache.session.ValidSession.close(ValidSession.java:88) at org.wildfly.clustering.web.undertow@21.0.0.Final//org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:90) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:960) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:590) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:328) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) at io.undertow.servlet@2.2.2.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:174) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.deployment.ComponentStartupCountdownHandler.handleRequest(ComponentStartupCountdownHandler.java:51) at io.undertow.core@2.2.2.Final//io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:69) at io.undertow.core@2.2.2.Final//io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:104) at org.wildfly.extension.undertow@21.0.0.Final//org.wildfly.extension.undertow.Host$OptionsHandler.handleRequest(Host.java:399) at io.undertow.core@2.2.2.Final//io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:69) at com.stijndewitt.undertow.cors//com.stijndewitt.undertow.cors.Filter.handleRequest(Filter.java:676) at io.undertow.core@2.2.2.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:387) at io.undertow.core@2.2.2.Final//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841) at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at org.jboss.xnio@3.8.2.Final//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: an exception which occurred: in field org.wildfly.elytron.web.undertow.server.servlet.ServletSecurityContextImpl$IdentityContainer.securityIdentity in object org.wildfly.elytron.web.undertow.server.servlet.ServletSecurityContextImpl$IdentityContainer@67a5b40d in object org.wildfly.elytron.web.undertow.server.servlet.ServletSecurityContextImpl$IdentityContainer@67a5b40d in object java.util.concurrent.ConcurrentHashMap@a4c648b6
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months
[Red Hat JIRA] (DROOLS-5941) Order of parameters passed to the method called in accumulate function action() is unexpectedly changed in executable model.
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5941?page=com.atlassian.jira.plug... ]
Mario Fusco moved RHDM-1562 to DROOLS-5941:
-------------------------------------------
Component/s: executable model
(was: BRE)
Docs QE Status: NEW
Key: DROOLS-5941 (was: RHDM-1562)
QE Status: NEW
Affects Version/s: (was: 7.8.0.GA)
(was: 7.9.0.GA)
(was: 7.8.1.GA)
Workflow: GIT Pull Request workflow (was: CDW with docs v1)
Environment: (was: This issue does not occur on releases from RHDM 7.1.0 to 7.7.1 but occurs on releases from RHDM 7.8.0 to 7.9.0.)
Project: Drools (was: Red Hat Decision Manager)
> Order of parameters passed to the method called in accumulate function action() is unexpectedly changed in executable model.
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-5941
> URL: https://issues.redhat.com/browse/DROOLS-5941
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Reporter: Mario Fusco
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
> Attachments: reproducer_model_compiler_5a.zip
>
>
> Executing a rule like (\*1) that uses {{action()}} accumulate function in which calls a method like (\*1-1) in executable model, the order of parameters passed to the method is unexpectedly changed and the parameters are not passed correctly. For example of the rule (\*1-1), {{$a.method(map, $bList, $cList, $dList)}} is actually called as {{$a.method(map, $cList, $aList, $bList)}}.
> (\*1)
> {noformat}
> package com.example.reproducer
> import java.util.List
> import java.util.Set
> import java.util.Map
> import java.util.HashMap
> dialect "java"
> rule "rule5a"
> when
> $aList : List() from collect( A() )
> $bList : List() from collect( B() )
> $cList : List() from collect( C() )
> $dList : List() from collect( D() )
> $eSet : Set() from accumulate( $a : A() from $aList,
> init( Map map = new HashMap(); ),
> action( $a.method(map, $bList, $cList, $dList); ), // ..... (*1-1)
> result( map.keySet() ) )
> then
> System.out.println("***** Action of \"rule5a\" -- $aList = " + $aList + ", $bList = " + $bList + ", $cList = " + $cList + ", $dList = " + $dList + ", $eSet = " + $eSet);
> end
> {noformat}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months
[Red Hat JIRA] (DROOLS-5940) Fix Project Model code generation
by Gabriele Cardosi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5940?page=com.atlassian.jira.plug... ]
Gabriele Cardosi updated DROOLS-5940:
-------------------------------------
Description:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
{code:java}
modelsByKBase.values()
{code}
is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
public java.util.List<Model> getModelsForKieBase(String kieBaseName) {
switch (kieBaseName) {
}
throw new IllegalArgumentException("Unknown KieBase: " + kieBaseName);
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
was:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
{code:java}
modelsByKBase.values()
{code}
is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
> Fix Project Model code generation
> ---------------------------------
>
> Key: DROOLS-5940
> URL: https://issues.redhat.com/browse/DROOLS-5940
> Project: Drools
> Issue Type: Bug
> Reporter: Gabriele Cardosi
> Assignee: Gabriele Cardosi
> Priority: Blocker
>
> org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
> {code:java}
> modelsByKBase.values()
> {code}
> is an empty collection
> e.g.
> {code:java}
> @Override
> public java.util.List<Model> getModels() {
> return java.util.Arrays.asList(new ());
> }
> public java.util.List<Model> getModelsForKieBase(String kieBaseName) {
> switch (kieBaseName) {
> }
> throw new IllegalArgumentException("Unknown KieBase: " + kieBaseName);
> }
> {code}
> See methods
> {code:java}
> addGetModelsMethod
> {code}
> {code:java}
> addGetModelForKieBaseMethod
> {code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months
[Red Hat JIRA] (DROOLS-5940) Fix Project Model code generation
by Gabriele Cardosi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5940?page=com.atlassian.jira.plug... ]
Gabriele Cardosi updated DROOLS-5940:
-------------------------------------
Description:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
{code:java}
modelsByKBase.values()
{code}
is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
was:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
`modelsByKBase.values()` is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
> Fix Project Model code generation
> ---------------------------------
>
> Key: DROOLS-5940
> URL: https://issues.redhat.com/browse/DROOLS-5940
> Project: Drools
> Issue Type: Bug
> Reporter: Gabriele Cardosi
> Assignee: Gabriele Cardosi
> Priority: Blocker
>
> org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
> {code:java}
> modelsByKBase.values()
> {code}
> is an empty collection
> e.g.
> {code:java}
> @Override
> public java.util.List<Model> getModels() {
> return java.util.Arrays.asList(new ());
> }
> {code}
> See methods
> {code:java}
> addGetModelsMethod
> {code}
> {code:java}
> addGetModelForKieBaseMethod
> {code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months
[Red Hat JIRA] (DROOLS-5940) Fix Project Model code generation
by Gabriele Cardosi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5940?page=com.atlassian.jira.plug... ]
Gabriele Cardosi updated DROOLS-5940:
-------------------------------------
Description:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
`modelsByKBase.values()` is an empty collection
e.g.
{code:java}
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
{code}
See methods
{code:java}
addGetModelsMethod
{code}
{code:java}
addGetModelForKieBaseMethod
{code}
was:
org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
`modelsByKBase.values()` is an empty collection
e.g.
`
@Override
public java.util.List<Model> getModels() {
return java.util.Arrays.asList(new ());
}
`
See methods
`addGetModelsMethod`
`addGetModelForKieBaseMethod`
> Fix Project Model code generation
> ---------------------------------
>
> Key: DROOLS-5940
> URL: https://issues.redhat.com/browse/DROOLS-5940
> Project: Drools
> Issue Type: Bug
> Reporter: Gabriele Cardosi
> Assignee: Gabriele Cardosi
> Priority: Blocker
>
> org.drools.modelcompiler.builder.ModelSourceClass generate invalid java code when
> `modelsByKBase.values()` is an empty collection
> e.g.
> {code:java}
> @Override
> public java.util.List<Model> getModels() {
> return java.util.Arrays.asList(new ());
> }
> {code}
> See methods
> {code:java}
> addGetModelsMethod
> {code}
> {code:java}
> addGetModelForKieBaseMethod
> {code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)
3 years, 9 months