Image du projet 'Socle K-Sup' téléversée
  1. Socle K-Sup
  2. CORE-472

NullpointerException quand des codes langues n'existent plus

XMLWordImprimable

    • Icon: Bug Bug
    • Résolution: Résolu
    • Icon: Mineur Mineur
    • 6.0-rc4
    • 6.0-rc4
    • Aucune
    • Aucune

      Quand la base contient des données avec un code langue qui n'est pas défini/supporté sur le projet (via env.properties par exemple), une exception est levée au lieu de par exemple ignorer ces données.

      Stacktrace :
      java.lang.NullPointerException: null
      at com.jsbsoft.jtf.core.LangueUtil.getLocale(LangueUtil.java:258) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at com.jsbsoft.jtf.core.LangueUtil.getLocale(LangueUtil.java:284) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at com.univ.datagrid.processus.MultiFicheDatagrid.mapperResultatRechercheDepuisMeta(MultiFicheDatagrid.java:138) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at com.univ.datagrid.processus.MultiFicheDatagrid.traiterRechercheDepuisRequete(MultiFicheDatagrid.java:98) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at com.univ.datagrid.cache.CacheDatagridManager.traiterRecherche(CacheDatagridManager.java:36) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at com.univ.datagrid.cache.CacheDatagridManager$$FastClassByCGLIB$$68a1a2ea.invoke(<generated>) ~[spring-core-3.2.2.RELEASE.jar:na]
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at com.kdecole.cache.ehcache.aspect.TempCacheAspect.interceptGet(TempCacheAspect.java:262) ~[cache-1.2.5.jar:na]
      at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) ~[na:na]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_25]
      at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_25]
      at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631) ~[spring-aop-3.2.2.RELEASE.jar:3.2.2.RELEASE]
      at com.univ.datagrid.cache.CacheDatagridManager$$EnhancerByCGLIB$$4acbbdda.traiterRecherche(<generated>) ~[spring-core-3.2.2.RELEASE.jar:na]
      at com.univ.datagrid.servlet.DatagridServlet.doGet(DatagridServlet.java:73) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) ~[servlet-api-3.0.jar:na]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) ~[servlet-api-3.0.jar:na]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at com.jsbsoft.jtf.core.LogAppFilter.doFilter(LogAppFilter.java:141) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at ro.isdc.wro.http.WroContextFilter.doFilter(WroContextFilter.java:61) ~[wro4j-core-1.7.0.jar:1.7.0]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at com.univ.utils.filter.ContexteFilter.doFilter(ContexteFilter.java:52) ~[core-6.0-RC-4-SNAPSHOT.jar:na]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) ~[tomcat-catalina-7.0.28.jar:7.0.28]
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200) ~[tomcat-coyote-7.0.28.jar:7.0.28]
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579) ~[tomcat-coyote-7.0.28.jar:7.0.28]
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) ~[tomcat-coyote-7.0.28.jar:7.0.28]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
      at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]

            alexandre.baillif Alexandre BAILLIF [X] (Inactif)
            alexandre.baillif Alexandre BAILLIF [X] (Inactif)
            Votes:
            0 Voter pour ce ticket
            Gérer les observateurs:
            1 Démarre l'observation de ce ticket

              Création:
              Mise à jour:
              Résolue: