Comments (8)
@SriPalla, can you clean provider the versions of our Spring libraries you are using. Also, which version of Spring AOP are you using, It seems like it is an issue with Spring AOP and our library not Spring Actuator.
from appconfiguration.
@mrm9084 Springboot version: 3.2.3 spring-aop: 6.1.4
The issue is being observed after adding springboot actuator dependency along with spring aop
from appconfiguration.
It seems like it is an issue with Spring AOP and our library
@mrm9084 were you able to confirm this?
from appconfiguration.
So where I've seen this issue before is when Spring Native gets involved and it tries to Mock out one of our classes that's marked as final. I'm trying to repo, but haven't had any luck yet.
from appconfiguration.
@SriPalla I'm having trouble replicating this, do you have a sample that replicates the issue. Also, the bug states that the application fails to start, but the top of the stack trace says
org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext:632 : Exception encountered during context initialization - cancelling refresh attempt:
Which would only happen if the original started happened.
from appconfiguration.
@SriPalla, you you take that setup, with minimal app, (plus an empty config for GraphQL):
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
It starts up fine, with App Configuration enabled. I even added an endpoint to trigger refresh and it works fine. Are you doing something extra besides just running the Gradle build?
from appconfiguration.
Issue is being observed when you add custom AOP for example loging request and response header around spring web Request mapping and then adding actuator dependency will fail server startup
from appconfiguration.
@SriPalla. Thanks. Was able to replicate. Fix is in PR. I have a workaround below.
Instead use:
com.azure.spring:spring-cloud-azure-appconfiguration-config
not starter or web version. This version was created for just Spring Boot libraries and doesn't have the auto refresh feature built in. If you require the refresh feature, you can use it but manually. See: https://learn.microsoft.com/en-us/azure/azure-app-configuration/enable-dynamic-configuration-java-spring-app?tabs=spring-boot-3#use-manual-refresh.
from appconfiguration.
Related Issues (20)
- Helm Chart Example - AzureAppConfigurationProvider Resource HOT 15
- The pattern of "configuration_reference" is .NET-only HOT 2
- AzureAppConfigurationPush@6 in combination with Workload Identity Federation does not seem to work HOT 3
- Workload Identity Federation (Auotmatic) issue! HOT 2
- Are there plans to support loading external configuration via Spring's `spring.config.import` mechanism? HOT 1
- Kubernetes provider fails to run on arm platform HOT 9
- Request for documentation or source code for AzureAppConfigurationPush@6 HOT 1
- How to run a show command with a wildcard for label? HOT 1
- Delayed Startup and Request Quota Metrics Incorrectly Show 100% Usage HOT 2
- 403 after adding options.SelectSnapshot HOT 15
- Missing release notes for v7.2.0 of `Microsoft.Extensions.Configuration.AzureAppConfiguration` HOT 1
- Leverage Github's "Releases" capability HOT 3
- Need an example of using FeatureManagement with a database HOT 3
- AppConfigurationPushTask: Handle null values in Configuration file HOT 2
- UseAzureAppConfiguration and AzureAppConfigurationRefreshMiddleware break context execution HOT 11
- Should we allow FeatureFlag.enabled to be "true"/"false" (string type)? HOT 6
- ignore-match import mode ignored when importing json using appconfig/kvset profile HOT 9
- Configuration Refresher with Timer Trigger HOT 6
- Azure App Configuration Not Compatible with Azure App Insights HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appconfiguration.