Error during a new module's initialization

LabKey Support Forum (Inactive)
Error during a new module's initialization Leo Dashevskiy  2013-12-02 14:59
Status: Closed
 
Good afternoon, folks!

I am developing a new module.

When the 'modules are upgrading' UI is running, in the IntelliJ's console I see the following warning and error:

WARN Table 2013-12-02 14:55:26,628 Module Upgrade : SQL Exception
org.labkey.api.data.Table$OptimisticConflictException: Optimistic concurrency exception: Row deleted
    at org.labkey.api.data.Table$OptimisticConflictException.create(Table.java:1257)
    at org.labkey.api.data.Table.update(Table.java:1043)
    at org.labkey.api.data.Table.update(Table.java:929)
    at org.labkey.api.module.ModuleLoader.updateModuleProperties(ModuleLoader.java:1281)
    at org.labkey.api.module.ModuleLoader.completeUpgrade(ModuleLoader.java:1258)
    at org.labkey.api.module.ModuleLoader.access$400(ModuleLoader.java:115)
    at org.labkey.api.module.ModuleLoader$3.run(ModuleLoader.java:1241)
    at org.labkey.api.module.ModuleUpgrader$1.run(ModuleUpgrader.java:76)
WARN Table 2013-12-02 14:55:26,630 Module Upgrade : SQL
    UPDATE core.modules
        SET autouninstall=?, schemas=NULL
        WHERE name=?
    ?[1] false
    ?[2] HAI_vs_GE

    org.labkey.api.module.ModuleLoader.updateModuleProperties(ModuleLoader.java:1281)
    org.labkey.api.module.ModuleLoader.completeUpgrade(ModuleLoader.java:1258)
    org.labkey.api.module.ModuleLoader.access$400(ModuleLoader.java:115)
    org.labkey.api.module.ModuleLoader$3.run(ModuleLoader.java:1241)
    org.labkey.api.module.ModuleUpgrader$1.run(ModuleUpgrader.java:76)
ERROR ExceptionUtil 2013-12-02 14:55:26,631 Module Upgrade : Exception detected and logged to mothership:
org.labkey.api.data.Table$OptimisticConflictException: Optimistic concurrency exception: Row deleted
    at org.labkey.api.data.Table$OptimisticConflictException.create(Table.java:1257)
    at org.labkey.api.data.Table.update(Table.java:1043)
    at org.labkey.api.data.Table.update(Table.java:929)
    at org.labkey.api.module.ModuleLoader.updateModuleProperties(ModuleLoader.java:1281)
    at org.labkey.api.module.ModuleLoader.completeUpgrade(ModuleLoader.java:1258)
    at org.labkey.api.module.ModuleLoader.access$400(ModuleLoader.java:115)
    at org.labkey.api.module.ModuleLoader$3.run(ModuleLoader.java:1241)
    at org.labkey.api.module.ModuleUpgrader$1.run(ModuleUpgrader.java:76)


What is the cause of it and how would I correct it?

I see the module's name in the 'Folders Management' UI, but when I enable the checkbox and save, the web part's name is not showing in the drop down menu.

Also, the module's name appears in the 'Unknown Modules' portion of the modules admin page.

Thanks.
-Leo
 
 
Leo Dashevskiy responded:  2013-12-02 16:02
Extra space at the end of the module name in the module.properties file must have been the reason.