Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3635

Fix stackoverflow error when using 'nuxeo.http.proxy.pac.url' with HF35

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: NCC-1.8.3
    • Component/s: None
    • Release Notes Summary:
      Proxy PAC configuration is functional after the upgrade to HF35.
    • Tags:
    • Backlog priority:
      1,000
    • Team:
      NOS

      Description

      How to reproduce:

      • unzip a 10.10 ZIP distribution
      • install hot fixes until HF35
      • set configuration variable nuxeo.http.proxy.pac.url in nuxeo.conf
      • install any package

      Expected result: the package gets installed.
      Actual result: An error occurs:

      $ nuxeoctl mp-install amazon-s3-online-storage-1.9.12
      Nuxeo home:          /home/vdutat/Workspaces/nuxeo-tomcat/nuxeo-server-10.10-tomcat
      Nuxeo configuration: /home/vdutat/Workspaces/nuxeo-tomcat/nuxeo-server-10.10-tomcat/bin/nuxeo.conf
      Include template: /home/vdutat/Workspaces/nuxeo-tomcat/nuxeo-server-10.10-tomcat/templates/common-base
      Include template: /home/vdutat/Workspaces/nuxeo-tomcat/nuxeo-server-10.10-tomcat/templates/common
      Include template: /home/vdutat/Workspaces/nuxeo-tomcat/nuxeo-server-10.10-tomcat/templates/default
      Include template: /home/vdutat/Workspaces/nuxeo-tomcat/nuxeo-server-10.10-tomcat/templates/mongodb
      
      Dependency resolution:
        Installation order (1):        amazon-s3-online-storage-1.9.12
        Unchanged packages (38):       nuxeo-10.10-HF10:1.0.0, nuxeo-10.10-HF32:1.0.0, nuxeo-10.10-HF11:1.0.0, nuxeo-10.10-HF33:1.0.0, nuxeo-10.10-HF30:1.0.0, nuxeo-10.10-HF31:1.0.0, nuxeo-10.10-HF18:1.0.0, nuxeo-web-ui:2.4.0, nuxeo-10.10-HF19:1.0.0, nuxeo-10.10-HF16:1.0.0, nuxeo-10.10-HF17:1.0.0, nuxeo-10.10-HF14:1.0.0, nuxeo-10.10-HF15:1.0.1, nuxeo-10.10-HF12:1.0.0, nuxeo-10.10-HF34:1.0.0, nuxeo-10.10-HF13:1.0.0, nuxeo-10.10-HF35:1.0.0, nuxeo-10.10-HF21:1.0.0, nuxeo-10.10-HF22:1.0.0, nuxeo-10.10-HF20:1.0.1, nuxeo-10.10-HF07:1.0.0, nuxeo-10.10-HF29:1.0.0, nuxeo-10.10-HF08:1.0.0, nuxeo-jsf-ui:10.10.0, nuxeo-10.10-HF05:1.0.0, nuxeo-10.10-HF27:1.0.0, nuxeo-10.10-HF06:1.0.0, nuxeo-10.10-HF28:1.0.0, nuxeo-10.10-HF03:1.0.0, nuxeo-10.10-HF25:1.0.0, nuxeo-10.10-HF04:1.0.1, nuxeo-10.10-HF26:1.0.0, nuxeo-10.10-HF01:1.0.0, nuxeo-10.10-HF23:1.0.0, nuxeo-dam:6.4.3, nuxeo-10.10-HF02:1.0.0, nuxeo-10.10-HF24:1.0.0, nuxeo-10.10-HF09:1.0.0
        Packages to download (1):      amazon-s3-online-storage:1.9.12
      
      Do you want to continue (yes/no)? [yes] 
      Downloading [amazon-s3-online-storage-1.9.12]...
      Exception in thread "main" java.lang.StackOverflowError
      	at java.lang.Class.getDeclaredFields0(Native Method)
      	at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
      	at java.lang.Class.getDeclaredField(Class.java:2068)
      	at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller$1.run(Context.java:209)
      	at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller$1.run(Context.java:204)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at jdk.nashorn.internal.runtime.Context$ContextCodeInstaller.initialize(Context.java:204)
      	at jdk.nashorn.internal.codegen.CompilationPhase$InstallPhase.transform(CompilationPhase.java:508)
      	at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:624)
      	at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:655)
      	at jdk.nashorn.internal.runtime.Context.compile(Context.java:1317)
      	at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1251)
      	at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:627)
      	at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:535)
      	at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:524)
      	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
      	at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
      	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:92)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.getRemotePacBodyReader(NashornProxyPacResolver.java:123)
      	at org.nuxeo.connect.connector.http.proxy.NashornProxyPacResolver.findPacProxies(NashornProxyPacResolver.java:98)
      	at org.nuxeo.connect.connector.http.proxy.ProxyPacResolver.findProxy(ProxyPacResolver.java:54)
      	at org.nuxeo.connect.connector.http.ProxyHelper.configureProxyIfNeeded(ProxyHelper.java:71)
      	at org.nuxeo.connect.HttpClientBuilderHelper.getHttpClientBuilder(HttpClientBuilderHelper.java:57)
      ...
      (just repeat over and over)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.