hanwei2008 / jwpl

Automatically exported from code.google.com/p/jwpl
0 stars 0 forks source link

Database import yields ConfigurationException #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use ConfigGUI and activate direct database import.
2. Specify valid database parameters.
3. Specify other necessary parameters as usual.
4. Save the configuration and start the import using the DiffTool.

What is the expected output? What do you see instead?

java.lang.RuntimeException: 
de.tudarmstadt.ukp.wikipedia.revisionmachine.common.exceptions.ConfigurationExce
ption: CONFIGURATION_CONFIGURATIONMANAGER_UNKNOWN_CONFIG_PARAMETER:
SQL_HOST
    at de.tudarmstadt.ukp.wikipedia.revisionmachine.difftool.DiffToolThread.run(DiffToolThread.java:374)
    at de.tudarmstadt.ukp.wikipedia.revisionmachine.difftool.DiffTool.main(DiffTool.java:56)
    at CreateRevisionDatabase.main(CreateRevisionDatabase.java:11)
Caused by: 
de.tudarmstadt.ukp.wikipedia.revisionmachine.common.exceptions.ConfigurationExce
ption: CONFIGURATION_CONFIGURATIONMANAGER_UNKNOWN_CONFIG_PARAMETER:
SQL_HOST
    at de.tudarmstadt.ukp.wikipedia.revisionmachine.common.exceptions.ErrorFactory.createConfigurationException(ErrorFactory.java:100)
    at de.tudarmstadt.ukp.wikipedia.revisionmachine.difftool.config.ConfigurationManager.getConfigParameter(ConfigurationManager.java:137)
    at de.tudarmstadt.ukp.wikipedia.revisionmachine.difftool.consumer.dump.writer.SQLDatabaseWriter.<init>(SQLDatabaseWriter.java:80)
    at de.tudarmstadt.ukp.wikipedia.revisionmachine.difftool.DiffToolThread$TaskTransmitter.<init>(DiffToolThread.java:195)
    at de.tudarmstadt.ukp.wikipedia.revisionmachine.difftool.DiffToolThread.run(DiffToolThread.java:284)
    ... 2 more

What version of the product are you using? On what operating system?
0.9.2; Linux

Please provide any additional information below.

Original issue reported on code.google.com by chmeyer.de on 29 Oct 2012 at 10:29

GoogleCodeExporter commented 9 years ago
Reiimporting the configuration file causes the database settings to be empty. 
Thus, host, database, user, and password are not correctly stored.

Original comment by chmeyer.de on 29 Oct 2012 at 10:30