02-12-2021 08:47 AM
Hi, I'm triing new nuxeo platform: Nuxeo Platform LTS 2021 Together with nuxeo studio. My question is related with hot deploy:
First time I deploy nuxeo-studio project it works fine and the module is deployed correctly in the bundle folders.
Making a new change at nuxeo-studio and re-deploy again doesn't work, the bundle is blocked already used by another process (nxsever is using it of course)
To fix it: I have to stop the server, delete the bundle, start the server and re-deploy again.
OS: Windows 10.
Expected behaviour: Could someone confirm if "hot deployment" is working specially with nuxeo studio projects?
Many thanks
****** chain ******
Name: Service.HotReloadStudioSnapshot
Exception: OperationException
Caught error: org.nuxeo.ecm.core.api.NuxeoException: Error while updating studio snapshot
Caused by: org.nuxeo.ecm.automation.OperationException: org.nuxeo.ecm.core.api.NuxeoException: Error while updating studio snapshot
****** Hierarchy calls ******
Caused by: org.osgi.framework.BundleException: Unable to copy bundles to D:\Software\Nuxeo Platform\nuxeo-server-tomcat-2021.1\nxserver\bundles
at org.nuxeo.runtime.reload.ReloadComponent.copyBundlesToDeploy(ReloadComponent.java:469) ~[nuxeo-runtime-reload-2021.1.19.jar:?]
at org.nuxeo.runtime.reload.ReloadComponent.reloadBundles(ReloadComponent.java:362) ~[nuxeo-runtime-reload-2021.1.19.jar:?]
at org.nuxeo.ecm.admin.runtime.ReloadHelper.hotReloadPackage(ReloadHelper.java:131) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
at org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot.hotReloadPackage(HotReloadStudioSnapshot.java:195) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
at org.nuxeo.ecm.admin.operation.HotReloadStudioSnapshot.run(HotReloadStudioSnapshot.java:125) ~[nuxeo-admin-center-core-2021.1.19.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:168) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:180) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:147) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:212) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:209) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.lambda$run$0(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:105) ~[nuxeo-automation-core-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.server.jaxrs.OperationResource.execute(OperationResource.java:58) ~[nuxeo-automation-server-2021.1.19.jar:?]
at org.nuxeo.ecm.automation.server.jaxrs.ExecutableResource.doPost(ExecutableResource.java:70) ~[nuxeo-automation-server-2021.1.19.jar:?]
... 130 more
Caused by: java.nio.file.FileSystemException: D:\Software\Nuxeo Platform\nuxeo-server-tomcat-2021.1\nxserver\bundles\myproject-master-SNAPSHOT.jar: El proceso no tiene acceso al archivo porque está siendo utilizado por otro proceso. (The process cannot access to the file because it has been locked by other process)
02-12-2021 09:12 AM
Hello, it works on my side on LTS 2021 (MacOS). I'll post an update if we identify an issue specific to Windows OS, but I don't think it's the case. Regards
02-12-2021 09:16 AM
Thanks. Great! probably is windows specific error, I will try in Linux and let you know By the way this flag was already activated in nuxeo.conf org.nuxeo.dev=true
02-16-2021 10:33 AM
Hello, that's actually a bug
Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.
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.