AOS: Error while building from master branch on Github

Cannot invoke « com.axelor.studio.db.AppBase.getIsActivateInstanceInfoShortcut() » because the return value of « com.axelor.apps.base.service.app.AppBaseService.getAppBase() » is null

Class App. This method, called somewhere, assigns null

 public void setAppBase(AppBase appBase) {
    if (getAppBase() != null) {
      getAppBase().setApp(null);
    }
    if (appBase != null) {
      appBase.setApp(this);
    }
    this.appBase = appBase;
  }

AOS Version: 9.0.4
Axelor SDK
Version: 8.1.0
(build 2026-02-20T14:22:38Z - rev 95221252cacf)
Only two apps are visible and accessible for installation through the Apps management: Studio and BPM. While loading process and initial configuration of other apps can be seen in the debug log.

And, besides of that, default user admin is disabled by default (field Blocked in the record of the table auth_user is set to True) making first login impossible. Is this done intentionally?

Finally I rolled back to AOS 8.3.4 and Axelor SDK Version: 7.4.3 (build 2025-07-17T12:23:11Z - rev e6986828e6e7), as I did not had such an issues with it.

What is the last stable branch suitable for building from source, who knows - tell me, please.

Hello
On version AOS (WEB APP) 8+ with AOP (SDK) 7.4+, requirements are Installation :: Axelor Documentation (JDK 11)

On version AOS (WEB APP) 9+ with AOP (SDK) 8+, requirements are Installation :: Axelor Documentation (JDK 21)

I guess you fullfilled the minimum requirements?
On my side i was able to build from sources since version 9.0.1

Hello
Thanks for your reply. It is always some magic happens when you know exactly the version which was built successfully by someone - it starts working for unknown reason :slight_smile:

Finally I finished a project and have got some time to turn back to that issue.
I was able to build version 8.5 successfully, with a slight modification of open-suite-webapp’s build.gradle file. As all of it’s submodules requre Java 21, I’ve set Java version to:

group = ‹ com.axelor.apps ›
version = ‹ 8.5.15 ›
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}

It was built successfully, started up and works great. As the underlying data structure is not changed significantly, I’ll migrate my modules to this version.

Regarding the master (9.x) branch - it builds and starts as expected, but this problem is still persists (only Studio and BPM apps can be found in the App management section):

ERROR 42392 — [nio-8082-exec-3] .ActionService$$EnhancerByGuice$$8318aea : Cannot invoke « com.axelor.studio.db.AppBase.getIsActivateInstanceInfoShortcut() » because the return value of « com.axelor.apps.base.service.app.AppBaseService.getAppBase() » is null
java.lang.NullPointerException: Cannot invoke « com.axelor.studio.db.AppBase.getIsActivateInstanceInfoShortcut() » because the return value of « com.axelor.apps.base.service.app.AppBaseService.getAppBase() » is null

I am going to deal with it later. (SuSE Tumbleweed, Postgresql 16.3)