[JBoss JIRA] (IPROTO-50) Provide better error messages for annotation validation
by Adrian Nistor (JIRA)
Adrian Nistor created IPROTO-50:
-----------------------------------
Summary: Provide better error messages for annotation validation
Key: IPROTO-50
URL: https://issues.jboss.org/browse/IPROTO-50
Project: Infinispan ProtoStream
Issue Type: Enhancement
Affects Versions: 4.2.0.CR1
Reporter: Adrian Nistor
If an actual value of an annotation attribute does not match the expected type or is not among the allowed values we need to include the offending value in the error message to make the message more useful to the user.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (ISPN-9073) NPE with unauthorized CORS preflight request
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-9073?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-9073:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> NPE with unauthorized CORS preflight request
> --------------------------------------------
>
> Key: ISPN-9073
> URL: https://issues.jboss.org/browse/ISPN-9073
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.2.1.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 9.2.2.Final, 9.3.0.Alpha1
>
>
> This could happen if the browser does a pre-flight request with an "Origin" header which is not part of the authorized list of origins.
> {noformat}
> 2:16:19,514 ERROR [org.infinispan.rest.Http20RequestHandler] (REST-ServerWorker-5-12) ISPN012006: Uncaught exception in the pipeline: java.lang.NullPointerException
> at org.infinispan.rest.cors.CorsHandler.setOrigin(CorsHandler.java:126)
> at org.infinispan.rest.cors.CorsHandler.handlePreflight(CorsHandler.java:80)
> at org.infinispan.rest.cors.CorsHandler.channelRead(CorsHandler.java:67)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:438)
> at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
> at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
> at org.infinispan.server.core.transport.StatsChannelHandler.channelRead(StatsChannelHandler.java:26)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (ISPN-9073) NPE with unauthorized CORS preflight request
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-9073?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-9073:
----------------------------------
Sprint: Sprint 9.3.0.Alpha1
> NPE with unauthorized CORS preflight request
> --------------------------------------------
>
> Key: ISPN-9073
> URL: https://issues.jboss.org/browse/ISPN-9073
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.2.1.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 9.2.2.Final, 9.3.0.Alpha1
>
>
> This could happen if the browser does a pre-flight request with an "Origin" header which is not part of the authorized list of origins.
> {noformat}
> 2:16:19,514 ERROR [org.infinispan.rest.Http20RequestHandler] (REST-ServerWorker-5-12) ISPN012006: Uncaught exception in the pipeline: java.lang.NullPointerException
> at org.infinispan.rest.cors.CorsHandler.setOrigin(CorsHandler.java:126)
> at org.infinispan.rest.cors.CorsHandler.handlePreflight(CorsHandler.java:80)
> at org.infinispan.rest.cors.CorsHandler.channelRead(CorsHandler.java:67)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:438)
> at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
> at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
> at org.infinispan.server.core.transport.StatsChannelHandler.channelRead(StatsChannelHandler.java:26)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (ISPN-9071) NullPointerException in server for counters
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-9071?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-9071:
----------------------------------
Fix Version/s: 9.3.0.Alpha1
> NullPointerException in server for counters
> -------------------------------------------
>
> Key: ISPN-9071
> URL: https://issues.jboss.org/browse/ISPN-9071
> Project: Infinispan
> Issue Type: Bug
> Components: Clustered Counter, Server
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Fix For: 9.3.0.Alpha1
>
>
> In standalone, a NPE is thrown when you invoke any counter operation.
> {noformat}
> ERROR [org.infinispan.server.hotrod.HotRodEncoder] (HotRod-ServerWorker-5-6) ISPN005023: Exception encoding message EmptyResponse{version=27, messageId=5, cacheName='org.infinispan.COUNTER', clientIntel=3, operation=COUNTER_CREATE, status=OperationNotExecuted, topologyId=-1}: java.lang.NullPointerException
> at org.infinispan.server.hotrod.Encoder2x.writeHeader(Encoder2x.java:62)
> at org.infinispan.server.hotrod.HotRodEncoder.encode(HotRodEncoder.java:70)
> {noformat}
> In that line, we are trying to get the {{CacheManager}} via {{addressCache}}, however, the {{addressCache}} isn't needed in standalone mode and it is {{null}}.
> We should get the {{CacheManager}} from the {{HotRodServer}} instance.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (ISPN-9071) NullPointerException in server for counters
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-9071?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-9071:
----------------------------------
Sprint: Sprint 9.3.0.Alpha1
> NullPointerException in server for counters
> -------------------------------------------
>
> Key: ISPN-9071
> URL: https://issues.jboss.org/browse/ISPN-9071
> Project: Infinispan
> Issue Type: Bug
> Components: Clustered Counter, Server
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Fix For: 9.3.0.Alpha1
>
>
> In standalone, a NPE is thrown when you invoke any counter operation.
> {noformat}
> ERROR [org.infinispan.server.hotrod.HotRodEncoder] (HotRod-ServerWorker-5-6) ISPN005023: Exception encoding message EmptyResponse{version=27, messageId=5, cacheName='org.infinispan.COUNTER', clientIntel=3, operation=COUNTER_CREATE, status=OperationNotExecuted, topologyId=-1}: java.lang.NullPointerException
> at org.infinispan.server.hotrod.Encoder2x.writeHeader(Encoder2x.java:62)
> at org.infinispan.server.hotrod.HotRodEncoder.encode(HotRodEncoder.java:70)
> {noformat}
> In that line, we are trying to get the {{CacheManager}} via {{addressCache}}, however, the {{addressCache}} isn't needed in standalone mode and it is {{null}}.
> We should get the {{CacheManager}} from the {{HotRodServer}} instance.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (ISPN-9071) NullPointerException in server for counters
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-9071?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-9071:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> NullPointerException in server for counters
> -------------------------------------------
>
> Key: ISPN-9071
> URL: https://issues.jboss.org/browse/ISPN-9071
> Project: Infinispan
> Issue Type: Bug
> Components: Clustered Counter, Server
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Fix For: 9.3.0.Alpha1
>
>
> In standalone, a NPE is thrown when you invoke any counter operation.
> {noformat}
> ERROR [org.infinispan.server.hotrod.HotRodEncoder] (HotRod-ServerWorker-5-6) ISPN005023: Exception encoding message EmptyResponse{version=27, messageId=5, cacheName='org.infinispan.COUNTER', clientIntel=3, operation=COUNTER_CREATE, status=OperationNotExecuted, topologyId=-1}: java.lang.NullPointerException
> at org.infinispan.server.hotrod.Encoder2x.writeHeader(Encoder2x.java:62)
> at org.infinispan.server.hotrod.HotRodEncoder.encode(HotRodEncoder.java:70)
> {noformat}
> In that line, we are trying to get the {{CacheManager}} via {{addressCache}}, however, the {{addressCache}} isn't needed in standalone mode and it is {{null}}.
> We should get the {{CacheManager}} from the {{HotRodServer}} instance.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months