cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Studio development mode uninstalls my custom package - how can I troubleshoot?

Steven_Huwig1
Star Contributor
Star Contributor

I have a Nuxeo Studio project, and I have a self-built Marketplace package that I use to install custom Java extension code. When I use the server development mode to load the latest Studio project, I receive a message like the following:

07:39:18,587 WARN  [AppCenterViewsManager] Got warnings on package validation myorg-0.0.0-SNAPSHOT -> [The package myorg-nuxeo-package-0.9.0-SNAPSHOT will be uninstalled!]

myorg-0.0.0-SNAPSHOT is the Studio project and myorg-nuxeo-package-0.9.0-SNAPSHOT is my custom one.

Then the server spends much time uninstalling my custom marketplace package, forcing me to reinstall it. How can I avoid this uninstallation behavior? I tried turning the logging to DEBUG but I didn't see any extra information about what caused the "warnings on package validation," or even if those warnings are the reason that the Studio update uninstalls my Java code.

4 REPLIES 4

Steven_Huwig1
Star Contributor
Star Contributor

I believe this code is the source of my problem.

public synchronized String getActivePackageId(String name) {
    name = name + '-';
    for (Entry<String, PackageState> entry : states.entrySet()) {
        if (entry.getKey().startsWith(name)
                && entry.getValue().isInstalled()) {
            return entry.getKey();
        }
    }
    return null;
}

I don't think this can distinguish between myorg-0.0.0-SNAPSHOT and myorg-nuxeo-package-0.9.0-SNAPSHOT, so the second one gets listed as needing to be uninstalled. I renamed the Nuxeo package name in package.xml for the second package and everything worked as it should.

Can someone please confirm this as the cause, and either explain to me why it is not a bug or help me open a bug report? Thanks!

Hi,

I opened https

Thanks for the report

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.