Build Failure error: MojoExecutionException: NullPointerException

Not applicable

I'm having an Build Failure error: MojoExecutionException: NullPointerException

when executing node setup -u apigee-username -p apigee-password -o apigee-org -e apigee-environment -f apigee-developer-trainin-464e0.firebaseio.com

What I need to do to have it fixed? See portion of trace below:

<trace>

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #fff0a5; background-color: #13773d} span.s1 {font-variant-ligatures: no-common-ligatures}

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 32.138 s

[INFO] Finished at: 2018-03-27T21:06:43-05:00

[INFO] ------------------------------------------------------------------------

[WARNING] The requested profile "apigee-environment" could not be activated because it does not exist.

[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.6:deploy (deploy-bundle) on project edge-developer-training-idp: : MojoExecutionException: NullPointerException -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

(node:18120) UnhandledPromiseRejectionWarning: #<Object>

(node:18120) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

</trace>

Solved Solved
0 4 837
1 ACCEPTED SOLUTION

Hi @Sidney Shiba

Welcome to the community !!!

In the actual command you run, you need to pass your actual org name and environment name

node setup -u apigee-username -p apigee-password -o apigee-org -e apigee-environment -f apigee-developer-trainin-464e0.firebaseio.com

wont work, please replace apigee-username with your name, apigee-password with your password, apigee-org with your Apigee org name and apigee-environment with your apigee environment name

NOTE: Please make sure you have Node and Maven installed. You can check by running "node -v" and "mvn --version"

View solution in original post

4 REPLIES 4

Hi @Sidney Shiba

Welcome to the community !!!

In the actual command you run, you need to pass your actual org name and environment name

node setup -u apigee-username -p apigee-password -o apigee-org -e apigee-environment -f apigee-developer-trainin-464e0.firebaseio.com

wont work, please replace apigee-username with your name, apigee-password with your password, apigee-org with your Apigee org name and apigee-environment with your apigee environment name

NOTE: Please make sure you have Node and Maven installed. You can check by running "node -v" and "mvn --version"

@Sidney Shiba - did that work ? If yes, can you please accept this answer

@Sai Saran, Yes, it did work. Thanks.

Thanks ! Glad it worked