jford 2003/12/04 19:04:28
Modified: portal/src/java/org/apache/jetspeed/services/psml
CastorPsmlManagerService.java
Log:
Fixed StackOverflow caused during psml refresh
Revision Changes Path
1.3 +12 -2
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/services/psml/CastorPsmlManagerService.java
Index: CastorPsmlManagerService.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/services/psml/CastorPsmlManagerService.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CastorPsmlManagerService.java 18 Oct 2003 19:54:51 -0000 1.2
+++ CastorPsmlManagerService.java 5 Dec 2003 03:04:28 -0000 1.3
@@ -1441,9 +1441,19 @@
{
System.out.println("entry is refreshing: " + entry.getFile().getName());
Profile profile = (Profile) entry.getDocument();
+
+ String path = null;
if (profile != null)
{
- profile.setDocument(loadDocument(entry.getFile().getName()));
+ try
+ {
+ path = entry.getFile().getCanonicalPath();
+ profile.setDocument(loadDocument(path));
+ }
+ catch (IOException e)
+ {
+ log.error("CastorPsmlManager: Failed to refresh document "+path);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]