Page 1 of 1

xmlGeneratorMac.sh throwing IllegalAccessError

Posted: Thu Jan 06, 2011 11:46 pm
by mpbahl
I'm trying to run xmlGeneratorMac.sh and am getting an IllegalAccessError. I'm able to run "Generate Sample XML Files..." in the UI without a problem

I added the oxygen directory to my PATH and am running it where the configuration file is.

Mac OS X 10.6.5
Oxygen XML Editor 12.0, build 2010100114

Any ideas of the problem?

> xmlGeneratorMac.sh test-oxygen-config.xml
Exception in thread "main" java.lang.IllegalAccessError: tried to access field org.apache.xml.resolver.tools.CatalogResolver.catalogManager from class ro.sync.xml.b.h$6
at ro.sync.xml.b.h$6.b(Unknown Source)
at ro.sync.xml.b.h$6.resolveEntity(Unknown Source)
at ro.sync.xml.b.n.resolveEntity(Unknown Source)
at ro.sync.xml.parser.ParserCreator.getXMLInputSource(Unknown Source)
at ro.sync.contentcompletion.xml.c.g.f(Unknown Source)
at ro.sync.xml.generator.m.k(Unknown Source)
at ro.sync.xml.generator.n.rb(Unknown Source)
at ro.sync.xml.generator.bb.g(Unknown Source)
at ro.sync.xml.generator.n.jc(Unknown Source)
at ro.sync.xml.generator.XMLInstanceGenerator.main(Unknown Source)

Re: xmlGeneratorMac.sh throwing IllegalAccessError

Posted: Fri Jan 07, 2011 11:19 am
by Radu
Hi,

Thanks for reporting this problem.

It is an issue in our startup scripts and we'll fix it.
In the meantime you can edit the xmlGeneratorMac.sh and replace the line:

Code: Select all

CP=$OXYGEN_HOME/lib/log4j.jar:$OXYGEN_HOME/lib/xercesImpl.jar:$OXYGEN_HOME/lib/resolver.jar:$OXYGEN_HOME/lib/oxygen.jar:$OXYGEN_HOME/classes:$OXYGEN_HOME
with:

Code: Select all

CP=$OXYGEN_HOME/lib/log4j.jar:$OXYGEN_HOME/lib/oxygen.jar:$OXYGEN_HOME/classes:$OXYGEN_HOME:$OXYGEN_HOME/lib/xercesImpl.jar:$OXYGEN_HOME/lib/resolver.jar
If you have problems operating this change you can email us and we'll provide the entire modified script.

Regards,
Radu

Re: xmlGeneratorMac.sh throwing IllegalAccessError

Posted: Fri Jan 07, 2011 6:25 pm
by mpbahl
Radu,

That worked!
Thanks for the reply
-m