[JBoss JIRA] (ISPN-9397) Check TX support for remote caches
by Pedro Ruivo (JIRA)
Pedro Ruivo created ISPN-9397:
---------------------------------
Summary: Check TX support for remote caches
Key: ISPN-9397
URL: https://issues.jboss.org/browse/ISPN-9397
Project: Infinispan
Issue Type: Bug
Components: Hot Rod, Remote Protocols, Transactions
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
Fix For: 9.4.0.Beta1
The {{RemoteCacheManager.getCache()}} methods would fail to return a transactional cache if the cache in server isn't transactional. It would throw an exception! {{NotTransactionalException}}?
The user can fallback to the non transaction case, example
{code:java}
try {
cache = remoteCacheManager.getCache("some-cache", TransactionMode.NON_XA);
} catch(NotTransactionalException e) {
cache = remoteCacheManager.getCache("some-cache", TransactionMode.NONE);
}
{code}
In addition, some helper method can be added to the {{RemoteCacheManager}} to avoid dealing with exceptions:
{code:java}
boolean supportsTransactions(String cacheName);
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months
[JBoss JIRA] (IPROTO-65) WrappedMessage.writeMessage does not handle instances of Short, Byte, Character
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/IPROTO-65?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated IPROTO-65:
--------------------------------
Fix Version/s: 4.3.0.Alpha1
4.2.1.Final
> WrappedMessage.writeMessage does not handle instances of Short, Byte, Character
> -------------------------------------------------------------------------------
>
> Key: IPROTO-65
> URL: https://issues.jboss.org/browse/IPROTO-65
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.0.Final
> Reporter: Ryan Emerson
> Assignee: Adrian Nistor
> Fix For: 4.3.0.Alpha1, 4.2.1.Final
>
>
> Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
> {code}
> java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
> at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months
[JBoss JIRA] (IPROTO-65) WrappedMessage.writeMessage does not handle instances of Short, Byte, Character
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/IPROTO-65?page=com.atlassian.jira.plugin.... ]
Work on IPROTO-65 started by Adrian Nistor.
-------------------------------------------
> WrappedMessage.writeMessage does not handle instances of Short, Byte, Character
> -------------------------------------------------------------------------------
>
> Key: IPROTO-65
> URL: https://issues.jboss.org/browse/IPROTO-65
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.0.Final
> Reporter: Ryan Emerson
> Assignee: Adrian Nistor
> Fix For: 4.3.0.Alpha1, 4.2.1.Final
>
>
> Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
> {code}
> java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
> at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months
[JBoss JIRA] (IPROTO-65) WrappedMessage::writeMessage does not handle instances of Short
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/IPROTO-65?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated IPROTO-65:
--------------------------------
Status: Open (was: New)
> WrappedMessage::writeMessage does not handle instances of Short
> ---------------------------------------------------------------
>
> Key: IPROTO-65
> URL: https://issues.jboss.org/browse/IPROTO-65
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.0.Final
> Reporter: Ryan Emerson
> Assignee: Adrian Nistor
>
> Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
> {code}
> java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
> at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months
[JBoss JIRA] (IPROTO-65) WrappedMessage.writeMessage does not handle instances of Short, Byte, Character
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/IPROTO-65?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated IPROTO-65:
--------------------------------
Summary: WrappedMessage.writeMessage does not handle instances of Short, Byte, Character (was: WrappedMessage::writeMessage does not handle instances of Short)
> WrappedMessage.writeMessage does not handle instances of Short, Byte, Character
> -------------------------------------------------------------------------------
>
> Key: IPROTO-65
> URL: https://issues.jboss.org/browse/IPROTO-65
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.0.Final
> Reporter: Ryan Emerson
> Assignee: Adrian Nistor
>
> Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
> {code}
> java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
> at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months
[JBoss JIRA] (IPROTO-65) WrappedMessage::writeMessage does not handle instances of Short
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/IPROTO-65?page=com.atlassian.jira.plugin.... ]
Adrian Nistor commented on IPROTO-65:
-------------------------------------
Same for Byte and Character. These primitives are not supported by design because there are no direct equivalents of byte, short, char in protobuf. They can be emulated using other types, like int32, but then the roundtrip would not be symmetrical, so it can confuse users, or at least that was the feeling a while ago.
We can introduce new fields in the WrappedMessage specially for them and ensure they roundtrip properly and make everybody happy. I'll start fixing this.
> WrappedMessage::writeMessage does not handle instances of Short
> ---------------------------------------------------------------
>
> Key: IPROTO-65
> URL: https://issues.jboss.org/browse/IPROTO-65
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.0.Final
> Reporter: Ryan Emerson
> Assignee: Adrian Nistor
>
> Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
> {code}
> java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
> at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months
[JBoss JIRA] (IPROTO-65) WrappedMessage::writeMessage does not handle instances of Short
by Ryan Emerson (JIRA)
Ryan Emerson created IPROTO-65:
----------------------------------
Summary: WrappedMessage::writeMessage does not handle instances of Short
Key: IPROTO-65
URL: https://issues.jboss.org/browse/IPROTO-65
Project: Infinispan ProtoStream
Issue Type: Bug
Affects Versions: 4.2.0.Final
Reporter: Ryan Emerson
Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
{code}
java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
...
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months
[JBoss JIRA] (IPROTO-65) WrappedMessage::writeMessage does not handle instances of Short
by Ryan Emerson (JIRA)
[ https://issues.jboss.org/browse/IPROTO-65?page=com.atlassian.jira.plugin.... ]
Ryan Emerson reassigned IPROTO-65:
----------------------------------
Assignee: Adrian Nistor
> WrappedMessage::writeMessage does not handle instances of Short
> ---------------------------------------------------------------
>
> Key: IPROTO-65
> URL: https://issues.jboss.org/browse/IPROTO-65
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.0.Final
> Reporter: Ryan Emerson
> Assignee: Adrian Nistor
>
> Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
> {code}
> java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
> at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
5 years, 9 months