Projet

Général

Profil

Actions

Bug #12446

fermé

Impossible de créer des variables sans date d'application dans le backoffice

Ajouté par Miguel Moquillon il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

Statut:
Closed
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
01/07/2021
Echéance:
% réalisé:

100%

Temps estimé:
Navigateur:
Tous
Votre version de Silverpeas:
6.3-BUILD
Système d'exploitation:
Votre base de données:
Toutes
Livraison en TEST:
Livraison en PROD:

Description

Dans le backoffice, dans les Outils > Variables, lorsque l'on créé une variable sans préciser de date d'application (qui n'est pas obligatoire) alors une exception est levée et tracée dans les logs mais rien sur la page. Un message de succès de création de la variable apparaît mais rien ne s'affiche. Depuis, cette erreur réapparaît aussi à chaque accès à la page de gestion des variables. A savoir que les variables ont bien été créées dans la base de données. Ceci relèverait donc d'un problème de décodage des dates lors de l'affichage des variables.

Ci-dessous la trace :

2021-07-01 16:36:32,511 SEVERE [silverpeas.web.variables] (default task-39) Web page dispatching to /variables/jsp/variables.jsp failed: JBWEB004038: An exception occurred processing JSP page /variables/jsp/variables.jsp at line 188

188

185:           <view:arrayCellCheckbox name="selection" checked="${variable.selected}" value="${variable.id}"/>
186:           <view:arrayCellText><a href="javascript:editVariable('${variable.id}')">${variable.data.label}</a></view:arrayCellText>
187:           <view:arrayCellText text="${variable.refVariableValue.valueForHTML}"/>
188:           <view:arrayCellText text="${silfn:formatDate(variable.refStartDate, lang)}"/>
189:           <view:arrayCellText text="${silfn:formatDate(variable.refEndDate, lang)}"/>
190:           <view:arrayCellText classes="variable-nb-values">${variable.data.numberOfValues}</view:arrayCellText>
191:           <view:arrayCellText>

Stacktrace:: org.apache.jasper.JasperException: JBWEB004038: An exception occurred processing JSP page /variables/jsp/variables.jsp at line 188

188

185:           <view:arrayCellCheckbox name="selection" checked="${variable.selected}" value="${variable.id}"/>
186:           <view:arrayCellText><a href="javascript:editVariable('${variable.id}')">${variable.data.label}</a></view:arrayCellText>
187:           <view:arrayCellText text="${variable.refVariableValue.valueForHTML}"/>
188:           <view:arrayCellText text="${silfn:formatDate(variable.refStartDate, lang)}"/>
189:           <view:arrayCellText text="${silfn:formatDate(variable.refEndDate, lang)}"/>
190:           <view:arrayCellText classes="variable-nb-values">${variable.data.numberOfValues}</view:arrayCellText>
191:           <view:arrayCellText>

Stacktrace:
    at [email protected]//org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    at [email protected]//org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:471)
    at [email protected]//org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    at [email protected]//org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    at [email protected]//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
    at [email protected]//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:81)
    at [email protected]//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
    at [email protected]//io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)
    at [email protected]//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
    at [email protected]//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:251)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:186)
    at [email protected]//io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:227)
    at [email protected]//io.undertow.servlet.spec.RequestDispatcherImpl.forwardImplSetup(RequestDispatcherImpl.java:149)
    at [email protected]//io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:111)
    at deployment.silverpeas.war//org.silverpeas.core.web.mvc.route.ComponentRequestRouter.redirectService(ComponentRequestRouter.java:353)
    at deployment.silverpeas.war//org.silverpeas.core.web.mvc.route.ComponentRequestRouter.doPost(ComponentRequestRouter.java:157)
    at deployment.silverpeas.war//org.silverpeas.core.web.mvc.route.ComponentRequestRouter.doGet(ComponentRequestRouter.java:162)
    at [email protected]//javax.servlet.http.HttpServlet.service(HttpServlet.java:503)
    at deployment.silverpeas.war//org.silverpeas.core.web.mvc.webcomponent.SilverpeasHttpServlet.service(SilverpeasHttpServlet.java:58)
    at deployment.silverpeas.war//org.silverpeas.core.web.mvc.webcomponent.SilverpeasAuthenticatedHttpServlet.service(SilverpeasAuthenticatedHttpServlet.java:79)
    at [email protected]//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
    at [email protected]//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
    at deployment.silverpeas.war//org.silverpeas.components.whitepages.filters.ComponentRequestRouterFilter.doFilter(ComponentRequestRouterFilter.java:71)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.core.web.filter.MassiveWebSecurityFilter.doFilter(MassiveWebSecurityFilter.java:133)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.core.web.filter.WebCORSFilter.doFilter(WebCORSFilter.java:81)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.web.filter.InternetExplorerAntiCompatibilityFilter.doFilter(InternetExplorerAntiCompatibilityFilter.java:50)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.web.token.SessionSynchronizerTokenValidator.doFilter(SessionSynchronizerTokenValidator.java:104)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.core.web.filter.MessageFilter.doFilter(MessageFilter.java:73)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.web.filter.SilverpeasExceptionLoggingFilter.doFilter(SilverpeasExceptionLoggingFilter.java:49)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.web.filter.ResourceCacheFilter.doFilter(ResourceCacheFilter.java:55)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.silverpeas.web.filter.HttpServletRequestDecoration.doFilter(HttpServletRequestDecoration.java:59)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at deployment.silverpeas.war//org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at deployment.silverpeas.war//org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
    at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
    at [email protected]//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
    at [email protected]//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
    at [email protected]//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
    at [email protected]//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
    at [email protected]//org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
    at [email protected]//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
    at [email protected]//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
    at [email protected]//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
    at [email protected]//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
    at [email protected]//io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
    at [email protected]//io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
    at [email protected]//io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
    at [email protected]//io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
    at [email protected]//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
    at [email protected]//io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
    at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
    at [email protected]//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
    at [email protected]//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
    at [email protected]//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
    at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
    at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
    at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
    at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
    at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
    at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
    at [email protected]//io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
    at [email protected]//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
    at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
    at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
    at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
    at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
    at [email protected]//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: javax.el.ELException: java.lang.IllegalArgumentException: java.lang.ArithmeticException: long overflow
    at [email protected]//javax.el.BeanELResolver.getValue(BeanELResolver.java:191)
    at [email protected]//org.apache.jasper.el.JasperELResolver.getValue(JasperELResolver.java:110)
    at [email protected]//com.sun.el.parser.AstValue.getValue(AstValue.java:114)
    at [email protected]//com.sun.el.parser.AstValue.getValue(AstValue.java:177)
    at [email protected]//com.sun.el.parser.AstMethodArguments.getParameters(AstMethodArguments.java:43)
    at [email protected]//com.sun.el.parser.AstFunction.getValue(AstFunction.java:163)
    at [email protected]//com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
    at [email protected]//org.jboss.weld.module.web.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
    at [email protected]//org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:917)
    at org.apache.jsp.variables.jsp.variables_jsp._jspx_meth_view_005farrayCellText_005f2(variables_jsp.java:1641)
    at org.apache.jsp.variables.jsp.variables_jsp._jspx_meth_view_005farrayLine_005f0(variables_jsp.java:1522)
    at org.apache.jsp.variables.jsp.variables_jsp._jspx_meth_view_005farrayLines_005f0(variables_jsp.java:1474)
    at org.apache.jsp.variables.jsp.variables_jsp._jspx_meth_view_005farrayPane_005f0(variables_jsp.java:1291)
    at org.apache.jsp.variables.jsp.variables_jsp._jspService(variables_jsp.java:454)
    at [email protected]//org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at [email protected]//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
    at [email protected]//org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
    ... 105 more
Caused by: java.lang.IllegalArgumentException: java.lang.ArithmeticException: long overflow
    at java.base/java.util.Date.from(Date.java:1362)
    at deployment.silverpeas.war//org.silverpeas.core.date.TemporalConverter.asDate(TemporalConverter.java:286)
    at deployment.silverpeas.war//org.silverpeas.web.variables.VariableUIEntity.getRefStartDate(VariableUIEntity.java:66)
    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 [email protected]//javax.el.BeanELResolver.getValue(BeanELResolver.java:186)
    ... 121 more
Caused by: java.lang.ArithmeticException: long overflow
    at java.base/java.lang.Math.multiplyExact(Math.java:946)
    at java.base/java.lang.Math.multiplyExact(Math.java:922)
    at java.base/java.time.Instant.toEpochMilli(Instant.java:1236)
    at java.base/java.util.Date.from(Date.java:1360)
    ... 128 more

Mis à jour par Miguel Moquillon il y a plus de 3 ans

  • Statut changé de New à Assigned
  • Assigné à mis à Miguel Moquillon

Mis à jour par Miguel Moquillon il y a plus de 3 ans

  • Statut changé de Assigned à In progress...

Mis à jour par Miguel Moquillon il y a plus de 3 ans

  • Statut changé de In progress... à Resolved

Mis à jour par Nicolas Eysseric il y a plus de 3 ans

  • Statut changé de Resolved à Integration in progress...

Le problème se produit dès l'affichage des valeurs existantes...

Mis à jour par Nicolas Eysseric il y a plus de 3 ans

  • Statut changé de Integration in progress... à Closed
  • Version cible Version 6.3 supprimé
  • % réalisé changé de 0 à 100

Régression interne à la version 6.3 (c'est à dire absente des versions antérieures).

Actions

Formats disponibles : Atom PDF