Fatal error code

Having trouble installing Oxygen? Got a bug to report? Post it all here.
AverillB
Posts: 8
Joined: Fri Dec 18, 2009 12:38 am

Fatal error code

Post by AverillB »

I've just upgraed to the latest version of oXygen (11.1), but when I try to run the program I get a fatal error code due to java.lang.reflect.InvocationTargetException.


I'm a fairly basic computer user and this is gobble-de-gook to me. I've googled it, but can't understand the suggestions to fix the issue. Could someone please explain it in plain English?

Many thanks for help in anticipation,
Averill
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Fatal error code

Post by adrian »

Hello,

Please select the entire error message from the FATAL ERROR dialog and Copy/Paste it here so we can investigate the reason of the crash.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
AverillB
Posts: 8
Joined: Fri Dec 18, 2009 12:38 am

Re: Fatal error code

Post by AverillB »

Hi Adrian,

The error code can be easily repeated and happens when oXygen gets 80% through the process of trying to open. Here is the start of the error message (I'm being told the error message contains too many characters to post):

Cannot start <oXygen/> XML Editor.
Due to:java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at ro.sync.ui.application.ApplicationLauncher.A(Unknown Source)
at ro.sync.ui.application.ApplicationLauncher.launch(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at ro.sync.exml.Oxygen.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.lang.StackOverflowError
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.ChoicePattern.apply(ChoicePattern.java:24)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:126)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseChoice(IdTypeMapBuilder.java:101)
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Fatal error code

Post by adrian »

Thank you for providing the error message.

If you don't mind, could you also provide the last few lines from the same error message, before getting to the repeating 'com.thaiopensource.relaxng.pattern' messages.

Thank you,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
AverillB
Posts: 8
Joined: Fri Dec 18, 2009 12:38 am

Re: Fatal error code

Post by AverillB »

Hi Adrian,

Those ARE the last few lines before getting to the repeating 'com.thaiopensource.relaxng.pattern' messages. The last few lines of the entire message read:

IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.OneOrMorePattern.apply(OneOrMorePattern.java:52)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseGroup(IdTypeMapBuilder.java:141)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseGroup(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.GroupPattern.apply(GroupPattern.java:38)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseGroup(IdTypeMapBuilder.java:140)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseGroup(IdTypeMapBuilder.java:101)
at com.thaiopensource.relaxng.pattern.GroupPattern.apply(GroupPattern.java:38)
at com.thaiopensource.relaxng.pattern.IdTypeMapBuilder$BuildFunction.caseGroup(IdTypeMapBuilder.java:140)

<end of error message>

Averill
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Fatal error code

Post by adrian »

My mistake, being a StackOverflowError it's next to impossible to see the end of its stack trace.

There are two ways to go about this:

1. Enlarge the stack and hope it's big enough for the file that's being open at startup.

This can be done by going to the Oxygen installation folder and editing(with Notepad or Wordpad) the Oxygen command line launcher oxygen.bat. On the last line, modify the argument -Xss512k with a larger value, -Xss1024k or if it still doesn't work, try -Xss2048k
Afterwards double-click the oxygen.bat script and see if the application launches correctly.

2. Avoid the file opening that causes the problem.

The easiest way to do this is to rename the oxygen options file.
The file is called oxyOptionsSa11.1.xml and you should find it in:

Windows XP - [user-home-folder]/Application Data/com.oxygenxml
Windows Vista/7 - [user-home-folder]/AppData/Roaming/com.oxygenxml
Mac OS X - [user-home-folder]/Library/Preferences/com.oxygenxml

Rename it to something like: oldoxyOptionsSa11.1.xml and start the application. To recover your previous options you need to import(Options -> Import Global Options) them from the renamed option file.

Let us know if any of these solutions worked.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
AverillB
Posts: 8
Joined: Fri Dec 18, 2009 12:38 am

Re: Fatal error code

Post by AverillB »

Hi Adrian,

Many thanks. I followed (1) and my program now opens without any problems. And thanks for explaining it in a way I could understand. Very clear.

Best,
Averill
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Fatal error code

Post by adrian »

Hello,

Meanwhile we also made a new Oxygen build(2009122213) for version 11.1 that avoids the application startup crash caused by the StackOverflowError.

If possible please install this new build. You can download it here:
http://www.oxygenxml.com/download_oxygenxml_editor.html

Please note that you might still need the 1st workaround(-Xss increased) in order for the validation support to work properly. This happens because some Relax NG schemas that are used for validating some of your documents have too many recurrences that manage to overflow the stack.

Best wishes and Merry Christmas,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply