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

Creating project with relative path in home folder creates NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.50
    • CLI

    Description

      Created a project using the cli with a relative project home path

      generates an NPE
       

      Unable to find source-code formatter for language: console. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      ➜ ./hop-conf.sh -pc -p test -ph ../test/                                              
      Creating project 'test'
      Project 'test' was created for home folder : ../test/
      Error found during execution!
      picocli.CommandLine$ExecutionException: There was an error handling options
      	at org.apache.hop.config.HopConfig.run(HopConfig.java:85)
      	at org.apache.hop.config.HopConfig.main(HopConfig.java:149)
      Caused by: org.apache.hop.core.exception.HopException: 
      Error handling environment configuration options
       at org.apache.hop.config.HopConfig.main (HopConfig.java:149)
       at org.apache.hop.config.HopConfig.run (HopConfig.java:76)
       at org.apache.hop.projects.project.ManageProjectsOptionPlugin.handleOption (ManageProjectsOptionPlugin.java:100)
       at org.apache.hop.projects.project.ManageProjectsOptionPlugin.createProject (ManageProjectsOptionPlugin.java:249)
       at org.apache.hop.projects.project.ProjectConfig.loadProject (ProjectConfig.java:76)
       at java.io.File.<init> (File.java:279)
      
      	at org.apache.hop.projects.project.ManageProjectsOptionPlugin.handleOption(ManageProjectsOptionPlugin.java:114)
      	at org.apache.hop.config.HopConfig.run(HopConfig.java:76)
      	... 1 more
      Caused by: java.lang.NullPointerException
      	at java.io.File.<init>(File.java:279)
      	at org.apache.hop.projects.project.ProjectConfig.loadProject(ProjectConfig.java:76)
      	at org.apache.hop.projects.project.ManageProjectsOptionPlugin.createProject(ManageProjectsOptionPlugin.java:249)
      	at org.apache.hop.projects.project.ManageProjectsOptionPlugin.handleOption(ManageProjectsOptionPlugin.java:100)
      	... 2 more
      
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hansva Hans Van Akelyen
              Votes:
              0 Vote for this issue
              Watchers:
              2 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