[GeoNetwork-devel] FGDC Element <metextns> not inserting correctly into geonetwork

Hello developers,

We have noticed that FGDC metadata with <metextns> does not insert correctly into Geonetwork. If you add <metextns> to the Geonetwork FGDC sample metadata record included with Geonetwork, a ClassCastException :java.util.ArrayList error is returned (error-log stack trace attached below) when the insert completes and forwards to the Edit page:

<metextns> <onlink>http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html&lt;/onlink&gt;
     <metprof>NGDC Extensions to FGDC Metadata</metprof>
</metextns>

Geonetwork is having trouble processing the <onlink> element
when contained within <metextns>. The onlink element processes
correctly outside of <metextns>. Note that the insert does
actually succeed; it's the Edit page that triggers the exception.

The <metextns> element is a mandatory element in our FGDC
metadata and therefore we need to find a solution to this problem. Any help or direction the Geonetwork community can provide is greatly
appreciated.

Thank you,

John

From geonetwork.log:

2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>java.util.ArrayList cannot be cast to
java.lang.String</message>
<class>ClassCastException</class>
<stack>
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="991" method="addValues" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="660" method="expandElement" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="617" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="134" method="addEditingInfo" />
   <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="853" method="getMetadata" />
   <at class="org.fao.geonet.services.metadata.GetEditableData"
file="GetEditableData.java" line="72" method="exec" />
   <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
</stack>

--

John Kozimor
CIRES, National Geophysical Data Center/NOAA
P (303) 497-6729
F (303) 497-6513
http://ngdc.noaa.gov

Hi John,

I've fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.

Cheers,
Simon

John Kozimor wrote:

Hello developers,

We have noticed that FGDC metadata with <metextns> does not insert correctly into Geonetwork. If you add <metextns> to the Geonetwork FGDC sample metadata record included with Geonetwork, a ClassCastException :java.util.ArrayList error is returned (error-log stack trace attached below) when the insert completes and forwards to the Edit page:

<metextns> <onlink>http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html&lt;/onlink&gt;
     <metprof>NGDC Extensions to FGDC Metadata</metprof>
</metextns>

Geonetwork is having trouble processing the <onlink> element
when contained within <metextns>. The onlink element processes
correctly outside of <metextns>. Note that the insert does
actually succeed; it's the Edit page that triggers the exception.

The <metextns> element is a mandatory element in our FGDC
metadata and therefore we need to find a solution to this problem. Any help or direction the Geonetwork community can provide is greatly
appreciated.

Thank you,

John

>From geonetwork.log:

2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>java.util.ArrayList cannot be cast to
java.lang.String</message>
<class>ClassCastException</class>
<stack>
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="991" method="addValues" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="660" method="expandElement" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="617" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="134" method="addEditingInfo" />
   <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="853" method="getMetadata" />
   <at class="org.fao.geonet.services.metadata.GetEditableData"
file="GetEditableData.java" line="72" method="exec" />
   <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
</stack>

Hi Simon,

I get the same error with FGDC data as Jhon described. You said that you
fixed this, could you explain a little bit more how this can be solved. I
don't see a way how to solve this from your answer.
I'm using GN 2.2.0.
Thank you!
Cheers

Torsten

Simon Pigot-6 wrote:

Hi John,

I've fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.

Cheers,
Simon

John Kozimor wrote:

Hello developers,

We have noticed that FGDC metadata with <metextns> does not insert
correctly into Geonetwork. If you add <metextns> to the Geonetwork FGDC
sample metadata record included with Geonetwork, a ClassCastException
:java.util.ArrayList error is returned (error-log stack trace attached
below) when the insert completes and forwards to the Edit page:

<metextns>
<onlink>http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html&lt;/onlink&gt;
     <metprof>NGDC Extensions to FGDC Metadata</metprof>
</metextns>

Geonetwork is having trouble processing the <onlink> element
when contained within <metextns>. The onlink element processes
correctly outside of <metextns>. Note that the insert does
actually succeed; it's the Edit page that triggers the exception.

The <metextns> element is a mandatory element in our FGDC
metadata and therefore we need to find a solution to this problem.
Any help or direction the Geonetwork community can provide is greatly
appreciated.

Thank you,

John

>From geonetwork.log:

2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>java.util.ArrayList cannot be cast to
java.lang.String</message>
<class>ClassCastException</class>
<stack>
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="991" method="addValues" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="660" method="expandElement" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="617" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="134" method="addEditingInfo" />
   <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="853" method="getMetadata" />
   <at class="org.fao.geonet.services.metadata.GetEditableData"
file="GetEditableData.java" line="72" method="exec" />
   <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
</stack>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context: http://www.nabble.com/FGDC-Element-<metextns>-not-inserting-correctly-into-geonetwork-tp19692822p20766215.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.

Hi Simon,

I get the same error with FGDC data as Jhon described. You said that you
fixed this, could you explain a little bit more how this can be solved. I
don't see a way how to solve this from your answer.
I'm using GN 2.2.0.
Thank you!
Cheers

Torsten

Simon Pigot-6 wrote:

Hi John,

I've fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.

Cheers,
Simon

John Kozimor wrote:

Hello developers,

We have noticed that FGDC metadata with <metextns> does not insert
correctly into Geonetwork. If you add <metextns> to the Geonetwork FGDC
sample metadata record included with Geonetwork, a ClassCastException
:java.util.ArrayList error is returned (error-log stack trace attached
below) when the insert completes and forwards to the Edit page:

<metextns>
<onlink>http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html&lt;/onlink&gt;
     <metprof>NGDC Extensions to FGDC Metadata</metprof>
</metextns>

Geonetwork is having trouble processing the <onlink> element
when contained within <metextns>. The onlink element processes
correctly outside of <metextns>. Note that the insert does
actually succeed; it's the Edit page that triggers the exception.

The <metextns> element is a mandatory element in our FGDC
metadata and therefore we need to find a solution to this problem.
Any help or direction the Geonetwork community can provide is greatly
appreciated.

Thank you,

John

>From geonetwork.log:

2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>java.util.ArrayList cannot be cast to
java.lang.String</message>
<class>ClassCastException</class>
<stack>
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="991" method="addValues" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="660" method="expandElement" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="617" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="134" method="addEditingInfo" />
   <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="853" method="getMetadata" />
   <at class="org.fao.geonet.services.metadata.GetEditableData"
file="GetEditableData.java" line="72" method="exec" />
   <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
</stack>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Simon Pigot-6 wrote:

Hi John,

I've fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.

Cheers,
Simon

John Kozimor wrote:

Hello developers,

We have noticed that FGDC metadata with <metextns> does not insert
correctly into Geonetwork. If you add <metextns> to the Geonetwork FGDC
sample metadata record included with Geonetwork, a ClassCastException
:java.util.ArrayList error is returned (error-log stack trace attached
below) when the insert completes and forwards to the Edit page:

<metextns>
<onlink>http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html&lt;/onlink&gt;
     <metprof>NGDC Extensions to FGDC Metadata</metprof>
</metextns>

Geonetwork is having trouble processing the <onlink> element
when contained within <metextns>. The onlink element processes
correctly outside of <metextns>. Note that the insert does
actually succeed; it's the Edit page that triggers the exception.

The <metextns> element is a mandatory element in our FGDC
metadata and therefore we need to find a solution to this problem.
Any help or direction the Geonetwork community can provide is greatly
appreciated.

Thank you,

John

>From geonetwork.log:

2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>java.util.ArrayList cannot be cast to
java.lang.String</message>
<class>ClassCastException</class>
<stack>
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="991" method="addValues" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="660" method="expandElement" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="617" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="626" method="expandTree" />
   <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
line="134" method="addEditingInfo" />
   <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="853" method="getMetadata" />
   <at class="org.fao.geonet.services.metadata.GetEditableData"
file="GetEditableData.java" line="72" method="exec" />
   <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
</stack>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context: http://www.nabble.com/FGDC-Element-<metextns>-not-inserting-correctly-into-geonetwork-tp19692822p20766250.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.

Hi Torsten,

Probably by getting sources from trunk (HEAD revision or upper than #1530), or from branches/2.2.x.
You could build them and get your own installer using ant scripts.
HTH,

Mathieu

On Mon, Dec 1, 2008 at 6:14 AM, Torsten3y <torstendrey@anonymised.com> wrote:

Hi Simon,

I get the same error with FGDC data as Jhon described. You said that you
fixed this, could you explain a little bit more how this can be solved. I
don’t see a way how to solve this from your answer.
I’m using GN 2.2.0.
Thank you!
Cheers

Torsten

Simon Pigot-6 wrote:

Hi John,

I’ve fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.

Cheers,
Simon

John Kozimor wrote:

Hello developers,

We have noticed that FGDC metadata with does not insert
correctly into Geonetwork. If you add to the Geonetwork FGDC
sample metadata record included with Geonetwork, a ClassCastException
:java.util.ArrayList error is returned (error-log stack trace attached
below) when the insert completes and forwards to the Edit page:

[http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html](http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html) NGDC Extensions to FGDC Metadata

Geonetwork is having trouble processing the element
when contained within . The onlink element processes
correctly outside of . Note that the insert does
actually succeed; it’s the Edit page that triggers the exception.

The element is a mandatory element in our FGDC
metadata and therefore we need to find a solution to this problem.
Any help or direction the Geonetwork community can provide is greatly
appreciated.

Thank you,

John

From geonetwork.log:

2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised exception while
executing service

java.util.ArrayList cannot be cast to
java.lang.String
ClassCastException












This SF.Net email is sponsored by the Moblin Your Move Developer’s
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Simon Pigot-6 wrote:

Hi John,

I’ve fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.

Cheers,
Simon

John Kozimor wrote:

Hello developers,

We have noticed that FGDC metadata with does not insert
correctly into Geonetwork. If you add to the Geonetwork FGDC
sample metadata record included with Geonetwork, a ClassCastException
:java.util.ArrayList error is returned (error-log stack trace attached
below) when the insert completes and forwards to the Edit page:

[http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html](http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html) NGDC Extensions to FGDC Metadata

Geonetwork is having trouble processing the element
when contained within . The onlink element processes
correctly outside of . Note that the insert does
actually succeed; it’s the Edit page that triggers the exception.

The element is a mandatory element in our FGDC
metadata and therefore we need to find a solution to this problem.
Any help or direction the Geonetwork community can provide is greatly
appreciated.

Thank you,

John

From geonetwork.log:

2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
java.lang.String
2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised exception while
executing service

java.util.ArrayList cannot be cast to
java.lang.String
ClassCastException












This SF.Net email is sponsored by the Moblin Your Move Developer’s
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork


View this message in context: http://www.nabble.com/FGDC-Element-%3Cmetextns%3E-not-inserting-correctly-into-geonetwork-tp19692822p20766250.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.


This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


Mathieu Coudert
mcoudert@anonymised.com

Hi Mathieu,

thanks for your fast reply!
It helps a bit, regarding this document (http://www.fao.org/geonetwork/docs/ch15s03.html) I have to install the source code and than compile GN. How do I make sure that I get the trunk #1530 or upper, i.e. what do I have to tell ant?
I'm relative new to GN and never compiled it, so far I just used the desktop version to test it.

Torsten

Mathieu Coudert wrote:

Hi Torsten,

Probably by getting sources from trunk (HEAD revision or upper than #1530), or from branches/2.2.x.
You could build them and get your own installer using ant scripts.
HTH,

Mathieu

On Mon, Dec 1, 2008 at 6:14 AM, Torsten3y <torstendrey@anonymised.com <mailto:torstendrey@anonymised.com>> wrote:

    Hi Simon,

    I get the same error with FGDC data as Jhon described. You said
    that you
    fixed this, could you explain a little bit more how this can be
    solved. I
    don't see a way how to solve this from your answer.
    I'm using GN 2.2.0. <http://2.2.0.>
    Thank you!
    Cheers

    Torsten

    Simon Pigot-6 wrote:
    >
    > Hi John,
    >
    > I've fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.
    >
    > Cheers,
    > Simon
    >
    > John Kozimor wrote:
    >> Hello developers,
    >>
    >> We have noticed that FGDC metadata with <metextns> does not insert
    >> correctly into Geonetwork. If you add <metextns> to the
    Geonetwork FGDC
    >> sample metadata record included with Geonetwork, a
    ClassCastException
    >> :java.util.ArrayList error is returned (error-log stack trace
    attached
    >> below) when the insert completes and forwards to the Edit page:
    >>
    >> <metextns>
    >>
    <onlink>http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html&lt;/onlink&gt;
    >> <metprof>NGDC Extensions to FGDC Metadata</metprof>
    >> </metextns>
    >>
    >> Geonetwork is having trouble processing the <onlink> element
    >> when contained within <metextns>. The onlink element processes
    >> correctly outside of <metextns>. Note that the insert does
    >> actually succeed; it's the Edit page that triggers the exception.
    >>
    >> The <metextns> element is a mandatory element in our FGDC
    >> metadata and therefore we need to find a solution to this problem.
    >> Any help or direction the Geonetwork community can provide is
    greatly
    >> appreciated.
    >>
    >> Thank you,
    >>
    >> John
    >>
    >> >From geonetwork.log:
    >>
    >> 2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
    >> java.lang.ClassCastException: java.util.ArrayList cannot be cast to
    >> java.lang.String
    >> 2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised
    exception while
    >> executing service
    >> <error id="error">
    >> <message>java.util.ArrayList cannot be cast to
    >> java.lang.String</message>
    >> <class>ClassCastException</class>
    >> <stack>
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="991" method="addValues" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="660" method="expandElement" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="617" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="626" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="626" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="626" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="134" method="addEditingInfo" />
    >> <at class="org.fao.geonet.kernel.DataManager"
    >> file="DataManager.java" line="853" method="getMetadata" />
    >> <at class="org.fao.geonet.services.metadata.GetEditableData"
    >> file="GetEditableData.java" line="72" method="exec" />
    >> <at class="jeeves.server.dispatchers.ServiceInfo"
    >> file="ServiceInfo.java" line="238" method="execService" />
    >> </stack>
    >>
    >
    -------------------------------------------------------------------------
    > This SF.Net email is sponsored by the Moblin Your Move Developer's
    > challenge
    > Build the coolest Linux based applications with Moblin SDK & win
    great
    > prizes
    > Grand prize is a trip for two to an Open Source event anywhere
    in the
    > world
    > http://moblin-contest.org/redirect.php?banner_id=100&url=/
    <http://moblin-contest.org/redirect.php?banner_id=100&url=/&gt;
    > _______________________________________________
    > GeoNetwork-devel mailing list
    > GeoNetwork-devel@lists.sourceforge.net
    <mailto:GeoNetwork-devel@lists.sourceforge.net>
    > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
    > GeoNetwork OpenSource is maintained at
    > http://sourceforge.net/projects/geonetwork
    >

    Simon Pigot-6 wrote:
    >
    > Hi John,
    >
    > I've fixed this - commit #1530 on trunk, #1531 on branches/2.2.x.
    >
    > Cheers,
    > Simon
    >
    > John Kozimor wrote:
    >> Hello developers,
    >>
    >> We have noticed that FGDC metadata with <metextns> does not insert
    >> correctly into Geonetwork. If you add <metextns> to the
    Geonetwork FGDC
    >> sample metadata record included with Geonetwork, a
    ClassCastException
    >> :java.util.ArrayList error is returned (error-log stack trace
    attached
    >> below) when the insert completes and forwards to the Edit page:
    >>
    >> <metextns>
    >>
    <onlink>http://www.ngdc.noaa.gov/metadata/extensions/local_extensions.html&lt;/onlink&gt;
    >> <metprof>NGDC Extensions to FGDC Metadata</metprof>
    >> </metextns>
    >>
    >> Geonetwork is having trouble processing the <onlink> element
    >> when contained within <metextns>. The onlink element processes
    >> correctly outside of <metextns>. Note that the insert does
    >> actually succeed; it's the Edit page that triggers the exception.
    >>
    >> The <metextns> element is a mandatory element in our FGDC
    >> metadata and therefore we need to find a solution to this problem.
    >> Any help or direction the Geonetwork community can provide is
    greatly
    >> appreciated.
    >>
    >> Thank you,
    >>
    >> John
    >>
    >> >From geonetwork.log:
    >>
    >> 2008-09-16 13:54:45,827 ERROR [jeeves.service] - (C) Exc :
    >> java.lang.ClassCastException: java.util.ArrayList cannot be cast to
    >> java.lang.String
    >> 2008-09-16 13:54:45,827 DEBUG [jeeves.service] - Raised
    exception while
    >> executing service
    >> <error id="error">
    >> <message>java.util.ArrayList cannot be cast to
    >> java.lang.String</message>
    >> <class>ClassCastException</class>
    >> <stack>
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="991" method="addValues" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="660" method="expandElement" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="617" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="626" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="626" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="626" method="expandTree" />
    >> <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java"
    >> line="134" method="addEditingInfo" />
    >> <at class="org.fao.geonet.kernel.DataManager"
    >> file="DataManager.java" line="853" method="getMetadata" />
    >> <at class="org.fao.geonet.services.metadata.GetEditableData"
    >> file="GetEditableData.java" line="72" method="exec" />
    >> <at class="jeeves.server.dispatchers.ServiceInfo"
    >> file="ServiceInfo.java" line="238" method="execService" />
    >> </stack>
    >>
    >
    -------------------------------------------------------------------------
    > This SF.Net email is sponsored by the Moblin Your Move Developer's
    > challenge
    > Build the coolest Linux based applications with Moblin SDK & win
    great
    > prizes
    > Grand prize is a trip for two to an Open Source event anywhere
    in the
    > world
    > http://moblin-contest.org/redirect.php?banner_id=100&url=/
    <http://moblin-contest.org/redirect.php?banner_id=100&url=/&gt;
    > _______________________________________________
    > GeoNetwork-devel mailing list
    > GeoNetwork-devel@lists.sourceforge.net
    <mailto:GeoNetwork-devel@lists.sourceforge.net>
    > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
    > GeoNetwork OpenSource is maintained at
    > http://sourceforge.net/projects/geonetwork
    >

    --
    View this message in context:
    http://www.nabble.com/FGDC-Element-<metextns>-not-inserting-correctly-into-geonetwork-tp19692822p20766250.html
    Sent from the geonetwork-devel mailing list archive at Nabble.com.

    -------------------------------------------------------------------------
    This SF.Net email is sponsored by the Moblin Your Move Developer's
    challenge
    Build the coolest Linux based applications with Moblin SDK & win
    great prizes
    Grand prize is a trip for two to an Open Source event anywhere in
    the world
    http://moblin-contest.org/redirect.php?banner_id=100&url=/
    <http://moblin-contest.org/redirect.php?banner_id=100&url=/&gt;
    _______________________________________________
    GeoNetwork-devel mailing list
    GeoNetwork-devel@lists.sourceforge.net
    <mailto:GeoNetwork-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

--
Mathieu Coudert
mcoudert@anonymised.com <mailto:mcoudert@anonymised.com>

On Mon, Dec 1, 2008 at 8:17 AM, Torsten <torstendrey@anonymised.com> wrote:

Hi Mathieu,

thanks for your fast reply!
It helps a bit, regarding this document
(http://www.fao.org/geonetwork/docs/ch15s03.html) I have to install the
source code and than compile GN. How do I make sure that I get the trunk
#1530 or upper, i.e. what do I have to tell ant?

Making a svn checkout command on the trunk will retrieve you the HEAD revision, which is the last revision on trunk.
So don’t worry, if you do not specify any option to your checkout on trunk, you will get an upper revision than #1530.

Concerning ant, once it is install on your computer, you just have to run the ant command in the appropriate repository, as it is mentionned here :
http://www.fao.org/geonetwork/docs/ch15s03.html
The ant command will run the default target in ant script : which leads to compile geonetwork sources for the first script, and to build the installer for the second one.

Cheers,
Mathieu