Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Could not save changes in CRXDE Lite.

Avatar

Level 5

Hello Guys,

In CRX I am try to make some changes in a component based Java file, but when I try to save those changes, system is unable to save them and throwing error "Could not save changes. Received -1 (transaction aborted) for saving changes in workspace crx.default. Unknown error (Error Code: -1)". And file is okay and working and nothing wrong I find in program.

Could you please me to identify the issue and what is wrong happening here with me and why I am seeing this error?

Thanks!

Rashid Jorvee

8 Replies

Avatar

Level 10

Are you attempting to build an OSGi bundle in Java?

Avatar

Level 8

Hi,

To make changes in java, probably using an IDE and then deploying the code onto the AEM instance would be a better option.

Avatar

Level 6

Hi Rashid,

Can pls make sure your session that you are using in java have read access permission. Generally this may an issue.

Avatar

Level 10

By using Java in CRXDE, i assume you are trying to build an OSGi bundle in CRXDE lite. T His is not good practice at all. Not even sure where this is stated anymore.

To build an OSGi bundle, use Maven and an Adobe Archetype project. Here is a basic article that shows you getting started:

Scott's Digital Community: Creating your first AEM Service using an Adobe Maven Archetype project

This steps you through building a very basic service.

That is an older Archetype. However - here are articles on newer Maven Archetypes -- Scott's Digital Community: Creating your first AEM 6.2 Project using Adobe Maven Archetype 10

Scott's Digital Community: Creating an Adobe Experience Manager 6.3 Project using Adobe Maven Archet...

Avatar

Level 5

No smacdonald2008, I am not trying to build a bundle not even those file is belongs to any bundle. It is just a simple java file(similar like html) which have some logic. Sometimes I face this issue with other html files as well. And there is issue of authorization since I have logged in with admin credential.

Avatar

Level 5

Session is active and i am logged in with admin. so there will not be any issue with privilege.

Avatar

Level 10

If you close CRXDE and re-open it, does issue still occur? (we thought maybe you were attempting to build OSGi in CRXDE lite - we have seen that lately)

Avatar

Level 5

Hismacdonald2008

I closed the CRX and browser as well, even I tried in some other browser as well with fresh login in CRX, still that error is occurring.