NullPointerException during update-environment

67 views
Skip to first unread message

Bastien Billey

unread,
Oct 30, 2014, 9:23:08 AM10/30/14
to beanstal...@googlegroups.com
Hi, everything work fine until the update-environment. I get :

java.lang.NullPointerException
        at br.com.ingenieux.mojo.beanstalk.env.UpdateEnvironmentMojo.isOptionSettingsUpdateRequired(UpdateEnvironmentMojo.java:254)
        at br.com.ingenieux.mojo.beanstalk.env.UpdateEnvironmentMojo.executeInternal(UpdateEnvironmentMojo.java:231)
        at br.com.ingenieux.mojo.aws.AbstractAWSMojo.execute(AbstractAWSMojo.java:338)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        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:483)
        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)

I don't know what I'm missing for this last step

Thank's in advance

Linu Raj

unread,
Nov 21, 2014, 12:49:44 AM11/21/14
to beanstal...@googlegroups.com
Hi, Did you get this fixed? I am getting the same issue?

Thanks,
Linu.

Aldrin Leal

unread,
Nov 21, 2014, 9:42:05 AM11/21/14
to beanstal...@googlegroups.com
It was. Which version are you running?

Sent from my Windows Phone

From: Linu Raj
Sent: ‎11/‎21/‎2014 12:49 AM
To: beanstal...@googlegroups.com
Subject: Re: NullPointerException during update-environment

--
You received this message because you are subscribed to the Google Groups "beanstalker-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beanstalker-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bastien Billey

unread,
Nov 27, 2014, 3:41:02 AM11/27/14
to beanstal...@googlegroups.com
I use 

<groupId>br.com.ingenieux</groupId>
<artifactId>beanstalk-maven-plugin</artifactId>
<version>1.3.5</version>

And to fix it I had to put something useless inside my optionSettings

<optionSettings>
<setting>
<namespace>aws:elasticbeanstalk:application</namespace>
<optionName>Application Healthcheck URL</optionName>
<value>/ping</value>
</setting>
</optionSettings>

Aldrin Leal

unread,
Dec 1, 2014, 4:17:42 AM12/1/14
to beanstal...@googlegroups.com
Actually, we aren't using optionSettings. The recommended settings always ship with the archetypes, so you could simply check by doing this:

$ mvn archetype:generate -Dfilter=elasticbeanstalk

And review. I need up update the docs. e.g., the healthcheck is defined as such:

<beanstalk.applicationHealthCheckURL>/health/check</beanstalk.applicationHealthCheckURL>


Thanks


--
-- Aldrin Leal, <ald...@leal.eng.br>
Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/
Reply all
Reply to author
Forward
0 new messages