[ 
https://jira.nuxeo.org/browse/NXP-6124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=86346#action_86346
 ] 

Stéphane Lacoin commented on NXP-6124:
--------------------------------------

http://hg.nuxeo.org/nuxeo/nuxeo-common/rev/560a972fa6d8

Test environment

* nx-shell distribution 
http://qa.nuxeo.org/hudson/view/5.4/job/nuxeo-distribution-5.4/org.nuxeo.ecm.distribution$nuxeo-distribution-shell/484/artifact/org.nuxeo.ecm.distribution/nuxeo-distribution-shell/5.4.1-20101224.145451-128/nuxeo-distribution-shell-5.4.1-SNAPSHOT.zip

* launcher script :

libs=$(echo lib/*.jar | tr ' ' ':')
bundles=$(echo bundles/* |  tr ' ' ':')
java -Dorg.nuxeo.dev=true -Xdebug 
-Xrunjdwp:transport=dt_socket,address=127.0.0.1:8787,server=y,suspend=y 
-Dnuxeo.bundles=$bundles -cp 
/usr/local/src/org.nuxeo.support/workspace/nuxeo/nuxeo-core/nuxeo-core-client/target/classes:config:$libs:$bundles
 org.nuxeo.ecm.core.client.sample.RestartMain $@
          
Main class :
                                                                          
package org.nuxeo.ecm.core.client.sample;


public class RestartMain {

    public static void main(String[] args) throws Exception {
        Main.main(args);
        Main.main(args);
     }

}


> URL handlers not cleaned up
> ---------------------------
>
>                 Key: NXP-6124
>                 URL: https://jira.nuxeo.org/browse/NXP-6124
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Runtime
>    Affects Versions: 5.4
>            Reporter: Stéphane Lacoin
>            Assignee: Stéphane Lacoin
>             Fix For: 5.4.1
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> When someone try to hot re-deploy the nuxeo application, the new application 
> get errors when accessing to URLs. The problem comes because we don't clear 
> the handlers cache at the moment we're reinitializing the factory in 
> URLStreamHandlerFactoryInstaller.installURLStreamHandlerFactory.
> INFO: Illegal access: this web application instance has been stopped already. 
>  Could not load org.nuxeo.theme.protocol.nxtheme.Connection.  The eventual 
> following stack trace is caused by an error thrown for debugging purposes as 
> well as to attempt to terminate the thread which caused the illegal access, 
> and has no functional impact.
> java.lang.IllegalStateException
>       at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
>       at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>       at org.nuxeo.theme.Manager$1.createURLStreamHandler(Manager.java:122)
>       at 
> org.nuxeo.common.utils.URLStreamHandlerFactoryInstaller$FactoryStack.createURLStreamHandler(URLStreamHandlerFactoryInstaller.java:128)
>       at java.net.URL.getURLStreamHandler(URL.java:1106)
>       at java.net.URL.<init>(URL.java:572)
>       at java.net.URL.<init>(URL.java:464)
>       at java.net.URL.<init>(URL.java:413)
>       at org.nuxeo.theme.Manager.initializeProtocols(Manager.java:111)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to