Uploaded image for project: 'MyCoRe'
  1. MCR-1460

IFS consistency check commands throws NPEs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2016.06.0.1
    • Fix Version/s: 2016.12, 2016.06.0.2
    • Component/s: mycore-ifs
    • Labels:
      None

      Description

      Use the 'generate missing file report in directory

      {0}' command leeds to the following exception:
      ERROR: Command 'generate missing file report in directory /mcr/digibib/tmp/' failed. Performing transaction rollback...
      
      java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.mycore.frontend.cli.MCRCommand.invoke(MCRCommand.java:252)
       at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.runCommand(MCRWebCLIContainer.java:309)
       at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.processCommand(MCRWebCLIContainer.java:277)
       at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.processCommands(MCRWebCLIContainer.java:371)
       at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.call(MCRWebCLIContainer.java:256)
       at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.call(MCRWebCLIContainer.java:187)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
       at org.mycore.datamodel.ifs2.MCRCStoreIFS2.getFile(MCRCStoreIFS2.java:249)
       at org.mycore.datamodel.ifs2.MCRCStoreIFS2.getLocalFile(MCRCStoreIFS2.java:231)
       at org.mycore.frontend.cli.MCRIFSCommands.writeReport(MCRIFSCommands.java:399)
       at org.mycore.frontend.cli.MCRIFSCommands.writeMissingFileReport(MCRIFSCommands.java:318)
       ... 16 more
      
      ERROR: The following command failed: 'generate missing file report in directory /mcr/digibib/tmp/'
      


      The command 'check mcrfsnodes for derivate {0}

      of content store SAM-FS' also failes with the following exception:

      ERROR: Command 'check mcrfsnodes for derivate digibib_derivate_00001001 of content store SAM-FS' failed. Performing transaction rollback...
      
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.mycore.frontend.cli.MCRCommand.invoke(MCRCommand.java:252)
      	at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.runCommand(MCRWebCLIContainer.java:309)
      	at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.processCommand(MCRWebCLIContainer.java:277)
      	at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.processCommands(MCRWebCLIContainer.java:371)
      	at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.call(MCRWebCLIContainer.java:256)
      	at org.mycore.webcli.container.MCRWebCLIContainer$ProcessCallable.call(MCRWebCLIContainer.java:187)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at org.mycore.frontend.cli.MCRIFS2Commands.fixMCRFSNODESForDerivate(MCRIFS2Commands.java:187)
      	at org.mycore.frontend.cli.MCRIFS2Commands.checkMCRFSNODESForDerivate(MCRIFS2Commands.java:135)
      	... 16 more
      
      ERROR: The following command failed: 'check mcrfsnodes for derivate digibib_derivate_00001001 of content store SAM-FS'
      

        Attachments

          Activity

            People

            • Assignee:
              yagee Thomas Scheffler
              Reporter:
              mcrkrebs Kathleen Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: