I have an extremely strange issue occurring in my application environment. I am using NanoXML on WebLogic 8.1, with jRockit 1.4 (jrockit81sp5_142_08). My first problem was encountering an IllegalAccessError
on the class net.n3.nanoxml.XMLUtil
.
I thought it might be something to do with calling static methods within the package specifier, and it was. By changing this class to public, changing all its method to public, and additionally, moving it to another package I was able to fix the error. But after redeploying I encountered another error with net.n3.nanoxml.ContentReader
. I repeated my 'fix' for this class as well and the error disappeared.
So at the end I've moved the classes XMLUtil
and ContentReader
to package net.n3.nanoxml.util
and everything is working! But I have absolutely no idea why! This code always worked using Sun's JRE 1.4.2.
So my question is, what could cause such strange behaviour and what should I keep in mind while writing/debugging code for WebLogic and jRockit?