[GeoNetwork-devel] latest BlueNetMEST install and gast DB config error

Hi,

I checked out the latest code today for the BlueNetMEST, built it and ran the installer and got an index out of bounds error during the installation. I continued on and then ran the gast tool to configure the DB and also got this exception. Anyone else seeing this?

C:_work\geonetwork\BlueNet_MEST_SVN>java -jar gast\gast.jar

2008-10-22 11:35:06,302 INFO [gast] - Removing database objects

2008-10-22 11:35:10,708 INFO [gast] - Creating database schema

2008-10-22 11:35:13,114 INFO [gast] - Filling database tables

2008-10-22 11:35:13,114 DEBUG [gast] - - Filling table : Categories

2008-10-22 11:35:13,130 DEBUG [gast] - - Filling table : Settings

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3

at java.util.ArrayList.RangeCheck(ArrayList.java:546)

at java.util.ArrayList.get(ArrayList.java:321)

at org.fao.gast.lib.druid.ImportHandler.handleRow(Import.java:87)

at org.fao.gast.lib.druid.DdfLoader.handleRow(DdfLoader.java:117)

at org.fao.gast.lib.druid.DdfLoader.load(DdfLoader.java:80)

at org.fao.gast.lib.druid.Import.load(Import.java:34)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:456)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:428)

at org.fao.gast.lib.DatabaseLib.setup(DatabaseLib.java:109)

at org.fao.gast.gui.panels.database.setup.Worker.run(Worker.java:59)

at java.lang.Thread.run(Thread.java:595)

I couldn’t find an issue for this, should I raise one or is this issue already in hand?

The array of values past in doesn’t match the length of the fields array. This is when entries in the Settings.ddf file don’t have the fourth field “value”. So there needs to be a check on the length of values, and if it don’t match assume it’s “”.

Need to commit something like this in org.fao.gast.lib.druid.Import.java.

String token = “”;

if (i < values.size()) {

token = values.get(i);

}

Cheers,

Kevin Gunn

Software Engineer

Australian Institute of Marine Science

Ph: (07) 47534305

Fax: (07) 4772 5852

E-mail: k.gunn@anonymised.com

------------------------------------------------------------------------|

The information contained in this communication is for the use of the |

individual or entity to whom it is addressed, and may contain |

information which is the subject of legal privilege and/or copyright. |

If you have received this communication in error, please notify the |

sender by return E-Mail and delete the transmission, together with any |

attachments, from your system. Thank you. |

------------------------------------------------------------------------|


--  
------------------------------------------------------------------------
The information contained in this communication is for the use of the 
individual or entity to whom it is addressed, and may contain 
information which is the subject of legal privilege and/or copyright.  

If you have received this communication in error, please notify the 
sender by return email and delete the transmission, together with any 
attachments, from your system. Thank you.
------------------------------------------------------------------------

Hi Kevin,

........ or you could add the missing tab separators to the appropriate lines in the Settings.ddf file - I've done that and committed it - installer works again now.

Cheers and thanks,
Simon

Kevin Gunn wrote:

Hi,

I checked out the latest code today for the BlueNetMEST, built it and ran the installer and got an index out of bounds error during the installation. I continued on and then ran the gast tool to configure the DB and also got this exception. Anyone else seeing this?

C:\_work\geonetwork\BlueNet_MEST_SVN>java -jar gast\gast.jar

2008-10-22 11:35:06,302 INFO [gast] - Removing database objects

2008-10-22 11:35:10,708 INFO [gast] - Creating database schema

2008-10-22 11:35:13,114 INFO [gast] - Filling database tables

2008-10-22 11:35:13,114 DEBUG [gast] - - Filling table : Categories

2008-10-22 11:35:13,130 DEBUG [gast] - - Filling table : Settings

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3

at java.util.ArrayList.RangeCheck(ArrayList.java:546)

at java.util.ArrayList.get(ArrayList.java:321)

at org.fao.gast.lib.druid.ImportHandler.handleRow(Import.java:87)

at org.fao.gast.lib.druid.DdfLoader.handleRow(DdfLoader.java:117)

at org.fao.gast.lib.druid.DdfLoader.load(DdfLoader.java:80)

at org.fao.gast.lib.druid.Import.load(Import.java:34)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:456)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:428)

at org.fao.gast.lib.DatabaseLib.setup(DatabaseLib.java:109)

at org.fao.gast.gui.panels.database.setup.Worker.run(Worker.java:59)

at java.lang.Thread.run(Thread.java:595)

I couldn’t find an issue for this, should I raise one or is this issue already in hand?

