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

NPE starting Hop tools

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • Hop Config, Hop GUI, Hop Run
    • None

    Description

      Seems to be an i18n error somewhere.  We need to harden the code.

      Listening for transport dt_socket at address: 5005
      Creating new default Hop configuration file: /home/matt/tmp/config/hop-config.json
      Exception in thread "main" java.lang.ExceptionInInitializerError
      at org.apache.hop.i18n.LafMessageHandler.calculateString(LafMessageHandler.java:88)
      at org.apache.hop.i18n.GlobalMessages.getString(GlobalMessages.java:172)
      at org.apache.hop.i18n.BaseMessages.getString(BaseMessages.java:80)
      at org.apache.hop.core.logging.LogLevel.<clinit>(LogLevel.java:30)
      at org.apache.hop.core.logging.DefaultLogLevel.<init>(DefaultLogLevel.java:31)
      at org.apache.hop.core.logging.DefaultLogLevel.getInstance(DefaultLogLevel.java:36)
      at org.apache.hop.core.logging.DefaultLogLevel.getLogLevel(DefaultLogLevel.java:45)
      at org.apache.hop.core.logging.LogChannel.<init>(LogChannel.java:55)
      at org.apache.hop.core.logging.LogChannel.<clinit>(LogChannel.java:32)
      at org.apache.hop.i18n.GlobalMessages.<clinit>(GlobalMessages.java:41)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      at java.lang.Class.newInstance(Class.java:442)
      at org.apache.hop.laf.LafDelegate.loadHandler(LafDelegate.java:77)
      at org.apache.hop.laf.LafDelegate.init(LafDelegate.java:53)
      at org.apache.hop.laf.LafDelegate.<init>(LafDelegate.java:45)
      at org.apache.hop.laf.LafFactory.getDelegate(LafFactory.java:56)
      at org.apache.hop.laf.LafFactory.getHandler(LafFactory.java:71)
      at org.apache.hop.i18n.BaseMessages.init(BaseMessages.java:45)
      at org.apache.hop.i18n.BaseMessages.<init>(BaseMessages.java:40)
      at org.apache.hop.i18n.BaseMessages.getInstance(BaseMessages.java:50)
      at org.apache.hop.i18n.BaseMessages.<clinit>(BaseMessages.java:36)
      at org.apache.hop.ui.hopgui.HopGui.<clinit>(HopGui.java:185)
      Caused by: java.lang.RuntimeException: Error saving configuration option 'LocaleDefault'
      at org.apache.hop.core.config.HopConfig.saveOption(HopConfig.java:63)
      at org.apache.hop.i18n.LanguageChoice.<init>(LanguageChoice.java:36)
      at org.apache.hop.i18n.LanguageChoice.getInstance(LanguageChoice.java:44)
      at org.apache.hop.i18n.GlobalMessageUtil.<clinit>(GlobalMessageUtil.java:48)
      ... 25 more
      Caused by: org.apache.hop.core.exception.HopException: 
      Error saving configuration file '/home/matt/tmp/config/hop-config.json'Error writing to Hop configuration file : /home/matt/tmp/config/hop-config.json
      at org.apache.hop.ui.hopgui.HopGui.<clinit> (HopGui.java:185)
      at org.apache.hop.i18n.BaseMessages.<clinit> (BaseMessages.java:36)
      at org.apache.hop.i18n.BaseMessages.getInstance (BaseMessages.java:50)
      at org.apache.hop.i18n.BaseMessages.<init> (BaseMessages.java:40)
      at org.apache.hop.i18n.BaseMessages.init (BaseMessages.java:45)
      at org.apache.hop.laf.LafFactory.getHandler (LafFactory.java:71)
      at org.apache.hop.laf.LafFactory.getDelegate (LafFactory.java:56)
      at org.apache.hop.laf.LafDelegate.<init> (LafDelegate.java:45)
      at org.apache.hop.laf.LafDelegate.init (LafDelegate.java:53)
      at org.apache.hop.laf.LafDelegate.loadHandler (LafDelegate.java:77)
      at java.lang.Class.newInstance (Class.java:442)
      at java.lang.reflect.Constructor.newInstance (Constructor.java:423)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (NativeConstructorAccessorImpl.java:-2)
      at org.apache.hop.i18n.GlobalMessages.<clinit> (GlobalMessages.java:41)
      at org.apache.hop.core.logging.LogChannel.<clinit> (LogChannel.java:32)
      at org.apache.hop.core.logging.LogChannel.<init> (LogChannel.java:55)
      at org.apache.hop.core.logging.DefaultLogLevel.getLogLevel (DefaultLogLevel.java:45)
      at org.apache.hop.core.logging.DefaultLogLevel.getInstance (DefaultLogLevel.java:36)
      at org.apache.hop.core.logging.DefaultLogLevel.<init> (DefaultLogLevel.java:31)
      at org.apache.hop.core.logging.LogLevel.<clinit> (LogLevel.java:30)
      at org.apache.hop.i18n.BaseMessages.getString (BaseMessages.java:80)
      at org.apache.hop.i18n.GlobalMessages.getString (GlobalMessages.java:172)
      at org.apache.hop.i18n.LafMessageHandler.calculateString (LafMessageHandler.java:88)
      at org.apache.hop.i18n.GlobalMessageUtil.<clinit> (GlobalMessageUtil.java:48)
      at org.apache.hop.i18n.LanguageChoice.getInstance (LanguageChoice.java:44)
      at org.apache.hop.i18n.LanguageChoice.<init> (LanguageChoice.java:36)
      at org.apache.hop.core.config.HopConfig.saveOption (HopConfig.java:61)
      at org.apache.hop.core.config.plugin.ConfigFile.saveToFile (ConfigFile.java:81)
      at org.apache.hop.core.config.ConfigFileSerializer.writeToFile (ConfigFileSerializer.java:50)
      at org.apache.hop.core.vfs.HopVfs.getOutputStream (HopVfs.java:290)
      at org.apache.hop.i18n.BaseMessages.getString (BaseMessages.java:80)
      at org.apache.hop.i18n.GlobalMessages.getString (GlobalMessages.java:172)
      at org.apache.hop.i18n.LafMessageHandler.calculateString (LafMessageHandler.java:88)
      at org.apache.hop.i18n.GlobalMessageUtil.calculateString (GlobalMessageUtil.java:193)
      at org.apache.hop.i18n.GlobalMessageUtil.calculateString (GlobalMessageUtil.java:222)
      at org.apache.hop.i18n.GlobalMessageUtil.getActiveLocales (GlobalMessageUtil.java:171)
      at org.apache.hop.core.config.plugin.ConfigFile.saveToFile(ConfigFile.java:83)
      at org.apache.hop.core.config.HopConfig.saveOption(HopConfig.java:61)
      ... 28 more
      Caused by: org.apache.hop.core.exception.HopException: 
      Error writing to Hop configuration file : /home/matt/tmp/config/hop-config.json
      at org.apache.hop.ui.hopgui.HopGui.<clinit> (HopGui.java:185)
      at org.apache.hop.i18n.BaseMessages.<clinit> (BaseMessages.java:36)
      at org.apache.hop.i18n.BaseMessages.getInstance (BaseMessages.java:50)
      at org.apache.hop.i18n.BaseMessages.<init> (BaseMessages.java:40)
      at org.apache.hop.i18n.BaseMessages.init (BaseMessages.java:45)
      at org.apache.hop.laf.LafFactory.getHandler (LafFactory.java:71)
      at org.apache.hop.laf.LafFactory.getDelegate (LafFactory.java:56)
      at org.apache.hop.laf.LafDelegate.<init> (LafDelegate.java:45)
      at org.apache.hop.laf.LafDelegate.init (LafDelegate.java:53)
      at org.apache.hop.laf.LafDelegate.loadHandler (LafDelegate.java:77)
      at java.lang.Class.newInstance (Class.java:442)
      at java.lang.reflect.Constructor.newInstance (Constructor.java:423)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (NativeConstructorAccessorImpl.java:-2)
      at org.apache.hop.i18n.GlobalMessages.<clinit> (GlobalMessages.java:41)
      at org.apache.hop.core.logging.LogChannel.<clinit> (LogChannel.java:32)
      at org.apache.hop.core.logging.LogChannel.<init> (LogChannel.java:55)
      at org.apache.hop.core.logging.DefaultLogLevel.getLogLevel (DefaultLogLevel.java:45)
      at org.apache.hop.core.logging.DefaultLogLevel.getInstance (DefaultLogLevel.java:36)
      at org.apache.hop.core.logging.DefaultLogLevel.<init> (DefaultLogLevel.java:31)
      at org.apache.hop.core.logging.LogLevel.<clinit> (LogLevel.java:30)
      at org.apache.hop.i18n.BaseMessages.getString (BaseMessages.java:80)
      at org.apache.hop.i18n.GlobalMessages.getString (GlobalMessages.java:172)
      at org.apache.hop.i18n.LafMessageHandler.calculateString (LafMessageHandler.java:88)
      at org.apache.hop.i18n.GlobalMessageUtil.<clinit> (GlobalMessageUtil.java:48)
      at org.apache.hop.i18n.LanguageChoice.getInstance (LanguageChoice.java:44)
      at org.apache.hop.i18n.LanguageChoice.<init> (LanguageChoice.java:36)
      at org.apache.hop.core.config.HopConfig.saveOption (HopConfig.java:61)
      at org.apache.hop.core.config.plugin.ConfigFile.saveToFile (ConfigFile.java:81)
      at org.apache.hop.core.config.ConfigFileSerializer.writeToFile (ConfigFileSerializer.java:50)
      at org.apache.hop.core.vfs.HopVfs.getOutputStream (HopVfs.java:290)
      at org.apache.hop.i18n.BaseMessages.getString (BaseMessages.java:80)
      at org.apache.hop.i18n.GlobalMessages.getString (GlobalMessages.java:172)
      at org.apache.hop.i18n.LafMessageHandler.calculateString (LafMessageHandler.java:88)
      at org.apache.hop.i18n.GlobalMessageUtil.calculateString (GlobalMessageUtil.java:193)
      at org.apache.hop.i18n.GlobalMessageUtil.calculateString (GlobalMessageUtil.java:222)
      at org.apache.hop.i18n.GlobalMessageUtil.getActiveLocales (GlobalMessageUtil.java:171)at org.apache.hop.core.config.ConfigFileSerializer.writeToFile(ConfigFileSerializer.java:77)
      at org.apache.hop.core.config.plugin.ConfigFile.saveToFile(ConfigFile.java:81)
      ... 29 more
      Caused by: java.lang.NullPointerException
      at org.apache.hop.i18n.GlobalMessageUtil.getActiveLocales(GlobalMessageUtil.java:171)
      at org.apache.hop.i18n.GlobalMessageUtil.calculateString(GlobalMessageUtil.java:222)
      at org.apache.hop.i18n.GlobalMessageUtil.calculateString(GlobalMessageUtil.java:193)
      at org.apache.hop.i18n.LafMessageHandler.calculateString(LafMessageHandler.java:88)
      at org.apache.hop.i18n.GlobalMessages.getString(GlobalMessages.java:172)
      at org.apache.hop.i18n.BaseMessages.getString(BaseMessages.java:80)
      at org.apache.hop.core.vfs.HopVfs.getOutputStream(HopVfs.java:290)
      at org.apache.hop.core.config.ConfigFileSerializer.writeToFile(ConfigFileSerializer.java:50)
      ... 30 more
      

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: