[Ala-portal] Issue to view occurrence images on the Hubs.

Daniel Lins daniel.lins at gmail.com
Fri Jun 27 07:08:54 CEST 2014

Hi Dave,

After I updated the biocache-service to the version 1.1, I stopped viewing
the occurrence images in the hubs portal. All images urls were set to



Maybe it's a issue, because in the biocache-service code
the application is not checking the external configuration file. It is
looking to "/biocache.properties". This file does not exist in this folder,
thus the application always uses the default media url ("
http://biocache.ala.org.au/biocache-media/"), generating this error.

   public class OccurrenceIndex {

    public static String biocacheMediaUrl = "
    public static String biocacheMediaDir = "/data/biocache-media/";
    protected static final Logger logger = Logger.getLogger(OccurrenceIndex.

    static {
        //check the properties file for an override
        try {
            Properties p = new Properties();
            //InputStream inStream =
            logger.debug("Retrieved biocacheMediaUrl: " + p.getProperty(
            logger.debug("Retrieved biocacheMediaDir: " + p.getProperty(

            if(p.getProperty("biocacheMediaUrl") != null)
                biocacheMediaUrl = p.getProperty("biocacheMediaUrl");
            if(p.getProperty("biocacheMediaDir") != null)
                biocacheMediaDir = p.getProperty("biocacheMediaDir");
I changed this code to check first the property of the external
configuration file ("/data/biocache/config/biocache-config.properties") and
the visualization of images worked again.

Daniel Lins da Silva
(Mobile) 55 11 96144-4050
Research Center on Biodiversity and Computing (Biocomp)
University of Sao Paulo, Brazil
daniellins at usp.br
daniel.lins at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gbif.org/pipermail/ala-portal/attachments/20140627/d7b64788/attachment.html 

More information about the Ala-portal mailing list