[GeoNetwork-users] Move from Version2 to version3

Hello all

How easy is it to move data form one version to another version? Or is it
not possible and I have to hand-move all the data!

I have Geonetwork 2.10.3-0 with h2 database and want to move/copy the data
to Geonetwork 3

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

Hi

The migration should be done automatically when GeoNetwork starts up if
identifies an old database version, but in any case I would recommend to
make a backup of actual data before the migration is done.

Regards,
Jose García

On Mon, Jun 29, 2015 at 11:27 AM, Hólmgrímur Helgason <hoddi@anonymised.com434...> wrote:

Hello all

How easy is it to move data form one version to another version? Or is it
not possible and I have to hand-move all the data!

I have Geonetwork 2.10.3-0 with h2 database and want to move/copy the data
to Geonetwork 3

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Thanks for your quick response.
I'm running Tomcat and is it enough to put the new "war"file into the
webapps folder?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213397.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

If you're using the H2 embedded database, you'll have to copy the old
database to the proper path of the new application. Not very sure where the
H2 database is stored, I've never use H2 with GeoNetwork in Tomcat.

Once you have that, start Tomcat and the database should be updated.

Regards,
Jose García

On Mon, Jun 29, 2015 at 3:07 PM, hoddih <hoddi@anonymised.com> wrote:

Thanks for your quick response.
I'm running Tomcat and is it enough to put the new "war"file into the
webapps folder?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213397.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Hello

It is more complicated than i thought.
  If I put the WAR file into the webapps folder and start tomcat service
then the old geonetwork will be over write. And the I have a clean install
of geonetwork 3 and I can't even logged in! (need user and password)

I someone that is expert in tomcat7, geonetwork with H2 database that can
help me?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213624.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

You should be able to rename your war file to something like
Geonetwork3.war and then when you restart tomcat7 it won't overwrite your
existing application, it will then be available at
http://yourserver:8080/geonetwork3

Then you can go into the Geonetwork3 files and begin your config.

Jo

On Tue, Jun 30, 2015 at 3:37 PM, hoddih <hoddi@anonymised.com> wrote:

Hello

It is more complicated than i thought.
  If I put the WAR file into the webapps folder and start tomcat service
then the old geonetwork will be over write. And the I have a clean install
of geonetwork 3 and I can't even logged in! (need user and password)

I someone that is expert in tomcat7, geonetwork with H2 database that can
help me?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213624.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--
*Jo Cook*
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 7930 524 155
iShare - Data integration and publishing platform
<http://www.isharemaps.com/&gt;

*****************************************

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi,

Well obviously, if you put the geonetwork.war it will be deployed in
geonetwork webapps, and erase the old one.
You should have renamed your .war before into geonetwork3.war for example.

Then, before starting your tomcat again, you should configure the gn3
database files to point on another db than the one used by gn 2.10

On Tue, Jun 30, 2015 at 4:37 PM, hoddih <hoddi@anonymised.com> wrote:

Hello

It is more complicated than i thought.
  If I put the WAR file into the webapps folder and start tomcat service
then the old geonetwork will be over write. And the I have a clean install
of geonetwork 3 and I can't even logged in! (need user and password)

I someone that is expert in tomcat7, geonetwork with H2 database that can
help me?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213624.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

*Florent Gravin*
0479444492

Hi again

I'm completely lost !
Can you tell which and where the config files are in Geonetwork3 that have
to be edit? And is the location of the h2 database on same place as for
geonetwork2. In mine Tomcat7 is it in /var/lib/tomcat7.

Are the h2 databases for g2 and g3 with the same structure?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213775.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

The database structure has changes, but the migration script should manage
that.

Assuming you have GN 2 in

/var/lib/tomcat7/webapps/geonetwork

and the h2 db files are also inside that folder.

If you want to deploy GN 3 in the same tomcat, I would do this:

1) unzip the war file in /var/lib/tomcat7/webapps/*geonetwork3*

2) Copy the h2 database from GN 2 path to the GN 3 path.

3) Restart Tomcat

In http://SERVER/geonetwork3 you should have the GN 3 instance running.

You can also remove the GN 2 application when GN 3 is running and maybe
rename also geonetwork3 to geonetwork to have the application in the
standard path.

Regards,
Jose García

On Wed, Jul 1, 2015 at 1:28 PM, hoddih <hoddi@anonymised.com> wrote:

Hi again

I'm completely lost !
Can you tell which and where the config files are in Geonetwork3 that have
to be edit? And is the location of the h2 database on same place as for
geonetwork2. In mine Tomcat7 is it in /var/lib/tomcat7.

Are the h2 databases for g2 and g3 with the same structure?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213775.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Hi
Thanks Jose.

Do you know how long time the migration will take? It has been running for
one hour and still running. Is that normal?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213806.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

Doesn't seem that normal. Have you check the log files for any error?

Regards,
Jose García

On Wed, Jul 1, 2015 at 3:06 PM, hoddih <hoddi@anonymised.com> wrote:

Hi
Thanks Jose.

Do you know how long time the migration will take? It has been running for
one hour and still running. Is that normal?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213806.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Bingo. It's working.
Thanks a million you guys are great.

It took almost one hour to migrate, so i just to needed to be patient.

Now the h2 database is running with G3 but is there a simply way to work
with h2 data like phpmyadmin for mysql?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213824.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

Thats a long time, maybe your catalog is quite big.

About H2, for a production site I would not recommend it, but if you want
to use it, you can configure to run in server mode and use a sql client to
access it. See documentation about how to setup the jdbc string, etc. in
http://www.h2database.com/html/quickstart.html

Regards,
Jose García

On Wed, Jul 1, 2015 at 4:06 PM, hoddih <hoddi@anonymised.com> wrote:

Bingo. It's working.
Thanks a million you guys are great.

It took almost one hour to migrate, so i just to needed to be patient.

Now the h2 database is running with G3 but is there a simply way to work
with h2 data like phpmyadmin for mysql?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5213824.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Hi

Everything seems to work but..... If I tried to download attachment (image
etc.) I get error.

For new entry:

"Service not available

The service "/geonetwork/srv/eng/20130518_171016_Android.jpg" does not exist
or you don't have privileges to access it. Return to the search page."

For old entry migrated from GN2:
"HTTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException"

Any tips?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5214425.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

Have you check in the xml if the url for the resource is fine?

Related to the NullPointerException, check in the log file, I guess some
additional information should be there that can be useful to identify the
problem.

Regards,
Jose García

On Mon, Jul 6, 2015 at 1:21 PM, hoddih <hoddi@anonymised.com> wrote:

Hi

Everything seems to work but..... If I tried to download attachment (image
etc.) I get error.

For new entry:

"Service not available

The service "/geonetwork/srv/eng/20130518_171016_Android.jpg" does not
exist
or you don't have privileges to access it. Return to the search page."

For old entry migrated from GN2:
"HTTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException"

Any tips?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5214425.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Hello again.

If I try do download attachments I get this error:

TTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException
------------------------------

*type* Exception report

*message* *Request processing failed; nested exception is
java.lang.NullPointerException*

*description* *The server encountered an internal error that prevented it
from fulfilling this request.*

*exception*

org.springframework.web.util.NestedServletException: Request
processing failed; nested exception is java.lang.NullPointerException
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
... MORE

And the error log says (catalina.out):

2015-07-08 10:36:51,575 DEBUG [jeeves.webapp.resources.get] - Sending email
notification for file :
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/data/data/metadata_data/00000-00099/10/private/AMSAIIC_Significant_Areas.zip
2015-07-08 10:36:51,578 ERROR [jeeves] - Error occurred within a transaction
java.lang.NullPointerException
at org.fao.geonet.services.resources.Download.exec(Download.java:147)
at sun.reflect.GeneratedMethodAccessor349.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
............................
and lot more.

The file is on the server in right place but GN3 will not let me download
it.

On Mon, Jul 6, 2015 at 1:54 PM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi

Have you check in the xml if the url for the resource is fine?

Related to the NullPointerException, check in the log file, I guess some
additional information should be there that can be useful to identify the
problem.

Regards,
Jose García

On Mon, Jul 6, 2015 at 1:21 PM, hoddih <hoddi@anonymised.com> wrote:

Hi

Everything seems to work but..... If I tried to download attachment (image
etc.) I get error.

For new entry:

"Service not available

The service "/geonetwork/srv/eng/20130518_171016_Android.jpg" does not
exist
or you don't have privileges to access it. Return to the search page."

For old entry migrated from GN2:
"HTTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException"

Any tips?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5214425.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

Hi

Checked the code and this seem due to the mail notification that is trying
to send GeoNetwork.

Seem the metadata has a permission Notify for some groups and probably the
groups have no mail assigned.

I'll open a bug in GitHub, in the meanwhile you can either remote the
Notify permission for the metadata or update the group information with a
mail address.

Regards,
Jose García

On Wed, Jul 8, 2015 at 12:48 PM, Hólmgrímur Helgason <hoddi@anonymised.com34...> wrote:

Hello again.

If I try do download attachments I get this error:

TTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException
------------------------------

*type* Exception report

*message* *Request processing failed; nested exception is
java.lang.NullPointerException*

*description* *The server encountered an internal error that prevented it
from fulfilling this request.*

*exception*

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
... MORE

And the error log says (catalina.out):

2015-07-08 10:36:51,575 DEBUG [jeeves.webapp.resources.get] - Sending
email notification for file :
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/data/data/metadata_data/00000-00099/10/private/AMSAIIC_Significant_Areas.zip
2015-07-08 10:36:51,578 ERROR [jeeves] - Error occurred within a
transaction
java.lang.NullPointerException
at org.fao.geonet.services.resources.Download.exec(Download.java:147)
at sun.reflect.GeneratedMethodAccessor349.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
............................
and lot more.

The file is on the server in right place but GN3 will not let me download
it.

On Mon, Jul 6, 2015 at 1:54 PM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi

Have you check in the xml if the url for the resource is fine?

Related to the NullPointerException, check in the log file, I guess some
additional information should be there that can be useful to identify the
problem.

Regards,
Jose García

On Mon, Jul 6, 2015 at 1:21 PM, hoddih <hoddi@anonymised.com> wrote:

Hi

Everything seems to work but..... If I tried to download attachment
(image
etc.) I get error.

For new entry:

"Service not available

The service "/geonetwork/srv/eng/20130518_171016_Android.jpg" does not
exist
or you don't have privileges to access it. Return to the search page."

For old entry migrated from GN2:
"HTTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException"

Any tips?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5214425.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Thanks.

That did the job. Now I can download the attachments. Thanks a million.

On Wed, Jul 8, 2015 at 10:58 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi

Checked the code and this seem due to the mail notification that is trying
to send GeoNetwork.

Seem the metadata has a permission Notify for some groups and probably the
groups have no mail assigned.

I'll open a bug in GitHub, in the meanwhile you can either remote the
Notify permission for the metadata or update the group information with a
mail address.

Regards,
Jose García

On Wed, Jul 8, 2015 at 12:48 PM, Hólmgrímur Helgason <hoddi@anonymised.com1434...>
wrote:

Hello again.

If I try do download attachments I get this error:

TTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException
------------------------------

*type* Exception report

*message* *Request processing failed; nested exception is
java.lang.NullPointerException*

*description* *The server encountered an internal error that prevented
it from fulfilling this request.*

*exception*

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
... MORE

And the error log says (catalina.out):

2015-07-08 10:36:51,575 DEBUG [jeeves.webapp.resources.get] - Sending
email notification for file :
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/data/data/metadata_data/00000-00099/10/private/AMSAIIC_Significant_Areas.zip
2015-07-08 10:36:51,578 ERROR [jeeves] - Error occurred within a
transaction
java.lang.NullPointerException
at org.fao.geonet.services.resources.Download.exec(Download.java:147)
at sun.reflect.GeneratedMethodAccessor349.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
............................
and lot more.

The file is on the server in right place but GN3 will not let me download
it.

On Mon, Jul 6, 2015 at 1:54 PM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi

Have you check in the xml if the url for the resource is fine?

Related to the NullPointerException, check in the log file, I guess some
additional information should be there that can be useful to identify the
problem.

Regards,
Jose García

On Mon, Jul 6, 2015 at 1:21 PM, hoddih <hoddi@anonymised.com> wrote:

Hi

Everything seems to work but..... If I tried to download attachment
(image
etc.) I get error.

For new entry:

"Service not available

The service "/geonetwork/srv/eng/20130518_171016_Android.jpg" does not
exist
or you don't have privileges to access it. Return to the search page."

For old entry migrated from GN2:
"HTTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException"

Any tips?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5214425.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

Hi

Created this issue to track it:
https://github.com/geonetwork/core-geonetwork/issues/1105

Regards,
Jose García

On Wed, Jul 8, 2015 at 1:38 PM, Hólmgrímur Helgason <hoddi@anonymised.com4...> wrote:

Thanks.

That did the job. Now I can download the attachments. Thanks a million.

On Wed, Jul 8, 2015 at 10:58 AM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi

Checked the code and this seem due to the mail notification that is
trying to send GeoNetwork.

Seem the metadata has a permission Notify for some groups and probably
the groups have no mail assigned.

I'll open a bug in GitHub, in the meanwhile you can either remote the
Notify permission for the metadata or update the group information with a
mail address.

Regards,
Jose García

On Wed, Jul 8, 2015 at 12:48 PM, Hólmgrímur Helgason <hoddi@anonymised.com.1434...>
wrote:

Hello again.

If I try do download attachments I get this error:

TTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException
------------------------------

*type* Exception report

*message* *Request processing failed; nested exception is
java.lang.NullPointerException*

*description* *The server encountered an internal error that prevented
it from fulfilling this request.*

*exception*

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
... MORE

And the error log says (catalina.out):

2015-07-08 10:36:51,575 DEBUG [jeeves.webapp.resources.get] - Sending
email notification for file :
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/data/data/metadata_data/00000-00099/10/private/AMSAIIC_Significant_Areas.zip
2015-07-08 10:36:51,578 ERROR [jeeves] - Error occurred within a
transaction
java.lang.NullPointerException
at org.fao.geonet.services.resources.Download.exec(Download.java:147)
at sun.reflect.GeneratedMethodAccessor349.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
............................
and lot more.

The file is on the server in right place but GN3 will not let me
download it.

On Mon, Jul 6, 2015 at 1:54 PM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi

Have you check in the xml if the url for the resource is fine?

Related to the NullPointerException, check in the log file, I guess
some additional information should be there that can be useful to identify
the problem.

Regards,
Jose García

On Mon, Jul 6, 2015 at 1:21 PM, hoddih <hoddi@anonymised.com> wrote:

Hi

Everything seems to work but..... If I tried to download attachment
(image
etc.) I get error.

For new entry:

"Service not available

The service "/geonetwork/srv/eng/20130518_171016_Android.jpg" does not
exist
or you don't have privileges to access it. Return to the search page."

For old entry migrated from GN2:
"HTTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException"

Any tips?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5214425.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and
metadata on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

When I try to add new file into a entry I get this error message if try to
download it again.

Service not available

The service "/geonetwork/srv/eng/naturindex.JPG" does not exist or you
don't have privileges to access it. Return to thesearch page
<http://geo.abds.is/geonetwork/&gt;\.

What is the right permission and owner of the folders?

On Wed, Jul 8, 2015 at 11:47 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi

Created this issue to track it:
https://github.com/geonetwork/core-geonetwork/issues/1105

Regards,
Jose García

On Wed, Jul 8, 2015 at 1:38 PM, Hólmgrímur Helgason <hoddi@anonymised.com434...> wrote:

Thanks.

That did the job. Now I can download the attachments. Thanks a million.

On Wed, Jul 8, 2015 at 10:58 AM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi

Checked the code and this seem due to the mail notification that is
trying to send GeoNetwork.

Seem the metadata has a permission Notify for some groups and probably
the groups have no mail assigned.

I'll open a bug in GitHub, in the meanwhile you can either remote the
Notify permission for the metadata or update the group information with a
mail address.

Regards,
Jose García

On Wed, Jul 8, 2015 at 12:48 PM, Hólmgrímur Helgason <hoddi@anonymised.com..1434...>
wrote:

Hello again.

If I try do download attachments I get this error:

TTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException
------------------------------

*type* Exception report

*message* *Request processing failed; nested exception is
java.lang.NullPointerException*

*description* *The server encountered an internal error that prevented
it from fulfilling this request.*

*exception*

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
... MORE

And the error log says (catalina.out):

2015-07-08 10:36:51,575 DEBUG [jeeves.webapp.resources.get] - Sending
email notification for file :
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/data/data/metadata_data/00000-00099/10/private/AMSAIIC_Significant_Areas.zip
2015-07-08 10:36:51,578 ERROR [jeeves] - Error occurred within a
transaction
java.lang.NullPointerException
at org.fao.geonet.services.resources.Download.exec(Download.java:147)
at sun.reflect.GeneratedMethodAccessor349.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
............................
and lot more.

The file is on the server in right place but GN3 will not let me
download it.

On Mon, Jul 6, 2015 at 1:54 PM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi

Have you check in the xml if the url for the resource is fine?

Related to the NullPointerException, check in the log file, I guess
some additional information should be there that can be useful to identify
the problem.

Regards,
Jose García

On Mon, Jul 6, 2015 at 1:21 PM, hoddih <hoddi@anonymised.com> wrote:

Hi

Everything seems to work but..... If I tried to download attachment
(image
etc.) I get error.

For new entry:

"Service not available

The service "/geonetwork/srv/eng/20130518_171016_Android.jpg" does
not exist
or you don't have privileges to access it. Return to the search page."

For old entry migrated from GN2:
"HTTP Status 500 - Request processing failed; nested exception is
java.lang.NullPointerException"

Any tips?

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Move-from-Version2-to-version3-tp5213358p5214425.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
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

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and
metadata on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--
Hólmgrímur Helgason (Hóddi)
CAFF - Data Manager
hoddi@anonymised.com
+354 462 3357