You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Describe the bug
When using dependency 'aws-xray-recorder-sdk-aws-sdk-instrumentor', when adding the dependency spring-cloud-starter-aws-parameter-store-config to use the aws-parameter store, a com.amazonaws.xray.exceptions.SegmentNotFoundException error occurs and the Application run fail occurs.
15:07:09.488 [Thread-1] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@758b364e
2021-10-15 15:07:10.208 INFO 14518 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2021-10-15 15:07:10.882 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : UDPAddress is set to 127.0.0.1:2000.
2021-10-15 15:07:10.882 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : TCPAddress is set to 127.0.0.1:2000.
2021-10-15 15:07:10.940 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : UDPAddress is set to 127.0.0.1:2000.
2021-10-15 15:07:10.940 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : TCPAddress is set to 127.0.0.1:2000.
2021-10-15 15:07:11.122 INFO 14518 --- [ restartedMain] a.c.p.AwsParamStorePropertySourceLocator : Loading property from AWS Parameter Store with name: /testssm/testkeys/, optional: false
2021-10-15 15:07:11.207 ERROR 14518 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
io.awspring.cloud.paramstore.
AwsParamStorePropertySources$AwsParameterPropertySourceNotFoundException: com.amazonaws.xray.exceptions.SegmentNotFoundException: Failed to begin subsegment named 'AWSSimpleSystemsManagement': segment cannot be found.
at io.awspring.cloud.paramstore.AwsParamStorePropertySources.createPropertySource(AwsParamStorePropertySources.java:91) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at io.awspring.cloud.paramstore.AwsParamStorePropertySourceLocator.locate(AwsParamStorePropertySourceLocator.java:85) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:51) ~[spring-cloud-context-3.0.4.jar:3.0.4]
at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47) ~[spring-cloud-context-3.0.4.jar:3.0.4]
at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:95) ~[spring-cloud-context-3.0.4.jar:3.0.4]
at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:639) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:402) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1318) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at com.example.xrayssmtest.XraySsMtestApplication.main(XraySsMtestApplication.java:12) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_302]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_302]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_302]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_302]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
Caused by: com.amazonaws.xray.exceptions.SegmentNotFoundException: Failed to begin subsegment named 'AWSSimpleSystemsManagement': segment cannot be found.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_302]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_302]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_302]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_302]
at com.amazonaws.xray.strategy.RuntimeErrorContextMissingStrategy.contextMissing(RuntimeErrorContextMissingStrategy.java:17) ~[aws-xray-recorder-sdk-core-2.0.0.jar:na]
at com.amazonaws.xray.contexts.ThreadLocalSegmentContext.beginSubsegment(ThreadLocalSegmentContext.java:23) ~[aws-xray-recorder-sdk-core-2.0.0.jar:na]
at com.amazonaws.xray.AWSXRayRecorder.beginSubsegment(AWSXRayRecorder.java:418) ~[aws-xray-recorder-sdk-core-2.0.0.jar:na]
at com.amazonaws.xray.handlers.TracingHandler.beforeRequest(TracingHandler.java:152) ~[aws-xray-recorder-sdk-aws-sdk-2.0.0.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.runBeforeRequestHandlers(AmazonHttpClient.java:841) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:783) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:770) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:744) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:704) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:686) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:550) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:530) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.doInvoke(AWSSimpleSystemsManagementClient.java:10229) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.invoke(AWSSimpleSystemsManagementClient.java:10196) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.invoke(AWSSimpleSystemsManagementClient.java:10185) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.executeGetParametersByPath(AWSSimpleSystemsManagementClient.java:6171) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.getParametersByPath(AWSSimpleSystemsManagementClient.java:6140) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at io.awspring.cloud.paramstore.AwsParamStorePropertySource.getParameters(AwsParamStorePropertySource.java:71) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at io.awspring.cloud.paramstore.AwsParamStorePropertySource.init(AwsParamStorePropertySource.java:56) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at io.awspring.cloud.paramstore.AwsParamStorePropertySources.createPropertySource(AwsParamStorePropertySources.java:85) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
... 15 common frames omitted
Process finished with exit code 0
The text was updated successfully, but these errors were encountered:
Type: Bug
Component:
"Parameter Store"
Describe the bug
When using dependency 'aws-xray-recorder-sdk-aws-sdk-instrumentor', when adding the dependency spring-cloud-starter-aws-parameter-store-config to use the aws-parameter store, a com.amazonaws.xray.exceptions.SegmentNotFoundException error occurs and the Application run fail occurs.
Sample
pom copy.txt
15:07:09.488 [Thread-1] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@758b364e
2021-10-15 15:07:10.208 INFO 14518 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2021-10-15 15:07:10.882 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : UDPAddress is set to 127.0.0.1:2000.
2021-10-15 15:07:10.882 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : TCPAddress is set to 127.0.0.1:2000.
2021-10-15 15:07:10.940 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : UDPAddress is set to 127.0.0.1:2000.
2021-10-15 15:07:10.940 DEBUG 14518 --- [ restartedMain] c.a.xray.config.DaemonConfiguration : TCPAddress is set to 127.0.0.1:2000.
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v2.4.12-SNAPSHOT)
2021-10-15 15:07:11.122 INFO 14518 --- [ restartedMain] a.c.p.AwsParamStorePropertySourceLocator : Loading property from AWS Parameter Store with name: /testssm/testkeys/, optional: false
2021-10-15 15:07:11.207 ERROR 14518 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
io.awspring.cloud.paramstore.
AwsParamStorePropertySources$AwsParameterPropertySourceNotFoundException: com.amazonaws.xray.exceptions.SegmentNotFoundException: Failed to begin subsegment named 'AWSSimpleSystemsManagement': segment cannot be found.
at io.awspring.cloud.paramstore.AwsParamStorePropertySources.createPropertySource(AwsParamStorePropertySources.java:91) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at io.awspring.cloud.paramstore.AwsParamStorePropertySourceLocator.locate(AwsParamStorePropertySourceLocator.java:85) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:51) ~[spring-cloud-context-3.0.4.jar:3.0.4]
at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47) ~[spring-cloud-context-3.0.4.jar:3.0.4]
at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:95) ~[spring-cloud-context-3.0.4.jar:3.0.4]
at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:639) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:402) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1318) [spring-boot-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
at com.example.xrayssmtest.XraySsMtestApplication.main(XraySsMtestApplication.java:12) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_302]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_302]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_302]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_302]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.4.12-20211012.235935-19.jar:2.4.12-SNAPSHOT]
Caused by: com.amazonaws.xray.exceptions.SegmentNotFoundException: Failed to begin subsegment named 'AWSSimpleSystemsManagement': segment cannot be found.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_302]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_302]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_302]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_302]
at com.amazonaws.xray.strategy.RuntimeErrorContextMissingStrategy.contextMissing(RuntimeErrorContextMissingStrategy.java:17) ~[aws-xray-recorder-sdk-core-2.0.0.jar:na]
at com.amazonaws.xray.contexts.ThreadLocalSegmentContext.beginSubsegment(ThreadLocalSegmentContext.java:23) ~[aws-xray-recorder-sdk-core-2.0.0.jar:na]
at com.amazonaws.xray.AWSXRayRecorder.beginSubsegment(AWSXRayRecorder.java:418) ~[aws-xray-recorder-sdk-core-2.0.0.jar:na]
at com.amazonaws.xray.handlers.TracingHandler.beforeRequest(TracingHandler.java:152) ~[aws-xray-recorder-sdk-aws-sdk-2.0.0.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.runBeforeRequestHandlers(AmazonHttpClient.java:841) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:783) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:770) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:744) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:704) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:686) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:550) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:530) ~[aws-java-sdk-core-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.doInvoke(AWSSimpleSystemsManagementClient.java:10229) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.invoke(AWSSimpleSystemsManagementClient.java:10196) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.invoke(AWSSimpleSystemsManagementClient.java:10185) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.executeGetParametersByPath(AWSSimpleSystemsManagementClient.java:6171) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.getParametersByPath(AWSSimpleSystemsManagementClient.java:6140) ~[aws-java-sdk-ssm-1.11.951.jar:na]
at io.awspring.cloud.paramstore.AwsParamStorePropertySource.getParameters(AwsParamStorePropertySource.java:71) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at io.awspring.cloud.paramstore.AwsParamStorePropertySource.init(AwsParamStorePropertySource.java:56) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
at io.awspring.cloud.paramstore.AwsParamStorePropertySources.createPropertySource(AwsParamStorePropertySources.java:85) ~[spring-cloud-aws-parameter-store-config-2.3.0.jar:2.3.0]
... 15 common frames omitted
Process finished with exit code 0
The text was updated successfully, but these errors were encountered: