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?
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:
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
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.
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)