Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the classpath issues for jackson jar #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

govindmundhra
Copy link

Issue #, if available:
1.

-- Unit aws-kinesis-agent.service has begun starting up.
Dec 21 19:23:36 ip-172-16-1-38.ec2.internal runuser[17587]: pam_unix(runuser:session): session opened for user aws-kinesis-agent-user by (uid=0)
Dec 21 19:23:36 ip-172-16-1-38.ec2.internal runuser[17587]: pam_unix(runuser:session): session closed for user aws-kinesis-agent-user
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: Initialization logs can be found in /tmp/aws-kinesis-agent.20181221192336.initlog
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.(JacksonAnnotationI
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at com.fasterxml.jackson.databind.ObjectMapper.(ObjectMapper.java:291)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at com.amazon.kinesis.streaming.agent.config.Configuration.get(Configuration.java:77)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at com.amazon.kinesis.streaming.agent.config.Configuration.get(Configuration.java:64)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at com.amazon.kinesis.streaming.agent.Agent.readConfigurationFile(Agent.java:122)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at com.amazon.kinesis.streaming.agent.Agent.tryReadConfigurationFile(Agent.java:132)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at com.amazon.kinesis.streaming.agent.Agent.main(Agent.java:58)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonMerge
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: ... 7 more
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal systemd[1]: aws-kinesis-agent.service: control process exited, code=exited status=1
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal aws-kinesis-agent[17580]: [34B blob data]
Dec 21 19:23:38 ip-172-16-1-38.ec2.internal systemd[1]: Failed to start LSB: Daemon for Amazon Kinesis Agent..
-- Subject: Unit aws-kinesis-agent.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit aws-kinesis-agent.service has failed.

-- The result is failed.

Getting the below error while running the setup script.
install: cannot stat ‘./bin/aws-kinesis-agent.Redhat’: No such file or directory

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

@lhung lhung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need the same changes in pom.xml

        <dependency>
          <groupId>com.fasterxml.jackson.core</groupId>
          <artifactId>jackson-annotations</artifactId>
          <version>2.6.3</version>
        </dependency>
        <dependency>
          <groupId>com.fasterxml.jackson.core</groupId>
          <artifactId>jackson-core</artifactId>
          <version>2.6.3</version>
        </dependency>

@willUrgently
Copy link

A PR that has no code changes; config for building and installing only ... is a perfect place to update a lib version if appropriate. Are there any CVE's between 2.6.3 and 2.6.8 the latest? I assume the test suite is regression strong.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants