SEVERE [main] com.simplicite.util.AppLog.globalLog SIMPLICITE: Unable to initialize platform

Tags: #<Tag:0x00007f80fa80e918>

Bonjour,

Une de nos instance présente un 404 systématique, rien n’est déployé, voici les partie

2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,290|SIMPLICITE|http://c985534530d1:8080||ECOREIO001|system|com.simplicite.util.integration.SAXImportXML|importObject||I/O error: Import object ObjectInternal, status = KO
2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,266 INFO [] Start import object ObjectInternal:
2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,266 INFO [] Found field obo_name = [UserSession]
2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,266 INFO [] Found field obo_btn_listadd = [P]
2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,266 INFO [] Found field obo_btn_listedit = [P]
2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,278 INFO [] Found internal key row_id = 1877
2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,290 INFO [] Action: update
2020-11-05 14:23:10.497,"{""log"":""2020-11-05 15:23:10,290 ERROR [] Validation error: [ERR_ENUM:Preset search#ERROR#obo_srh_predef]

 

and 

 

2020-11-05 14:23:34.512,"{""log"":""05-Nov-2020 15:23:34.427 SEVERE [main] com.simplicite.util.AppLog.globalLog SIMPLICITE: Unable to initialize platform
2020-11-05 14:23:34.512,"{""log"":""\torg.json.JSONException: Expected a ',' or ']' at 84 [character 2 line 3]
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.json.JSONTokener.syntaxError(JSONTokener.java:507)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.json.JSONArray.<init>(JSONArray.java:145)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.json.JSONArray.<init>(JSONArray.java:162)
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.util.engine.Platform.loadURIMappings(Platform.java:1969)
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.util.engine.GrantManager.clearCache(GrantManager.java:228)
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.util.GrantDirect.clearCache(GrantDirect.java:633)
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.util.Grant.clearCache(Grant.java:2117)
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.util.engine.Platform.applyPatches(Platform.java:553)
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.util.engine.Platform.init(Platform.java:166)
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.webapp.listeners.ApplicationListener.contextInitialized(ApplicationListener.java:31)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5177)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1866)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.Catalina.start(Catalina.java:772)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.lang.reflect.Method.invoke(Method.java:564)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
2020-11-05 14:23:34.512,"{""log"":""05-Nov-2020 15:23:34.428 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [com.simplicite.webapp.listeners.ApplicationListener]
2020-11-05 14:23:34.512,"{""log"":""\tjava.lang.RuntimeException: Unable to initialize platform for context path []
2020-11-05 14:23:34.512,"{""log"":""\t\tat com.simplicite.webapp.listeners.ApplicationListener.contextInitialized(ApplicationListener.java:35)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5177)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1866)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
2020-11-05 14:23:34.512,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
2020-11-05 14:23:34.512,"{""log"":""\t\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

 

2020-11-05 14:23:35.495,"{""log"":""2020-11-05 15:23:34,623|SIMPLICITE|http://c985534530d1:8080||ICORECM002|system|com.simplicite.util.engine.CronManager|stop||Cron manager was stopped at Thu Nov 05 15:23:34 CET 2020
2020-11-05 14:23:35.495,"{""log"":""05-Nov-2020 15:23:34.624 INFO [main] com.simplicite.util.AppLog.globalLog SIMPLICITE: Platform on endpoint [http://c985534530d1:8080] stopped
2020-11-05 14:23:35.495,"{""log"":""05-Nov-2020 15:23:34.649 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [189,612] ms
2020-11-05 14:23:35.495,"{""log"":""05-Nov-2020 15:23:34.655 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [\""http-nio-8080\""]
2020-11-05 14:23:35.495,"{""log"":""05-Nov-2020 15:23:34.685 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [\""http-nio-8443\""]
2020-11-05 14:23:35.495,"{""log"":""05-Nov-2020 15:23:34.705 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [189818] milliseconds
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
2020-11-05 14:23:34.513,"{""log"":""\t\tat java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.startup.Catalina.start(Catalina.java:772)
2020-11-05 14:23:34.513,"{""log"":""\t\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-11-05 14:23:34.513,"{""log"":""\t\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2020-11-05 14:23:34.513,"{""log"":""\t\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-11-05 14:23:34.513,"{""log"":""\t\tat java.base/java.lang.reflect.Method.invoke(Method.java:564)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
2020-11-05 14:23:34.513,"{""log"":""\t\tat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
2020-11-05 14:23:34.513,"{""log"":""05-Nov-2020 15:23:34.431 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
2020-11-05 14:23:34.513,"{""log"":""05-Nov-2020 15:23:34.437 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

 

Identifiez vous un problème connu spécialement pour cette partie : 
 

2020-11-05 14:23:34.512,"{""log"":""05-Nov-2020 15:23:34.427 SEVERE [main] com.simplicite.util.AppLog.globalLog SIMPLICITE: Unable to initialize platform
2020-11-05 14:23:34.512,"{""log"":""\torg.json.JSONException: Expected a ',' or ']' at 84 [character 2 line 3]

Il manque des éléments de contexte pour cerner votre pb (ça semble être un pb de passage de patch au autre décalage entre la webapp et la base de données mais on ne peut pas le savoir avec les éléments fournis)

Merci de nous indiquer:

  1. votre mode de déploiement : Docker ou manuel
  2. l’intégralité des logs depuis le démarrage de l’instance
  3. la version / patchlevel / revision exacte que vous utlisez (i.e. le contenu du /health ou à minima, si votre instance ne démarre pas du tout, le contenu du fichier <racine tomcat>/webapps/ROOT/WEB-INF/classes/com/simplicite/globals.properties + la valeur du param systeme PATCH_LEVEL en base de données via select sys_value from m_system where sys_code = 'PATCH_LEVEL')
  4. toute autre information de contexte qui pourrait nous aider

PS: une des erreur fournie semble indiquer que le paramètre système URI_MAPPINGS ne contient pas un JSON correctement formaté, vérifiez que c’est effectivement le cas et corrigez le si c’est le cas directement en base (dans la table m_system comme ci-dessus) avant de tenter un redémarrage

1 Like

Bonjour,

Le try/catch pour éviter un plantage en cas d’erreur du paramètre URI_MAPPINGS a été reporté en V4, il n’était présent qu’en V5.

En attendant, supprimez le paramètre :

delete from m_system where sys_code='URI_MAPPINGS'

et corrigez le quand la plateforme pourra démarrer.

Sur l’erreur de patch, c’est mineur, pouvez vous nous donner le résultat de la requête suivante, la valeur ne semble pas convenir aux valeurs autorisées de la liste :

select obj_srh_predef from m_object where obj_name='UserSession'

Merci

1 Like