Skip to content

Commit d2c605b

Browse files
committed
demo: quarkus: 'load-on-startup' issue
1 parent e40f8f2 commit d2c605b

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

demo/qon-demo-quarkus/src/main/resources/META-INF/web.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
<param-value>/queryon.properties</param-value>
2525
</init-param> -->
2626
<!--
27+
FIXME: load-on-startup: if set to 1, the folloing error occurs:
28+
WARN [tbr.sql.cdi.CdiUtils] (Quarkus Main Thread) Exception instantiating class: tbrugz.queryon.quarkusdemo.DataSourceBean ; Exception: jakarta.enterprise.inject.CreationException: ActiveResult of synthetic bean for io.agroal.api.AgroalDataSource not initialized yet: io_agroal_api_AgroalDataSource_d57ffeb117c7359a64b62bfcd1f45b8878f49680
29+
- a synthetic bean initialized during RUNTIME_INIT must not be accessed during STATIC_INIT
30+
- RUNTIME_INIT build steps that require access to synthetic beans initialized during RUNTIME_INIT should consume the SyntheticBeansRuntimeInitBuildItem
31+
-->
32+
<!--
2733
<load-on-startup>1</load-on-startup>
2834
-->
2935
<!-- this 'multipart-config' seems to be needed for undertow server -->

qon-web/src/main/webapp/css/qon-components.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229

230230
.qonpopup input {
231231
float: right;
232-
margin: 5px -2em 0 0;
232+
margin: 5px -2em 5px 0;
233233
}
234234

235235
/***** diff *****/

qon-web/src/main/webapp/index.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@
10901090
updateState();
10911091
}
10921092

1093-
function getDownloadHrefs() {
1093+
function getDownloadHrefs(/*recurseLvl = 0*/) {
10941094
var ret = [];
10951095

10961096
var select = document.getElementById('objects');
@@ -1100,6 +1100,20 @@
11001100
objectName = select.options[select.selectedIndex].value;
11011101
}
11021102

1103+
if(!settings.loaded) {
1104+
console.warn("settings not loaded...");
1105+
return ret;
1106+
}
1107+
if(!settings["syntax.fileextensions"]) {
1108+
console.warn("settings/syntax.fileextensions not loaded... trying again loadSettings()");
1109+
loadSettings(loadSettingsCallback);
1110+
/*if(recurseLvl<2) {
1111+
console.log("getDownloadHrefs0(",recurseLvl,")");
1112+
ret = getDownloadHrefs(++recurseLvl);
1113+
console.log("getDownloadHrefs1(",recurseLvl,")", ret);
1114+
}*/
1115+
return ret;
1116+
}
11031117
var exts = settings["syntax.fileextensions"];
11041118
for(var i=0;i<exts.length;i++) {
11051119
if(downloadExtFilter.indexOf(exts[i])<0) { continue; }

0 commit comments

Comments
 (0)