Page 1 of 1

Oxygen not working on Vista RC1

Posted: Wed Sep 20, 2006 7:13 pm
by heavydawson
I've just installed Oxygen 7.2 on a Windows Vista sytem. I'm running JRE 1.5.0_08
I get the following JRE error messages:
===================================================
Cannot start <oXygen/>.
Due to: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:494)
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:585)
at ro.sync.exml.Oxygen.main(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3184
at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Win32ShellFolder2.java:748)
at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:248)
at sun.awt.shell.ShellFolder.get(ShellFolder.java:221)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(WindowsLookAndFeel.java:1865)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:185)
at javax.swing.UIDefaults.get(UIDefaults.java:130)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at javax.swing.UIDefaults.getIcon(UIDefaults.java:411)
at javax.swing.UIManager.getIcon(UIManager.java:613)
at javax.swing.plaf.basic.BasicFileChooserUI.installIcons(BasicFileChooserUI.java:237)
at javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(BasicFileChooserUI.java:219)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:135)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:126)
at javax.swing.JComponent.setUI(JComponent.java:652)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1755)
at javax.swing.JFileChooser.setup(JFileChooser.java:366)
at javax.swing.JFileChooser.<init>(JFileChooser.java:332)
at javax.swing.JFileChooser.<init>(JFileChooser.java:285)
at ro.sync.ui.O.<init>(Unknown Source)
at ro.sync.ui.E.<init>(Unknown Source)
at ro.sync.ui.E.A(Unknown Source)
at ro.sync.ui.application.K.<init>(Unknown Source)
at ro.sync.exml.MainFrame.<init>(Unknown Source)
at ro.sync.exml.MainFrame.<init>(Unknown Source)
... 11 more
============================================================

Now Microsoft do say this JRE is incompatible with Vista, but I've been running Eclipse with it for 2 weeks without a problem, as well as a few webstart apps.

Any suggestions? I guess it's probably a JRE problem, and I'll have to wait til sun delivers a Vista compatible _09 release....?

Re: Oxygen not working on Vista RC1

Posted: Thu Sep 21, 2006 11:26 am
by sorin_ristache
Hello,
heavydawson wrote:Caused by: java.lang.ArrayIndexOutOfBoundsException: 3184
at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Win32ShellFolder2.java:748)
at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:248)
at sun.awt.shell.ShellFolder.get(ShellFolder.java:221)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(WindowsLookAndFeel.java:1865)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:185)

...

Now Microsoft do say this JRE is incompatible with Vista, but I've been running Eclipse with it for 2 weeks without a problem, as well as a few webstart apps.
Eclipse uses a native library for the user interface instead of Swing which is a Java library.
heavydawson wrote:I guess it's probably a JRE problem, and I'll have to wait til sun delivers a Vista compatible _09 release....?
There is no other option.


Regards,
Sorin

Re: Oxygen not working on Vista RC1 / RTM

Posted: Tue Dec 05, 2006 4:45 pm
by paulmlewis
Hi,

Just in case it is of any use, if you start Oxygen from the command line with the oxygen.bat file it should work ok.

Well at least it does for me.

Using JRE 1.6.0, but I guess earlier versions would still be ok.

Regards,
Paul

Correction

Posted: Tue Dec 05, 2006 5:01 pm
by paulmlewis
Sorry, that worked for Oxygen 7.2 but not for 8.0

Posted: Wed Dec 06, 2006 12:13 pm
by sorin_ristache
Did you try with the Beta 2 of the JRE 1.6.0 ? It is compatible with Windows Vista. The previous error was obtained with JRE 1.5.0 which is not compatible with Vista.


Regards,
Sorin

Posted: Wed Dec 06, 2006 7:04 pm
by paulmlewis
Hi Sorin,

I am running the JDK 1.6.0 Release Candidate.

Actually with oxygen v8 this presents a different error.

Code: Select all

Cannot start <oXygen/>.
Due to: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:513)
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:597)
at ro.sync.exml.Oxygen.main(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Invalid index
at javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.java:497)
at sun.swing.FilePane$SortableListModel.getElementAt(FilePane.java:525)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1337)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1288)
at javax.swing.plaf.basic.BasicListUI.getCellBounds(BasicListUI.java:929)
at javax.swing.JList.getCellBounds(JList.java:1600)
at javax.swing.JList.ensureIndexIsVisible(JList.java:1116)
at sun.swing.FilePane.ensureIndexIsVisible(FilePane.java:1514)
at sun.swing.FilePane.doDirectoryChanged(FilePane.java:1440)
at sun.swing.FilePane.propertyChange(FilePane.java:1487)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at java.awt.Component.firePropertyChange(Component.java:7865)
at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:568)
at ro.sync.ui.application.K.<init>(Unknown Source)
at ro.sync.exml.MainFrame.<init>(Unknown Source)
at ro.sync.exml.MainFrame.<init>(Unknown Source)
... 11 more
The JDK/JRE 1.6.0 RC is the only JRE I have installed at the moment unless there are some other previous versions lurking around that I didn't manage to remove :-)

Anyway, not to worry I'll just run it in an XP virtual machine until things are good on Vista.

Cheers,
Paul

Posted: Thu Dec 07, 2006 12:03 pm
by sorin_ristache
paulmlewis wrote:The JDK/JRE 1.6.0 RC is the only JRE I have installed at the moment unless there are some other previous versions lurking around that I didn't manage to remove :-)
Specify the full path to the jre/bin/java.exe file of the Java 1.6.0 Beta 2 in the oxygen.bat script located in the oXygen install folder to make sure oXygen runs in Java 1.6.0 Beta 2 and start oXygen from command line using the command

Code: Select all

oxygen.bat
Do you get the same error ?


Regards,
Sorin

Posted: Fri Dec 22, 2006 1:55 pm
by Radu
Hi,

Just wanted to say that the release of Java Virtual Machine 1.6 available now for downwload fixes the last reported exception (there were problems with that release candidate).
We tested Oxygen with it and did not encounter any problems.

Best regards,
Radu