Made changes to allow packages built for Zen to be more compatible with
it. Enhanced places where exceptions are thrown to include information about exceptions that may have been caught to improve debugging.
This commit is contained in:
@@ -94,22 +94,22 @@ public final class AuthMechConfig
|
||||
catch (SAXException e)
|
||||
{
|
||||
System.err.println("AuthMechConfig()- " + mechSettingsFileName + " format error, exception: " + e.toString());
|
||||
throw new Exception("AuthMechConfig()- authtoken.settings format error");
|
||||
throw new Exception("AuthMechConfig()- authtoken.settings format error", e);
|
||||
}
|
||||
catch (SecurityException e)
|
||||
{
|
||||
System.err.println("AuthMechConfig()- SecurityException accessing " + mechSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("AuthMechConfig()- Not able to access file");
|
||||
throw new Exception("AuthMechConfig()- Not able to access file", e);
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
{
|
||||
System.err.println("AuthMechConfig()- File " + mechSettingsFileName + " not found");
|
||||
throw new Exception("AuthMechConfig()- File not found");
|
||||
throw new Exception("AuthMechConfig()- File not found", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
System.err.println("AuthMechConfig()- IOException accessing " + mechSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("AuthMechConfig()- Read error");
|
||||
throw new Exception("AuthMechConfig()- Read error", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -362,7 +362,7 @@ public final class AuthReqMsg
|
||||
catch (SAXException e)
|
||||
{
|
||||
System.err.println("AuthReqMsg()- Parse exception: " + e.toString());
|
||||
throw new Exception("Protocol error");
|
||||
throw new Exception("Protocol error", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ public final class AuthToken
|
||||
catch (Exception e)
|
||||
{
|
||||
System.err.println("AuthToken()- Exception caught creating message, msg: " + e.getMessage());
|
||||
throw new Exception("Invalid Authentication Token");
|
||||
throw new Exception("Invalid Authentication Token", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -164,22 +164,22 @@ public final class AuthTokenConfig
|
||||
catch (SAXException e)
|
||||
{
|
||||
System.err.println("AuthTokenConfig()- " + authTokenSettingsFileName + " format error, exception: " + e.toString());
|
||||
throw new Exception("AuthTokenConfig()- authtoken.settings format error");
|
||||
throw new Exception("AuthTokenConfig()- authtoken.settings format error", e);
|
||||
}
|
||||
catch (SecurityException e)
|
||||
{
|
||||
System.err.println("AuthTokenConfig()- SecurityException accessing " + authTokenSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("AuthTokenConfig()- Not able to access file");
|
||||
throw new Exception("AuthTokenConfig()- Not able to access file", e);
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
{
|
||||
System.err.println("AuthTokenConfig()- File " + authTokenSettingsFileName + " not found");
|
||||
throw new Exception("AuthTokenConfig()- File not found");
|
||||
throw new Exception("AuthTokenConfig()- File not found", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
System.err.println("AuthTokenConfig()- IOException accessing " + authTokenSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("AuthTokenConfig()- Read error");
|
||||
throw new Exception("AuthTokenConfig()- Read error", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -422,7 +422,7 @@ public final class CasaIdentityToken implements IdentityToken
|
||||
catch (NamingException e)
|
||||
{
|
||||
System.err.println("CasaIdentityToken SAXHandler.endElement()- Attribute data not found");
|
||||
throw new SAXException("Attribute data not found");
|
||||
throw new SAXException("Attribute data not found", e);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -567,7 +567,7 @@ public final class CasaIdentityToken implements IdentityToken
|
||||
catch (NamingException e)
|
||||
{
|
||||
System.err.println("CasaIdentityToken SAXHandler.characters()- Attribute data not found");
|
||||
throw new SAXException("Attribute data not found");
|
||||
throw new SAXException("Attribute data not found", e);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -634,7 +634,7 @@ public final class CasaIdentityToken implements IdentityToken
|
||||
catch (NamingException e)
|
||||
{
|
||||
System.err.println("CasaIdentityToken SAXHandler.characters()- Attribute data not found");
|
||||
throw new SAXException("Attribute data not found");
|
||||
throw new SAXException("Attribute data not found", e);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -775,12 +775,12 @@ public final class CasaIdentityToken implements IdentityToken
|
||||
catch (NamingException e)
|
||||
{
|
||||
System.err.println("CasaIdentityToken.initialize()- Exception: " + e.getExplanation());
|
||||
throw new Exception("Error obtaining identity data for token");
|
||||
throw new Exception("Error obtaining identity data for token", e);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.err.println("CasaIdentityToken.initialize()- Exception: " + e.toString());
|
||||
throw new Exception("Error obtaining identity data for token");
|
||||
throw new Exception("Error obtaining identity data for token", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -813,7 +813,7 @@ public final class CasaIdentityToken implements IdentityToken
|
||||
{
|
||||
// tbd - Log this.
|
||||
System.err.println("CasaIdentityToken()- Parse exception: " + e.toString());
|
||||
throw new Exception("Token error");
|
||||
throw new Exception("Token error", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -290,7 +290,7 @@ public final class GetAuthPolicyReqMsg
|
||||
catch (SAXException e)
|
||||
{
|
||||
System.err.println("GetAuthPolicyReqMsg()- Parse exception: " + e.toString());
|
||||
throw new Exception("Protocol error");
|
||||
throw new Exception("Protocol error", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ public final class GetAuthTokReqMsg
|
||||
catch (SAXException e)
|
||||
{
|
||||
System.err.println("GetAuthTokReqMsg()- Parse exception: " + e.toString());
|
||||
throw new Exception("Protocol error");
|
||||
throw new Exception("Protocol error", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -106,22 +106,22 @@ public final class IdenTokenConfig
|
||||
catch (SAXException e)
|
||||
{
|
||||
System.err.println("IdenTokenConfig()- " + idenTokenSettingsFileName + " format error, exception: " + e.toString());
|
||||
throw new Exception("IdenTokenConfig()- authtoken.settings format error");
|
||||
throw new Exception("IdenTokenConfig()- authtoken.settings format error", e);
|
||||
}
|
||||
catch (SecurityException e)
|
||||
{
|
||||
System.err.println("IdenTokenConfig()- SecurityException accessing " + idenTokenSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("IdenTokenConfig()- Not able to access file");
|
||||
throw new Exception("IdenTokenConfig()- Not able to access file", e);
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
{
|
||||
System.err.println("IdenTokenConfig()- File " + idenTokenSettingsFileName + " not found");
|
||||
throw new Exception("IdenTokenConfig()- File not found");
|
||||
throw new Exception("IdenTokenConfig()- File not found", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
System.err.println("IdenTokenConfig()- IOException accessing " + idenTokenSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("IdenTokenConfig()- Read error");
|
||||
throw new Exception("IdenTokenConfig()- Read error", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -106,7 +106,7 @@ public final class Krb5Authenticate implements AuthMechanism, Serializable
|
||||
catch (GSSException e)
|
||||
{
|
||||
System.err.println("Krb5Authenticate Krb5Token()- GSS Exception caught: " + e.getLocalizedMessage());
|
||||
throw new Exception("Authentication Failure");
|
||||
throw new Exception("Authentication Failure", e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ public final class Krb5Authenticate implements AuthMechanism, Serializable
|
||||
catch (GSSException e)
|
||||
{
|
||||
System.err.println("Krb5Authenticate()- GSS Exception caught: " + e.getLocalizedMessage());
|
||||
throw new Exception("Failed to instantiate needed GSS objects");
|
||||
throw new Exception("Failed to instantiate needed GSS objects", e);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -231,7 +231,7 @@ public final class Rpc extends javax.servlet.http.HttpServlet implements javax.s
|
||||
catch (Exception e)
|
||||
{
|
||||
System.err.println("Rpc.init()- Exception caught: " + e.toString());
|
||||
throw new ServletException("Exception caught while instantiating Rpc methods");
|
||||
throw new ServletException("Exception caught while instantiating Rpc methods", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -200,22 +200,22 @@ public final class SvcConfig
|
||||
catch (SAXException e)
|
||||
{
|
||||
System.err.println("SvcConfig()- Parse exception: " + e.toString());
|
||||
throw new Exception("SvcConfig()- svc.settings format error");
|
||||
throw new Exception("SvcConfig()- svc.settings format error", e);
|
||||
}
|
||||
catch (SecurityException e)
|
||||
{
|
||||
System.err.println("SvcConfig()- SecurityException caught while accessing " + svcConfigPath + File.separator + m_svcSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("SvcConfig()- Not able to access file");
|
||||
throw new Exception("SvcConfig()- Not able to access file", e);
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
{
|
||||
System.err.println("SvcConfig()- File " + svcConfigPath + File.separator + m_svcSettingsFileName + " not found");
|
||||
throw new Exception("SvcConfig()- File not found");
|
||||
throw new Exception("SvcConfig()- File not found", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
System.err.println("SvcConfig()- IOException caught while trying to read " + svcConfigPath + File.separator + m_svcSettingsFileName + " Exception=" + e.toString());
|
||||
throw new Exception("SvcConfig()- Read error");
|
||||
throw new Exception("SvcConfig()- Read error", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user