Closed stanislaw closed 3 years ago
Just tried doing the same on a more fresh Ubuntu machine (importing the sample XTCE file to a clean new project):
.../CCDD (CCDD-2)*$ git log -1
commit f1641deb805a64a6b336989f11737eac82f23f8f (HEAD -> CCDD-2, origin/CCDD-2)
Author: bawillisJSC <77999883+bawillisJSC@users.noreply.github.com>
Date: Thu Jun 17 13:21:40 2021 -0500
Update README.md
$ java -jar CCDD.jar -logPath logs
Command that failed: DELETE FROM __dbu_info;
Command that failed: SELECT * from find_command_arguments('{Structure: Cmd Arg Ref,XTCE Structure,XTCE Command}');
CCDD : Database Error : Cannot retrieve TABLE_DATA_VAR_NAMES list
Command that failed: SELECT _key_ FROM mycommand WHERE _key_ = (SELECT MAX(_key_) FROM mycommand);
java.sql.SQLException: Invalid SQL command; ERROR: relation "mycommand" does not exist
Position: 19
at CCDD.CcddDbCommandHandler.executeDbStatement(CcddDbCommandHandler.java:263)
at CCDD.CcddDbCommandHandler.executeDbQuery(CcddDbCommandHandler.java:117)
at CCDD.CcddDbTableCommandHandler.buildAndExecuteAdditionCommand(CcddDbTableCommandHandler.java:2882)
at CCDD.CcddDbTableCommandHandler.modifyTableData(CcddDbTableCommandHandler.java:2556)
at CCDD.CcddFileIOHandler.createImportedTable(CcddFileIOHandler.java:2522)
at CCDD.CcddFileIOHandler.createTablesFromDefinitions(CcddFileIOHandler.java:2255)
at CCDD.CcddFileIOHandler.importFiles(CcddFileIOHandler.java:1680)
at CCDD.CcddFileIOHandler$3.execute(CcddFileIOHandler.java:1440)
at CCDD.CcddBackgroundCommand$1.doInBackground(CcddBackgroundCommand.java:148)
at CCDD.CcddBackgroundCommand$1.doInBackground(CcddBackgroundCommand.java:1)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Command that failed: INSERT INTO mycommand (_key_, _index_, command_name, command_code, description, command_argument) VALUES (1, '1', 'NoOp', '', 'No operation', ''), (2, '2', 'EngineArmEnableDisable', '', 'Arm main engine', ''), (3, '3', 'EngineFireEnableDisable', '', 'Fire main engine', ''), (4, '4', 'EngineThrustLevel', '', 'Engine thrust level', '');
$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~18.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
$ sudo update-alternatives --config java
[sudo] password for stanislaw:
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
The current master branch is confirmed to work (exporting and importing XTCE without errors)
commit a26585e646cc869f80a3deeab869de68e25da20e (HEAD -> master, origin/master, origin/HEAD)
Author: Bryan Willis <bryan.willis@uky.edu>
Date: Thu Nov 5 17:36:53 2020 -0500
Quick fix for an issue that would not allow you to create and open a new database.
Looking into this issue. Thanks for providing so many details that will help isolate the problem.
CCDD version 2.0.27 addresses this issue.
Hello,
First of all, thank you for creating this tool. We are evaluating CCDD in combination with COSMOS and NASA cFS.
At this point, we are running CCDD from
CCDD.jar
and also we have set up running CCDD from Intellij IDEA (we can step through the code with a debugger). The commit is f1641de.Problem 1: Importing and exporting XTCE does not work when running CCDD from jar
CCDD-2/Docs/CCDD_Users_Guide.pdf
(page 200).Data / Edit table(s)
The exporting does not work - after we click ok on the Export dialog - the dialog box closes and nothing happens (file is not created, no log message).
Problem 2: Running CCDD from IDEA IDE
CCDD : Database Error : Cannot retrieve TABLE_DATA_VAR_NAMES list
We are ready to assist you in the investigation of this issue.
The stack trace from IDEA: