xmlGeneratorMac.sh throwing IllegalAccessError

Oxygen general issues.
mpbahl
Posts: 3
Joined: Thu Jan 06, 2011 7:09 pm

xmlGeneratorMac.sh throwing IllegalAccessError

Post 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)
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: xmlGeneratorMac.sh throwing IllegalAccessError

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mpbahl
Posts: 3
Joined: Thu Jan 06, 2011 7:09 pm

Re: xmlGeneratorMac.sh throwing IllegalAccessError

Post by mpbahl »

Radu,

That worked!
Thanks for the reply
-m
Post Reply