insertXMLFragment fails when code run from IDE

Oxygen general issues.
stevekxvi
Posts: 2
Joined: Fri Jan 27, 2012 3:26 pm

insertXMLFragment fails when code run from IDE

Post by stevekxvi »

Hi,
I have a simple application which uses authorAccess.insertXMLFragment(insertedXml, caretPosition); and works fine when built and deployed to oxygen framework. However, when I try to run the code from eclipse (as per these instructions, http://www.oxygenxml.com/forum/topic3789.html#p14949) which generally works fine, I get the following when the code attempts to insert an xml fragment:

java.io.IOException
at ro.sync.io.z.f(Unknown Source)
at ro.sync.io.z.d(Unknown Source)
at ro.sync.io.z$2.read(Unknown Source)
at ro.sync.io.n.read(Unknown Source)
at ro.sync.io.ib.d(Unknown Source)
at ro.sync.io.ib.b(Unknown Source)
at ro.sync.io.ib.c(Unknown Source)
at ro.sync.io.c.g(Unknown Source)
at ro.sync.io.c.j(Unknown Source)
at ro.sync.io.c.ab(Unknown Source)
at ro.sync.ecss.e.u.j(Unknown Source)
at ro.sync.ecss.e.u.o(Unknown Source)
at ro.sync.ecss.e.z.ec(Unknown Source)
at ro.sync.ecss.e.z.fc(Unknown Source)
at ro.sync.ecss.e.z.insertXMLFragment(Unknown Source)
at ro.sync.ecss.extensions.l.insertXMLFragment(Unknown Source)

Any tips how to fix this very much appreciated, Im using Oxygen 11.2 + Ganymede.

steve
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: insertXMLFragment fails when code run from IDE

Post by adrian »

Hello,

Can you please tell me what Eclipse plugin are you using(Editor or Author) and what build number(Window > Preferences, oXygen)?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
stevekxvi
Posts: 2
Joined: Fri Jan 27, 2012 3:26 pm

Re: insertXMLFragment fails when code run from IDE

Post by stevekxvi »

Hi Adrian,
Im not actually using a plugin / developing one. Im working on a very simple oxygen customisation, originally coded in the ide then jar exported to relevant framework folder. The setup described seemed ideal for debugging and indeed has proved so, but apologies if I have used your advise out of context. The problem is that this particular function, which has worked stand-alone, fails. My Oxygen is <oXygen/> XML Editor 11.2, build 2010051111.

regards

steve
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: insertXMLFragment fails when code run from IDE

Post by Radu »

Hi Steve,

If you contact us via the support email address support@oxygenxml.com I can try to give you a log configuration file to enable logging in the Oxygen Plugin for Eclipse.
Are there in the inserted fragment any entity references which are not declared in the XML?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply