[GeoNetwork-users] Import metadata

Hello everybody,

I'm a beginner in GeoNetwork and I have some trouble to import a metadata.
I'm working with the version 2.7 of GeoNetwork.

When I try to import a metadata with a xml file I have this output:
IllegalStateException : Root element not set

With a copy/past:
ServiceNotAllowedEx : Service not allowed

With a mef file:
ServiceNotAllowedEx : Service not allowed

With a mef file on gast:
Missing XML document in metadata folder private/metadata in MEF file
my_mef_file_name

My xml file are valid with oxygen. Did someone have same trouble ?

Thanks in advance,
Stéphane

hi Stéphane,

any chance you could share the XML and MEF files you've used ?

thanks,
Heikki Doeleman

On Mon, Jul 18, 2011 at 11:17 AM, Stéphane Delarue <
stephane.delarue62@anonymised.com> wrote:

Hello everybody,

I'm a beginner in GeoNetwork and I have some trouble to import a metadata.
I'm working with the version 2.7 of GeoNetwork.

When I try to import a metadata with a xml file I have this output:
IllegalStateException : Root element not set

With a copy/past:
ServiceNotAllowedEx : Service not allowed

With a mef file:
ServiceNotAllowedEx : Service not allowed

With a mef file on gast:
Missing XML document in metadata folder private/metadata in MEF file
my_mef_file_name

My xml file are valid with oxygen. Did someone have same trouble ?

Thanks in advance,
Stéphane

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
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 heikki,

Yes I can share, it's a free xml file who can be download in web. I attach
it on my mail.

Thanks,
Stéphane

2011/7/18 heikki <tropicano@anonymised.com>

hi Stéphane,

any chance you could share the XML and MEF files you've used ?

thanks,
Heikki Doeleman

On Mon, Jul 18, 2011 at 11:17 AM, Stéphane Delarue <
stephane.delarue62@anonymised.com> wrote:

Hello everybody,

I'm a beginner in GeoNetwork and I have some trouble to import a metadata.
I'm working with the version 2.7 of GeoNetwork.

When I try to import a metadata with a xml file I have this output:
IllegalStateException : Root element not set

With a copy/past:
ServiceNotAllowedEx : Service not allowed

With a mef file:
ServiceNotAllowedEx : Service not allowed

With a mef file on gast:
Missing XML document in metadata folder private/metadata in MEF file
my_mef_file_name

My xml file are valid with oxygen. Did someone have same trouble ?

Thanks in advance,
Stéphane

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
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

(attachments)

metadata.xml (16.7 KB)
metadata.mef (3.82 KB)

hi Stéphane,

the problem is caused by namespace declarations; for your document to be
valid, you only need

xmlns:gco="http://www.isotc211.org/2005/gco&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;

Removing the other namespace declarations makes GeoNetwork import your
document fine.

Of course this is a bug, as your original document is a valid ISO19139
document and should not cause any error when you import it; could you please
open a bug report on GeoNetwork's trac
http://trac.osgeo.org/geonetwork/newticket (you'll need an OSGeo userid,
which you can obtain here https://www2.osgeo.org/cgi-bin/ldap_create_user.py)
?

thank you and kind regards
Heikki Doeleman

2011/7/18 Stéphane Delarue <stephane.delarue62@anonymised.com>

Hi heikki,

Yes I can share, it's a free xml file who can be download in web. I attach
it on my mail.

Thanks,
Stéphane

2011/7/18 heikki <tropicano@anonymised.com>

hi Stéphane,

any chance you could share the XML and MEF files you've used ?

thanks,
Heikki Doeleman

On Mon, Jul 18, 2011 at 11:17 AM, Stéphane Delarue <
stephane.delarue62@anonymised.com> wrote:

Hello everybody,

I'm a beginner in GeoNetwork and I have some trouble to import a
metadata.
I'm working with the version 2.7 of GeoNetwork.

When I try to import a metadata with a xml file I have this output:
IllegalStateException : Root element not set

With a copy/past:
ServiceNotAllowedEx : Service not allowed

With a mef file:
ServiceNotAllowedEx : Service not allowed

With a mef file on gast:
Missing XML document in metadata folder private/metadata in MEF file
my_mef_file_name

My xml file are valid with oxygen. Did someone have same trouble ?

Thanks in advance,
Stéphane

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
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 heikki,

Thanks a lot it's working. I will open the bug report soon.

Stéphane

2011/7/18 heikki <tropicano@anonymised.com>

hi Stéphane,

the problem is caused by namespace declarations; for your document to be
valid, you only need

xmlns:gco="http://www.isotc211.org/2005/gco&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;

Removing the other namespace declarations makes GeoNetwork import your
document fine.

Of course this is a bug, as your original document is a valid ISO19139
document and should not cause any error when you import it; could you please
open a bug report on GeoNetwork's trac
http://trac.osgeo.org/geonetwork/newticket (you'll need an OSGeo userid,
which you can obtain here
https://www2.osgeo.org/cgi-bin/ldap_create_user.py) ?

thank you and kind regards
Heikki Doeleman

2011/7/18 Stéphane Delarue <stephane.delarue62@anonymised.com>

Hi heikki,

Yes I can share, it's a free xml file who can be download in web. I attach
it on my mail.

Thanks,
Stéphane

2011/7/18 heikki <tropicano@anonymised.com>

hi Stéphane,

any chance you could share the XML and MEF files you've used ?

thanks,
Heikki Doeleman

On Mon, Jul 18, 2011 at 11:17 AM, Stéphane Delarue <
stephane.delarue62@anonymised.com> wrote:

Hello everybody,

I'm a beginner in GeoNetwork and I have some trouble to import a
metadata.
I'm working with the version 2.7 of GeoNetwork.

When I try to import a metadata with a xml file I have this output:
IllegalStateException : Root element not set

With a copy/past:
ServiceNotAllowedEx : Service not allowed

With a mef file:
ServiceNotAllowedEx : Service not allowed

With a mef file on gast:
Missing XML document in metadata folder private/metadata in MEF file
my_mef_file_name

My xml file are valid with oxygen. Did someone have same trouble ?

Thanks in advance,
Stéphane

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
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