Uploaded image for project: 'Extraction'
  1. Extraction
  2. EXTRACT-140

NPE on automatic migration 20210618T0000

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.0
    • 1.7.0
    • None
    • 4.5 M4

      2021-09-14 17:20:59,604 ERROR [org.ametys.core.migration.MigrationExtensionPoint] (main;) Error during the automatic migration
      org.ametys.core.migration.MigrationException: Error while executing script to upgrade component 'plugin.extraction.jcr' to version '20210618T0000'. Error : '', message : 'TypeError: Cannot read property 'getValue' of null', stacktrace : 'TypeError: Cannot read property 'getValue' of null
      	at <js> parseExtractionFile(generated script:106:3444-3464)
      	at <js> :anonymous(generated script:85:2980-3015)
      	at com.oracle.truffle.polyglot.FunctionProxyHandler.invoke(HostInteropReflect.java:544)
      	at com.sun.proxy.$Proxy58.accept(Unknown Source)
      	at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
      	at <js> parseDirectory(generated script:76-88:2687-3061)
      	at <js> main(generated script:70:2583-2605)
      	at <js> :program(generated script:2376:83489-83494)
      	at org.graalvm.polyglot.Context.eval(Context.java:353)
      	at org.ametys.plugins.core.ui.script.ScriptHandler._executeScript(ScriptHandler.java:207)
      	at org.ametys.plugins.core.ui.script.ScriptHandler.executeScript(ScriptHandler.java:144)
      	at org.ametys.core.migration.action.impl.ScriptAction.doAction(ScriptAction.java:84)
      	at org.ametys.core.migration.MigrationExtensionPoint._applyUpgradeActions(MigrationExtensionPoint.java:260)
      	at org.ametys.core.migration.MigrationExtensionPoint.doMigration(MigrationExtensionPoint.java:157)
      	at org.ametys.runtime.servlet.RuntimeServlet._initMigration(RuntimeServlet.java:411)
      	at org.ametys.runtime.servlet.RuntimeServlet.doMigrationAndInit(RuntimeServlet.java:374)
      	at org.ametys.runtime.servlet.RuntimeServlet._initAmetys(RuntimeServlet.java:314)
      	at org.ametys.runtime.servlet.RuntimeServlet.init(RuntimeServlet.java:215)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:158)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4871)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5180)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1830)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
      	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
      '
      	at org.ametys.core.migration.action.impl.ScriptAction.doAction(ScriptAction.java:87)
      	at org.ametys.core.migration.MigrationExtensionPoint._applyUpgradeActions(MigrationExtensionPoint.java:260)
      	at org.ametys.core.migration.MigrationExtensionPoint.doMigration(MigrationExtensionPoint.java:157)
      	at org.ametys.runtime.servlet.RuntimeServlet._initMigration(RuntimeServlet.java:411)
      	at org.ametys.runtime.servlet.RuntimeServlet.doMigrationAndInit(RuntimeServlet.java:374)
      	at org.ametys.runtime.servlet.RuntimeServlet._initAmetys(RuntimeServlet.java:314)
      	at org.ametys.runtime.servlet.RuntimeServlet.init(RuntimeServlet.java:215)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:158)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4871)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5180)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1830)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1575)
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      	at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
      	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: