WebDAV - No access to the window

Hi,

GanttProject 2.8.9.

On some computers, the WebDAV server access window does not open.
(NB : on other computers, GanttProject 2.8.9 has perfect access to the same server.)
The problem appears on Windows or Ios machines with different versions of Java.

Any help will be welcome.

Thanx,

H.

Here is the log of the application (Windows 8.1) :

GanttProject 2.8.9 Pilsen (build 2335)
Settings file:
location: C:\Users\Guillaume.ganttproject
size:4261
is readable: true
java.class.path: eclipsito.jar;C:\Program Files (x86)\GanttProject-2.8
java.home: C:\Program Files\Java\jre7
java.ext.dirs: C:\Program Files\Java\jre7\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.io.tmpdir: C:\Users\GUILLA~1\AppData\Local\Temp
java.runtime.version: 1.7.0_10-b18
java.vendor: Oracle Corporation
java.vm.name: Java HotSpot™ 64-Bit Server VM
java.vm.vendor: Oracle Corporation
java.vm.version: 23.6-b04
os.arch: amd64
os.name: Windows 8
os.version: 6.2
sun.java.command: org.bardsoftware.eclipsito.Boot ganttproject-eclipsito-config.xml -log true
user.country: FR
user.dir: C:\Program Files (x86)\GanttProject-2.8
user.home: C:\Users\Guillaume
user.language: fr
user.timezone: Europe/Paris

janv. 17, 2019 10:45:53 AM net.sourceforge.ganttproject.GPLogger log
INFO: Options file:C:\Users\Guillaume.ganttproject
janv. 17, 2019 10:45:55 AM net.sourceforge.ganttproject.GPLogger log
INFO: Waiting until main window closes
janv. 17, 2019 10:45:55 AM net.sourceforge.ganttproject.GPLogger log
INFO: Deleting old auto-save files
janv. 17, 2019 10:46:02 AM org.ganttproject.impex.htmlpdf.itext.ITextEngine$2 run
INFO: Scanning font directories…
janv. 17, 2019 10:46:02 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: scanning directory=C:\Program Files\Java\jre7/lib/fonts
janv. 17, 2019 10:46:06 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: scanning directory=C:/windows/fonts
Creating main frame…

  1. loading look’n’feels
    no editor for column=0 class=interface javax.swing.Icon
    no editor for column=1 class=interface javax.swing.Icon
    no editor for column=2 class=interface javax.swing.Icon
  2. loading options
  3. creating menus…
  4. creating views…
  5. calculating size and packing…
  6. changing language …
  7. first attempt to restore bounds
    janv. 17, 2019 10:47:07 AM net.sourceforge.ganttproject.GPLogger log
    INFO: Bounds stored in the options: java.awt.Rectangle[x=-8,y=-8,width=1382,height=744]
  8. finalizing…
    Main frame created
    janv. 17, 2019 10:47:07 AM net.sourceforge.ganttproject.GPLogger log
    INFO: Bounds after setVisible: java.awt.Rectangle[x=-8,y=-8,width=1382,height=744]
    Splash closed
    Resizing window…
    janv. 17, 2019 10:47:15 AM net.sourceforge.ganttproject.GPLogger log
    INFO: Bounds after opening: java.awt.Rectangle[x=-8,y=-8,width=1382,height=744]
    janv. 17, 2019 10:47:29 AM net.sourceforge.ganttproject.GPLogger log
    INFO: Bounds stored in the options: java.awt.Rectangle[x=-8,y=-8,width=1382,height=744]
    janv. 17, 2019 10:49:28 AM net.sourceforge.ganttproject.GPLogger logToLogger
    WARNING: null
    java.lang.AssertionError
    at net.sourceforge.ganttproject.document.webdav.WebDavUri.(WebDavUri.java:64)
    at net.sourceforge.ganttproject.document.webdav.WebDavStorageImpl.createChooser(WebDavStorageImpl.java:274)
    at net.sourceforge.ganttproject.document.webdav.WebDavStorageImpl.open(WebDavStorageImpl.java:210)
    at net.sourceforge.ganttproject.action.project.CloudProjectActionBase.showURLDialog(CloudProjectActionBase.java:55)
    at net.sourceforge.ganttproject.action.project.OpenURLAction.openRemoteProject(OpenURLAction.java:58)
    at net.sourceforge.ganttproject.action.project.OpenURLAction.actionPerformed(OpenURLAction.java:48)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    ===========================================================================
    On Ios 10.14, please see screenshots

Reading the log I can say that the issue is with the server URL which ends with slash. Removing the trailing slash will likely solve this.

Thank you for your reply. Unfortunately, there is no slash at the end of the URL.

But it gave me the idea to look at the configuration file.

And I saw this:

The value value = "http: // & # 9; / is inherited from the default value present when entering the Webdav server URL. I do not know how this value is present in the configuration file, but it’s the one that blocks I think.

Indeed, I replaced this value by the correct address of the server and everything is back in order on the Windows computers.

On the other hand, I can not find the configuration file on an IOS computer.
Can you tell me where to look.

Thank you very much for your availability. And thank you for your work on this application.

Regards,

H.

Do you mean macOS when you write IOS? (GanttProject won’t run on iOS, since there is no Java Runtime for iOS)

On macOS config file sits in the same place: user home directory.
cat $HOME/.ganttproject in the Terminal will show you the contents.

Do you mean `macOS` when you write `IOS` ?

Yes of course.
Sorry.

Thank you for the location. The configuration file is a hidden file.

To view the file, open a terminal and :

defaults write com.apple.finder AppleShowAllFiles YES
killall Finder

He also had the same URL in error. Once corrected, access to the WebDAV page and then to the .gan file became possible.

So problem fixed on Windows and on MacOS.
I am very happy ! :smiley:

Regards,

H.

NB : To hide the files again on MacOS :

defaults write com.apple.finder AppleShowAllFiles NO
killall Finder