Page 1 of 1

insertXMLFragment fails when code run from IDE

Posted: Fri Jan 27, 2012 3:55 pm
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

Re: insertXMLFragment fails when code run from IDE

Posted: Fri Jan 27, 2012 4:11 pm
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

Re: insertXMLFragment fails when code run from IDE

Posted: Fri Jan 27, 2012 4:55 pm
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

Re: insertXMLFragment fails when code run from IDE

Posted: Fri Jan 27, 2012 5:42 pm
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