Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Jameica 1.10 + Hibiscus 1.12
      Windows 7 Ultimate x64
      WHS

      Description

      Add UNC Path support for the getTemplate function:

      Here an extract of the Hibiscus log file:
      ...
      [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.jameica.gui.internal.parts.BackgroundTaskMonitor.check] creating progress monitor for GUI
      [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.jameica.gui.internal.parts.BackgroundTaskMonitor$2.run] activating progress monitor
      [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.boot.BootLoader.resolve] init service de.willuhn.jameica.services.VelocityService
      [Mon Oct 18 18:23:16 CEST 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.VelocityService: 285 millis
      [Mon Oct 18 18:23:16 CEST 2010][ERROR][de.willuhn.jameica.services.VelocityService$VelocityLogger.log] ResourceManager : unable to find resource 'de.willuhn.jameica.hbci.rmi.Umsatz.csv.vm' in any resource loader.
      [Mon Oct 18 18:23:16 CEST 2010][ERROR][de.willuhn.jameica.hbci.io.VelocityExporter.doExport] error while writing into export file
      org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'de.willuhn.jameica.hbci.rmi.Umsatz.csv.vm'
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
      at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:549)
      at de.willuhn.jameica.hbci.io.VelocityExporter.doExport(VelocityExporter.java:107)
      at de.willuhn.jameica.hbci.gui.dialogs.ExportDialog$3.run(ExportDialog.java:193)
      at de.willuhn.jameica.gui.GUI$6.run(GUI.java:912)
      [Mon Oct 18 18:23:16 CEST 2010][ERROR][de.willuhn.jameica.messaging.LogMessageConsumer.handleMessage] Fehler beim Schreiben in die Export-Datei
      ...

      1. patch1-0
        15 kB
        Misagh Moayyed

        Activity

        Hide
        Misagh Moayyed added a comment -

        I have implemented a UNFileResourceLoader, very similar to the FileResourceLoader to handle UNC paths, along with a test case. Will attach the patch asap.

        Show
        Misagh Moayyed added a comment - I have implemented a UNFileResourceLoader, very similar to the FileResourceLoader to handle UNC paths, along with a test case. Will attach the patch asap.
        Hide
        Misagh Moayyed added a comment - - edited

        Patch adds a new resource loader: UNCFileResourceLoader

        Adds two test cases for absolute and relative path tests.

        Keyword: PatchAvailable

        Show
        Misagh Moayyed added a comment - - edited Patch adds a new resource loader: UNCFileResourceLoader Adds two test cases for absolute and relative path tests. Keyword: PatchAvailable
        Hide
        Christopher Schultz added a comment -

        Shouldn't there be some back-slashes in your UNC path name? I don't see any of them.

        Show
        Christopher Schultz added a comment - Shouldn't there be some back-slashes in your UNC path name? I don't see any of them.
        Hide
        Misagh Moayyed added a comment -

        See the UNC_PATH_PREFIX constant. It should handle the black-slashes for paths when it builds the file object.

        Show
        Misagh Moayyed added a comment - See the UNC_PATH_PREFIX constant. It should handle the black-slashes for paths when it builds the file object.
        Hide
        Misagh Moayyed added a comment -

        Guys, any updates on the patch ?

        Show
        Misagh Moayyed added a comment - Guys, any updates on the patch ?

          People

          • Assignee:
            Unassigned
            Reporter:
            Frank Glaser
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development