[JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required
by Adrian Nistor (Jira)
[ https://issues.jboss.org/browse/IPROTO-90?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated IPROTO-90:
--------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/protostream/pull/62
> NPE when writing message having a null field of a boxed primitive type that is also marked required
> ---------------------------------------------------------------------------------------------------
>
> Key: IPROTO-90
> URL: https://issues.jboss.org/browse/IPROTO-90
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Priority: Major
> Fix For: 4.3.0.Alpha1
>
>
> This happens with annotation based marshallers.
> {code}
> java.lang.NullPointerException
> at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
> at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
> at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required
by Adrian Nistor (Jira)
[ https://issues.jboss.org/browse/IPROTO-90?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated IPROTO-90:
--------------------------------
Description:
This happens with annotation based marshallers.
{code}
java.lang.NullPointerException
at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
{code}
was:
This happens with annotation based marshallers
{code}
java.lang.NullPointerException
at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
{code}
> NPE when writing message having a null field of a boxed primitive type that is also marked required
> ---------------------------------------------------------------------------------------------------
>
> Key: IPROTO-90
> URL: https://issues.jboss.org/browse/IPROTO-90
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Priority: Major
> Fix For: 4.3.0.Alpha1
>
>
> This happens with annotation based marshallers.
> {code}
> java.lang.NullPointerException
> at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
> at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
> at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required
by Adrian Nistor (Jira)
Adrian Nistor created IPROTO-90:
-----------------------------------
Summary: NPE when writing message having a null field of a boxed primitive type that is also marked required
Key: IPROTO-90
URL: https://issues.jboss.org/browse/IPROTO-90
Project: Infinispan ProtoStream
Issue Type: Bug
Reporter: Adrian Nistor
This happens with annotation based marshallers
{code}
java.lang.NullPointerException
at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required
by Adrian Nistor (Jira)
[ https://issues.jboss.org/browse/IPROTO-90?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated IPROTO-90:
--------------------------------
Status: Open (was: New)
> NPE when writing message having a null field of a boxed primitive type that is also marked required
> ---------------------------------------------------------------------------------------------------
>
> Key: IPROTO-90
> URL: https://issues.jboss.org/browse/IPROTO-90
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Reporter: Adrian Nistor
> Priority: Major
> Fix For: 4.3.0.Alpha1
>
>
> This happens with annotation based marshallers
> {code}
> java.lang.NullPointerException
> at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
> at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
> at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required
by Adrian Nistor (Jira)
[ https://issues.jboss.org/browse/IPROTO-90?page=com.atlassian.jira.plugin.... ]
Adrian Nistor reassigned IPROTO-90:
-----------------------------------
Assignee: Adrian Nistor
> NPE when writing message having a null field of a boxed primitive type that is also marked required
> ---------------------------------------------------------------------------------------------------
>
> Key: IPROTO-90
> URL: https://issues.jboss.org/browse/IPROTO-90
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Priority: Major
> Fix For: 4.3.0.Alpha1
>
>
> This happens with annotation based marshallers
> {code}
> java.lang.NullPointerException
> at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
> at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
> at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required
by Adrian Nistor (Jira)
[ https://issues.jboss.org/browse/IPROTO-90?page=com.atlassian.jira.plugin.... ]
Work on IPROTO-90 started by Adrian Nistor.
-------------------------------------------
> NPE when writing message having a null field of a boxed primitive type that is also marked required
> ---------------------------------------------------------------------------------------------------
>
> Key: IPROTO-90
> URL: https://issues.jboss.org/browse/IPROTO-90
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Priority: Major
> Fix For: 4.3.0.Alpha1
>
>
> This happens with annotation based marshallers
> {code}
> java.lang.NullPointerException
> at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
> at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
> at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required
by Adrian Nistor (Jira)
[ https://issues.jboss.org/browse/IPROTO-90?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated IPROTO-90:
--------------------------------
Fix Version/s: 4.3.0.Alpha1
> NPE when writing message having a null field of a boxed primitive type that is also marked required
> ---------------------------------------------------------------------------------------------------
>
> Key: IPROTO-90
> URL: https://issues.jboss.org/browse/IPROTO-90
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Priority: Major
> Fix For: 4.3.0.Alpha1
>
>
> This happens with annotation based marshallers
> {code}
> java.lang.NullPointerException
> at org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
> at org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
> at org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (ISPN-6279) Refactor CacheLoader API to make it thread safe
by William Burns (Jira)
[ https://issues.jboss.org/browse/ISPN-6279?page=com.atlassian.jira.plugin.... ]
William Burns closed ISPN-6279.
-------------------------------
Fix Version/s: (was: 10.0.0.Final)
Resolution: Duplicate
This was resolved in ISPN-8865
> Refactor CacheLoader API to make it thread safe
> -----------------------------------------------
>
> Key: ISPN-6279
> URL: https://issues.jboss.org/browse/ISPN-6279
> Project: Infinispan
> Issue Type: Feature Request
> Components: Loaders and Stores
> Reporter: Sebastian Łaskawiec
> Priority: Minor
>
> h3. Introduction
> Currently {{CacheLoader}} thread safety can be easily compromised by broken implementations. We should provide a better implementation to make it more convenient and less error prone.
> h3. Problem statement
> CacheLoader API looks like this:
> {code}
> public interface AdvancedCacheLoader<K, V> extends CacheLoader<K, V> {
> ...
> void process(KeyFilter<? super K> filter, CacheLoaderTask<K, V> task, Executor executor, boolean fetchValue, boolean fetchMetadata);
> ...
> }
> {code}
> The CacheLoader implementation controls {{CacheLoaderTask}} as well as the number of threads used for processing (specified by {{Executor}}). If one wants to collect all keys (similarly to [AdvancedCacheLoader|https://github.com/infinispan/infinispan/blob/master/...]) it is very easy to hit concurrently issues while adding them to the set (See previous JIRAs: ISPN-3938 and ISPN-6276).
> h3. Solution
> The solution should take away currently control (Executor) and keyset (the simplest idea is to add it to {{CacheLoaderTask}}) from from the implementation. One of the ideas is to create a Lambda expression for pulling records from Cache Store. Note that similar changes will need to be performed to {{CacheWriter}} (to make it similar).
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months