The array of values past in doesn’t match the length of the fields array. This is when entries in the Settings.ddf file don’t have the fourth field “value”. So there needs to be a check on the length of values, and if it don’t match assume it’s “”.

Need to commit something like this in org.fao.gast.lib.druid.Import.java.

String token = "";

if (i < values.size()) {

token = values.get(i);

}

Hi Simon,

Sure no worries thx for fixing the input file, but you should be
checking you're still inside the Array/List boundaries before trying to
access items. It's your baby so will leave it with you.

Cheers,
Kevin

-----Original Message-----
From: Simon Pigot [mailto:Simon.Pigot@anonymised.com]
Sent: Thursday, 23 October 2008 09:52 AM
To: Kevin Gunn
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] latest BlueNetMEST install and gast DB
config error

Hi Kevin,

........ or you could add the missing tab separators to the appropriate
lines in the Settings.ddf file - I've done that and committed it -
installer works again now.

Cheers and thanks,
Simon

Kevin Gunn wrote:

Hi,

I checked out the latest code today for the BlueNetMEST, built it and
ran the installer and got an index out of bounds error during the
installation. I continued on and then ran the gast tool to configure
the DB and also got this exception. Anyone else seeing this?

C:\_work\geonetwork\BlueNet_MEST_SVN>java -jar gast\gast.jar

2008-10-22 11:35:06,302 INFO [gast] - Removing database objects

2008-10-22 11:35:10,708 INFO [gast] - Creating database schema

2008-10-22 11:35:13,114 INFO [gast] - Filling database tables

2008-10-22 11:35:13,114 DEBUG [gast] - - Filling table : Categories

2008-10-22 11:35:13,130 DEBUG [gast] - - Filling table : Settings

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3

at java.util.ArrayList.RangeCheck(ArrayList.java:546)

at java.util.ArrayList.get(ArrayList.java:321)

at org.fao.gast.lib.druid.ImportHandler.handleRow(Import.java:87)

at org.fao.gast.lib.druid.DdfLoader.handleRow(DdfLoader.java:117)

at org.fao.gast.lib.druid.DdfLoader.load(DdfLoader.java:80)

at org.fao.gast.lib.druid.Import.load(Import.java:34)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:456)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:428)

at org.fao.gast.lib.DatabaseLib.setup(DatabaseLib.java:109)

at org.fao.gast.gui.panels.database.setup.Worker.run(Worker.java:59)

at java.lang.Thread.run(Thread.java:595)

I couldn't find an issue for this, should I raise one or is this issue

already in hand?

The array of values past in doesn't match the length of the fields
array. This is when entries in the Settings.ddf file don't have the
fourth field "value". So there needs to be a check on the length of
values, and if it don't match assume it's "".

Need to commit something like this in

org.fao.gast.lib.druid.Import.java.

String token = "";

if (i < values.size()) {

token = values.get(i);

}

--
------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.
------------------------------------------------------------------------

Hi Kevin,

Not rejecting your suggestion - just focused on getting the immediate problem fixed quickly - you're right, something should be done to better check the stuff parsed from the ddf files and it'd be good if you (or anyone else) were to look into this. Apologies for harping on but its not just "my baby" either :slight_smile: there are others who have commit rights on this sandbox and you're welcome to join, procedures for becoming a committer are on committer – GeoNetwork opensource Developer website

Cheers and thanks again,
Simon

Kevin Gunn wrote:

Hi Simon,

Sure no worries thx for fixing the input file, but you should be
checking you're still inside the Array/List boundaries before trying to
access items. It's your baby so will leave it with you.

Cheers,
Kevin

-----Original Message-----
From: Simon Pigot [mailto:Simon.Pigot@anonymised.com] Sent: Thursday, 23 October 2008 09:52 AM
To: Kevin Gunn
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] latest BlueNetMEST install and gast DB
config error

Hi Kevin,

........ or you could add the missing tab separators to the appropriate lines in the Settings.ddf file - I've done that and committed it - installer works again now.

Cheers and thanks,
Simon

Kevin Gunn wrote:
  

Hi,

I checked out the latest code today for the BlueNetMEST, built it and ran the installer and got an index out of bounds error during the installation. I continued on and then ran the gast tool to configure the DB and also got this exception. Anyone else seeing this?

C:\_work\geonetwork\BlueNet_MEST_SVN>java -jar gast\gast.jar

2008-10-22 11:35:06,302 INFO [gast] - Removing database objects

2008-10-22 11:35:10,708 INFO [gast] - Creating database schema

2008-10-22 11:35:13,114 INFO [gast] - Filling database tables

2008-10-22 11:35:13,114 DEBUG [gast] - - Filling table : Categories

2008-10-22 11:35:13,130 DEBUG [gast] - - Filling table : Settings

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3

at java.util.ArrayList.RangeCheck(ArrayList.java:546)

at java.util.ArrayList.get(ArrayList.java:321)

at org.fao.gast.lib.druid.ImportHandler.handleRow(Import.java:87)

at org.fao.gast.lib.druid.DdfLoader.handleRow(DdfLoader.java:117)

at org.fao.gast.lib.druid.DdfLoader.load(DdfLoader.java:80)

at org.fao.gast.lib.druid.Import.load(Import.java:34)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:456)

at org.fao.gast.lib.DatabaseLib.fillTables(DatabaseLib.java:428)

at org.fao.gast.lib.DatabaseLib.setup(DatabaseLib.java:109)

at org.fao.gast.gui.panels.database.setup.Worker.run(Worker.java:59)

at java.lang.Thread.run(Thread.java:595)

I couldn't find an issue for this, should I raise one or is this issue
    
already in hand?

The array of values past in doesn't match the length of the fields array. This is when entries in the Settings.ddf file don't have the fourth field "value". So there needs to be a check on the length of values, and if it don't match assume it's "".

Need to commit something like this in
    

org.fao.gast.lib.druid.Import.java.
  

String token = "";

if (i < values.size()) {

token = values.get(i);

}

-- ------------------------------------------------------------------------
The information contained in this communication is for the use of the individual or entity to whom it is addressed, and may contain information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the sender by return email and delete the transmission, together with any attachments, from your system. Thank you.
------------------------------------------------------------------------

-------------------------------------------------------------------------
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
geonetwork-devel List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

Hi,

For some background, I maintain a version of the BlueNetMEST for the
Australian Institute of Marine Science (AIMS). AIMS uses the released
production versions of Geonetwork provided via the BlueNet group at UTAS
with some customisations required by the AIMS users.

I have read, understood, and agree to the committer responsibilities and
guidelines documented at
http://trac.osgeo.org/geonetwork/wiki/committer.

May I be granted access as a committer to the BlueNetMEST sandbox area?

My username is mrkgunn.

Thx,

Kevin Gunn
Software Engineer
Australian Institute of Marine Science
Ph: (61+7) 4753 4305
Fax: (61+7) 4772 5852
E-mail: k.gunn@anonymised.com

-----Original Message-----
From: Simon Pigot [mailto:Simon.Pigot@anonymised.com]
Sent: Thursday, 23 October 2008 13:25 PM
To: Kevin Gunn
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] latest BlueNetMEST install and gast DB
config error

Hi Kevin,

Not rejecting your suggestion - just focused on getting the immediate
problem fixed quickly - you're right, something should be done to better

check the stuff parsed from the ddf files and it'd be good if you (or
anyone else) were to look into this. Apologies for harping on but its
not just "my baby" either :slight_smile: there are others who have commit rights on

this sandbox and you're welcome to join, procedures for becoming a
committer are on http://trac.osgeo.org/geonetwork/wiki/committer

Cheers and thanks again,
Simon

--
------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.
------------------------------------------------------------------------

Hi Simon,

As you recommended, I put in the request to become a committer for the
BlueNetMEST SVN the other week and have not seen any responses to it. So
I will leave these fixes in the SVN to the committers.

Regards,
Kevin
-----Original Message-----
From: Kevin Gunn
Sent: Thursday, 23 October 2008 14:11 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] request to become a committer on the
BlueNetMESTsandbox in SVN

Hi,

For some background, I maintain a version of the BlueNetMEST for the
Australian Institute of Marine Science (AIMS). AIMS uses the released
production versions of Geonetwork provided via the BlueNet group at UTAS
with some customisations required by the AIMS users.

I have read, understood, and agree to the committer responsibilities and
guidelines documented at
http://trac.osgeo.org/geonetwork/wiki/committer.

May I be granted access as a committer to the BlueNetMEST sandbox area?

My username is mrkgunn.

Thx,

Kevin Gunn
Software Engineer
Australian Institute of Marine Science
Ph: (61+7) 4753 4305
Fax: (61+7) 4772 5852
E-mail: k.gunn@anonymised.com

-----Original Message-----
From: Simon Pigot [mailto:Simon.Pigot@anonymised.com]
Sent: Thursday, 23 October 2008 13:25 PM
To: Kevin Gunn
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] latest BlueNetMEST install and gast DB
config error

Hi Kevin,

Not rejecting your suggestion - just focused on getting the immediate
problem fixed quickly - you're right, something should be done to better

check the stuff parsed from the ddf files and it'd be good if you (or
anyone else) were to look into this. Apologies for harping on but its
not just "my baby" either :slight_smile: there are others who have commit rights on

this sandbox and you're welcome to join, procedures for becoming a
committer are on http://trac.osgeo.org/geonetwork/wiki/committer

Cheers and thanks again,
Simon

--
------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.
------------------------------------------------------------------------

--
------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.
------------------------------------------------------------------------

Hi Kevin,
For some reason your email was listed in another thread that I didn't open before. Sorry for missing it. I have now added you to the committers list so you can commit to the BlueNetMEST sandbox.
Cheers,
Jeroen

On Oct 23, 2008, at 6:11 AM, Kevin Gunn wrote:

Hi,

For some background, I maintain a version of the BlueNetMEST for the
Australian Institute of Marine Science (AIMS). AIMS uses the released
production versions of Geonetwork provided via the BlueNet group at UTAS
with some customisations required by the AIMS users.

I have read, understood, and agree to the committer responsibilities and
guidelines documented at
committer – GeoNetwork opensource Developer website.

May I be granted access as a committer to the BlueNetMEST sandbox area?

My username is mrkgunn.

Thx,

Kevin Gunn
Software Engineer
Australian Institute of Marine Science
Ph: (61+7) 4753 4305
Fax: (61+7) 4772 5852
E-mail: k.gunn@anonymised.com

-----Original Message-----
From: Simon Pigot [mailto:Simon.Pigot@anonymised.com]
Sent: Thursday, 23 October 2008 13:25 PM
To: Kevin Gunn
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] latest BlueNetMEST install and gast DB
config error

Hi Kevin,

Not rejecting your suggestion - just focused on getting the immediate
problem fixed quickly - you're right, something should be done to better

check the stuff parsed from the ddf files and it'd be good if you (or
anyone else) were to look into this. Apologies for harping on but its
not just "my baby" either :slight_smile: there are others who have commit rights on

this sandbox and you're welcome to join, procedures for becoming a
committer are on committer – GeoNetwork opensource Developer website

Cheers and thanks again,
Simon

-- ------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.
------------------------------------------------------------------------

-------------------------------------------------------------------------
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

Hi Jeroen,

Thanks, I will make sure that any fixes will be discussed in the forum
before any commits are done on my behalf.

Cheers,
Kevin

-----Original Message-----
From: Jeroen Ticheler [mailto:Jeroen.Ticheler@anonymised.com]
Sent: Wednesday, 5 November 2008 23:09 PM
To: Kevin Gunn
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] request to become a committer on the
BlueNetMEST sandbox in SVN

Hi Kevin,
For some reason your email was listed in another thread that I didn't
open before. Sorry for missing it. I have now added you to the
committers list so you can commit to the BlueNetMEST sandbox.
Cheers,
Jeroen

On Oct 23, 2008, at 6:11 AM, Kevin Gunn wrote:

Hi,

For some background, I maintain a version of the BlueNetMEST for the
Australian Institute of Marine Science (AIMS). AIMS uses the released
production versions of Geonetwork provided via the BlueNet group at
UTAS
with some customisations required by the AIMS users.

I have read, understood, and agree to the committer responsibilities
and
guidelines documented at
http://trac.osgeo.org/geonetwork/wiki/committer.

May I be granted access as a committer to the BlueNetMEST sandbox
area?

My username is mrkgunn.

Thx,

Kevin Gunn
Software Engineer
Australian Institute of Marine Science
Ph: (61+7) 4753 4305
Fax: (61+7) 4772 5852
E-mail: k.gunn@anonymised.com

-----Original Message-----
From: Simon Pigot [mailto:Simon.Pigot@anonymised.com]
Sent: Thursday, 23 October 2008 13:25 PM
To: Kevin Gunn
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] latest BlueNetMEST install and gast DB
config error

Hi Kevin,

Not rejecting your suggestion - just focused on getting the immediate
problem fixed quickly - you're right, something should be done to
better

check the stuff parsed from the ddf files and it'd be good if you (or
anyone else) were to look into this. Apologies for harping on but its
not just "my baby" either :slight_smile: there are others who have commit
rights on

this sandbox and you're welcome to join, procedures for becoming a
committer are on http://trac.osgeo.org/geonetwork/wiki/committer

Cheers and thanks again,
Simon

--

------------------------------------------------------------------------

The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.

------------------------------------------------------------------------

------------------------------------------------------------------------
-

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

--
------------------------------------------------------------------------
The information contained in this communication is for the use of the
individual or entity to whom it is addressed, and may contain
information which is the subject of legal privilege and/or copyright.

If you have received this communication in error, please notify the
sender by return email and delete the transmission, together with any
attachments, from your system. Thank you.
------------------------------------------------------------------------