[GeoNetwork-users] Saxon error in JDK1.5

hello list,

I have observed the Saxon Out of Heap error when creating a new metadata
using GeoNetwork (latest trunk version).

I had understood this is known to happen when you use JDK 1.6, and can then
be fixed by adding

set
CATALINA_OPTS="-XX:CompileCommand=exclude,net/sf/saxon/event/ReceivingContentHandler.startElement"

to your catalina startup file.

But I was running under JDK 1.5.0_22. Also, the fix mentioned above did not
remedy this.

Now I've got it succesfully running under JDK1.6 with the fix applied.

But it seems there's no way to get it to work using JDK 1.5 ?

My OS is Windows 7, Tomcat version 5.5.28.

Can anyone else confirm this ?

Kind regards
Heikki Doeleman

Not sure that I've tried under 1.5.0_22 (I'll do that) but I have patched the saxon source with some code from the later saxon 9.2 code that removes the problem and the need for the annoying compiler exclusion argument. I'll commit it to trunk once I make sure that I've added the patched saxon to the local maven repo properly.

Cheers,
Simon
________________________________________
From: heikki [tropicano@anonymised.com]
Sent: Thursday, 19 August 2010 8:30 PM
To: Geonetwork Users; Devel geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] Saxon error in JDK1.5

hello list,

I have observed the Saxon Out of Heap error when creating a new metadata using GeoNetwork (latest trunk version).

I had understood this is known to happen when you use JDK 1.6, and can then be fixed by adding

set CATALINA_OPTS="-XX:CompileCommand=exclude,net/sf/saxon/event/ReceivingContentHandler.startElement"

to your catalina startup file.

But I was running under JDK 1.5.0_22. Also, the fix mentioned above did not remedy this.

Now I've got it succesfully running under JDK1.6 with the fix applied.

But it seems there's no way to get it to work using JDK 1.5 ?

My OS is Windows 7, Tomcat version 5.5.28.

Can anyone else confirm this ?

Kind regards
Heikki Doeleman

Hi Simon,

I'll commit it to trunk once I make sure that I've added the patched saxon

to the local maven repo properly.

Do not hesitate to ask for more details if you are not confident with that.
I will be glad to help you.

Cheers,

Mathieu

Patched saxon committed in rev 6483 should make these exclusions unnecessary

Cheers,
Simon
________________________________________
From: heikki [tropicano@anonymised.com]
Sent: Thursday, 19 August 2010 8:30 PM
To: Geonetwork Users; Devel geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] Saxon error in JDK1.5

hello list,

I have observed the Saxon Out of Heap error when creating a new metadata using GeoNetwork (latest trunk version).

I had understood this is known to happen when you use JDK 1.6, and can then be fixed by adding

set CATALINA_OPTS="-XX:CompileCommand=exclude,net/sf/saxon/event/ReceivingContentHandler.startElement"

to your catalina startup file.

But I was running under JDK 1.5.0_22. Also, the fix mentioned above did not remedy this.

Now I've got it succesfully running under JDK1.6 with the fix applied.

But it seems there's no way to get it to work using JDK 1.5 ?

My OS is Windows 7, Tomcat version 5.5.28.

Can anyone else confirm this ?

Kind regards
Heikki Doeleman