[GeoNetwork-users] metadata export error in GAST, anyone?

Hi all,

Has anyone who's used or tried to use the GAST tool's metadata export
function ever gotten the following error pop-up? - IllegalArgumentException
error: 'host must not be null'

If so, how did you get around it? I am hoping to export all of my records in
MEF from my default/local installation of 2.6.1 to an external server-based
2.6.3 installation, this being my first step, and have not found a solution
to this. Given the error's wording it would seem to be some mistake on my
part in specifying the criteria in the GAST Export panel, but for some
reason I am unable to complete all of the fields, that is, they are not
available to me to enter any info.

This post is a much-shortened, more concise version of one I posted last
week. There has been no feedback so far and this problem is keeping me from
moving forward. Just hoping someone out there can speak to this, as nothing
in the manual or that I've tried can tell me what could be the
cause/solution to this error.

Thanks very much for any clues!

Samuel Johnson
Association of State Floodplain Managers (http://www.floods.org/)
Madison, WI

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/metadata-export-error-in-GAST-anyone-tp6357284p6357284.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Samuel,

I'm not sure what OS you are on, but with Win7 and a fresh install of GeoNetwork I had similar GAST issues a while back and here's what I had received via the listserv:

"... you'll have to specify the folder of the GN webapp inside the \web folder of your GN install as <your_GN_location>\\web\\geonetwork.
Suppose your GN is installed in C:\apps, then the path for !webapp! would be C\:\\apps\\geonetwork-2.6.1\\web\\geonetwork."

From that, I found the following: "After clicking on 'Start GAST' the configuration window appeared. I used the browse button in there to browse to the install, e.g., C:\Program Files\geonetwork\web\geonetwork then clicked OK. Then all was well."

I hope this helps some.

Regards, Bob

Bob Nutsch
GIS Coordinator
State of North Dakota
Phone: (701) 328-3212
bnutsch@anonymised.com
Twitter: @BobNutsch
www.nd.gov/gis
NDGIS Users Conference Oct. 11-13, 2011 !!

-----Original Message-----
From: Samuel Johnson [mailto:sfbjohnson@anonymised.com]
Sent: Thursday, May 12, 2011 4:12 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] metadata export error in GAST, anyone?

Hi all,

Has anyone who's used or tried to use the GAST tool's metadata export function ever gotten the following error pop-up? - IllegalArgumentException
error: 'host must not be null'

If so, how did you get around it? I am hoping to export all of my records in MEF from my default/local installation of 2.6.1 to an external server-based
2.6.3 installation, this being my first step, and have not found a solution to this. Given the error's wording it would seem to be some mistake on my part in specifying the criteria in the GAST Export panel, but for some reason I am unable to complete all of the fields, that is, they are not available to me to enter any info.

This post is a much-shortened, more concise version of one I posted last week. There has been no feedback so far and this problem is keeping me from moving forward. Just hoping someone out there can speak to this, as nothing in the manual or that I've tried can tell me what could be the cause/solution to this error.

Thanks very much for any clues!

Samuel Johnson
Association of State Floodplain Managers (http://www.floods.org/) Madison, WI

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/metadata-export-error-in-GAST-anyone-tp6357284p6357284.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
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 Samuel,

You'll also need to specify the host name, port and servlet
done under Options->Config. Also GN needs to running to do
an export. See:

http://geonetwork-opensource.org/manuals/2.6.3/users/admin/gast/index.html

in the section headed "Server and Account configuration dialogue"

Andrew

----- Original Message ----- From: "Nutsch, Bob D." <bnutsch@anonymised.com>
To: "Samuel Johnson" <sfbjohnson@anonymised.com>; <geonetwork-users@lists.sourceforge.net>
Sent: Friday, May 13, 2011 8:22 AM
Subject: Re: [GeoNetwork-users] metadata export error in GAST, anyone?

Hi Samuel,

I'm not sure what OS you are on, but with Win7 and a fresh install of GeoNetwork I had similar GAST issues a while back and here's what I had received via the listserv:

"... you'll have to specify the folder of the GN webapp inside the \web folder of your GN install as <your_GN_location>\\web\\geonetwork.
Suppose your GN is installed in C:\apps, then the path for !webapp! would be C\:\\apps\\geonetwork-2.6.1\\web\\geonetwork."

From that, I found the following: "After clicking on 'Start GAST' the configuration window appeared. I used the browse button in there to browse to the install, e.g., C:\Program Files\geonetwork\web\geonetwork then clicked OK. Then all was well."

I hope this helps some.

Regards, Bob

Bob Nutsch
GIS Coordinator
State of North Dakota
Phone: (701) 328-3212
bnutsch@anonymised.com
Twitter: @BobNutsch
www.nd.gov/gis
NDGIS Users Conference Oct. 11-13, 2011 !!

-----Original Message-----
From: Samuel Johnson [mailto:sfbjohnson@anonymised.com]
Sent: Thursday, May 12, 2011 4:12 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] metadata export error in GAST, anyone?

Hi all,

Has anyone who's used or tried to use the GAST tool's metadata export function ever gotten the following error pop-up? - IllegalArgumentException
error: 'host must not be null'

If so, how did you get around it? I am hoping to export all of my records in MEF from my default/local installation of 2.6.1 to an external server-based
2.6.3 installation, this being my first step, and have not found a solution to this. Given the error's wording it would seem to be some mistake on my part in specifying the criteria in the GAST Export panel, but for some reason I am unable to complete all of the fields, that is, they are not available to me to enter any info.

This post is a much-shortened, more concise version of one I posted last week. There has been no feedback so far and this problem is keeping me from moving forward. Just hoping someone out there can speak to this, as nothing in the manual or that I've tried can tell me what could be the cause/solution to this error.

Thanks very much for any clues!

Samuel Johnson
Association of State Floodplain Managers (http://www.floods.org/) Madison, WI

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/metadata-export-error-in-GAST-anyone-tp6357284p6357284.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
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

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
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 Bob

Thanks for the reply. I am on a computer with Windows XP Pro (Version 2002
Service Pack 3) - upgrade to 7 coming soon - just for the record. I think
though that your tip applies only to my previous question (from a few weeks
ago or so) regarding basic GAST configuration, not the current one
pertaining to metadata export (MEF) from the export panel in the GAST tool
itself. Someone else suggested a fix which was different than yours but had
a similar outcome, that is, changing the paths in the gast.bat (Windows)
file, which when opened in Notepad you'll see is a grand total of two lines
of code (at least the 2.6.1 version I have, that is). Super-simple. And so
now I am no longer stuck at the config panel when I start GAST, in fact it
no longer appears and I don't know how I'd get it to appear again - so the
GAST tool now opens immediately, as I said, but getting that export
operation to work is another matter. Perhaps you'd want to re-post your tip
to my 'GAST config' thread where there are several other replies and many
views? Who knows, could help someone else with a similar setup/problem as
you had. Thanks again!

Cheers,
Sam

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/metadata-export-error-in-GAST-anyone-tp6357284p6360842.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Andrew

Thanks for the reply (you guys were quick yesterday!). I think your tip
would seem to address my problem, but I'm unsure how to apply it as I'm
using GN 2.6.1, not 2.6.3 (wouldn't expect it to be significantly different
but who knows?). Viewing your link to the 2.6.3 manual and the section
mentioned, that GAST config panel shown is evidently the counterpart of the
2.6.1 version I set up but can no longer access - meaning, I fixed the paths
in the gast.jar file (Windows) which I think was equivalent to browsing to
and setting the paths directly via 2.6.1's config panel. So with that out of
the way, with GN running as required, when I Start GAST I'm brought right to
the tool. If I need to change a GAST config setting now, i.e. specify
host/port/servlet as you say, I'm not sure how I'd bring up the config
dialog. Especially as (and I hinted at this in the original post) I'm using
the embedded (Jetty) server; I used the default local installation, i.e. the
box I'm sending this message from. So I would think there'd be nothing else
to set and thus GAST and the metadata export tool should work right out of
the gate?

But there's more. Since I can't (or don't know how) to re-access the GAST
config panel, I poked around in the tool itself, and under DBMS
Configuration the settings (default) are Embedded (which is correct) and
Port - 9157. Since my 2.6.1 installation is just the default, local one,
shouldn't the port be the default 8080?? It stands to reason, based on my
somewhat neophyte abilities. Maybe this holds the answer as to why I'm
unable to input info into all the required fields in Metadata Export to get
it to work?

Hope this is makes sense, it's about as clear as I can state it. If not, do
let me know, and any further insight would be greatly appreciated (as
always). Thanks for reading.

Cheers,
Sam

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/metadata-export-error-in-GAST-anyone-tp6357284p6361045.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Samuel,

Answers in-line below.

Andrew
----- Original Message ----- From: "Samuel Johnson" <sfbjohnson@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Saturday, May 14, 2011 6:13 AM
Subject: Re: [GeoNetwork-users] metadata export error in GAST, anyone?

Hi Andrew

Thanks for the reply (you guys were quick yesterday!). I think your tip
would seem to address my problem, but I'm unsure how to apply it as I'm
using GN 2.6.1, not 2.6.3 (wouldn't expect it to be significantly different
but who knows?). Viewing your link to the 2.6.3 manual and the section
mentioned, that GAST config panel shown is evidently the counterpart of the
2.6.1 version I set up but can no longer access - meaning, I fixed the paths
in the gast.jar file (Windows) which I think was equivalent to browsing to
and setting the paths directly via 2.6.1's config panel. So with that out of
the way, with GN running as required, when I Start GAST I'm brought right to
the tool. If I need to change a GAST config setting now, i.e. specify
host/port/servlet as you say, I'm not sure how I'd bring up the config
dialog.

To access the cofiguration dialog left mouse click 'Options', its
the word right up the top. Set host=localhost, port=8080, servlet=geonetwork
Select 'use this account' and type in user=admin and password=XXXXX, hit OK.

You then should be able to do a 'Metadata Export'. Click 'Management->Export'.
Make sure your GN is up and running to do an export.

Especially as (and I hinted at this in the original post) I'm using

the embedded (Jetty) server; I used the default local installation, i.e. the
box I'm sending this message from. So I would think there'd be nothing else
to set and thus GAST and the metadata export tool should work right out of
the gate?

But there's more. Since I can't (or don't know how) to re-access the GAST
config panel, I poked around in the tool itself, and under DBMS
Configuration the settings (default) are Embedded (which is correct) and
Port - 9157. Since my 2.6.1 installation is just the default, local one,
shouldn't the port be the default 8080??

No this is the default port that the embedded McKoi database uses, this is correct.

It stands to reason, based on my

somewhat neophyte abilities. Maybe this holds the answer as to why I'm
unable to input info into all the required fields in Metadata Export to get
it to work?

Hope this is makes sense, it's about as clear as I can state it. If not, do
let me know, and any further insight would be greatly appreciated (as
always). Thanks for reading.

Cheers,
Sam

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/metadata-export-error-in-GAST-anyone-tp6357284p6361045.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
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

That 'host must not be null' error pop-up was much more literal than I'd ever
expected. Thanks Andrew, your tip worked! I set 'host' and my admin account
for authentication, and I'm good to go. Such a simple fix (again). I
consulted the manual (2.6.1, and 2.6.3, to which you linked) but obviously
misinterpreted what it was telling me (that you ultimately made clear).
Thanks again for the save.

Sam

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/metadata-export-error-in-GAST-anyone-tp6357284p6395904.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.