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!
Are you attempting to build an OSGi bundle in Java?
Views
Replies
Total Likes
Hi,
To make changes in java, probably using an IDE and then deploying the code onto the AEM instance would be a better option.
Views
Replies
Total Likes
Hi Rashid,
Can pls make sure your session that you are using in java have read access permission. Generally this may an issue.
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Session is active and i am logged in with admin. so there will not be any issue with privilege.
Views
Replies
Total Likes
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)
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies