Souci . HELP !!

kranf
Messages : 18
Inscription : jeu. janv. 11, 2018 1:07 pm

Souci . HELP !!

Message par kranf »

Bonjour,

Je refais un nouveau fil sur mon souci.

Après avoir essayé moults solutions, j'ai finalement opté pour une installation via rpm de la version 1.17.
J'ai donc créé ma base puis réinjecté le dump venant d'une version 1.5. Je n'ai pas encore mis celle-ci à jour. J'imagine que je devrai le faire. Mais j'avoue être un peu frileux car le dernier upgrade a tout pété ..

Pour l'instant, c'est le startup qui plante :
[18-01-24 17:35:53.445] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: Mapped URL path [/styles/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[18-01-24 17:35:53.445] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: Mapped URL path [/scripts/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[18-01-24 17:35:53.445] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[18-01-24 17:35:53.445] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[18-01-24 17:35:53.490] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver: Detected @ExceptionHandler methods in handlerDomainExceptionResolver
[18-01-24 17:35:53.490] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver: Detected @ExceptionHandler methods in handlerBindExceptionResolver
[18-01-24 17:35:53.490] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver: Detected @ExceptionHandler methods in handlerTransactionSystemExceptionResolver
[18-01-24 17:35:53.604] SquashTM - 11803 INFO [main] [] --- org.springframework.web.servlet.handler.SimpleUrlHandlerMapping: Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[18-01-24 17:35:56.502] SquashTM - 11803 INFO [main] [] --- org.springframework.jmx.export.annotation.AnnotationMBeanExporter: Registering beans for JMX exposure on startup
[18-01-24 17:35:56.521] SquashTM - 11803 INFO [main] [] --- org.springframework.context.support.DefaultLifecycleProcessor: Starting beans in phase 0
[18-01-24 17:35:56.590] SquashTM - 11803 INFO [main] [] --- org.apache.catalina.core.StandardService: Stopping service Tomcat
[18-01-24 17:35:56.615] SquashTM - 11803 INFO [main] [] --- org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer:

Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)


[18-01-24 17:35:56.615] SquashTM - 11803 INFO [main] [] --- org.squashtest.tm.PluginsPathClasspathExtender: finished
[18-01-24 17:35:56.626] SquashTM - 11803 ERROR [main] [] --- org.springframework.boot.SpringApplication: Application startup failed
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:552) ~[?:1.8.0_161]
at java.lang.Long.valueOf(Long.java:803) ~[?:1.8.0_161]
at org.squashtest.tm.web.internal.fileupload.SquashMultipartResolver.updateConfig(SquashMultipartResolver.java:63) ~[classes!/:?]
at org.squashtest.tm.web.internal.fileupload.MultipartResolverDispatcher.onContextReady(MultipartResolverDispatcher.java:90) ~[classes!/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:226) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:143) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:105) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:877) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144) ~[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369) [spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) [spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
at org.squashtest.tm.SquashTm.main(SquashTm.java:57) [classes!/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [squash-tm.war:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [squash-tm.war:?]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [squash-tm.war:?]
at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59) [squash-tm.war:?]
[18-01-24 17:35:56.632] SquashTM - 11803 INFO [main] [] --- org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext: Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2437c6dc: startup date [Wed Jan 24 17:34:56 CET 2018]; root of context hierarchy
[18-01-24 17:35:56.635] SquashTM - 11803 INFO [main] [] --- org.springframework.context.support.DefaultLifecycleProcessor: Stopping beans in phase 0
[18-01-24 17:35:56.640] SquashTM - 11803 INFO [main] [] --- org.springframework.jmx.export.annotation.AnnotationMBeanExporter: Unregistering JMX-exposed beans on shutdown
[18-01-24 17:35:56.683] SquashTM - 11803 INFO [main] [] --- org.springframework.cache.ehcache.EhCacheManagerFactoryBean: Shutting down EhCache CacheManager
[18-01-24 17:35:56.689] SquashTM - 11803 INFO [main] [] --- org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler: Shutting down ExecutorService 'squashtest.tm.service.ThreadPoolTaskScheduler'
[18-01-24 17:35:56.689] SquashTM - 11803 INFO [main] [] --- org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler: Shutting down ExecutorService 'squashtest.tm.service.ThreadPoolTaskScheduler'



Je ne suis pas expert java mais je ne vois pas ce qui pourrait clocher.
Je suis en java 1,8, un mariadb en 5.5, et donc squashtest en 1.17.

le /etc/sysconfig/squash-tm est :
# Default settings for Squash. This file is sourced by /bin/bash.

# Extra arguments passed to JVM
JAVA_ARGS="-Xms128m -Xmx512m -XX:MaxPermSize=128m -Djava.awt.headless=true"

# Port for HTTP connector
HTTP_PORT=8090

# DataBase parameters
DB_URL="jdbc:mysql://127.0.0.1:3306/SQUASHDB_TR"
DB_TYPE="mysql"
DB_USERNAME="squash"
DB_PASSWORD="squash"

Le user se connecte bien sur la base.

J'ai enlevé le tomcat centos. Le fallait il ? Est ce qu'il y a un tomcat dans le squash-test par défaut? Il me semble mais j'ai un doute.


Quelqu'un pourrait me donner un indice sur mon souci ?
Merci d'avance.
Karim
Messages : 102
Inscription : ven. avr. 20, 2018 6:51 am

Souci . HELP !!

Message par Karim »

Bonjour,

Afin de bien comprendre la situation, pourriez vous me dire si votre situation est telle que décrite ci-dessous :

Vous aviez une version 1.5 de Squash et vous êtes passé à une version 1.17 ?
Avez vous exécuté tous les scripts sql d'upgrade entre ces deux versions ? (il y en a 22 à exécuter dans ce cas).

Disposez vous de plugins particuliers ?
Avez vous mis à jour votre base données ?
Quelle est la version du tomcat que vous utilisez ?

Merci d'avance pour vos réponses.

Cordialement.
Karim
Messages : 102
Inscription : ven. avr. 20, 2018 6:51 am

Souci . HELP !!

Message par Karim »

Pour compléter ma réponse, je vous invite à jeter un coup d'oeil à la page suivante, concernant MariaDB :

[url=https://sites.google.com/a/henix.fr/wik ... requisites]Paramètres_systèmes_requis[/url]

Il est indiqué à cette page qu'il n'y a pas d'incompatibilité avec la version 10.2 notamment.
Vous pouvez donc upgrader votre SGBD MariaDB de la version 5.5 à la version 10.2.

Avec cette nouvelle version, vous pourrez reprendre les informations dont je vous ai déjà fait mention et lancer les scripts SQL d'upgrade séparant la version 1.5 jusqu'à la version 1.17.
Il faut savoir qu'il y a de grands écarts entre ces versions, de grands changements ayant été apportés sur Squash.

En espérant avoir été clair et avoir répondu à votre demande, je vous souhaite une bonne journée.

Cordialement.
Répondre

Revenir à « Questions générales / General questions »