Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL error message when saving psdb #16

Open
jcanderan opened this issue May 25, 2021 · 1 comment
Open

SQL error message when saving psdb #16

jcanderan opened this issue May 25, 2021 · 1 comment
Assignees
Labels

Comments

@jcanderan
Copy link

When saving a Reporter psdb, the following error message in the log is obtained:

Windows GUI:

org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_PRIMARYKEY]  A PRIMARY KEY constraint failed (UNIQUE constraint failed: data.id)
	at org.sqlite.core.DB.newSQLException(DB.java:909)
	at org.sqlite.core.DB.newSQLException(DB.java:921)
	at org.sqlite.core.DB.throwex(DB.java:886)
	at org.sqlite.core.DB.executeBatch(DB.java:774)
	at org.sqlite.core.CorePreparedStatement.executeBatch(CorePreparedStatement.java:79)
	at com.compomics.util.db.object.ObjectsCache.saveObjects(ObjectsCache.java:350)
	at com.compomics.util.db.object.ObjectsCache.saveCache(ObjectsCache.java:411)
	at com.compomics.util.db.object.ObjectsDB.lock(ObjectsDB.java:784)
	at eu.isas.peptideshaker.export.PsdbExporter.saveAs(PsdbExporter.java:130)
	at eu.isas.peptideshaker.utils.PsdbParent.saveProject(PsdbParent.java:371)
	at eu.isas.reporter.io.ProjectSaver.saveProject(ProjectSaver.java:76)
	at eu.isas.reporter.gui.ReporterGUI$19.run(ReporterGUI.java:1106)

linux command-line (different psdb file than above):

org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_PRIMARYKEY]  A PRIMARY KEY constraint failed (UNIQUE constraint failed: data.id)
        at org.sqlite.core.DB.newSQLException(DB.java:909)
        at org.sqlite.core.DB.newSQLException(DB.java:921)
        at org.sqlite.core.DB.throwex(DB.java:886)
        at org.sqlite.core.DB.executeBatch(DB.java:774)
        at org.sqlite.core.CorePreparedStatement.executeBatch(CorePreparedStatement.java:79)
        at com.compomics.util.db.object.ObjectsCache.saveObjects(ObjectsCache.java:350)
        at com.compomics.util.db.object.ObjectsCache.saveCache(ObjectsCache.java:411)
        at com.compomics.util.db.object.ObjectsDB.lock(ObjectsDB.java:784)
        at eu.isas.peptideshaker.export.PsdbExporter.saveAs(PsdbExporter.java:130)
        at eu.isas.peptideshaker.utils.PsdbParent.saveProject(PsdbParent.java:371)
        at eu.isas.reporter.io.ProjectSaver.saveProject(ProjectSaver.java:76)
        at eu.isas.reporter.cli.ReporterCLI.call(ReporterCLI.java:557)
        at eu.isas.reporter.cli.ReporterCLI.main(ReporterCLI.java:845)

I don't know what this affects exactly as the output file is generated but I wanted to mention it.

@hbarsnes hbarsnes self-assigned this May 25, 2021
@hbarsnes hbarsnes added the bug label May 25, 2021
@hbarsnes
Copy link
Member

I can confirm that I see the same thing. I will look into it.

Note that saving Reporter projects does not matter all that much at the moment though, as we do not yet support reopening saved projects in Reporter...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants