1
0
-1

I am trying to run the book preview extractor on clowder. First of all when trying to compile the code I get that 

in 

BookPreviewExtractor.java the 


(1) InpaintUtils is not imported


and (2) in the following command 

ImagePreviewPyramidExtractorService overlayPyramid = new ImagePreviewPyramidExtractorService(callingExtractor) 


ImagePreviewPyramidExtractorService takes no arguments but instead it calls callingExtractor


When changing those two pieces of code ((2) is being called twice in the program) I compile the code (after also changing EXCHANGE_NAME = "clowder").


When running it using the following command 

java -cp bin:$(echo lib/*.jar | tr ' ' ':'):. bookpreviewextractor.BookPreviewExtractor localhost medici Kfash3a6nb 10


I get that it has connected to rabbitmq and that it is waiting for messages. I have uploaded all files in the example folder of the extractor and I never get a response, the extractor never seems to activate, I have successfully used a number of python based extractors but this java based one does not seem to activate. Can you please advice on how I could proceed?


Thanks a lot, 

 Constantinos

 


  1. constantinos

    also when listing the connections to rabbitmq I get that a connection has been established 

    127.0.0.1:52530 -> 127.0.0.1:5672 network PLAIN 0 1 1463039220593 131072 127.0.0.1 rabbit@medici-devel None None None 127.0.0.1 52530 5672 AMQP 0-9-1 10 638 9 634 0 False None None None None running 43200 medici


CommentAdd your comment...

2 answers

  1.  
    1
    0
    -1

    The files contained in the example folder would activate the SheBookPreviewExtractor and not the SheBookPreviewExtractor. Still there are a couple of issues that need addressing, i am afraid. First of all should I have removed that piece of code I mentioned in my previous comment (callingExtractor)? If I keep it in the java script will not compile but that same piece of code is part of the .core folder which I assume is the previous stable version.

     

    Also in the same folder (extractor-books) there is the ImagePreviewPyramidExtractor-shebook extractor. That one when operating on an image with the right format (png,jpeg etc) it will initially look like it has worked but I will not get the zoomable version of that picture and at the same time the Clowder platform log will return the following message

    Uploading pyramid tile 0_0.png

    _typeHint = models.Tile

    Uploading pyramid tile 0_0.png

    _typeHint = models.Tile

    api.Files.attachPreview(): No "extractor_id" specified in request, set it to None.  request.body: {"fileName":"573b13a8e4b05712e954ceea393062016143130289.xml","fileSize":"217"}


     

    Which I assume means that no extractor has been called to act on those picture tiles. Does anyone know why this might happening? The extractor looks like is being called successfully ( extractor log file messages are being shown in the next few lines)

    May 17, 2016 3:50:55 PM imagepreviewpyramidextractor.ImagePreviewPyramidExtractorService$WriteSubImage associateTile

    INFO: HTTP/1.1 200 OK

    May 17, 2016 3:50:55 PM imagepreviewpyramidextractor.ImagePreviewPyramidExtractor processMessageReceived

    INFO: Pyramid extraction and association complete. Returning DZI file metadata.

    May 17, 2016 3:50:55 PM medici2extractor.Extractor associatePreview

    INFO: Associating file preview and metadata

    May 17, 2016 3:50:55 PM medici2extractor.Extractor associatePreview

    INFO: HTTP/1.1 200 OK

     [x] Done

     

      CommentAdd your comment...
    1.  
      1
      0
      -1

      Can you check to make sure that the book you upload and the key that is expected is the same, i.e. is the mimetype the same as the key in the extractor (application/zip).

      Also can you check and see if the queue is correctly bound to the medici exchange.

        CommentAdd your comment...