Dean
06/17/2024, 9:53 PM"ERROR","XNIO-1 task-10","06/18/2024","07:44:39","session-storage","org.json.XML;lucee.runtime.exp.NativeException: org.json.XML
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.felix.framework.BundleWiringImpl.doImplicitBootDelegation(BundleWiringImpl.java:1811)
at org.apache.felix.framework.BundleWiringImpl.tryImplicitBootDelegation(BundleWiringImpl.java:1740)
at org.apache.felix.framework.BundleWiringImpl.searchDynamicImports(BundleWiringImpl.java:1693)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1569)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976)Dean
06/17/2024, 9:54 PMDean
06/17/2024, 9:58 PM18 June 2024 at 07:56 (UTC+10:00)
[INFO ] 18 Jun 2024 07:56:41.647 runwar.context: "DEBUG","XNIO-1 task-7","06/18/2024","07:56:41","scope-context","create new session scope for test/49c06729-47bd-4f1b-bb1d-89bf59d86b24 in cache [sessioncache]"
1e031b4b948b40f88f4b9e6039605e29
lucee
18 June 2024 at 07:56 (UTC+10:00)
[INFO ] 18 Jun 2024 07:56:41.502 runwar.context: "DEBUG","XNIO-1 task-7","06/18/2024","07:56:41","scope-context","load existing data from cache [sessioncache] to create session scope for test/49c06729-47bd-4f1b-bb1d-89bf59d86b24"
1e031b4b948b40f88f4b9e6039605e29
lucee
18 June 2024 at 07:56 (UTC+10:00)
[INFO ] 18 Jun 2024 07:56:41.498 runwar.context: "DEBUG","XNIO-1 task-7","06/18/2024","07:56:41","scope-context","use existing session scope for /49c06729-47bd-4f1b-bb1d-89bf59d86b24 from storage sessioncache"Dean
06/17/2024, 9:58 PMlmajano
06/17/2024, 10:13 PMlmajano
06/17/2024, 10:13 PMlmajano
06/17/2024, 10:13 PMDean
06/17/2024, 10:13 PMlmajano
06/17/2024, 10:15 PMDean
06/17/2024, 10:15 PMDean
06/17/2024, 10:18 PMlmajano
06/17/2024, 10:18 PMlmajano
06/17/2024, 10:19 PMlmajano
06/17/2024, 10:19 PMlmajano
06/17/2024, 10:19 PMDean
06/17/2024, 10:20 PMDean
06/17/2024, 11:36 PM"ERROR","XNIO-1 task-16","06/18/2024","09:16:23","session-storage","org.json.XML;lucee.runtime.exp.NativeException: org.json.XML
at java.base/java.net.URLClassLoader.findClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)lmajano
06/18/2024, 8:21 AMlmajano
06/18/2024, 8:22 AMDean
06/18/2024, 8:25 AMlmajano
06/18/2024, 8:26 AMlmajano
06/18/2024, 8:27 AMDean
06/18/2024, 8:27 AMvariables.xmllib = createObject("java", "org.json.XML", "./json-20230618.jar");Dean
06/18/2024, 8:27 AMlmajano
06/18/2024, 8:27 AMlmajano
06/18/2024, 8:27 AMlmajano
06/18/2024, 8:27 AMDean
06/18/2024, 8:28 AMlmajano
06/18/2024, 8:28 AMApplication.cfcDean
06/18/2024, 8:28 AMlmajano
06/18/2024, 8:28 AMlmajano
06/18/2024, 8:28 AMlmajano
06/18/2024, 8:28 AMlmajano
06/18/2024, 8:28 AMthis.javaSettings and try classloading it via the applicationlmajano
06/18/2024, 8:29 AMcfapplication action="update"lmajano
06/18/2024, 8:29 AMlmajano
06/18/2024, 8:29 AMcreateobject() class loading or the Application class loadingDean
06/18/2024, 8:30 AMlmajano
06/18/2024, 8:30 AMlmajano
06/18/2024, 8:31 AMlmajano
06/18/2024, 8:31 AMlmajano
06/18/2024, 8:31 AMDean
06/18/2024, 8:31 AMdswitzer
06/18/2024, 11:16 AMDean
06/18/2024, 9:06 PMDean
06/18/2024, 9:47 PMvariables in the init() to a var inside the function where its needed and Ive not seen the same issues occurring. Will keep an eye on it today. Interesting though, I have no idea how that decided it wanted to be in the session scope π€·lmajano
06/19/2024, 8:20 AMsession scope and you have a distributed cache, then the objects will be serialized and sent over the wire. When they are deserialized back into the requested JVM, they are not guaranteed to have any dependencies inflated that are not serializable. ThatΕ why putting objects in a serialized cache is discouraged unless you have control of the serialization/deserialization process. If not, try to use a state or memento pattern to basically move the state of an object from one cluster to another