Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-4717

NPE while using linked copy feature

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • xCM 6.0.0 (War Room)
    • xCM 6.0.0 (War Room)
    • None

    Description

      Simple scenario : a site has two languages, english and french for instance (order is important).
      Validate a page in french (the second language) only, and then add a new page using the content picker engine, searching for the validated page title.
      You get an ugly NPE like this one:

      2009-05-12 17:57:08,265: INFO [BackgroundJob] - execute Background job BackgroundJob-2df713ef-8c46-4a69-8125-0f7200c8f7d1
      started @ Tue May 12 17:57:08 CEST 2009
      2009-05-12 17:57:08,265: INFO [ImportHandler] - Import starts (en)
      2009-05-12 17:57:08,281: ERROR [ImportExportBaseService] - Error during copying
      java.lang.NullPointerException
      at org.jahia.services.importexport.JahiaLegacyExporter.export(JahiaLegacyExporter.java:440)
      at org.jahia.services.importexport.JahiaLegacyExporter.export(JahiaLegacyExporter.java:135)
      at org.jahia.services.importexport.ImportExportBaseService.export(ImportExportBaseService.java:712)
      at org.jahia.services.importexport.ImportExportBaseService.copy(ImportExportBaseService.java:1528)
      at org.jahia.services.importexport.ImportExportBaseService.copy(ImportExportBaseService.java:1478)
      at org.jahia.services.importexport.ImportExportBaseService$$FastClassByCGLIB$$de1c40f7.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
      at org.jahia.services.importexport.ImportExportBaseService$$EnhancerByCGLIB$$ba485c5c.copy(<generated>)
      at org.jahia.services.importexport.CopyJob.executeJahiaJob(CopyJob.java:81)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:150)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

      TestRail: Results

        Attachments

          Activity

            People

              tdraier_old Thomas Draier (Inactive)
              rfelden Romain Felden (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 6.0.0 (War Room)