question

newuser-04305f9f-b869-4d44-9b27-1336ffa4b74f avatar image

EC2 Missing parameter

Hi I am trying to build my code repositories using tomcat and when i do this am getting the below error message


An exception was caught and reported. Message: com.amazonaws.services.ec2.model.AmazonEC2Exception: The request must contain the parameter instanceId (Service: AmazonEC2; Status Code: 400; Error Code: MissingParameter; Request ID: c7f3c8a6-11cd-4ecc-9330-2d845914124d)

com.amazonaws.services.ec2.model.AmazonEC2Exception: The request must contain the parameter instanceId (Service: AmazonEC2; Status Code: 400; Error Code: MissingParameter; Request ID: c7f3c8a6-11cd-4ecc-9330-2d845914124d)

at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1695)

at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1350)

at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1101)

at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:758)

at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:732)

at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:714)

at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:674)

at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:656)

at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:520)

at com.amazonaws.services.ec2.AmazonEC2Client.doInvoke(AmazonEC2Client.java:18210)

at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:18179)

at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:18168)

at com.amazonaws.services.ec2.AmazonEC2Client.executeDescribeInstanceAttribute(AmazonEC2Client.java:8797)

at com.amazonaws.services.ec2.AmazonEC2Client.describeInstanceAttribute(AmazonEC2Client.java:8768)

at com.edh.core.utils.EC2Util.getUserDataString(EC2Util.java:18)

at com.edh.core.utils.EC2Util.getUserDataMap(EC2Util.java:24)

at com.edh.core.domain.EC2UserDataDomainProvider.provide(EC2UserDataDomainProvider.java:15)

at com.edh.core.domain.CompositeDomainProvider.provide(CompositeDomainProvider.java:14)

at com.edh.core.datasource.aws.dynamodb.DynamoDBConfigurationSource.<init>(DynamoDBConfigurationSource.java:31)

at com.edh.core.datasource.DefaultAbstractPropertyModule.<init>(DefaultAbstractPropertyModule.java:10)

at com.edh.inform.API$Configurator.configureServlets(API.java:111)

at com.google.inject.servlet.ServletModule.configure(ServletModule.java:53)

at com.google.inject.AbstractModule.configure(AbstractModule.java:59)

at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)

at com.google.inject.spi.Elements.getElements(Elements.java:101)

at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)

at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)

at com.google.inject.Guice.createInjector(Guice.java:95)

at com.google.inject.Guice.createInjector(Guice.java:72)

at com.google.inject.Guice.createInjector(Guice.java:62)

at com.edh.inform.API.<clinit>(API.java:96)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:151)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4739)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5283)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)


Mar 19, 2019 11:11:38 AM org.apache.catalina.core.StandardContext listenerStart

SEVERE: Error configuring application listener of class [com.edh.inform.API]

java.lang.ExceptionInInitializerError

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:151)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4739)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5283)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

developer portal
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Thanks for posting! This question is more suited for AWS Forums, please post it there: https://forums.aws.amazon.com/ - Thanks!

10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.