fatal error at startup with Oxygen 7 on osx (10.4.4)

Having trouble installing Oxygen? Got a bug to report? Post it all here.
fablamenas
Posts: 1
Joined: Sun Jan 22, 2006 7:56 pm

fatal error at startup with Oxygen 7 on osx (10.4.4)

Post by fablamenas »

i cannot launch Oxygen 7 (i used before v6):
I am on mac OSX (10.4.4) and

$ java -version
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)

When i luch oxygen via dedicated script:

$ /Applications/oxygen/oxygenMac.sh
16:56:11,867 73203 FATAL [ main ] ro.sync.ui.application.ApplicationLauncher - java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at ro.sync.exml.Oxygen.main(Unknown Source)
Caused by: java.lang.OutOfMemoryError
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

An OutOfMemoryError at startup can be caused by one or more large files which were open when <oXygen/> was closed last time and are opened automatically at startup. The fix is to allow a larger maximum limit for the heap space of the Java virtual machine in the oxygenMac.sh script by changing the -Xmx parameter of the java command, for example from -Xmx256m to -Xmx512m or -Xmx768m, like this:

Code: Select all

java  "-Xdock:name=Oxygen"  -Dcom.oxygenxml.editor.plugins.dir="$p/plugins" -Xmx768m  -cp "$CP" ro.sync.exml.Oxygen "$@"
After a successful startup if you close the large files and then close <oXygen/>, you can revert to -Xmx256m.

Another fix is to rename or delete your <oXygen/> preferences directory so that the files are not opened automatically at startup, called com.oxygenxml and located in [user-home-dir]/Library/Preferences. This is more drastic because you will lose all your <oXygen/> preferences.

Regards,
Sorin
boman
Posts: 1
Joined: Fri Mar 31, 2006 8:53 pm

Post by boman »

I'm trying to use very large files with Oxygen 7, and it is giving me java out of memorey errors.

I searched this forum and found this thread, but when I type in that code, I get
Exception in thread "main" java.lang.NoClassDefFoundError: ro/sync/exml/Oxygen

OS 10.4.2
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

The User Manual also describes how to increase the maximum memory allocated to <oXygen/> so that it can load very large files. When you edit oxygenMac.sh make sure you change only the value of the -Xmx parameter, for example from 256 MB to 512 MB. You should run oxygenMac.sh from [oXygen-install-folder].

Regards,
Sorin
Post Reply