svnno****@sourc*****
svnno****@sourc*****
2008年 6月 13日 (金) 17:56:04 JST
Revision: 982 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=982 Author: shinsuke Date: 2008-06-13 17:56:04 +0900 (Fri, 13 Jun 2008) Log Message: ----------- derby does not support a comparison of long varchar. Modified Paths: -------------- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java -------------- next part -------------- Modified: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java =================================================================== --- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java 2008-06-13 06:42:35 UTC (rev 981) +++ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/administration/PortalAdministrationImpl.java 2008-06-13 08:56:04 UTC (rev 982) @@ -459,11 +459,23 @@ private static final String USER_NOT_FOUND_FROM_EMAIL = "User not found for Email address: "; + private static final String COULD_NOT_EXECUTE_LOOKUP_PROCESS = "Could not execute a lookup process: "; + public User lookupUserFromEmail(String email) throws AdministrationEmailException { - Collection result = preferences.lookupPreference("userinfo", - "user.business-info.online.email", email); + Collection result = null; + try + { + result = preferences.lookupPreference("userinfo", + "user.business-info.online.email", email); + } + catch (Exception e) + { + // Derby does not support a comparison of LONG VARCHAR. + throw new AdministrationEmailException( + COULD_NOT_EXECUTE_LOOKUP_PROCESS + email, e); + } if (result.size() == 0) { throw new AdministrationEmailException( USER_NOT_FOUND_FROM_EMAIL + email); } Iterator nodes = result.iterator();