fabric8io / docker-maven-plugin

Maven plugin for running and creating Docker images
https://dmp.fabric8.io
Apache License 2.0
1.88k stars 643 forks source link

Joda dependency expected but not found on start image #971

Open stickycode opened 6 years ago

stickycode commented 6 years ago

Description

When running an image after build it fails to process the log files

Exception in thread "Thread-1" java.lang.NoClassDefFoundError: org/joda/time/format/DateTimeParser
        at org.joda.time.format.ISODateTimeFormat$Constants.dateElementParser(ISODateTimeFormat.java:1347)
        at org.joda.time.format.ISODateTimeFormat$Constants.<clinit>(ISODateTimeFormat.java:1314)
        at org.joda.time.format.ISODateTimeFormat.dateTime(ISODateTimeFormat.java:773)
        at io.fabric8.maven.docker.util.Timestamp.<init>(Timestamp.java:60)
        at io.fabric8.maven.docker.access.log.LogRequestor.callLogCallback(LogRequestor.java:211)
        at io.fabric8.maven.docker.access.log.LogRequestor.readStreamFrame(LogRequestor.java:178)
        at io.fabric8.maven.docker.access.log.LogRequestor.parseResponse(LogRequestor.java:193)
        at io.fabric8.maven.docker.access.log.LogRequestor.run(LogRequestor.java:108)

Info

rhuss commented 6 years ago

That looks like a real strange error, as it seems to be an internal dependency error which I never have seen before.

Do you have a minimal pom.xml which we could use to reproduce it ?

thanks ...

stromnet commented 6 years ago

I accidentally saw the same thing due to #978 (only because it enabled logging when I did not expect to have it):

If logging configuration is enabled, mvn docker:start will fire up the logging tracker, just before maven & the JVM exits. I guess the LogDispatcher runs in some background thread?