Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/ff4jPublic

[Bug] ClasscastException for ff4j-webapi-jersey2x #740

Open
Assignees
clun
@Abhishek-503

Description

@Abhishek-503

I have below method for creating bean of ff4j which call ff4j service. After the sprinboot upgrade it is giving me the Linkage Error issue with ClassCastException. I have used ff4j-spring-boot-starter-webmvc and don't see FeatureStoreHttp, PropertyStoreHttp in the dependency. can you please tell me how I can change code below for bean to be created without any error. Also I removed the ff4j-webapi-jersey2x dependency which I was using earlier.

@Beanpublic FF4j ff4jClient() {FF4j ff4jClient = new FF4j();if (configurableEnvironment.acceptsProfiles(Profiles.of("aws")) || !featureFlagIsInMemoryServer) {//TODO: To be fixed as ff4j-webapi-jersey2x dependency causing ClassCastException after Java17 & Springboot Upgrade.ff4jClient.setFeatureStore(new FeatureStoreHttp(featureFlagApiUrl + "/ff4j", featureFlagAdminApiKey));ff4jClient.setPropertiesStore(new PropertyStoreHttp(featureFlagApiUrl + "/ff4j", featureFlagAdminApiKey));} else {ff4jClient.setFeatureStore(new InMemoryFeatureStore());ff4jClient.setPropertiesStore(new InMemoryPropertyStore());}populateFeatureFlags(ff4jClient, false);return ff4jClient;}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp