File based module: Unrecognized cache key format

LabKey Support Forum (Inactive)
File based module: Unrecognized cache key format trent  2014-03-17 18:50
Status: Closed
 
I just installed version 14.10, and during startup one of the (file based) modules is throwing this error:

java.lang.IllegalStateException: Unrecognized cache key format: Advanced Vial Search/Advanced Vial Search TOC.webpart.xml
       at org.labkey.api.module.ModuleResourceCache.parseCacheKey(ModuleResourceCache.java:299)
       at org.labkey.api.module.ModuleResourceCache.parseCacheKey(ModuleResourceCache.java:289)
       at org.labkey.api.view.SimpleWebPartFactoryCacheHandler$1.load(SimpleWebPartFactoryCacheHandler.java:66)
       at org.labkey.api.view.SimpleWebPartFactoryCacheHandler$1.load(SimpleWebPartFactoryCacheHandler.java:62)
       at org.labkey.api.cache.BlockingCache.get(BlockingCache.java:129)
       at org.labkey.api.module.ModuleResourceCache.getResource(ModuleResourceCache.java:66)
       at org.labkey.api.module.ModuleResourceCache.getResources(ModuleResourceCache.java:95)
       at org.labkey.api.module.DefaultModule.getWebPartFactories(DefaultModule.java:402)
       at org.labkey.api.view.Portal.initMaps(Portal.java:1138)
       at org.labkey.api.view.Portal.getViewMap(Portal.java:1116)
       at org.labkey.api.view.Portal.getPortalPart(Portal.java:1104)
       at org.labkey.core.workbook.WorkbookFolderType.<init>(WorkbookFolderType.java:37)
       at org.labkey.core.CoreModule.startupAfterSpringConfig(CoreModule.java:621)
       at org.labkey.api.module.SpringModule.doStartup(SpringModule.java:114)
       at org.labkey.api.module.DefaultModule.startup(DefaultModule.java:262)
       at org.labkey.api.module.ModuleLoader.completeStartup(ModuleLoader.java:1175)
       at org.labkey.api.module.ModuleLoader.access$200(ModuleLoader.java:115)
       at org.labkey.api.module.ModuleLoader$2.run(ModuleLoader.java:1138)

Can anyone advise what's best to do in this scenario?

nb: source code of module hasn't changed since Labkey 11.x

I've also removed all the guts of the module to rule out a file issue.

This doesn't have supporting data model, so I'm happy for all traces of the module to be wiped from LabKey - to start over - if need be (core.modules, anywhere else?)

├───config
│ module.properties

├───queries
│ └───study
│ │ ClinicalResultsWithVisitLabel.query.xml
│ │ ClinicalResultsWithVisitLabel.sql
│ │ RequestParticipants.query.xml
│ │ RequestParticipants.sql
│ │ SpecimenDetailWithTotal.query.xml
│ │ SpecimenDetailWithTotal.sql
│ │ TotalVisitVolume.sql
│ │
│ ├───ClinicalResultsWithVisitLabel
│ │ .qview.xml
│ │
│ └───RequestParticipants
│ .qview.xml

├───views
│ Advanced Vial Search TOC.webpart.xml
│ requestedVials.html
│ selectParticipants.html
│ selectParticipants.view.xml
│ vialSearch.html
│ vialSearch.view.xml

└───web
        specRequestForm.js
 
 
jeckels responded:  2014-03-18 09:52
Hi Trent,

It looks like the issue is that your module has a space in its name. While that's a reasonable thing to support, it's not something that we've ever explicitly tested with in the past. At least for 14.1, is it possible to rename the module?

Thanks,
Josh
 
trent responded:  2014-03-19 00:38
Thanks Josh. This resolved the issue.
 
jeckels responded:  2014-03-19 09:30
Hi Trent,

Thanks for the confirmation. I just added a check for 14.2 that will verify module names at startup time and give a clear error message.

Thanks,
Josh