Skip to content

Instantly share code, notes, and snippets.

@markuman
Created September 4, 2018 13:56
Show Gist options
  • Save markuman/207e8457b9b7d927c6dac305655e5491 to your computer and use it in GitHub Desktop.
Save markuman/207e8457b9b7d927c6dac305655e5491 to your computer and use it in GitHub Desktop.
# java -jar amazon-kinesis-agent-1.1-jar-with-dependencies.jar -L DEBUG -l /tmp/kinesis.log
Exception in thread "main" java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:117)
at com.amazon.kinesis.streaming.agent.Logging.getLog4JConfigurationDocument(Logging.java:160)
at com.amazon.kinesis.streaming.agent.Logging.initialize(Logging.java:122)
at com.amazon.kinesis.streaming.agent.Logging.initialize(Logging.java:115)
at com.amazon.kinesis.streaming.agent.Logging.initialize(Logging.java:109)
at com.amazon.kinesis.streaming.agent.Agent.main(Agent.java:62)
root@b1d7c75522af:/amazon-kinesis-agent/target# git diff
diff --git a/pom.xml b/pom.xml
index 6a858c2..90e7d36 100644
--- a/pom.xml
+++ b/pom.xml
@@ -192,6 +192,11 @@
<build>
<directory>target</directory>
+ <resources>
+ <resource>
+ <directory>resources</directory>
+ </resource>
+ </resources>
<outputDirectory>target/classes</outputDirectory>
<finalName>${project.artifactId}-${project.version}</finalName>
<sourceDirectory>src</sourceDirectory>
@@ -226,7 +231,18 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>com.amazon.kinesis.streaming.agent.Agent</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
root@b1d7c75522af:/amazon-kinesis-agent/target#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment