Skip to content

Load into postgresql database issue #6

@Evelynchengusa

Description

@Evelynchengusa

I use the following command line to upload the resulting schema and database into my PostgreSQL and I got the following error messages.

./loader.sh -f ./ActiveLearnM1/metadata.xml -u postgres -p postgres -d schemamapping -logconfig ./resource/log4jproperties.txt

70 [main] INFO org.vagabond.commandline.loader.CommandLineLoader - user has provided log level location: ./resource/log4jproperties.txt
363 [main] DEBUG org.vagabond.mapping.model.ModelLoader - validate mapping scenario
550 [main] ERROR org.vagabond.commandline.loader.CommandLineLoader - Exception occured: java.lang.NullPointerException
Message: null
java.base/java.io.Reader.(Reader.java:78)
java.base/java.io.InputStreamReader.(InputStreamReader.java:72)
org.vagabond.explanation.generation.QueryHolder.loadFromDirFallbackResource(QueryHolder.java:63)
org.vagabond.commandline.loader.CommandLineLoader.loadScenario(CommandLineLoader.java:117)
org.vagabond.commandline.loader.CommandLineLoader.parseOptionsAndLoadScenario(CommandLineLoader.java:63)
org.vagabond.commandline.loader.CommandLineLoader.execute(CommandLineLoader.java:198)
org.vagabond.commandline.loader.CommandLineLoader.main(CommandLineLoader.java:218)

I check the corresponding line 63 in QueryHolder.java:
BufferedReader fileList = new BufferedReader(new InputStreamReader(ClassLoader.getSystemResourceAsStream(queryListFile))

This line of code is trying to get resources by using the string queryListFile = QueryHolder.DEFAULT_QUERY_LIST_FILE ("VagabondQueryList.txt"). I wondered where can I find this "VagabondQueryList.txt" file. I search across the ibench project, there is no such file.

Do you have any ideas about how should I solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions