File Browser problem - Cannot enter folders

Found a bug in Wandora. Please report it here.

File Browser problem - Cannot enter folders

Postby athanassios » Wed Dec 07, 2011 3:20 pm

Hi,
recently I have installed the latest version of Wandora 2011-11-30 on both my Kubuntu-Windows XP 64bit versions OS. There seems to be a problem when you try to open a project from the File menu.

I have checked the permissions on the folders I am trying to access. I have also tried to sudo the Wandora.sh command. In this case the file browser GUI does not start at all
Wandora failed to perform action. An exception occurred while running tool org.wandora.application.tools.project.LoadWandoraProject
The stacktrace is similar with the one that I get when I run the script as a normal user (see below). In that case the file browser gui (Open Wandora project) pops up but it is impossible to change to a different folder except the home folder. You also get the following exception (see below).

Can you help please as this is really a very nasty bug....

Thank you

athanassios@tornado:/home/apps$ java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre (6b23~pre11-0ubuntu1.11.10)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)


Exception occurred during event dispatching:
java.lang.NullPointerException
at javax.swing.plaf.metal.MetalFileChooserUI$IndentIcon.getIconWidth(MetalFileChooserUI.java:912)
at javax.swing.SwingUtilities.layoutCompoundLabelImpl(SwingUtilities.java:960)
at javax.swing.SwingUtilities.layoutCompoundLabel(SwingUtilities.java:887)
at javax.swing.plaf.basic.BasicLabelUI.layoutCL(BasicLabelUI.java:94)
at javax.swing.plaf.basic.BasicLabelUI.getPreferredSize(BasicLabelUI.java:239)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1362)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1310)
at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2619)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
at javax.swing.JList.setSelectedIndex(JList.java:2196)
at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:1144)
at javax.swing.plaf.basic.BasicComboPopup.access$300(BasicComboPopup.java:63)
at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicComboPopup.java:982)
at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1222)
at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1279)
at javax.swing.JComboBox.contentsChanged(JComboBox.java:1326)
at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:117)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem(MetalFileChooserUI.java:1035)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(MetalFileChooserUI.java:1006)
at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.access$900(MetalFileChooserUI.java:931)
at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(MetalFileChooserUI.java:679)
at javax.swing.plaf.metal.MetalFileChooserUI.access$1200(MetalFileChooserUI.java:53)
at javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(MetalFileChooserUI.java:768)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:298)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:291)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:229)
at java.awt.Component.firePropertyChange(Component.java:8148)
at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:585)
at javax.swing.plaf.basic.BasicFileChooserUI.changeDirectory(BasicFileChooserUI.java:1126)
at javax.swing.plaf.basic.BasicFileChooserUI.access$000(BasicFileChooserUI.java:49)
at javax.swing.plaf.basic.BasicFileChooserUI$Handler.mouseClicked(BasicFileChooserUI.java:446)
at sun.swing.FilePane$Handler.mouseClicked(FilePane.java:1835)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.Component.processMouseEvent(Component.java:6271)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6033)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4629)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4306)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
at java.awt.Container.dispatchEventImpl(Container.java:2089)
at java.awt.Window.dispatchEventImpl(Window.java:2517)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
at java.awt.Dialog$1.run(Dialog.java:1072)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Exception occurred during event dispatching:
java.lang.NullPointerException
at javax.swing.plaf.metal.MetalFileChooserUI$IndentIcon.getIconWidth(MetalFileChooserUI.java:912)
at javax.swing.SwingUtilities.layoutCompoundLabelImpl(SwingUtilities.java:960)
at javax.swing.SwingUtilities.layoutCompoundLabel(SwingUtilities.java:887)
at javax.swing.plaf.basic.BasicLabelUI.layoutCL(BasicLabelUI.java:94)
at javax.swing.plaf.basic.BasicLabelUI.layout(BasicLabelUI.java:202)
at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:165)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:765)
at javax.swing.JComponent.paint(JComponent.java:1029)
at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:151)
at javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValue(BasicComboBoxUI.java:1250)
at javax.swing.plaf.metal.MetalComboBoxUI.paintCurrentValue(MetalComboBoxUI.java:90)
at javax.swing.plaf.basic.BasicComboBoxUI.paint(BasicComboBoxUI.java:902)
at javax.swing.plaf.metal.MetalComboBoxUI.paint(MetalComboBoxUI.java:62)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:765)
at javax.swing.JComponent.paint(JComponent.java:1029)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5138)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:302)
at javax.swing.RepaintManager.paint(RepaintManager.java:1188)
at javax.swing.JComponent._paintImmediately(JComponent.java:5086)
at javax.swing.JComponent.paintImmediately(JComponent.java:4896)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:783)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:735)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677)
at javax.swing.RepaintManager.access$700(RepaintManager.java:58)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1593)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
at java.awt.Dialog$1.run(Dialog.java:1072)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece

Running on Linux x64 with OpenJDK

Postby athanassios » Wed Dec 07, 2011 4:37 pm

Hope this installation experience of mine will help your users, therefore I decided to share the solution I managed to find on the bug I have reported before.

OK this is a configuration that works, meaning that the problem with the file browser GUI is solved automatically when you use the right Java environment.

/home/apps/wandora/bin$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"

/home/apps/wandora/bin$ uname -a
Linux 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

java -version
[size=18]java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)[/size]

You have to install or change the Java version you use in your machine
In Linux that is relatively simple if you have installed package
sudo apt-get install java-common
then you can see what are the java alternatives with the command
sudo update-java-alternatives --list
and finally you can set your environment to use the right Java e.g.
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64

Hope that helps
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece

Postby akivela » Wed Dec 07, 2011 4:56 pm

Hi Athanassios

Thank you for reporting the bug. It appears that I have failed to write a new UI for Wandora's file dialog. I have now disabled the feature and updated Wandora's download packages.

I apologize the trouble.

Kind Regards,
Aki / Wandora Team
akivela
Site Admin
 
Posts: 260
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Running on Windows XP x64

Postby athanassios » Wed Dec 07, 2011 5:20 pm

OK this is the configuration on a Windows XP x64 machine the version of Java that causes the File Browser GUI problem reported in a previous post is the following:

C:\Documents and Settings\Administrator>java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

Now if you change the version to the following one (x86) version
C:\Documents and Settings\Administrator>java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)

Then wandora.bat caused Windows XP to stuck COMPLETELY, no response with any key combination pressed !!!

So I am not sure whether you have tested wandora on a Windows x64 machine and under what exactly java version ?

But that is how far I reached at the moment .....
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece

Postby akivela » Wed Dec 07, 2011 5:32 pm

Hi Athanassios

As my reply above probably didn't catch your eyes, I'll repeat that I think we managed to fix the problem and a bug fix release is now available.

Thank you for the bug report!

Kind Regards,
Aki / Wandora Team
akivela
Site Admin
 
Posts: 260
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Have you tested it on Windows x64 ?

Postby athanassios » Wed Dec 07, 2011 6:55 pm

Hi Aki,
I have read your posts, the new version works fine on Linux x64 with the version of Java I installed. But it fails to start on Windows x64 platform, see my messages above.

Thanks for resolving it so fast, you are a great team there, I wish I could join you ;-)
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece

Postby akivela » Wed Dec 07, 2011 7:14 pm

Hi Athanassios

After updating Wandora software, I am running Wandora successfully in Windows 7 and x64 using java version "1.6.0_26"

Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

You have a slightly newer Java version but I find it hard to believe that minor number in Java version has such a radical change in Java environment that Wandora crashes.

Can you describe how Wandora.bat halts completely. Do you see Wandora's splash screen (the one that is visible during startup)? Do you see actual Wandora window? And what is actually written in console window?

Kind Regards,
Aki / Wandora Team
akivela
Site Admin
 
Posts: 260
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

About my Windows x64 environment configuration....

Postby athanassios » Thu Dec 08, 2011 12:35 pm

Hi Aki,
the Windows XP x64 is running as a VMWare guest machine inside Linux. That is causing the trouble I believe. The starting process of Wandora reaches as far as the point where you see
*****************************************************
*** WANDORA - KNOWLEDGE MANAGEMENT ENVIRONMENT ***
*** Copyright (C) 2011 Wandora Team ***
*** http://www.wandora.org/ ***
*****************************************************
Xms750m Xmx1000m

Then it is causing a complete halt, it is only the combination of Ctrl+shift+win that works to escape from the host. The strange thing is that the previous version was working with the x64 java and the bug.

OK I experimented a bit with other versions of JDK/JRE and I confirm that this strange halt behavior occurred by running sample applets. Therefore the problem lies with VMWare and the Java environment. But that is out of the scope of this forum and I stop here.

Thanks anyway for asking and the prompt help, hope this is also some useful information for other users running virtual windows machines.

Best regards
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece


Return to Bugs

Who is online

Users browsing this forum: No registered users and 10 guests

cron