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

Null pointer exception after update to 0.27.0 from 0.26.1 #1091

Closed
eduramiba opened this issue Sep 27, 2018 · 1 comment
Closed

Null pointer exception after update to 0.27.0 from 0.26.1 #1091

eduramiba opened this issue Sep 27, 2018 · 1 comment

Comments

@eduramiba
Copy link

Description

Caused by: java.lang.NullPointerException
    at io.fabric8.maven.docker.StartMojo.prepareStart (StartMojo.java:349)
    at io.fabric8.maven.docker.StartMojo.executeInternal (StartMojo.java:149)
    at io.fabric8.maven.docker.AbstractDockerMojo.execute (AbstractDockerMojo.java:225)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

Info

* Maven version (`mvn -v`) :3.5.2
* Docker version : Docker version 18.06.1-ce, build e68fc7a

My configuration:

<plugin>
    <groupId>io.fabric8</groupId>
    <artifactId>docker-maven-plugin</artifactId>
    <configuration>
        <logStdout>true</logStdout>
        <logDate>default</logDate>
        <autoPull>true</autoPull>
        <removeVolumes>true</removeVolumes>
        <verbose>true</verbose>
        <images>
            <image>
                <name>xyz/database:${project.version}</name>
                <run>
                    <exposedPropertyKey>xyz-database-postgresql</exposedPropertyKey>
                    <log>
                        <enabled>true</enabled>
                        <driver>
                            <name>
                                <!-- Make sure default docker logging mode is used -->
                                json-file
                            </name>
                        </driver>
                    </log>
                    <net>bridge</net>
                    <wait>
                        <healthy>true</healthy>
                        <time>30000</time>
                        <kill>5000</kill>
                        <shutdown>5000</shutdown>
                    </wait>
                </run>
            </image>
        </images>
    </configuration>
</plugin>

Thank you!

rhuss added a commit to rhuss/docker-maven-plugin that referenced this issue Sep 28, 2018
We should finally switch to Optionals, now that we are on Java 8

Fixes fabric8io#1091
rhuss added a commit to rhuss/docker-maven-plugin that referenced this issue Sep 28, 2018
We should finally switch to Optionals, now that we are on Java 8

Fixes fabric8io#1091
@rhuss
Copy link
Collaborator

rhuss commented Sep 28, 2018

Thanks for reporting and sorry for that regression.

I'm going to release a 0.27.1 over the weekend to fix this.

rhuss added a commit to rhuss/docker-maven-plugin that referenced this issue Sep 28, 2018
We should finally switch to Optionals, now that we are on Java 8

Fixes fabric8io#1091
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

No branches or pull requests

2 participants