Uploaded image for project: 'Apache Hop (Retired)'
  1. Apache Hop (Retired)
  2. HOP-3942

NPE on Google Storage VFS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • VFS

    Description

      Getting the timestamp of a folder is troublesome:

      2022/05/17 15:39:28 - General - ERROR: Error getting last modified date of file : gs:///apache-hop-it/output
      2022/05/17 15:39:28 - General - ERROR: org.apache.commons.vfs2.FileSystemException: Could not determine the last modified timestamp of "gs:///apache-hop-it/output".
      2022/05/17 15:39:28 - General -     at org.apache.commons.vfs2.provider.DefaultFileContent.getLastModifiedTime(DefaultFileContent.java:155)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.core.vfs.HopVfsFileDialog.getFileDate(HopVfsFileDialog.java:1023)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.core.vfs.HopVfsFileDialog.showFilename(HopVfsFileDialog.java:691)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.core.vfs.HopVfsFileDialog.fileSelected(HopVfsFileDialog.java:650)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.core.vfs.HopVfsFileDialog.open(HopVfsFileDialog.java:525)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.core.dialog.BaseDialog.presentFileDialog(BaseDialog.java:243)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.core.dialog.BaseDialog.presentFileDialog(BaseDialog.java:100)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.hopgui.delegates.HopGuiFileDelegate.fileOpen(HopGuiFileDelegate.java:80)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.hopgui.HopGui.menuFileOpen(HopGui.java:547)
      2022/05/17 15:39:28 - General -     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2022/05/17 15:39:28 - General -     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      2022/05/17 15:39:28 - General -     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2022/05/17 15:39:28 - General -     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.core.gui.BaseGuiWidgets.lambda$getListener$1(BaseGuiWidgets.java:188)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
      2022/05/17 15:39:28 - General -     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.hopgui.HopGui.open(HopGui.java:380)
      2022/05/17 15:39:28 - General -     at org.apache.hop.ui.hopgui.HopGui.main(HopGui.java:300)
      2022/05/17 15:39:28 - General - Caused by: java.lang.NullPointerException
      2022/05/17 15:39:28 - General -     at org.apache.hop.vfs.gs.GoogleStorageFileObject.doGetLastModifiedTime(GoogleStorageFileObject.java:199)
      2022/05/17 15:39:28 - General -     at org.apache.commons.vfs2.provider.DefaultFileContent.getLastModifiedTime(DefaultFileContent.java:153)
      2022/05/17 15:39:28 - General -     ... 25 more 

      Attachments

        Issue Links

          Activity

            People

              mcasters Matt Casters
              mcasters Matt Casters
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m