Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

osgi values not being saved in AEM 6.2

Avatar

Avatar
Validate 25
Level 6
Mshajiahmed
Level 6

Likes

14 likes

Total Posts

331 posts

Correct Reply

126 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 6
Mshajiahmed
Level 6

Likes

14 likes

Total Posts

331 posts

Correct Reply

126 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
Mshajiahmed
Level 6

11-10-2016

ConfigManager is not saving the values. It is taking default values always, any changes in osgi values are not being reflected after saving.

 

Sometimes it does save for few properties, Values are being saved when there is no warning icon

If there is warning icon, none of the values are saved. Moving cursor over the icon shows the following message

Note, that this property is not set. The above field contains is the *default value* specified in the Meta Type service.

My class has the following defination

@Component(label = "Apache Jackrabbit Oak Custom Sync Handler", name = "com.mycom.ldap.core.LdapSynchronizationHelper",
configurationFactory = true, metatype = true, ds = false)

public class LdapSynchronizerSettings {

Property is defined as

    @Property(label = "User Expiration Time", description = "Duration until a synced user gets expired (eg. '1h 30m' or '1d').", value = CONST_USER_EXPIRATION_TIME_DEFAULT)

Other class where the logic for synchronication helper (com.mycom.ldap.core.LdapSynchronizationHelper) is defined as

 

@Component(
        // note that the metatype information is generated from LdapSynchronizerSettings
        policy = ConfigurationPolicy.REQUIRE, immediate = true)
@Service
public class LdapSynchronizationHelper implements SyncHandler {

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-10-2016

Are you seeing any messages in the AEM log file? 

Avatar

Avatar
Validate 25
Level 6
Mshajiahmed
Level 6

Likes

14 likes

Total Posts

331 posts

Correct Reply

126 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 6
Mshajiahmed
Level 6

Likes

14 likes

Total Posts

331 posts

Correct Reply

126 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
Mshajiahmed
Level 6

11-10-2016

No errors found in the error.log file. After I update from osgi I checked in /apps/system/config folder, I do see these changes in the file.

However when I open again from osgi, it shows the default values. If I click again on save it reverts back to default values. All the new changes are lost.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

11-10-2016

I have asked a few ppl in support to look at this to ensure its not a known issue. 

Avatar

Avatar
Boost 5
Employee
vmehrotr
Employee

Likes

19 likes

Total Posts

43 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Employee
vmehrotr
Employee

Likes

19 likes

Total Posts

43 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
vmehrotr
Employee

11-10-2016

Avatar

Avatar
Validate 25
Level 6
Mshajiahmed
Level 6

Likes

14 likes

Total Posts

331 posts

Correct Reply

126 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 6
Mshajiahmed
Level 6

Likes

14 likes

Total Posts

331 posts

Correct Reply

126 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
Mshajiahmed
Level 6

11-10-2016

Looked at the article: pls see http://www.nateyolles.com/blog/2015/10/updating-osgi-configurations-in-aem-and-sling

ConfigAdmin service is running,

I checked crx-quickstart/launchpad/config folder, it is creating the appropriate folder structure and config files.

Still the problem remains same

Avatar

Avatar
Validate 10
Level 3
kishore_polsani
Level 3

Likes

11 likes

Total Posts

77 posts

Correct Reply

7 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 3
kishore_polsani
Level 3

Likes

11 likes

Total Posts

77 posts

Correct Reply

7 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
kishore_polsani
Level 3

27-07-2018

Any luck? I am facing the same issue.

Avatar

Avatar
Validate 1
Level 2
ekta_aggarwal
Level 2

Likes

5 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ekta_aggarwal
Level 2

Likes

5 likes

Total Posts

21 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
ekta_aggarwal
Level 2

23-08-2018

I am also getting the same issue.