{"record":{"id":"583729cd24397c66","repo":"theonedev/onedev","slug":"has-not-been-properly-initialized-something-in-t","errorCode":null,"errorMessage":" has not been properly initialized. Something in the hierarchy of ","messagePattern":" has not been properly initialized\\. Something in the hierarchy of ","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"server-core/src/main/java/org/apache/wicket/Component.java","lineNumber":886,"sourceCode":"\t{\n\t\tfireInitialize();\n\t}\n\n\t/**\n\t * Used to call {@link #onInitialize()}\n\t */\n\tfinal void fireInitialize()\n\t{\n\t\tHierarchicalContext.push(new HierarchicalContext(new ComponentHierarchical(this)));\n\t\ttry {\n\t\t\tif (!getFlag(FLAG_INITIALIZED))\n\t\t\t{\n\t\t\t\tsetFlag(FLAG_INITIALIZED, true);\n\t\t\t\tsetRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED, false);\n\t\t\t\tonInitialize();\n\t\t\t\tif (!getRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED))\n\t\t\t\t{\n\t\t\t\t\tthrow new IllegalStateException(Component.class.getName() +\n\t\t\t\t\t\t\" has not been properly initialized. Something in the hierarchy of \" +\n\t\t\t\t\t\tgetClass().getName() +\n\t\t\t\t\t\t\" has not called super.onInitialize() in the override of onInitialize() method\");\n\t\t\t\t}\n\t\t\t\tsetRequestFlag(RFLAG_INITIALIZE_SUPER_CALL_VERIFIED, false);\n\t\n\t\t\t\tgetApplication().getComponentInitializationListeners().onInitialize(this);\n\t\t\t}\n\t\t\telse if (getFlag(FLAG_REMOVED))\n\t\t\t{\n\t\t\t\tsetFlag(FLAG_REMOVED, false);\n\t\t\t\tsetRequestFlag(RFLAG_ON_RE_ADD_SUPER_CALL_VERIFIED, false);\n\t\t\t\tonReAdd();\n\t\t\t\tif (!getRequestFlag(RFLAG_ON_RE_ADD_SUPER_CALL_VERIFIED))\n\t\t\t\t{\n\t\t\t\t\tthrow new IllegalStateException(Component.class.getName() +\n\t\t\t\t\t\t\t\" has not been properly added. Something in the hierarchy of \" +\n\t\t\t\t\t\t\tgetClass().getName() +","sourceCodeStart":868,"sourceCodeEnd":904,"githubUrl":"https://github.com/theonedev/onedev/blob/d44925c47c37992c828ea673a5f9620539bc3ff2/server-core/src/main/java/org/apache/wicket/Component.java#L868-L904","documentation":"Wicket's Component.initialize() calls onInitialize() and then verifies that the RFLAG_INITIALIZE_SUPER_CALL_VERIFIED flag was set. That flag is only set inside Component.onInitialize(), so if any subclass override of onInitialize() forgot to call super.onInitialize(), the flag stays unset and this IllegalStateException is thrown. It is a framework self-check to catch broken lifecycle overrides before they cause subtle state bugs.","triggerScenarios":"A class in the component hierarchy overrides onInitialize() without calling super.onInitialize(); the component is then attached/initialized during request processing.","commonSituations":"Custom panels/pages/behaviors written by hand or copied from old Wicket 1.x code (pre-6.x did not enforce super calls); upgrading Wicket versions surfaces previously tolerated overrides.","solutions":["Find the component class named in the message and its superclasses, locate the onInitialize() override","Add super.onInitialize() as the first statement of that override","Rebuild and re-run; if you do not override onInitialize, check parent classes and mixins for the missing super call"],"exampleFix":"// before\n@Override\nprotected void onInitialize() {\n    setOutputMarkupId(true);\n}\n// after\n@Override\nprotected void onInitialize() {\n    super.onInitialize();\n    setOutputMarkupId(true);\n}","handlingStrategy":"validation","validationCode":"// Before shipping, grep for overrides missing super calls:\n// grep -rn \"protected void onInitialize()\" src/main/java | while read f; do\n//   awk '/protected void onInitialize\\(\\)/,/^    }/' \"${f#*:}\" | grep -q 'super.onInitialize()' || echo \"missing super: $f\"\n// done","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always call super.onInitialize() as the first line of every override","Enable IDE inspections for missing super calls (IntelliJ 'Missing call to super')","Add an abstract base component that documents the super-call contract"],"tags":["wicket","lifecycle","component-initialization"],"backgroundTag":"method-not-implemented","analyzedSha":"d44925c47c37992c828ea673a5f9620539bc3ff2","analyzedAt":"2026-09-06T07:18:27.995Z","contentChangedAt":"2026-09-06T07:18:27.995Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}