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

Interpréteur de tag image -> Indexation

XMLWordImprimable

    • Icon: Bug Bug
    • Résolution: Résolu
    • Icon: Mineur Mineur
    • 6.07.27, 6.08.00-BETA-01
    • 6.07.26
    • Aucune

      Lors de l'indexation des contenus avec la nouvelle version de l’interpréteur de tag image, une erreur survient :

       

      java.lang.NullPointerException: null
      	at com.kportal.tag.interpreteur.impl.InterpreteurImage.interpreterTag(InterpreteurImage.java:95)
      	at com.kportal.extension.module.plugin.toolbox.DefaultPluginTag.interpreteTag(DefaultPluginTag.java:49)
      	at com.kportal.extension.module.plugin.toolbox.PluginTagHelper.interpreterTags(PluginTagHelper.java:80)
      	at com.jsbsoft.jtf.textsearch.RechercheFmt.formaterEnHTML(RechercheFmt.java:69)
      	at com.kosmos.search.index.mapper.serializer.ToolboxSerializer.serialize(ToolboxSerializer.java:76)
      	at com.kosmos.search.index.mapper.serializer.ToolboxSerializer.serialize(ToolboxSerializer.java:1)
      	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)
      	at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)
      	at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
      	at com.kosmos.search.index.mapper.serializer.FicheBeanSerializer.serialize(FicheBeanSerializer.java:87)
      	at com.kosmos.search.index.mapper.serializer.FicheBeanSerializer.serialize(FicheBeanSerializer.java:1)
      	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
      	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
      	at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:2643)
      	at com.fasterxml.jackson.core.base.GeneratorBase.writeObject(GeneratorBase.java:381)
      	at com.fasterxml.jackson.core.JsonGenerator.writeObjectField(JsonGenerator.java:1726)
      	at com.kosmos.search.index.mapper.serializer.FicheSerializer.serialize(FicheSerializer.java:141)
      	at com.kosmos.search.index.mapper.serializer.FicheSerializer.serialize(FicheSerializer.java:1)
      	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)
      	at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)
      	at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
      	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)
      	at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)
      	at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
      	at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:119)
      	at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:79)
      	at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:18)
      	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)
      	at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:719)
      	at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:155)
      	at com.kosmos.search.index.mapper.FicheIndexDocumentSerializer.serialize(FicheIndexDocumentSerializer.java:96)
      	at com.kosmos.search.index.mapper.FicheIndexDocumentSerializer.serialize(FicheIndexDocumentSerializer.java:1)
      	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
      	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
      	at com.fasterxml.jackson.databind.ObjectMapper._configAndWriteValue(ObjectMapper.java:3893)
      	at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsBytes(ObjectMapper.java:3231)
      	at com.kosmos.search.batch.common.writer.IndexerWriter.writeIndexingCommands(IndexerWriter.java:86)
      	at com.kosmos.search.batch.common.writer.IndexerWriter.write(IndexerWriter.java:66)
      	at sun.reflect.GeneratedMethodAccessor968.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      	at com.sun.proxy.$Proxy81.write(Unknown Source)
      	at org.springframework.batch.core.step.item.SimpleChunkProcessor.writeItems(SimpleChunkProcessor.java:175)
      	at org.springframework.batch.core.step.item.SimpleChunkProcessor.doWrite(SimpleChunkProcessor.java:151)
      	at org.springframework.batch.core.step.item.FaultTolerantChunkProcessor$3.doWithRetry(FaultTolerantChunkProcessor.java:328)
      	at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:276)
      	at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:201)
      	at org.springframework.batch.core.step.item.BatchRetryTemplate.execute(BatchRetryTemplate.java:217)
      	at org.springframework.batch.core.step.item.FaultTolerantChunkProcessor.write(FaultTolerantChunkProcessor.java:420)
      	at org.springframework.batch.core.step.item.SimpleChunkProcessor.process(SimpleChunkProcessor.java:199)
      	at org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:75)
      	at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)
      	at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
      	at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)
      	at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)
      	at org.springframework.batch.repeat.support.TaskExecutorRepeatTemplate$ExecutingRunnable.run(TaskExecutorRepeatTemplate.java:262)
      	at com.kosmos.search.batch.utils.ThreadPoolJobTaskExecutor$1.run(ThreadPoolJobTaskExecutor.java:71)
      	at com.kosmos.log.ThreadLogContextPoolTaskExecutor$1.run(ThreadLogContextPoolTaskExecutor.java:86)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      En effet dans le cas d'une indexation des contenus il n'y a pas de requête HTTP présente.

      Une correction rapide serait de faire un test pour ne pas ajouter les attributs relatifs à l'image dans la requête lorsqu'elle n'existe pas. Ça signifie que l'indexation ne bénéficiera pas des informations de l'image (exemple : la légende). À voir si l'on souhaite les avoirs pour l'indexation, et dans ce cas trouver une autre solution.

       

       

       

        Il n'y a aucune sous-tâche pour ce ticket.

            kevin.robert Kevin ROBERT [X] (Inactif)
            kevin.robert Kevin ROBERT [X] (Inactif)
            Votes:
            0 Voter pour ce ticket
            Gérer les observateurs:
            2 Démarre l'observation de ce ticket

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