You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Stephen Darlington (JIRA)" <ji...@apache.org> on 2018/12/06 14:42:00 UTC

[jira] [Created] (IGNITE-10577) ignite-kubernetes is missing jackson-annotations dependency

Stephen Darlington created IGNITE-10577:
-------------------------------------------

             Summary: ignite-kubernetes is missing jackson-annotations dependency
                 Key: IGNITE-10577
                 URL: https://issues.apache.org/jira/browse/IGNITE-10577
             Project: Ignite
          Issue Type: Bug
          Components: build
    Affects Versions: 2.7
            Reporter: Stephen Darlington
            Assignee: Stephen Darlington


When starting 2.7 with the ignite-kubernetes option I get the following exception on startup:
 
{{[13:44:34,605][SEVERE][main][IgniteKernal] Got exception while starting (will rollback startup routine).}}{{java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonView}}{{ at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>(JacksonAnnotationIntrospector.java:37)}}{{ at com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:291)}}{{ at org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder.getRegisteredAddresses(TcpDiscoveryKubernetesIpFinder.java:151)}}{{ at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.registeredAddresses(TcpDiscoverySpi.java:1900)}}{{ at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.resolvedAddresses(TcpDiscoverySpi.java:1848)}}{{ at org.apache.ignite.spi.discovery.tcp.ServerImpl.sendJoinRequestMessage(ServerImpl.java:1049)}}{{ at org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:910)}}
 
It's clearly missing a dependency.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Re: [jira] [Created] (IGNITE-10577) ignite-kubernetes is missing jackson-annotations dependency

Posted by Stephen Darlington <st...@gridgain.com>.
Yeah, you can fix by manually adding the dependency either in your own code or by adding ignite-aws or ignite-rest-http to your list of OPTION_LIBS (since those also contain the correct dependency).

Regards,
Stephen

> On 7 Dec 2018, at 14:45, Dmitriy Pavlov <dp...@apache.org> wrote:
> 
> I've checked this patch and it looks good to me, it is really simple.
> 
> But probably we should consider auto-test it somehow. Nikolay Kulagin,
> could you chime in?
> 
> Stephen, could it be a workaround for end-user code? I guess user can just
> add this dependency in the pom and everything will work well.
> 
> Because release 2.7 is already done, the nearest time the issue could be
> fixed is 2.8.
> 
> чт, 6 дек. 2018 г. в 20:43, Stephen Darlington <
> stephen.darlington@gridgain.com>:
> 
>> Not sure what the etiquette on this is, but this is a regression in 2.7. I
>> added a simple patch to the ticket.
>> 
>> Regards,
>> Stephen
>> 
>>> On 6 Dec 2018, at 14:42, Stephen Darlington (JIRA) <ji...@apache.org>
>> wrote:
>>> 
>>> Stephen Darlington created IGNITE-10577:
>>> -------------------------------------------
>>> 
>>>            Summary: ignite-kubernetes is missing jackson-annotations
>> dependency
>>>                Key: IGNITE-10577
>>>                URL: https://issues.apache.org/jira/browse/IGNITE-10577
>>>            Project: Ignite
>>>         Issue Type: Bug
>>>         Components: build
>>>   Affects Versions: 2.7
>>>           Reporter: Stephen Darlington
>>>           Assignee: Stephen Darlington
>>> 
>>> 
>>> When starting 2.7 with the ignite-kubernetes option I get the following
>> exception on startup:
>>> 
>>> {{[13:44:34,605][SEVERE][main][IgniteKernal] Got exception while
>> starting (will rollback startup
>> routine).}}{{java.lang.NoClassDefFoundError:
>> com/fasterxml/jackson/annotation/JsonView}}{{ at
>> com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>(JacksonAnnotationIntrospector.java:37)}}{{
>> at
>> com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:291)}}{{
>> at
>> org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder.getRegisteredAddresses(TcpDiscoveryKubernetesIpFinder.java:151)}}{{
>> at
>> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.registeredAddresses(TcpDiscoverySpi.java:1900)}}{{
>> at
>> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.resolvedAddresses(TcpDiscoverySpi.java:1848)}}{{
>> at
>> org.apache.ignite.spi.discovery.tcp.ServerImpl.sendJoinRequestMessage(ServerImpl.java:1049)}}{{
>> at
>> org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:910)}}
>>> 
>>> It's clearly missing a dependency.
>>> 
>>> 
>>> 
>>> --
>>> This message was sent by Atlassian JIRA
>>> (v7.6.3#76005)
>> 
>> 
>> 



Re: [jira] [Created] (IGNITE-10577) ignite-kubernetes is missing jackson-annotations dependency

Posted by Николай Кулагин <zz...@gmail.com>.
Yes, since I am the author of the bug, I will consider the possibility of
an auto-test

пт, 7 дек. 2018 г. в 17:45, Dmitriy Pavlov <dp...@apache.org>:

> I've checked this patch and it looks good to me, it is really simple.
>
> But probably we should consider auto-test it somehow. Nikolay Kulagin,
> could you chime in?
>
> Stephen, could it be a workaround for end-user code? I guess user can just
> add this dependency in the pom and everything will work well.
>
> Because release 2.7 is already done, the nearest time the issue could be
> fixed is 2.8.
>
> чт, 6 дек. 2018 г. в 20:43, Stephen Darlington <
> stephen.darlington@gridgain.com>:
>
> > Not sure what the etiquette on this is, but this is a regression in 2.7.
> I
> > added a simple patch to the ticket.
> >
> > Regards,
> > Stephen
> >
> > > On 6 Dec 2018, at 14:42, Stephen Darlington (JIRA) <ji...@apache.org>
> > wrote:
> > >
> > > Stephen Darlington created IGNITE-10577:
> > > -------------------------------------------
> > >
> > >             Summary: ignite-kubernetes is missing jackson-annotations
> > dependency
> > >                 Key: IGNITE-10577
> > >                 URL:
> https://issues.apache.org/jira/browse/IGNITE-10577
> > >             Project: Ignite
> > >          Issue Type: Bug
> > >          Components: build
> > >    Affects Versions: 2.7
> > >            Reporter: Stephen Darlington
> > >            Assignee: Stephen Darlington
> > >
> > >
> > > When starting 2.7 with the ignite-kubernetes option I get the following
> > exception on startup:
> > >
> > > {{[13:44:34,605][SEVERE][main][IgniteKernal] Got exception while
> > starting (will rollback startup
> > routine).}}{{java.lang.NoClassDefFoundError:
> > com/fasterxml/jackson/annotation/JsonView}}{{ at
> >
> com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>(JacksonAnnotationIntrospector.java:37)}}{{
> > at
> >
> com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:291)}}{{
> > at
> >
> org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder.getRegisteredAddresses(TcpDiscoveryKubernetesIpFinder.java:151)}}{{
> > at
> >
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.registeredAddresses(TcpDiscoverySpi.java:1900)}}{{
> > at
> >
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.resolvedAddresses(TcpDiscoverySpi.java:1848)}}{{
> > at
> >
> org.apache.ignite.spi.discovery.tcp.ServerImpl.sendJoinRequestMessage(ServerImpl.java:1049)}}{{
> > at
> >
> org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:910)}}
> > >
> > > It's clearly missing a dependency.
> > >
> > >
> > >
> > > --
> > > This message was sent by Atlassian JIRA
> > > (v7.6.3#76005)
> >
> >
> >
>

Re: [jira] [Created] (IGNITE-10577) ignite-kubernetes is missing jackson-annotations dependency

Posted by Dmitriy Pavlov <dp...@apache.org>.
I've checked this patch and it looks good to me, it is really simple.

But probably we should consider auto-test it somehow. Nikolay Kulagin,
could you chime in?

Stephen, could it be a workaround for end-user code? I guess user can just
add this dependency in the pom and everything will work well.

Because release 2.7 is already done, the nearest time the issue could be
fixed is 2.8.

чт, 6 дек. 2018 г. в 20:43, Stephen Darlington <
stephen.darlington@gridgain.com>:

> Not sure what the etiquette on this is, but this is a regression in 2.7. I
> added a simple patch to the ticket.
>
> Regards,
> Stephen
>
> > On 6 Dec 2018, at 14:42, Stephen Darlington (JIRA) <ji...@apache.org>
> wrote:
> >
> > Stephen Darlington created IGNITE-10577:
> > -------------------------------------------
> >
> >             Summary: ignite-kubernetes is missing jackson-annotations
> dependency
> >                 Key: IGNITE-10577
> >                 URL: https://issues.apache.org/jira/browse/IGNITE-10577
> >             Project: Ignite
> >          Issue Type: Bug
> >          Components: build
> >    Affects Versions: 2.7
> >            Reporter: Stephen Darlington
> >            Assignee: Stephen Darlington
> >
> >
> > When starting 2.7 with the ignite-kubernetes option I get the following
> exception on startup:
> >
> > {{[13:44:34,605][SEVERE][main][IgniteKernal] Got exception while
> starting (will rollback startup
> routine).}}{{java.lang.NoClassDefFoundError:
> com/fasterxml/jackson/annotation/JsonView}}{{ at
> com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>(JacksonAnnotationIntrospector.java:37)}}{{
> at
> com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:291)}}{{
> at
> org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder.getRegisteredAddresses(TcpDiscoveryKubernetesIpFinder.java:151)}}{{
> at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.registeredAddresses(TcpDiscoverySpi.java:1900)}}{{
> at
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.resolvedAddresses(TcpDiscoverySpi.java:1848)}}{{
> at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.sendJoinRequestMessage(ServerImpl.java:1049)}}{{
> at
> org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:910)}}
> >
> > It's clearly missing a dependency.
> >
> >
> >
> > --
> > This message was sent by Atlassian JIRA
> > (v7.6.3#76005)
>
>
>

Re: [jira] [Created] (IGNITE-10577) ignite-kubernetes is missing jackson-annotations dependency

Posted by Stephen Darlington <st...@gridgain.com>.
Not sure what the etiquette on this is, but this is a regression in 2.7. I added a simple patch to the ticket. 

Regards,
Stephen

> On 6 Dec 2018, at 14:42, Stephen Darlington (JIRA) <ji...@apache.org> wrote:
> 
> Stephen Darlington created IGNITE-10577:
> -------------------------------------------
> 
>             Summary: ignite-kubernetes is missing jackson-annotations dependency
>                 Key: IGNITE-10577
>                 URL: https://issues.apache.org/jira/browse/IGNITE-10577
>             Project: Ignite
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 2.7
>            Reporter: Stephen Darlington
>            Assignee: Stephen Darlington
> 
> 
> When starting 2.7 with the ignite-kubernetes option I get the following exception on startup:
>  
> {{[13:44:34,605][SEVERE][main][IgniteKernal] Got exception while starting (will rollback startup routine).}}{{java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonView}}{{ at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>(JacksonAnnotationIntrospector.java:37)}}{{ at com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:291)}}{{ at org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder.getRegisteredAddresses(TcpDiscoveryKubernetesIpFinder.java:151)}}{{ at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.registeredAddresses(TcpDiscoverySpi.java:1900)}}{{ at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.resolvedAddresses(TcpDiscoverySpi.java:1848)}}{{ at org.apache.ignite.spi.discovery.tcp.ServerImpl.sendJoinRequestMessage(ServerImpl.java:1049)}}{{ at org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:910)}}
>  
> It's clearly missing a dependency.
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)