[GeoNetwork-users] how to upload thumbnail

Hi,

My installation of geonetwork does not allow the upload of thumbnails. I have modified the config.xml file to look this this,

<general>
<profiles>user-profiles.xml</profiles>
<uploadDir>WEB-INF/data/tmp</uploadDir>
<dataDir>WEB-INF/data</dataDir>
<maxUploadSize>100</maxUploadSize> <!-- Size must be in megabyte (integer), 100MB by default -->
<debug>true</debug>
</general>

and have created the folders in the WEB-INF directory with tomcat6 ownership and permissions as follows 777 (RWXRWXRWX)

When I try to upload a thumbnail I get this ..."NullPointerException :"

I guess I´m not looking in the right part of the config

can anyone tell me how to get thumbnails onto the server?

Thanks!
yours,

Rob

Hi Robert

Can you attach the log file to check where is caused the
NullPointerException?

Regards,
Jose García

On Tue, Jan 17, 2012 at 8:49 PM, Robert Buckley <robertdbuckley@anonymised.com>wrote:

Hi,

My installation of geonetwork does not allow the upload of thumbnails. I
have modified the config.xml file to look this this,

<general>
                <profiles>user-profiles.xml</profiles>
                <uploadDir>WEB-INF/data/tmp</uploadDir>
                <dataDir>WEB-INF/data</dataDir>
                <maxUploadSize>100</maxUploadSize> <!-- Size must be in
megabyte (integer), 100MB by default -->
                <debug>true</debug>
        </general>

and have created the folders in the WEB-INF directory with tomcat6
ownership and permissions as follows 777 (RWXRWXRWX)

When I try to upload a thumbnail I get this ..."NullPointerException :"

I guess I´m not looking in the right part of the config

can anyone tell me how to get thumbnails onto the server?

Thanks!
yours,

Rob

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Hi,

Whilst trying to upload thumbnails I have found that my only geonetwork logfile is located in the tomcat6/logs directory.

I also found that geonetwork had indeed uploaded the thumbnail to the following directory...

/var/lib/tomcat6/webapps/geonetwork/WEB-INF/data/tmp

which coincides with the directory named in the config.xml

<general>
<profiles>user-profiles.xml</profiles>
<uploadDir>WEB-INF/data/tmp</uploadDir>
<dataDir>WEB-INF/data</dataDir>
<maxUploadSize>100</maxUploadSize> <!-- Size must be in megabyte (integer), 100MB by default -->
<debug>true</debug>
</general>

This is the logfile entry whilst trying to upload the thumbnail. In bold type are the things that stand out for me...

2012-01-18 10:08:54,594 INFO [jeeves.request] - ==========================================================
2012-01-18 10:08:54,594 INFO [jeeves.request] - HTML Request (from 150.70.172.109) : /geonetwork/srv/de/metadata.thumbnail.set
2012-01-18 10:08:54,594 DEBUG [jeeves.request] - Method : GET
2012-01-18 10:08:54,594 DEBUG [jeeves.request] - Content type : null
2012-01-18 10:08:54,594 DEBUG [jeeves.request] - Accept : */*
2012-01-18 10:08:54,595 DEBUG [jeeves.request] - Session id is 4A0432982B0216A9E57D75D231708D89
2012-01-18 10:08:54,595 DEBUG [jeeves.request] - Session created for client : 150.70.172.109
2012-01-18 10:08:54,595 INFO [jeeves.service] - Dispatching : metadata.thumbnail.set
2012-01-18 10:08:54,595 DEBUG [jeeves.service] - -> no input parameters
2012-01-18 10:08:54,596 ERROR [jeeves.service] - Service not allowed : metadata.thumbnail.set
2012-01-18 10:08:54,596 DEBUG [jeeves.service] - Raised exception while executing service
<error id="service-not-allowed">
<message>Service not allowed</message>
<class>ServiceNotAllowedEx</class>
<stack>
<at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="396" method="dispatch" />
<at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="670" method="dispatch" />
<at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="185" method="execute" />
<at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="98" method="doGet" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="617" method="service" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="717" method="service" />
<at class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="290" method="internalDoFilter" />
<at class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="206" method="doFilter" />
<at class="org.apache.catalina.core.StandardWrapperValve" file="StandardWrapperValve.java" line="233" method="invoke" />
<at class="org.apache.catalina.core.StandardContextValve" file="StandardContextValve.java" line="191" method="invoke" />
</stack>
<object>metadata.thumbnail.set</object>
<request>
<language>de</language>
<service>metadata.thumbnail.set</service>
</request>
</error>
2012-01-18 10:08:54,597 INFO [jeeves.service] - -> dispatching to error for : metadata.thumbnail.set
2012-01-18 10:08:54,603 DEBUG [jeeves.engine] - TransformerFactoryFactory: de.fzi.dbs.xml.transform.CachingTransformerFactory
2012-01-18 10:08:54,603 DEBUG [jeeves.engine] - TransformerFactoryFactory: produces transformer implementation net.sf.saxon.IdentityTransformer
2012-01-18 10:08:54,605 INFO [jeeves.service] - -> transforming with stylesheet : /var/lib/tomcat6/webapps/geonetwork/xsl/error.xsl
2012-01-18 10:08:54,605 DEBUG [jeeves.engine] - TransformerFactoryFactory: de.fzi.dbs.xml.transform.CachingTransformerFactory
2012-01-18 10:08:54,606 DEBUG [jeeves.engine] - TransformerFactoryFactory: produces transformer implementation net.sf.saxon.IdentityTransformer
2012-01-18 10:08:54,635 INFO [jeeves.service] - -> end error transformation for : metadata.thumbnail.set

If anyone can help, I would be most grateful,

Robert

________________________________
Von: jose garcia <josegar74@anonymised.com>
An: Robert Buckley <robertdbuckley@anonymised.com>
Cc: "geonetwork-users@lists.sourceforge.net" <geonetwork-users@anonymised.comforge.net>
Gesendet: 21:20 Dienstag, 17.Januar 2012
Betreff: Re: [GeoNetwork-users] how to upload thumbnail

Hi Robert

Can you attach the log file to check where is caused the NullPointerException?

Regards,
Jose García

On Tue, Jan 17, 2012 at 8:49 PM, Robert Buckley <robertdbuckley@anonymised.com> wrote:

Hi,

My installation of geonetwork does not allow the upload of thumbnails. I have modified the config.xml file to look this this,

<general>
<profiles>user-profiles.xml</profiles>
<uploadDir>WEB-INF/data/tmp</uploadDir>
<dataDir>WEB-INF/data</dataDir>
<maxUploadSize>100</maxUploadSize> <!-- Size must be in megabyte (integer), 100MB by default -->
<debug>true</debug>
</general>

and have created the folders in the WEB-INF directory with tomcat6 ownership and permissions as follows 777 (RWXRWXRWX)

When I try to upload a thumbnail I get this ..."NullPointerException :"

I guess I´m not looking in the right part of the config

can anyone tell me how to get thumbnails onto the server?

Thanks!
yours,

Rob
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork