Hello,
I have a question regarding the hop-conf command line tool. I use Hop in
version 2.7.0 an I tried to create a project with hop-conf.bat on a
Windows machine. The project was created successfully (everything works
as far as I know), but there is an error message during project creation
that seems suspicious to me. It says that there is an error while saving
the project configuration in the projects project-config.json file as
this file could not be deleted.
I'm not sure if that's a bug or something. The access rights of the
executing user are correct, so it should not be a permission problem.
Is that a thing I should worry about?
Thanks,
Philipp
The complete error log is as follows:
C:\hop2.7>hop-conf.bat --project-create --project project-xyz
--project-home "c:\hop-projects\project-xyz"
C:\hop2.7>echo off
===[Environment Settings - hop-conf.bat]===================================
Java identified as "C:\Program Files\jdk-11.0.19.7-hotspot\\bin\java"
HOP_OPTIONS=-Xmx2048m -DHOP_AUDIT_FOLDER=.\audit
-DHOP_PLATFORM_OS=Windows -DHOP_PLATFORM_RUNTIME=Conf
-DHOP_AUTO_CREATE_CONFIG=Y
Command to start Hop will be:
"C:\Program Files\jdk-11.0.19.7-hotspot\\bin\java" -classpath
lib\core\*;lib\beam\*;lib\swt\win64\*
-Djava.library.path=lib\core;lib\beam -Xmx2048m
-DHOP_AUDIT_FOLDER=.\audit -DHOP_PLATFORM_OS=Windows
-DHOP_PLATFORM_RUNTIME=Conf -DHOP_AUTO_CREATE_CONFIG=Y
org.apache.hop.config.HopConfig --project-create --project project-xyz
--project-home "c:\hop-projects\project-xyz"
===[Starting
HopConfig]=========================================================
Creating project 'project-xyz'
Project 'project-xyz' was created for home folder :
c:\hop-projects\project-xyz
Error found during execution!
picocli.CommandLine$ExecutionException: There was an error handling options
at org.apache.hop.config.HopConfig.run(HopConfig.java:103)
at org.apache.hop.config.HopConfig.main(HopConfig.java:183)
Caused by: org.apache.hop.core.exception.HopException:
Error handling environment configuration options
Error saving project configuration to file
'file:\c:\hop-projects\project-xyz\project-config.json'
Could not delete
"file:///c:/Tools/hop-projects/project-xyz/project-config.json".
at
org.apache.hop.projects.project.ManageProjectsOptionPlugin.handleOption(ManageProjectsOptionPlugin.java:163)
at org.apache.hop.config.HopConfig.run(HopConfig.java:94)
... 1 more
Caused by: org.apache.hop.core.exception.HopException:
Error saving project configuration to file
'file:\c:\hop-projects\project-xyz\project-config.json'
Could not delete "file:///c:/hop-projects/project-xyz/project-config.json".
at
org.apache.hop.projects.project.Project.saveToFile(Project.java:101)
at
org.apache.hop.projects.project.ManageProjectsOptionPlugin.createProject(ManageProjectsOptionPlugin.java:356)
at
org.apache.hop.projects.project.ManageProjectsOptionPlugin.handleOption(ManageProjectsOptionPlugin.java:146)
... 2 more
Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete
"file:///c:/hop-projects/project-xyz/project-config.json".
at
org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:467)
at
org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:423)
at
org.apache.commons.vfs2.provider.AbstractFileObject.delete(AbstractFileObject.java:386)
at org.apache.hop.core.vfs.HopVfs.getOutputStream(HopVfs.java:299)
at
org.apache.hop.projects.project.Project.saveToFile(Project.java:98)
... 4 more
Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete
"c:\hop-projects\project-xyz\project-config.json".
at
org.apache.commons.vfs2.provider.local.LocalFile.doDelete(LocalFile.java:88)
at
org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:460)
... 8 more