Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2506

Nullpointer in tika-dl test on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.17
    • 1.17
    • tika-dl
    • None
    • Windows

    • Patch

    Description

      During a build on windows I get the following:

      Running org.apache.tika.dl.imagerec.DL4JVGG16NetTest
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.024 sec <<< FAILURE! - in org.apache.tika.dl.imagerec.DL4JVGG16NetTest
      recognise(org.apache.tika.dl.imagerec.DL4JVGG16NetTest)  Time elapsed: 0.024 sec  <<< ERROR!
      java.lang.NullPointerException: null
      	at org.apache.tika.Tika.<init>(Tika.java:109)
      	at org.apache.tika.dl.imagerec.DL4JVGG16NetTest.recognise(DL4JVGG16NetTest.java:42)
      
      HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 0:
        #000: C:\autotest\HDF5110ReleaseRWDITAR\src\H5F.c line 579 in H5Fopen(): unable to open file
          major: File accessibilty
          minor: Unable to open file
        #001: C:\autotest\HDF5110ReleaseRWDITAR\src\H5Fint.c line 1208 in H5F_open(): unable to read superblock
          major: File accessibilty
          minor: Read failed
      SUREFIRE-859:   #002: C:\autotest\HDF5110ReleaseRWDITAR\src\H5Fsuper.c line 443 in H5F__super_read(): truncated file: eof = 147097136, sblock->base_addr = 0, stored_eof = 553466928
          major: File accessibilty
          minor: File has been truncated
      
      Results :
      
      Tests in error: 
        DL4JVGG16NetTest.recognise:42 ยป NullPointer
      

      It appears to be looking for some installed native code that it can't find. I believe we should check for null config and if null we skip this test.

      Attachments

        Activity

          People

            bobpaulin Bob Paulin
            bobpaulin Bob Paulin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: