[teiid-commits] teiid SVN: r842 - in trunk: client/src/main/java/com/metamatrix/admin/api/exception/security and 24 other directories.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Fri Apr 24 12:12:38 EDT 2009


Author: rareddy
Date: 2009-04-24 12:12:37 -0400 (Fri, 24 Apr 2009)
New Revision: 842

Removed:
   trunk/console/src/main/java/com/metamatrix/common/callback/UnsupportedCallbackException.java
Modified:
   trunk/client/src/main/java/com/metamatrix/admin/api/exception/AdminException.java
   trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/InvalidSessionException.java
   trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/MetaMatrixSecurityException.java
   trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/SessionException.java
   trunk/client/src/main/java/com/metamatrix/api/exception/query/QueryParserException.java
   trunk/common-core/src/main/java/com/metamatrix/api/exception/MetaMatrixException.java
   trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixCoreException.java
   trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixRuntimeException.java
   trunk/common-core/src/test/java/com/metamatrix/api/exception/TestMetaMatrixException.java
   trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java
   trunk/common-core/src/test/java/com/metamatrix/common/util/crypto/TestEncryptDecrypt.java
   trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/AuthorizationException.java
   trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidPrincipalException.java
   trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidUserException.java
   trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MembershipServiceException.java
   trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MetaMatrixAuthenticationException.java
   trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/SessionServiceException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ConfigurationConnectionException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/DuplicateComponentException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidArgumentException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDCharacterException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDFormatException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidConfigurationException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidDeployedComponentException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidNameException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidPropertyValueException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidStringValueException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidVersionException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ZeroLengthComponentIDException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/util/ConfigObjectsNotResolvableException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/util/InvalidConfigurationElementException.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/ConfigurationImportExport.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperImpl.java
   trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperUtil.java
   trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/exception/PermissionNodeException.java
   trunk/common-internal/src/main/resources/com/metamatrix/common/config/api/resourcetypemodel.xml
   trunk/connector-api/src/main/java/org/teiid/connector/api/ConnectorException.java
   trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCExecutionException.java
   trunk/console/src/main/java/com/metamatrix/common/callback/CallbackHandler.java
   trunk/console/src/main/java/com/metamatrix/toolbox/ui/callback/DialogFactoryCallbackHandler.java
   trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestCriteriaEvaluator.java
   trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestExpressionEvaluator.java
   trunk/engine/src/test/java/com/metamatrix/query/processor/proc/TestProcedureProcessor.java
   trunk/engine/src/test/java/com/metamatrix/query/processor/relational/TestProjectNode.java
   trunk/engine/src/test/java/com/metamatrix/query/resolver/TestFunctionResolving.java
   trunk/engine/src/test/java/com/metamatrix/query/resolver/TestResolver.java
   trunk/engine/src/test/java/com/metamatrix/query/rewriter/TestQueryRewriter.java
   trunk/server/src/main/java/com/metamatrix/platform/config/spi/xml/ConfigTransactionException.java
   trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceConnectionException.java
   trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceException.java
   trunk/server/src/main/java/com/metamatrix/platform/security/membership/spi/MembershipSourceException.java
Log:
TEIID-440: The vendor code is captured on the connector. Specially for the JDBC Connector, it will look on the SQLexception and grab the vendor error code, and pass down to any exception that wraps it. The error code is also part of the exception message.

Modified: trunk/client/src/main/java/com/metamatrix/admin/api/exception/AdminException.java
===================================================================
--- trunk/client/src/main/java/com/metamatrix/admin/api/exception/AdminException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/client/src/main/java/com/metamatrix/admin/api/exception/AdminException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -40,17 +40,7 @@
  */
 public abstract class AdminException extends MetaMatrixCoreException {
 
-    /**
-     * The error code is initialized to this value.
-     * <p>An error code of NO_ERROR_CODE indicates
-     * no error code has been set.</p>
-     */
-    public static final int NO_ERROR_CODE = 0;
-
-    // An optional error code
-    private int errorCode = NO_ERROR_CODE;
-
-    // List of Admin exceptions in
+   // List of Admin exceptions in
     // case of multiple failure
     private List children;
 
@@ -83,8 +73,7 @@
      * @since 4.3
      */
     AdminException(int code, String msg) {
-        super(msg);
-        this.errorCode = code;
+        super(Integer.toString(code), msg);
     }
     
     AdminException(String msg, Throwable cause) {
@@ -92,32 +81,10 @@
     }
 
     AdminException(int code, String msg, Throwable cause) {
-        super(cause, msg);
-        this.errorCode = code;
+        super(cause, Integer.toString(code),msg);
     }
 
     /**
-     * Get the optional error code. Useful for comparing
-     * to a known value.
-     * @return the error code.
-     * @since 4.3
-     */
-    public int getCode() {
-        return this.errorCode;
-    }
-
-    /**
-     * Check whether an error code has been set on
-     * this exception.
-     * @return <code>true</code> iff the error
-     * code differs from {@link #NO_ERROR_CODE}.
-     * @since 4.3
-     */
-    public boolean hasErrorCode() {
-        return this.errorCode != NO_ERROR_CODE;
-    }
-
-    /**
      * Determine whether this exception is representing
      * mutliple component failures.
      * @return <code>true</code> iff this exception contains multiple
@@ -153,12 +120,4 @@
         }
         children.add(child);
     }
-
-    /**
-     * @see java.lang.Throwable#getMessage()
-     * @since 4.3
-     */
-    public String getMessage() {
-        return (this.errorCode != NO_ERROR_CODE ? "Error Code[" + this.errorCode + "] " : "") + super.getMessage(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-    }
 }

Modified: trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/InvalidSessionException.java
===================================================================
--- trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/InvalidSessionException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/InvalidSessionException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public InvalidSessionException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/MetaMatrixSecurityException.java
===================================================================
--- trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/MetaMatrixSecurityException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/MetaMatrixSecurityException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -51,8 +51,7 @@
      * @param code    The error code 
      */
     public MetaMatrixSecurityException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Constructs an instance of the exception with the specified detail message

Modified: trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/SessionException.java
===================================================================
--- trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/SessionException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/client/src/main/java/com/metamatrix/admin/api/exception/security/SessionException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -63,8 +63,7 @@
      * @param code    The error code 
      */
     public SessionException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/client/src/main/java/com/metamatrix/api/exception/query/QueryParserException.java
===================================================================
--- trunk/client/src/main/java/com/metamatrix/api/exception/query/QueryParserException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/client/src/main/java/com/metamatrix/api/exception/query/QueryParserException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -32,10 +32,6 @@
  */
 public class QueryParserException extends QueryProcessingException {
 
-	// Error location, if known
-	private int line = -1;
-	private int column = -1;
-
     /**
      * No-arg constructor required by Externalizable semantics.
      */
@@ -83,58 +79,4 @@
     public QueryParserException( Throwable e, String code, String message ) {
         super( e, code, message );
     }
-	
-	/**
-	 * Set location of error
-	 * @param line Line error occurred on in input
-	 * @param column Column error occurred on in input
-	 */
-	public void setErrorLocation(int line, int column) {
-		this.line = line;
-		this.column = column;
-	}
-	
-	/**
-	 * Determine if location of error in string being parsed is known.  If 
-	 * so, the line and column can be obtained with getLine() and getColumn().
-	 * @return True if location is known
-	 */
-	public boolean isLocationKnown() {
-		return this.line > -1;
-	}	
-	
-	/** 
-	 * Get line error occurred on in string being parsed.
-	 * @return Line error occurred on in input string
-	 */
-	public int getLine() {
-		return this.line;
-	}
-	
-	/**
-	 * Get column error occurred on in string being parsed.
-	 * @return Column error occurred on in input string
-	 */
-	public int getColumn() {
-		return this.column;
-	}		
-	 	
-    /**
-     * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
-     */
-    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
-        super.readExternal(in);
-        line = in.readInt();
-        column = in.readInt();
-    }
-
-    /**
-     * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
-     */
-    public void writeExternal(ObjectOutput out) throws IOException {
-        super.writeExternal(out);
-        out.writeInt(line);
-        out.writeInt(column);
-    }
-
 }

Modified: trunk/common-core/src/main/java/com/metamatrix/api/exception/MetaMatrixException.java
===================================================================
--- trunk/common-core/src/main/java/com/metamatrix/api/exception/MetaMatrixException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-core/src/main/java/com/metamatrix/api/exception/MetaMatrixException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -43,19 +43,7 @@
  * performed by this class.</b></p>
  */
 public class MetaMatrixException extends MetaMatrixCoreException {
-    //############################################################################################################################
-    //# Variables                                                                                                                #
-    //############################################################################################################################
 
-    /** An error code. */
-    private String code;
-
-    private String msg;
-
-    //############################################################################################################################
-    //# Constructors                                                                                                             #
-    //############################################################################################################################
-
     /**
      * No-arg Constructor
      */
@@ -69,7 +57,6 @@
      */
     public MetaMatrixException(final String message) {
         super(message);
-        setMessage(message);
     }
 
     /**
@@ -78,8 +65,7 @@
      * @param message The error message
      */
     public MetaMatrixException(final String code, final String message) {
-        this(message);
-        setCode(code);
+        super(code, message);
     }
 
     /**
@@ -100,12 +86,6 @@
      */
     public MetaMatrixException(final Throwable e, final String message) {
         super(e, message);
-        if (e instanceof MetaMatrixException) {
-            setCode(((MetaMatrixException) e).getCode());
-        } else if (e instanceof MetaMatrixRuntimeException) {
-            setCode(((MetaMatrixRuntimeException) e).getCode());
-        }
-        setMessage(message);
     }
 
     /**
@@ -117,9 +97,7 @@
      * @param message The error message
      */
     public MetaMatrixException(final Throwable e, final String code, final String message) {
-        this(e, message);
-        // Overwrite code set in other ctor from exception.
-        setCode(code);
+        super(e, code, message);
     }
 
     //############################################################################################################################
@@ -136,15 +114,6 @@
     }
 
     /**
-     * Get the error code.
-     *
-     * @return The error code
-     */
-    public String getCode() {
-        return this.code;
-    }
-
-    /**
      * Returns the error message, formatted for output. <P>
      *
      * The default formatting provided by this method is to prepend the
@@ -195,31 +164,7 @@
         return buf.toString();
     }
 
-    /* (non-Javadoc)
-	 * @see java.lang.Throwable#getMessage()
-	 */
-    public String getMessage() {
-        return this.msg;
-    }
-
     /**
-     * Set the error code.
-     *
-     * @param code The error code
-     */
-    public void setCode(String code) {
-        this.code = code;
-    }
-
-    /**
-     * Just set this exceptions' message.
-     * @param message
-     */
-    private void setMessage(String message) {
-        this.msg = message;
-    }
-
-    /**
      * Returns a string representation of this class.
      *
      * @return String representation of instance
@@ -228,23 +173,6 @@
         return getFullMessage();
     }
 
-
-    /**
-     * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
-     */
-    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
-        code = (String)in.readObject();
-        msg = (String)in.readObject();
-    }
-
-    /**
-     * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
-     */
-    public void writeExternal(ObjectOutput out) throws IOException {
-        out.writeObject(code);
-        out.writeObject(msg);
-    }
-
 } // END CLASS
 
 

Modified: trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixCoreException.java
===================================================================
--- trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixCoreException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixCoreException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -22,8 +22,15 @@
 
 package com.metamatrix.core;
 
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+import java.sql.SQLException;
 
+import com.metamatrix.api.exception.MetaMatrixException;
 
+
+
 /**
  * Exception which occurs if an error occurs within the server that is not
  * business-related.  For instance, if a service or bean is not available
@@ -31,6 +38,8 @@
  */
 public class MetaMatrixCoreException extends Exception {
 	
+	protected String code;
+	
     public MetaMatrixCoreException() {
     }
 
@@ -38,12 +47,44 @@
         super(message);
     }
 
+    public MetaMatrixCoreException(String errorCode, String message) {
+        super(message);
+        this.code = errorCode;
+    }
+    
+
     public MetaMatrixCoreException(Throwable e) {
-        this(e, e.getMessage());
+        this(e, e.getMessage());        
     }
 
     public MetaMatrixCoreException(Throwable e, String message) {
         super(message, e);
+        setCode(e);
     }
     
+    public MetaMatrixCoreException(Throwable e, String errorCode, String message) {
+        super(message, e);
+        this.code = errorCode;
+    }
+    
+    public String getCode() {
+        return this.code;
+    }    
+    
+    private void setCode(Throwable e) {
+        if (e instanceof MetaMatrixCoreException) {
+            this.code = (((MetaMatrixCoreException) e).getCode());
+        } else if (e instanceof MetaMatrixRuntimeException) {
+        	this.code = ((MetaMatrixRuntimeException) e).getCode();
+        } else if (e instanceof SQLException) {
+        	this.code = Integer.toString(((SQLException)e).getErrorCode());
+        }
+    }
+    
+	public String getMessage() {
+		if (code == null || code.length() == 0) {
+			return super.getMessage();
+		}
+		return "Error Code:"+code+" Message:"+super.getMessage(); //$NON-NLS-1$ //$NON-NLS-2$
+	}    
 }

Modified: trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixRuntimeException.java
===================================================================
--- trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixRuntimeException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-core/src/main/java/com/metamatrix/core/MetaMatrixRuntimeException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -24,6 +24,7 @@
 
 import java.io.PrintStream;
 import java.io.PrintWriter;
+import java.sql.SQLException;
 
 import com.metamatrix.api.exception.MetaMatrixException;
 import com.metamatrix.core.util.MetaMatrixExceptionUtil;
@@ -123,10 +124,8 @@
      * @param message The error message or a resource bundle key
      */
     public MetaMatrixRuntimeException(final Throwable e, final String message) {
-        this(e, 0,message);
-        if (e instanceof MetaMatrixRuntimeException) {
-            setCode(((MetaMatrixRuntimeException)e).getCode());
-        }
+        super(message, e);
+        setCode(e);
     }
 
     /**
@@ -151,7 +150,7 @@
      * @param message The error message
      */
     public MetaMatrixRuntimeException(final Throwable e, final String code, final String message) {
-        this(e, message);
+        super(message, e);
         // Overwrite code set in other ctor from exception.
         setCode(code);
     }
@@ -202,14 +201,23 @@
      *
      * @param code The error code 
      */
-    public void setCode( int code ) {
+    private void setCode( int code ) {
         this.code = Integer.toString(code);
     }
     
-    public void setCode( String code ) {
+    private void setCode( String code ) {
         this.code = code;
     }
 
+    private void setCode(Throwable e) {
+        if (e instanceof MetaMatrixCoreException) {
+            this.code = (((MetaMatrixCoreException) e).getCode());
+        } else if (e instanceof MetaMatrixRuntimeException) {
+        	this.code = ((MetaMatrixRuntimeException) e).getCode();
+        } else if (e instanceof SQLException) {
+        	this.code = Integer.toString(((SQLException)e).getErrorCode());
+        }
+    }
 
     /**
      * Returns a string representation of this class.

Modified: trunk/common-core/src/test/java/com/metamatrix/api/exception/TestMetaMatrixException.java
===================================================================
--- trunk/common-core/src/test/java/com/metamatrix/api/exception/TestMetaMatrixException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-core/src/test/java/com/metamatrix/api/exception/TestMetaMatrixException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -74,7 +74,7 @@
         final MetaMatrixException err = new MetaMatrixException("Code", "Test"); //$NON-NLS-1$ //$NON-NLS-2$
         assertNull(err.getChild());
         assertEquals("Code", err.getCode()); //$NON-NLS-1$
-        assertEquals("Test", err.getMessage()); //$NON-NLS-1$
+        assertEquals("Error Code:Code Message:Test", err.getMessage()); //$NON-NLS-1$
         
     }
 
@@ -83,7 +83,7 @@
         final MetaMatrixException err = new MetaMatrixException(child, "Test"); //$NON-NLS-1$
         assertSame(child, err.getChild());
         assertEquals("propertyValuePhrase", err.getCode()); //$NON-NLS-1$
-        assertEquals("Test", err.getMessage()); //$NON-NLS-1$
+        assertEquals("Error Code:propertyValuePhrase Message:Test", err.getMessage()); //$NON-NLS-1$
         
     }
 
@@ -92,7 +92,7 @@
         final MetaMatrixException err = new MetaMatrixException(child, "Code", "Test"); //$NON-NLS-1$ //$NON-NLS-2$
         assertSame(child, err.getChild());
         assertEquals("Code", err.getCode()); //$NON-NLS-1$
-        assertEquals("Test", err.getMessage()); //$NON-NLS-1$
+        assertEquals("Error Code:Code Message:Test", err.getMessage()); //$NON-NLS-1$
         
     }
 }

Modified: trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java
===================================================================
--- trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-core/src/test/java/com/metamatrix/common/types/basic/TestTransforms.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -198,7 +198,7 @@
             transform.transform("1"); //$NON-NLS-1$
             fail("expected exception"); //$NON-NLS-1$
         } catch (TransformationException e) {
-            assertEquals("Invalid conversion from type class java.lang.Object with value '1' to type class java.sql.Time", e.getMessage()); //$NON-NLS-1$
+            assertEquals("Error Code:ERR.003.029.0025 Message:Invalid conversion from type class java.lang.Object with value '1' to type class java.sql.Time", e.getMessage()); //$NON-NLS-1$
         }
     }
     

Modified: trunk/common-core/src/test/java/com/metamatrix/common/util/crypto/TestEncryptDecrypt.java
===================================================================
--- trunk/common-core/src/test/java/com/metamatrix/common/util/crypto/TestEncryptDecrypt.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-core/src/test/java/com/metamatrix/common/util/crypto/TestEncryptDecrypt.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -174,7 +174,7 @@
             encryptor.encrypt( "" ); //$NON-NLS-1$
             fail("expected exception"); //$NON-NLS-1$
         } catch ( CryptoException e ) {
-            assertEquals("Attempt to encrypt zero-length cleartext.", e.getMessage()); //$NON-NLS-1$
+            assertEquals("Error Code:ERR.003.030.0073 Message:Attempt to encrypt zero-length cleartext.", e.getMessage()); //$NON-NLS-1$
         } 
     }
 
@@ -191,7 +191,7 @@
             encryptor.encrypt( (String)null );
             fail("expected exception"); //$NON-NLS-1$
         } catch ( CryptoException e ) {
-            assertEquals("Attempt to encrypt null cleartext.", e.getMessage()); //$NON-NLS-1$
+            assertEquals("Error Code:ERR.003.030.0072 Message:Attempt to encrypt null cleartext.", e.getMessage()); //$NON-NLS-1$
         } 
     }
 

Modified: trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/AuthorizationException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/AuthorizationException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/AuthorizationException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public AuthorizationException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidPrincipalException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidPrincipalException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidPrincipalException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -68,8 +68,7 @@
      * @param code    The error code
      */
     public InvalidPrincipalException(String code, String message) {
-        super(message);
-        setCode(code);
+        super(code, message);
     }
 
     /**

Modified: trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidUserException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidUserException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/InvalidUserException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -66,8 +66,7 @@
      * @param code    The error code
      */
     public InvalidUserException(String code, String message) {
-        super(message);
-        setCode(code);
+        super(code, message);
     }
 
     /**

Modified: trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MembershipServiceException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MembershipServiceException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MembershipServiceException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -65,8 +65,7 @@
      * @param code    The error code 
      */
     public MembershipServiceException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MetaMatrixAuthenticationException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MetaMatrixAuthenticationException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/MetaMatrixAuthenticationException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -65,8 +65,7 @@
      * @param code    The error code 
      */
     public MetaMatrixAuthenticationException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/SessionServiceException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/SessionServiceException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/api/exception/security/SessionServiceException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public SessionServiceException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ConfigurationConnectionException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ConfigurationConnectionException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ConfigurationConnectionException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public ConfigurationConnectionException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/DuplicateComponentException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/DuplicateComponentException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/DuplicateComponentException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public DuplicateComponentException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidArgumentException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidArgumentException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidArgumentException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public InvalidArgumentException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -65,8 +65,7 @@
      * @param code    The error code 
      */
     public InvalidComponentException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDCharacterException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDCharacterException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDCharacterException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -63,8 +63,7 @@
      * @param code    The error code 
      */
     public InvalidComponentIDCharacterException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDFormatException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDFormatException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidComponentIDFormatException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public InvalidComponentIDFormatException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidConfigurationException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidConfigurationException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidConfigurationException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public InvalidConfigurationException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidDeployedComponentException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidDeployedComponentException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidDeployedComponentException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public InvalidDeployedComponentException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidNameException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidNameException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidNameException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -65,8 +65,7 @@
      * @param code    The error code 
      */
     public InvalidNameException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidPropertyValueException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidPropertyValueException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidPropertyValueException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -63,8 +63,7 @@
      * @param code    The error code 
      */
     public InvalidPropertyValueException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidStringValueException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidStringValueException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidStringValueException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -65,8 +65,7 @@
      * @param code    The error code 
      */
     public InvalidStringValueException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidVersionException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidVersionException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/InvalidVersionException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -64,8 +64,7 @@
      * @param code    The error code 
      */
     public InvalidVersionException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ZeroLengthComponentIDException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ZeroLengthComponentIDException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/api/exceptions/ZeroLengthComponentIDException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -63,8 +63,7 @@
      * @param code    The error code 
      */
     public ZeroLengthComponentIDException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/util/ConfigObjectsNotResolvableException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/util/ConfigObjectsNotResolvableException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/util/ConfigObjectsNotResolvableException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -30,12 +30,6 @@
 
 public class ConfigObjectsNotResolvableException extends MetaMatrixException{
 
-    private Object notResolvableObject;
-    
-    // =========================================================================
-    //                       C O N S T R U C T O R S
-    // =========================================================================
-
     /**
      * No-arg costructor required by Externalizable semantics
      */
@@ -48,10 +42,8 @@
      *
      * @param message The error message
      */
-    public ConfigObjectsNotResolvableException( String message, Object notResolvableObject ) {
+    public ConfigObjectsNotResolvableException( String message) {
         super( message );
-        this.notResolvableObject = notResolvableObject;
-        
     }
 
     /**
@@ -60,11 +52,8 @@
      * @param message The error message
      * @param code    The error code 
      */
-    public ConfigObjectsNotResolvableException( String code, String message, Object notResolvableObject ) {
+    public ConfigObjectsNotResolvableException( String code, String message) {
         super( code, message );
-        this.notResolvableObject = notResolvableObject;
-        
-        
     }
 
     /**
@@ -72,10 +61,8 @@
      *
      * @param e An exception to chain to this exception
      */
-    public ConfigObjectsNotResolvableException( Throwable e, Object notResolvableObject ) {
+    public ConfigObjectsNotResolvableException( Throwable e) {
         super(e);
-        this.notResolvableObject = notResolvableObject;
-        
     }
 
     /**
@@ -85,10 +72,8 @@
      * @param e       An exception to chain to this exception
      * @param message The error message
      */
-    public ConfigObjectsNotResolvableException( Throwable e, String message, Object notResolvableObject ) {
+    public ConfigObjectsNotResolvableException( Throwable e, String message) {
         super(e, message );
-        this.notResolvableObject = notResolvableObject;
-        
     }
 
     /**
@@ -99,33 +84,7 @@
      * @param message The error message
      * @param code    The error code 
      */
-    public ConfigObjectsNotResolvableException( Throwable e, String code, String message, Object notResolvableObject ) {
+    public ConfigObjectsNotResolvableException( Throwable e, String code, String message) {
         super(e, code, message );
-        this.notResolvableObject = notResolvableObject;
-        
     }
-    
-    public Object getNotResolvableObject() {
-        return notResolvableObject;
-    }
-    /**
-     * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
-     */
-    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
-        super.readExternal(in);
-        notResolvableObject = in.readObject();
-    }
-
-    /**
-     * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
-     */
-    public void writeExternal(ObjectOutput out) throws IOException {
-        super.writeExternal(out);
-        try {
-            out.writeObject(notResolvableObject);
-        } catch (Throwable t) {
-            out.writeObject(null);
-        }
-    }
-
 }

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/util/InvalidConfigurationElementException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/util/InvalidConfigurationElementException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/util/InvalidConfigurationElementException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -30,12 +30,6 @@
 
 public class InvalidConfigurationElementException extends MetaMatrixException{
 
-    private Object invalidElement;
-    
-    // =========================================================================
-    //                       C O N S T R U C T O R S
-    // =========================================================================
-
     /**
      * No-Arg Constructor
      */
@@ -47,10 +41,8 @@
      *
      * @param message The error message
      */
-    public InvalidConfigurationElementException( String message, Object invalidElement ) {
+    public InvalidConfigurationElementException( String message) {
         super( message );
-        this.invalidElement = invalidElement;
-        
     }
 
     /**
@@ -59,11 +51,8 @@
      * @param message The error message
      * @param code    The error code 
      */
-    public InvalidConfigurationElementException( String code, String message, Object invalidElement ) {
+    public InvalidConfigurationElementException( String code, String message) {
         super( code, message );
-        this.invalidElement = invalidElement;
-        
-        
     }
 
     /**
@@ -71,10 +60,8 @@
      *
      * @param e An exception to chain to this exception
      */
-    public InvalidConfigurationElementException( Throwable e, Object invalidElement  ) {
+    public InvalidConfigurationElementException( Throwable e) {
         super(e);
-        this.invalidElement = invalidElement;
-        
     }
 
     /**
@@ -84,10 +71,8 @@
      * @param e       An exception to chain to this exception
      * @param message The error message
      */
-    public InvalidConfigurationElementException( Throwable e, String message, Object invalidElement  ) {
+    public InvalidConfigurationElementException( Throwable e, String message) {
         super(e, message );
-        this.invalidElement = invalidElement;
-        
     }
 
     /**
@@ -98,33 +83,8 @@
      * @param message The error message
      * @param code    The error code 
      */
-    public InvalidConfigurationElementException( Throwable e, String code, String message, Object invalidElement  ) {
+    public InvalidConfigurationElementException( Throwable e, String code, String message){
         super(e, code, message );
-        this.invalidElement = invalidElement;
-        
     }
-    
-    public Object getInvalidElement() {
-        return invalidElement;
-    }
-    
-    /**
-     * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
-     */
-    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
-        super.readExternal(in);
-        invalidElement = in.readObject();
-    }
 
-    /**
-     * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
-     */
-    public void writeExternal(ObjectOutput out) throws IOException {
-        super.writeExternal(out);
-        try {
-            out.writeObject(invalidElement);
-        } catch (Throwable t) {
-            out.writeObject(null);
-        }
-    }
 }

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/ConfigurationImportExport.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/ConfigurationImportExport.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/ConfigurationImportExport.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -1295,21 +1295,12 @@
 
 		String msg = CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0018, new Object[]
 				{referencingObject, type, referencedObject} );
-        ConfigObjectsNotResolvableException e = new ConfigObjectsNotResolvableException(ErrorMessageKeys.CONFIG_ERR_0018, msg, referencingObject);
+        ConfigObjectsNotResolvableException e = new ConfigObjectsNotResolvableException(ErrorMessageKeys.CONFIG_ERR_0018, msg);
 
         throw e;
     }
 
-    private void throwObjectsNotResolvable(Object referencingObject, String type) throws ConfigObjectsNotResolvableException{
-		String msg = CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0019, new Object[]
-				{referencingObject, type} );
 
-
-        ConfigObjectsNotResolvableException e = new ConfigObjectsNotResolvableException(ErrorMessageKeys.CONFIG_ERR_0019, msg, referencingObject);
-
-        throw e;
-    }
-
     private void checkConfigurationID(ComponentDefn defn, List configurationIDs) throws ConfigObjectsNotResolvableException {
         if (!configurationIDs.contains(defn.getConfigurationID())) {
         	throwObjectsNotResolvable(defn, defn.getConfigurationID(), "configuration object"); //$NON-NLS-1$
@@ -1325,22 +1316,7 @@
         }
     }
     
- 
 
-//    private void checkForComponentTypeID(ComponentTypeID id, List componentTypeIDs) throws ConfigObjectsNotResolvableException{
-//
-//        if (id!=null) {
-//            if (!(componentTypeIDs.contains(id))) {
-//			 		throwObjectsNotResolvable(id, "component"); //$NON-NLS-1$
-//
-////                throwConfigObjectsNotResolvableException(id, id);
-//            }
-//
-//        }
-//
-//    }
-        
-
     protected List[] segregateConfigurationObjects(Collection collection) {
 
 

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperImpl.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperImpl.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperImpl.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -548,7 +548,7 @@
         Properties props=new Properties();
         
         if (!element.getName().equals(XMLConfig_ElementNames.Header.ELEMENT)) {
-            throw new InvalidConfigurationElementException("This is not the header element: " + element.getName() + ".", element); //$NON-NLS-1$ //$NON-NLS-2$
+            throw new InvalidConfigurationElementException("This is not the header element: " + element.getName() + "."); //$NON-NLS-1$ //$NON-NLS-2$
         }
         
         List elements = element.getChildren();
@@ -1095,7 +1095,7 @@
         Assertion.isNotNull(editor);
 
         if (!element.getName().equals(XMLConfig_ElementNames.Configuration.Host.ELEMENT)) {
-            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0032, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0032, element.getName()), element);
+            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0032, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0032, element.getName()));
         }
         if (name == null) {
             name = element.getAttributeValue(XMLConfig_ElementNames.Configuration.Host.Attributes.NAME);
@@ -1213,7 +1213,7 @@
          Assertion.isNotNull(editor);
 
          if (!element.getName().equals(XMLConfig_ElementNames.Configuration.AuthenticationProviders.Provider.ELEMENT)) {
-             throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0033, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0033, element.getName()), element);
+             throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0033, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0033, element.getName()));
          }
 
          String name = element.getAttributeValue(XMLConfig_ElementNames.Configuration.AuthenticationProviders.Provider.Attributes.NAME);
@@ -1280,7 +1280,7 @@
         Assertion.isNotNull(editor);
 
         if (!element.getName().equals(XMLConfig_ElementNames.Configuration.Resources.Resource.ELEMENT)) {
-            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0034, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0034, element.getName()), element);
+            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0034, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0034, element.getName()));
         }
 
         String name = element.getAttributeValue(XMLConfig_ElementNames.Configuration.Resources.Resource.Attributes.NAME);
@@ -1335,7 +1335,7 @@
         Assertion.isNotNull(editor);
 
         if (!element.getName().equals(XMLConfig_ElementNames.ComponentTypes.ComponentType.ELEMENT)) {
-            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0035, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0035, element.getName()), element);
+            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0035, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0035, element.getName()));
         }
 
         // retreive the attributes of this ComponentType from the JDOM element
@@ -1488,7 +1488,7 @@
         Assertion.isNotNull(editor);
 
         if (!element.getName().equals(XMLConfig_ElementNames.Configuration.ELEMENT)) {
-            	throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0038, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0038, element.getName()), element);
+            	throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0038, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0038, element.getName()));
         }
 
         if (name==null) {
@@ -1572,7 +1572,7 @@
         Assertion.isNotNull(editor);
 
         if (!element.getName().equals(XMLConfig_ElementNames.Configuration.ConnectorComponents.ConnectorComponent.ELEMENT)) {
-            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0041, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0041,element.getName()), element);
+            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0041, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0041,element.getName()));
         }
 
         if (name==null) {
@@ -1646,7 +1646,7 @@
         Assertion.isNotNull(configID);
 
         if (!element.getName().equals(XMLConfig_ElementNames.Configuration.Services.Service.ELEMENT)) {
-            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0042, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0042,element.getName()), element);
+            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0042, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0042,element.getName()));
         }
 
         if (name==null) {
@@ -1847,7 +1847,7 @@
         DeployedComponent component;
        
         if (!element.getName().equals(XMLConfig_ElementNames.Configuration.DeployedService.ELEMENT)) {
-            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0044, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0044,element.getName()), element);
+            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0044, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0044,element.getName()));
         }
                              
         String name = element.getAttributeValue(XMLConfig_ElementNames.Configuration.DeployedService.Attributes.NAME);
@@ -1871,7 +1871,7 @@
         }
 
         if (type == null) {
-            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0050, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0050, new Object[] {componentTypeIDString, name} ), element);
+            throw new InvalidConfigurationElementException(ErrorMessageKeys.CONFIG_ERR_0050, CommonPlugin.Util.getString(ErrorMessageKeys.CONFIG_ERR_0050, new Object[] {componentTypeIDString, name} ));
         }  
         
         ServiceComponentDefnID svcid = null;
@@ -2099,7 +2099,7 @@
         Assertion.isNotNull(configID);
 
         if (!element.getName().equals(XMLConfig_ElementNames.Configuration.Process.ELEMENT)) {
-            throw new InvalidConfigurationElementException("A Configuration object cannot be created from a JDOM Element type: " + element.getName() + ".", element); //$NON-NLS-1$ //$NON-NLS-2$
+            throw new InvalidConfigurationElementException("A Configuration object cannot be created from a JDOM Element type: " + element.getName() + "."); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         if (name==null) {
@@ -2138,7 +2138,7 @@
     public PropertyDefinition createPropertyDefinition(Element element) throws InvalidConfigurationElementException{
 
         if (!element.getName().equals(XMLConfig_ElementNames.ComponentTypes.ComponentType.ComponentTypeDefn.PropertyDefinition.ELEMENT)) {
-            throw new InvalidConfigurationElementException("A Configuration object cannot be created from a JDOM Element type: " + element.getName() + ".", element); //$NON-NLS-1$ //$NON-NLS-2$
+            throw new InvalidConfigurationElementException("A Configuration object cannot be created from a JDOM Element type: " + element.getName() + "."); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         
@@ -2167,7 +2167,7 @@
         try {
             mult = Multiplicity.getInstance(multiplicityString);
         }catch(MultiplicityExpressionException e) {
-            throw new InvalidConfigurationElementException(e, "The PropertyDefinition object: " + nameString + " could not be created because the multiplicity definition: '" + multiplicityString + " is not a valid multiplicity definition.", element); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+            throw new InvalidConfigurationElementException(e, "The PropertyDefinition object: " + nameString + " could not be created because the multiplicity definition: '" + multiplicityString + " is not a valid multiplicity definition."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         }
 
         

Modified: trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperUtil.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperUtil.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/common/config/xml/XMLHelperUtil.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -49,7 +49,7 @@
         Properties props=new Properties();
         
         if (!element.getName().equals(XMLConfig_ElementNames.Header.ELEMENT)) {
-            throw new InvalidConfigurationElementException("This is not the header element: " + element.getName() + ".", element); //$NON-NLS-1$ //$NON-NLS-2$
+            throw new InvalidConfigurationElementException("This is not the header element: " + element.getName() + "."); //$NON-NLS-1$ //$NON-NLS-2$
         }
         
         List elements = element.getChildren();

Modified: trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/exception/PermissionNodeException.java
===================================================================
--- trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/exception/PermissionNodeException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/java/com/metamatrix/platform/admin/api/exception/PermissionNodeException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -100,20 +100,4 @@
     public String getMessage() {
         return super.getMessage() + " Resource: " + this.resourceName; //$NON-NLS-1$
     }
-    /**
-     * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
-     */
-    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
-        super.readExternal(in);
-        resourceName = (String)in.readObject();
-    }
-
-    /**
-     * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
-     */
-    public void writeExternal(ObjectOutput out) throws IOException {
-        super.writeExternal(out);
-        out.writeObject(resourceName);
-    }
-
 }

Modified: trunk/common-internal/src/main/resources/com/metamatrix/common/config/api/resourcetypemodel.xml
===================================================================
--- trunk/common-internal/src/main/resources/com/metamatrix/common/config/api/resourcetypemodel.xml	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/common-internal/src/main/resources/com/metamatrix/common/config/api/resourcetypemodel.xml	2009-04-24 16:12:37 UTC (rev 842)
@@ -34,96 +34,38 @@
 	</Header>
 	<ComponentTypes>
 		<ComponentType Name="XATransactionManager" ComponentTypeCode="4" Deployable="false" Deprecated="false" Monitorable="false">
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="metamatrix.xatxnmgr.log_base_dir" DisplayName="Logging Dir" ShortDescription="The relative location to the Host log directory where transaction logs are stored." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="true" IsMasked="false" IsModifiable="false" IsPreferred="false"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="metamatrix.xatxnmgr.max_timeout" DisplayName="Txn Timeout" ShortDescription="The default timeout (in milliseconds) for transactions." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="metamatrix.xatxnmgr.max_log_filesize_in_mb" DisplayName="Log File Size(MB)" ShortDescription="Max transaction console log File size" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="metamatrix.xatxnmgr.max_rolled_log_files" DisplayName="Max Log Files" ShortDescription="The Maximum number of rolled console log files to keep" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="metamatrix.xatxnmgr.separate_log" DisplayName="Separate Log" ShortDescription="Merge Txn Log with process log" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="metamatrix.xatxnmgr.txnstatus_port" DisplayName="Recovery Port" ShortDescription="Transaction Recovery Port (0-any available port)" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
-			</ComponentTypeDefn>
-			<ChangeHistory>
-				<Property Name="LastChangedBy">ConfigurationStartup</Property>
-				<Property Name="CreatedBy">ConfigurationStartup</Property>
-			</ChangeHistory>
+    		<PropertyDefinition Name="metamatrix.xatxnmgr.log_base_dir" DisplayName="Logging Dir" ShortDescription="The relative location to the Host log directory where transaction logs are stored." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="true" IsMasked="false" IsModifiable="false" IsPreferred="false"/>
+			<PropertyDefinition Name="metamatrix.xatxnmgr.max_timeout" DisplayName="Txn Timeout" ShortDescription="The default timeout (in milliseconds) for transactions." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
+			<PropertyDefinition Name="metamatrix.xatxnmgr.max_log_filesize_in_mb" DisplayName="Log File Size(MB)" ShortDescription="Max transaction console log File size" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
+			<PropertyDefinition Name="metamatrix.xatxnmgr.max_rolled_log_files" DisplayName="Max Log Files" ShortDescription="The Maximum number of rolled console log files to keep" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
+			<PropertyDefinition Name="metamatrix.xatxnmgr.separate_log" DisplayName="Separate Log" ShortDescription="Merge Txn Log with process log" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
+			<PropertyDefinition Name="metamatrix.xatxnmgr.txnstatus_port" DisplayName="Recovery Port" ShortDescription="Transaction Recovery Port (0-any available port)" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="false"/>
 		</ComponentType>
 		<ComponentType Name="JGroups" ComponentTypeCode="4" Deployable="false" Deprecated="false" Monitorable="false">
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="udp.multicast_supported" DisplayName="Multicast Supported" ShortDescription="Indicates if multicast supported." DefaultValue="true" Multiplicity="1" PropertyType="Boolean" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="udp.mcast_messagebus_port" DisplayName="MessageBus Multicast Port" ShortDescription="The multicast port number." DefaultValue="5555" Multiplicity="1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>			
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="udp.mcast_jndi_port" DisplayName="JNDI Registry Multicast Port" ShortDescription="The multicast port number." DefaultValue="5556" Multiplicity="1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>			
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="udp.mcast_addr" DisplayName="Multicast Address" ShortDescription="The multicast address." DefaultValue="224.30.10.10" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="ping.gossip_host" DisplayName="Ping Host Address" ShortDescription="The host address when multicast is not used." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>				
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="ping.gossip_port" DisplayName="Ping Host Port" ShortDescription="The host port when multicast is not used." DefaultValue="5555" Multiplicity="1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="ping.gossip_refresh" DisplayName="Ping Gossip Refresh" ShortDescription="Indicates how often the gossip server tries to refresh." DefaultValue="15000" Multiplicity="0..1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>	
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="ping.gossip_timout" DisplayName="Ping Gossip Timeout" ShortDescription="Indicates how soon the gossip server will timeout." DefaultValue="2000" Multiplicity="0..1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>	
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="ping.gossip_initialmembers" DisplayName="Ping Gossip Initial Num Mbrs" ShortDescription="Indicates the initial size of members to be joined." DefaultValue="3" Multiplicity="0..1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>	
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="jgroups.other.channel.settings" DisplayName="JGroups Other Settings" ShortDescription="This is the additional settings when creating the JGroups Channel." DefaultValue="MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):UNICAST(timeout=5000):pbcast.STABLE(desired_avg_gossip=20000):FRAG(frag_size=4096;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true):pbcast.STATE_TRANSFER" Multiplicity="0..1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>						
-			<ChangeHistory>
-				<Property Name="LastChangedBy">ConfigurationStartup</Property>
-				<Property Name="CreatedBy">ConfigurationStartup</Property>
-			</ChangeHistory>
+			<PropertyDefinition Name="udp.multicast_supported" DisplayName="Multicast Supported" ShortDescription="Indicates if multicast supported." DefaultValue="true" Multiplicity="1" PropertyType="Boolean" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="udp.mcast_messagebus_port" DisplayName="MessageBus Multicast Port" ShortDescription="The multicast port number." DefaultValue="5555" Multiplicity="1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="udp.mcast_addr" DisplayName="Multicast Address" ShortDescription="The multicast address." DefaultValue="224.30.10.10" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="ping.gossip_host" DisplayName="Ping Host Address" ShortDescription="The host address when multicast is not used." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="ping.gossip_port" DisplayName="Ping Host Port" ShortDescription="The host port when multicast is not used." DefaultValue="5555" Multiplicity="1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="ping.gossip_refresh" DisplayName="Ping Gossip Refresh" ShortDescription="Indicates how often the gossip server tries to refresh." DefaultValue="15000" Multiplicity="0..1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="ping.gossip_timout" DisplayName="Ping Gossip Timeout" ShortDescription="Indicates how soon the gossip server will timeout." DefaultValue="2000" Multiplicity="0..1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="ping.gossip_initialmembers" DisplayName="Ping Gossip Initial Num Mbrs" ShortDescription="Indicates the initial size of members to be joined." DefaultValue="3" Multiplicity="0..1" PropertyType="Integer" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="jgroups.other.channel.settings" DisplayName="JGroups Other Settings" ShortDescription="This is the additional settings when creating the JGroups Channel." DefaultValue="MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800):UNICAST(timeout=5000):pbcast.STABLE(desired_avg_gossip=20000):FRAG(frag_size=4096;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true):pbcast.STATE_TRANSFER" Multiplicity="0..1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
 		</ComponentType>
 		<ComponentType Name="SSL" ComponentTypeCode="4" Deployable="false" Deprecated="false" Monitorable="false">
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.keystore.filename" DisplayName="Keystore Filename" ShortDescription="Name and location of keystore file." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.keystore.Password" DisplayName="Keystore Password" ShortDescription="Keystore Password" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="true" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>			
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.keystoretype" DisplayName="KeyStore Type" ShortDescription="Keystore Type" DefaultValue="JKS" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>			
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.protocol" DisplayName="SSL Protocol" ShortDescription="SLL Protocol" DefaultValue="SSLv3" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>			
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.keymanagementalgorithm" DisplayName="Key Management Algorithm" ShortDescription="Key Management Protocol" DefaultValue="SunX509" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>			
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.truststore.filename" DisplayName="TrustStore Filename" ShortDescription="Name and location of truststore file." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.truststore.Password" DisplayName="TrustStore Password" ShortDescription="TrustStore Password" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="true" IsModifiable="true" IsPreferred="true"/>
-			</ComponentTypeDefn>			
-			<ComponentTypeDefn Deprecated="false">
-				<PropertyDefinition Name="com.metamatrix.ssl.authenticationMode" DisplayName="Authentication Mode" ShortDescription="Prefered authentication mode" DefaultValue="1-way" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true">
-			    	<AllowedValue>anonymous</AllowedValue>
-                    <AllowedValue>1-way</AllowedValue>
-                    <AllowedValue>2-way</AllowedValue>
-				</PropertyDefinition>
-			</ComponentTypeDefn>			
+			<PropertyDefinition Name="com.metamatrix.ssl.keystore.filename" DisplayName="Keystore Filename" ShortDescription="Name and location of keystore file." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="com.metamatrix.ssl.keystore.Password" DisplayName="Keystore Password" ShortDescription="Keystore Password" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="true" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="com.metamatrix.ssl.keystoretype" DisplayName="KeyStore Type" ShortDescription="Keystore Type" DefaultValue="JKS" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="com.metamatrix.ssl.protocol" DisplayName="SSL Protocol" ShortDescription="SLL Protocol" DefaultValue="SSLv3" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="com.metamatrix.ssl.keymanagementalgorithm" DisplayName="Key Management Algorithm" ShortDescription="Key Management Protocol" DefaultValue="SunX509" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="com.metamatrix.ssl.truststore.filename" DisplayName="TrustStore Filename" ShortDescription="Name and location of truststore file." DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="com.metamatrix.ssl.truststore.Password" DisplayName="TrustStore Password" ShortDescription="TrustStore Password" DefaultValue="" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="false" IsExpert="false" IsHidden="false" IsMasked="true" IsModifiable="true" IsPreferred="true"/>
+			<PropertyDefinition Name="com.metamatrix.ssl.authenticationMode" DisplayName="Authentication Mode" ShortDescription="Prefered authentication mode" DefaultValue="1-way" Multiplicity="1" PropertyType="String" ValueDelimiter="," IsConstrainedToAllowedValues="true" IsExpert="false" IsHidden="false" IsMasked="false" IsModifiable="true" IsPreferred="true">
+		    	<AllowedValue>anonymous</AllowedValue>
+                <AllowedValue>1-way</AllowedValue>
+                <AllowedValue>2-way</AllowedValue>
+			</PropertyDefinition>
 		</ComponentType>
 	</ComponentTypes>
-
 </ConfigurationDocument>
 

Modified: trunk/connector-api/src/main/java/org/teiid/connector/api/ConnectorException.java
===================================================================
--- trunk/connector-api/src/main/java/org/teiid/connector/api/ConnectorException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/connector-api/src/main/java/org/teiid/connector/api/ConnectorException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -47,6 +47,15 @@
     public ConnectorException( String message ) {
         super( message );
     }
+    
+    public ConnectorException( String errorCode, String message ) {
+        super( errorCode, message );
+    }
+    
+    public ConnectorException( int errorCode, String message ) {
+        super( Integer.toString(errorCode), message );
+    }    
+    
 
     /**
      * Construct an instance from a message and an exception to chain to this one.

Modified: trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCExecutionException.java
===================================================================
--- trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCExecutionException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/connectors/connector-jdbc/src/main/java/org/teiid/connector/jdbc/JDBCExecutionException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -33,9 +33,7 @@
 
 	public JDBCExecutionException(SQLException error,
 			TranslatedCommand... commands) {
-		super(commands == null ? error.getMessage() : JDBCPlugin.Util
-				.getString("JDBCQueryExecution.Error_executing_query__1", //$NON-NLS-1$
+		super(error.getErrorCode(), commands == null ? error.getMessage() : JDBCPlugin.Util.getString("JDBCQueryExecution.Error_executing_query__1", //$NON-NLS-1$
 						error.getMessage(), Arrays.toString(commands)));
 	}
-
 }

Modified: trunk/console/src/main/java/com/metamatrix/common/callback/CallbackHandler.java
===================================================================
--- trunk/console/src/main/java/com/metamatrix/common/callback/CallbackHandler.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/console/src/main/java/com/metamatrix/common/callback/CallbackHandler.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -49,10 +49,9 @@
      * and which contain the information requested to be retrieved or displayed.
      * @param source the object that is considered the source of the callbacks.
      * @throws IOException if an input or output error occurs
-     * @throws UnsupportedCallbackException if the implementation of this method
      * does not support one or more of the Callbacks specified in the callbacks parameter
      */
-    void handle(Callback callback, Object source) throws IOException, UnsupportedCallbackException;
+    void handle(Callback callback, Object source) throws IOException;
 
 }
 

Deleted: trunk/console/src/main/java/com/metamatrix/common/callback/UnsupportedCallbackException.java
===================================================================
--- trunk/console/src/main/java/com/metamatrix/common/callback/UnsupportedCallbackException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/console/src/main/java/com/metamatrix/common/callback/UnsupportedCallbackException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -1,93 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * See the COPYRIGHT.txt file distributed with this work for information
- * regarding copyright ownership.  Some portions may be licensed
- * to Red Hat, Inc. under one or more contributor license agreements.
- * 
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- * 
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- * 
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301 USA.
- */
-
-package com.metamatrix.common.callback;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-
-import com.metamatrix.api.exception.MetaMatrixException;
-
-/**
- * Exception which occurs if an error occurs within the server that is not
- * business-related.  For instance, if a service or bean is not available
- * or communication fails.
- */
-public class UnsupportedCallbackException extends MetaMatrixException {
-
-    private Callback callback;
-
-    /**
-     * No-arg costructor required by Externalizable semantics
-     */
-    public UnsupportedCallbackException() {
-        super();
-    }
-    
-    /**
-     * Construct an instance with the message specified.
-     * @param callback the callback instance that is not supported
-     * @param message A message describing the exception
-     */
-    public UnsupportedCallbackException( Callback callback, String message ) {
-        super( message );
-        this.callback = callback;
-    }
-
-    /**
-     * Construct an instance from a message and an exception to chain to this one.
-     * @param callback the callback instance that is not supported
-     * @param e An exception to nest within this one
-     * @param message A message describing the exception
-     */
-    public UnsupportedCallbackException( Callback callback, Exception e, String message ) {
-        super( e, message );
-        this.callback = callback;
-    }
-
-    public Callback getCallback() {
-        return this.callback;
-    }
-
-    /**
-     * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
-     */
-    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
-        super.readExternal(in);
-        callback = (Callback)in.readObject();
-    }
-
-    /**
-     * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
-     */
-    public void writeExternal(ObjectOutput out) throws IOException {
-        super.writeExternal(out);
-        try {
-            out.writeObject(callback);
-        } catch (Throwable t) {
-            out.writeObject(null);
-        }
-    }
-
-}
-

Modified: trunk/console/src/main/java/com/metamatrix/toolbox/ui/callback/DialogFactoryCallbackHandler.java
===================================================================
--- trunk/console/src/main/java/com/metamatrix/toolbox/ui/callback/DialogFactoryCallbackHandler.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/console/src/main/java/com/metamatrix/toolbox/ui/callback/DialogFactoryCallbackHandler.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -40,7 +40,6 @@
 import com.metamatrix.common.callback.Callback;
 import com.metamatrix.common.callback.CallbackChoices;
 import com.metamatrix.common.callback.CallbackHandler;
-import com.metamatrix.common.callback.UnsupportedCallbackException;
 import com.metamatrix.common.object.PropertiedObject;
 import com.metamatrix.common.object.PropertiedObjectEditor;
 import com.metamatrix.common.object.PropertyDefinitionGroup;
@@ -99,10 +98,9 @@
      * and which contain the information requested to be retrieved or displayed.
      * @param source the object that is considered the source of the callbacks.
      * @throws IOException if an input or output error occurs
-     * @throws UnsupportedCallbackException if the implementation of this method
      * does not support one or more of the Callbacks specified in the callbacks parameter
      */
-    public void handle(Callback callback, Object source) throws IOException, UnsupportedCallbackException {
+    public void handle(Callback callback, Object source) throws IOException {
 
         Assertion.isNotNull(callback);
         this.currentCallback = callback;

Modified: trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestCriteriaEvaluator.java
===================================================================
--- trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestCriteriaEvaluator.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestCriteriaEvaluator.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -502,7 +502,7 @@
         try {
         	helpTestCompareSubqueryCriteria(crit, false, values);
         } catch (CriteriaEvaluationException e) {
-        	assertEquals("The subquery of this compare criteria has to be scalar, but returned more than one value: e1 = (<undefined>)", e.getMessage()); //$NON-NLS-1$
+        	assertEquals("Error Code:ERR.015.006.0056 Message:The subquery of this compare criteria has to be scalar, but returned more than one value: e1 = (<undefined>)", e.getMessage()); //$NON-NLS-1$
         }
     }
 

Modified: trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestExpressionEvaluator.java
===================================================================
--- trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestExpressionEvaluator.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/engine/src/test/java/com/metamatrix/query/processor/eval/TestExpressionEvaluator.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -189,7 +189,7 @@
             fail("Exception expected"); //$NON-NLS-1$
         } catch (MetaMatrixComponentException e){
         	//this should be a componentexception, since it is unexpected
-            assertEquals(e.getMessage(), "Unable to evaluate e2: No value was available"); //$NON-NLS-1$
+            assertEquals(e.getMessage(), "Error Code:ERR.015.006.0033 Message:Unable to evaluate e2: No value was available"); //$NON-NLS-1$
         }
     }
 
@@ -307,7 +307,7 @@
         	helpTestWithValueIterator(expr, values, null);
             fail("Expected ExpressionEvaluationException but got none"); //$NON-NLS-1$
         } catch (ExpressionEvaluationException e) {
-            assertEquals("Unable to evaluate (<undefined>): The command of this scalar subquery returned more than one value: <undefined>", e.getMessage()); //$NON-NLS-1$
+            assertEquals("Error Code:ERR.015.006.0058 Message:Unable to evaluate (<undefined>): Error Code:ERR.015.006.0058 Message:The command of this scalar subquery returned more than one value: <undefined>", e.getMessage()); //$NON-NLS-1$
         } 
     }
 

Modified: trunk/engine/src/test/java/com/metamatrix/query/processor/proc/TestProcedureProcessor.java
===================================================================
--- trunk/engine/src/test/java/com/metamatrix/query/processor/proc/TestProcedureProcessor.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/engine/src/test/java/com/metamatrix/query/processor/proc/TestProcedureProcessor.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -459,7 +459,7 @@
 
 		ProcessorPlan plan = getProcedurePlan(userUpdateStr, metadata);
 									 
-        helpTestProcessFailure(false, plan, dataMgr, "Error processing the AssignmentStatement in stored procedure language, expected to get a single row of data to be assigned to the variable ROWS_UPDATED but got more."); //$NON-NLS-1$ 
+        helpTestProcessFailure(false, plan, dataMgr, "Error Code:ERR.015.006.0019 Message:Error processing the AssignmentStatement in stored procedure language, expected to get a single row of data to be assigned to the variable ROWS_UPDATED but got more."); //$NON-NLS-1$ 
     }
 
     // error statement

Modified: trunk/engine/src/test/java/com/metamatrix/query/processor/relational/TestProjectNode.java
===================================================================
--- trunk/engine/src/test/java/com/metamatrix/query/processor/relational/TestProjectNode.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/engine/src/test/java/com/metamatrix/query/processor/relational/TestProjectNode.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -246,7 +246,7 @@
             Arrays.asList(new Object[] { "1" }),  //$NON-NLS-1$
             Arrays.asList(new Object[] { "2x" }) }; //$NON-NLS-1$
 
-        String expectedMessage = "Unable to evaluate convert(e1, integer): Error while evaluating function convert"; //$NON-NLS-1$
+        String expectedMessage = "ERROR CODE:ERR.015.001.0003 MESSAGE:Unable to evaluate convert(e1, integer): ERROR CODE:ERR.015.001.0003 MESSAGE:Error while evaluating function convert"; //$NON-NLS-1$
 
         helpTestProjectFails(projectElements, data, elements, expectedMessage);        
     }

Modified: trunk/engine/src/test/java/com/metamatrix/query/resolver/TestFunctionResolving.java
===================================================================
--- trunk/engine/src/test/java/com/metamatrix/query/resolver/TestFunctionResolving.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/engine/src/test/java/com/metamatrix/query/resolver/TestFunctionResolving.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -47,7 +47,7 @@
             ResolverVisitor.resolveLanguageObject(function, FakeMetadataFactory.example1Cached());
             fail("excpetion expected"); //$NON-NLS-1$
         } catch (QueryResolverException err) {
-            assertEquals("The conversion from char to date is not allowed.", err.getMessage()); //$NON-NLS-1$
+            assertEquals("Error Code:ERR.015.008.0037 Message:The conversion from char to date is not allowed.", err.getMessage()); //$NON-NLS-1$
         } 
     }
     
@@ -79,7 +79,7 @@
         	ResolverVisitor.resolveLanguageObject(function, FakeMetadataFactory.example1Cached());
             fail("excpetion expected"); //$NON-NLS-1$
         } catch (QueryResolverException err) {
-            assertEquals("The function 'LCASE(?)' has more than one possible signature.", err.getMessage()); //$NON-NLS-1$
+            assertEquals("Error Code:ERR.015.008.0036 Message:The function 'LCASE(?)' has more than one possible signature.", err.getMessage()); //$NON-NLS-1$
         } 
     }
     

Modified: trunk/engine/src/test/java/com/metamatrix/query/resolver/TestResolver.java
===================================================================
--- trunk/engine/src/test/java/com/metamatrix/query/resolver/TestResolver.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/engine/src/test/java/com/metamatrix/query/resolver/TestResolver.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -895,11 +895,11 @@
     }
 
 	public void testUnknownFunction() {	    
-		helpResolveException("SELECT abc(e1) FROM pm1.g1", "The function 'abc(e1)' is an unknown form.  Check that the function name and number of arguments is correct."); //$NON-NLS-1$ //$NON-NLS-2$
+		helpResolveException("SELECT abc(e1) FROM pm1.g1", "Error Code:ERR.015.008.0039 Message:The function 'abc(e1)' is an unknown form.  Check that the function name and number of arguments is correct."); //$NON-NLS-1$ //$NON-NLS-2$
 	}
 
 	public void testConversionNotPossible() {	    
-		helpResolveException("SELECT dayofmonth('2002-01-01') FROM pm1.g1", "The function 'dayofmonth('2002-01-01')' is a valid function form, but the arguments do not match a known type signature and cannot be converted using implicit type conversions."); //$NON-NLS-1$ //$NON-NLS-2$
+		helpResolveException("SELECT dayofmonth('2002-01-01') FROM pm1.g1", "Error Code:ERR.015.008.0040 Message:The function 'dayofmonth('2002-01-01')' is a valid function form, but the arguments do not match a known type signature and cannot be converted using implicit type conversions."); //$NON-NLS-1$ //$NON-NLS-2$
 	}
     
     public void testResolveParameters() {
@@ -1667,7 +1667,7 @@
         String userUpdateStr = "UPDATE vm1.g1 SET e1='x'"; //$NON-NLS-1$
         
 		helpFailUpdateProcedure(procedure, userUpdateStr,
-									 FakeMetadataObject.Props.UPDATE_PROCEDURE, "The expressions in this criteria are being compared but are of differing types (boolean and date) and no implicit conversion is available:  CHANGING.e4 = {d'2000-01-01'}"); //$NON-NLS-1$
+									 FakeMetadataObject.Props.UPDATE_PROCEDURE, "Error Code:ERR.015.008.0027 Message:The expressions in this criteria are being compared but are of differing types (boolean and date) and no implicit conversion is available:  CHANGING.e4 = {d'2000-01-01'}"); //$NON-NLS-1$
     }       
     
 	// virtual group elements used in procedure(HAS CRITERIA)
@@ -2268,7 +2268,7 @@
         procedure = procedure + "ROWS_UPDATED =0;\n";         //$NON-NLS-1$
         procedure = procedure + "END\n"; //$NON-NLS-1$
 
-        helpResolveException(procedure, FakeMetadataFactory.example1Cached(), "Unable to resolve update procedure as the virtual group context is ambiguous."); //$NON-NLS-1$
+        helpResolveException(procedure, FakeMetadataFactory.example1Cached(), "Error Code:ERR.015.008.0012 Message:Unable to resolve update procedure as the virtual group context is ambiguous."); //$NON-NLS-1$
     }
     
     public void testDefect14912_CreateUpdateProcedure57_FunctionWithElementParamInAssignmentStatement() {
@@ -2337,7 +2337,7 @@
         procedure = procedure + "END\n"; //$NON-NLS-1$
         
         QueryMetadataInterface metadata = exampleStoredProcedure(procedure);
-        helpResolveException("EXEC pm1.sq1(1)", metadata, "INSERT statement must have the same number of elements and values specified.  This statement has 0 elements and 0 values."); //$NON-NLS-1$ //$NON-NLS-2$
+        helpResolveException("EXEC pm1.sq1(1)", metadata, "Error Code:ERR.015.008.0010 Message:INSERT statement must have the same number of elements and values specified.  This statement has 0 elements and 0 values."); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
  	private QueryMetadataInterface exampleStoredProcedure(String procedure) {
@@ -2522,7 +2522,7 @@
     }   
         
     public void testFailedConversion_defect9725() throws Exception{
-    	helpResolveException("select * from pm3.g1 where pm3.g1.e4 > {b 'true'}", "The expressions in this criteria are being compared but are of differing types (timestamp and boolean) and no implicit conversion is available:  pm3.g1.e4 > TRUE"); //$NON-NLS-1$ //$NON-NLS-2$
+    	helpResolveException("select * from pm3.g1 where pm3.g1.e4 > {b 'true'}", "Error Code:ERR.015.008.0027 Message:The expressions in this criteria are being compared but are of differing types (timestamp and boolean) and no implicit conversion is available:  pm3.g1.e4 > TRUE"); //$NON-NLS-1$ //$NON-NLS-2$
     }
     
     /**
@@ -3043,11 +3043,11 @@
      * the group g1 is not known to the order by clause of a union
      */
     public void testUnionOrderByFail() {
-        helpResolveException("SELECT pm1.g1.e1 FROM pm1.g1 UNION SELECT pm1.g2.e1 FROM pm1.g2 ORDER BY g1.e1", "Element 'g1.e1' in ORDER BY was not found in SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
+        helpResolveException("SELECT pm1.g1.e1 FROM pm1.g1 UNION SELECT pm1.g2.e1 FROM pm1.g2 ORDER BY g1.e1", "Error Code:ERR.015.008.0043 Message:Element 'g1.e1' in ORDER BY was not found in SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
     }      
     
     public void testUnionOrderByFail1() {
-        helpResolveException("SELECT pm1.g1.e1 FROM pm1.g1 UNION SELECT pm1.g2.e1 FROM pm1.g2 ORDER BY pm1.g1.e1", "Element 'pm1.g1.e1' in ORDER BY was not found in SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
+        helpResolveException("SELECT pm1.g1.e1 FROM pm1.g1 UNION SELECT pm1.g2.e1 FROM pm1.g2 ORDER BY pm1.g1.e1", "Error Code:ERR.015.008.0043 Message:Element 'pm1.g1.e1' in ORDER BY was not found in SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
     }
     
     public void testOrderByPartiallyQualified() {
@@ -3718,7 +3718,7 @@
     }
     
     public void testParameterError() throws Exception {
-        helpResolveException("EXEC pm1.sp2(1, 2)", metadata, "Incorrect number of parameters specified on the stored procedure pm1.sp2 - expected 1 but got 2"); //$NON-NLS-1$ //$NON-NLS-2$
+        helpResolveException("EXEC pm1.sp2(1, 2)", metadata, "Error Code:ERR.015.008.0007 Message:Incorrect number of parameters specified on the stored procedure pm1.sp2 - expected 1 but got 2"); //$NON-NLS-1$ //$NON-NLS-2$
     }
     
     public void testUnionOfAliasedLiteralsGetsModified() {
@@ -3845,7 +3845,7 @@
         procedure = procedure + "DECLARE string VARIABLES.X = 1;\n";         //$NON-NLS-1$
         procedure = procedure + "END\n";         //$NON-NLS-1$
 
-        helpResolveException(procedure, "Unable to resolve element: VARIABLES.X"); //$NON-NLS-1$
+        helpResolveException(procedure, "Error Code:ERR.015.008.0019 Message:Unable to resolve element: VARIABLES.X"); //$NON-NLS-1$
     }
     
     public void testCreate() {
@@ -4239,7 +4239,7 @@
     public void testLookupWithoutConstant() throws Exception{
         String sql = "SELECT lookup('pm1.g1', convert('e3', float), 'e2', e2) FROM pm1.g1"; //$NON-NLS-1$
         
-        helpResolveException(sql, metadata, "The first three arguments for the LOOKUP function must be specified as constants."); //$NON-NLS-1$
+        helpResolveException(sql, metadata, "Error Code:ERR.015.008.0063 Message:The first three arguments for the LOOKUP function must be specified as constants."); //$NON-NLS-1$
     }
     
     /**
@@ -4284,19 +4284,19 @@
     public void testUpdateError() {
         String userUpdateStr = "UPDATE vm1.g2 SET e1='x'"; //$NON-NLS-1$
         
-        helpResolveException(userUpdateStr, metadata, "Update is not allowed on the virtual group vm1.g2: no Update procedure was defined."); //$NON-NLS-1$
+        helpResolveException(userUpdateStr, metadata, "Error Code:ERR.015.008.0009 Message:Update is not allowed on the virtual group vm1.g2: no Update procedure was defined."); //$NON-NLS-1$
     }
     
     public void testInsertError() {
         String userUpdateStr = "INSERT into vm1.g2 (e1) values ('x')"; //$NON-NLS-1$
         
-        helpResolveException(userUpdateStr, metadata, "Insert is not allowed on the virtual group vm1.g2: no Insert procedure was defined."); //$NON-NLS-1$
+        helpResolveException(userUpdateStr, metadata, "Error Code:ERR.015.008.0009 Message:Insert is not allowed on the virtual group vm1.g2: no Insert procedure was defined."); //$NON-NLS-1$
     }
     
     public void testDeleteError() {
         String userUpdateStr = "DELETE from vm1.g2 where e1='x'"; //$NON-NLS-1$
         
-        helpResolveException(userUpdateStr, metadata, "Delete is not allowed on the virtual group vm1.g2: no Delete procedure was defined."); //$NON-NLS-1$
+        helpResolveException(userUpdateStr, metadata, "Error Code:ERR.015.008.0009 Message:Delete is not allowed on the virtual group vm1.g2: no Delete procedure was defined."); //$NON-NLS-1$
     }
     
     public void testResolveXMLSelect() {
@@ -4306,13 +4306,13 @@
         procedure = procedure + "select VARIABLES.X from xmltest.doc1;\n"; //$NON-NLS-1$
         procedure = procedure + "END\n";         //$NON-NLS-1$
 
-        helpResolveException(procedure, "Unable to resolve element: VARIABLES.X"); //$NON-NLS-1$
+        helpResolveException(procedure, "Error Code:ERR.015.008.0019 Message:Unable to resolve element: VARIABLES.X"); //$NON-NLS-1$
     }
     
     public void testXMLJoinFail() {
         String query = "select * from xmltest.doc1, xmltest.doc1"; //$NON-NLS-1$
          
-        helpResolveException(query, "Only one XML document may be specified in the FROM clause of a query."); //$NON-NLS-1$
+        helpResolveException(query, "Error Code:ERR.015.008.0003 Message:Only one XML document may be specified in the FROM clause of a query."); //$NON-NLS-1$
     }
     
     public void testExecProjectedSymbols() {
@@ -4417,13 +4417,13 @@
     public void testInsertWithoutColumnsFails() {
         String sql = "Insert into pm1.g1 values (1, 2)"; //$NON-NLS-1$
         
-        helpResolveException(sql, "INSERT statement must have the same number of elements and values specified.  This statement has 4 elements and 2 values."); //$NON-NLS-1$
+        helpResolveException(sql, "Error Code:ERR.015.008.0010 Message:INSERT statement must have the same number of elements and values specified.  This statement has 4 elements and 2 values."); //$NON-NLS-1$
     }
     
     public void testInsertWithoutColumnsFails1() {
         String sql = "Insert into pm1.g1 values (1, 2, 3, 4)"; //$NON-NLS-1$
         
-        helpResolveException(sql, "Exception converting value 3 of type class java.lang.Integer to expected type class java.lang.Boolean"); //$NON-NLS-1$
+        helpResolveException(sql, "Error Code:ERR.003.029.0011 Message:Exception converting value 3 of type class java.lang.Integer to expected type class java.lang.Boolean"); //$NON-NLS-1$
     }
     
     public void testInsertWithQueryFails() {
@@ -4472,11 +4472,11 @@
     }
         
     public void testNumberedOrderBy1_4_fails() throws Exception {
-        helpResolveException("SELECT pm1.g1.e1 as a, avg(e2) as a FROM pm1.g1 ORDER BY 1", "Element 'a' in ORDER BY is ambiguous and may refer to more than one element of SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
+        helpResolveException("SELECT pm1.g1.e1 as a, avg(e2) as a FROM pm1.g1 ORDER BY 1", "Error Code:ERR.015.008.0042 Message:Element 'a' in ORDER BY is ambiguous and may refer to more than one element of SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
     }
     
     public void testNumberedOrderBy6_fails() throws Exception {
-        helpResolveException("SELECT a.e1, b.e1 FROM pm1.g1 AS a, pm1.g1 AS b ORDER BY 2", "Element 'e1' in ORDER BY is ambiguous and may refer to more than one element of SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
+        helpResolveException("SELECT a.e1, b.e1 FROM pm1.g1 AS a, pm1.g1 AS b ORDER BY 2", "Error Code:ERR.015.008.0042 Message:Element 'e1' in ORDER BY is ambiguous and may refer to more than one element of SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
     }
     
     public void testResolveOldProcRelational() {
@@ -4500,7 +4500,7 @@
 	public void testCallableStatementTooManyParameters() throws Exception {
 		String sql = "{call pm4.spTest9(?, ?)}"; //$NON-NLS-1$
 		
-		TestResolver.helpResolveException(sql, FakeMetadataFactory.exampleBQTCached(), "Incorrect number of parameters specified on the stored procedure pm4.spTest9 - expected 1 but got 2"); //$NON-NLS-1$
+		TestResolver.helpResolveException(sql, FakeMetadataFactory.exampleBQTCached(), "Error Code:ERR.015.008.0007 Message:Incorrect number of parameters specified on the stored procedure pm4.spTest9 - expected 1 but got 2"); //$NON-NLS-1$
 	}	
 	
 	/**
@@ -4535,7 +4535,7 @@
         String userUpdateStr = "UPDATE vm1.g1 SET e1=1"; //$NON-NLS-1$
         
 		helpFailUpdateProcedure(procedure, userUpdateStr,
-				 FakeMetadataObject.Props.UPDATE_PROCEDURE, "Cannot set symbol 'pm1.g1.e4' with expected type double to expression 'convert(var1, string)'"); //$NON-NLS-1$
+				 FakeMetadataObject.Props.UPDATE_PROCEDURE, "Error Code:ERR.015.008.0041 Message:Cannot set symbol 'pm1.g1.e4' with expected type double to expression 'convert(var1, string)'"); //$NON-NLS-1$
     }
     
     // special variable INPUT compared against invalid type
@@ -4550,7 +4550,7 @@
         String userUpdateStr = "UPDATE vm1.g1 SET e1='x'"; //$NON-NLS-1$
         
 		helpFailUpdateProcedure(procedure, userUpdateStr,
-				 FakeMetadataObject.Props.UPDATE_PROCEDURE, "Cannot set symbol 'pm1.g1.e2' with expected type integer to expression 'INPUT.e1'"); //$NON-NLS-1$
+				 FakeMetadataObject.Props.UPDATE_PROCEDURE, "Error Code:ERR.015.008.0041 Message:Cannot set symbol 'pm1.g1.e2' with expected type integer to expression 'INPUT.e1'"); //$NON-NLS-1$
     }
     
     public void testUpdateSetClauseReferenceType() {
@@ -4566,7 +4566,7 @@
     public void testNoTypeCriteria() {
     	String sql = "select * from pm1.g1 where ? = ?"; //$NON-NLS-1$
     	
-    	helpResolveException(sql, FakeMetadataFactory.example1Cached(), "Expression '? = ?' has a parameter with non-determinable type information.  The use of an explicit convert may be necessary."); //$NON-NLS-1$
+    	helpResolveException(sql, FakeMetadataFactory.example1Cached(), "Error Code:ERR.015.008.0026 Message:Expression '? = ?' has a parameter with non-determinable type information.  The use of an explicit convert may be necessary."); //$NON-NLS-1$
     }
     
     public void testReferenceInSelect() {
@@ -4622,7 +4622,7 @@
     
     // ambiguous, should fail
     public void testOrderBy_J658d() {
-        helpResolveException("SELECT pm1.g1.e1, e2 as x, e3 as x FROM pm1.g1 ORDER BY x, e1 ", "Element 'x' in ORDER BY is ambiguous and may refer to more than one element of SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
+        helpResolveException("SELECT pm1.g1.e1, e2 as x, e3 as x FROM pm1.g1 ORDER BY x, e1 ", "Error Code:ERR.015.008.0042 Message:Element 'x' in ORDER BY is ambiguous and may refer to more than one element of SELECT clause."); //$NON-NLS-1$ //$NON-NLS-2$
     }
     public void testOrderBy_J658e() {
         Query resolvedQuery = (Query) helpResolve("SELECT pm1.g1.e1, e2 as x, e3 as e2 FROM pm1.g1 ORDER BY x, e2 "); //$NON-NLS-1$

Modified: trunk/engine/src/test/java/com/metamatrix/query/rewriter/TestQueryRewriter.java
===================================================================
--- trunk/engine/src/test/java/com/metamatrix/query/rewriter/TestQueryRewriter.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/engine/src/test/java/com/metamatrix/query/rewriter/TestQueryRewriter.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -411,7 +411,7 @@
             QueryRewriter.rewriteCriteria(origCrit, null, null, null);
             fail("Expected failure"); //$NON-NLS-1$
         } catch(QueryValidatorException e) { 
-            assertEquals("Error simplifying criteria: PARSEDATE(pm3.g1.e1, '''') = {d'2003-05-01'}", e.getMessage());     //$NON-NLS-1$
+            assertEquals("Error Code:ERR.015.001.0003 Message:Error simplifying criteria: PARSEDATE(pm3.g1.e1, '''') = {d'2003-05-01'}", e.getMessage());     //$NON-NLS-1$
         }
     }
     
@@ -1515,8 +1515,9 @@
         try { 
             QueryRewriter.rewriteCriteria(origCrit, null, null, null);
             fail("Expected QueryValidatorException due to divide by 0"); //$NON-NLS-1$
-        } catch(QueryValidatorException e) {
-            assertEquals("Unable to evaluate (5 / 0): Error while evaluating function /", e.getMessage());  //$NON-NLS-1$
+        } catch(QueryValidatorException e) {
+        	// looks like message is being wrapped with another exception with same message
+            assertEquals("Error Code:ERR.015.001.0003 Message:Error Code:ERR.015.001.0003 Message:Unable to evaluate (5 / 0): Error Code:ERR.015.001.0003 Message:Error while evaluating function /", e.getMessage());  //$NON-NLS-1$
         }       
     }
     
@@ -1529,7 +1530,7 @@
             QueryRewriter.rewriteCriteria(origCrit, null, null, null);
             fail("Expected QueryValidatorException due to invalid string"); //$NON-NLS-1$
         } catch(QueryValidatorException e) {
-            assertEquals("Unable to convert 'x' of type [string] to the expected type [integer].", e.getMessage()); //$NON-NLS-1$
+            assertEquals("Error Code:ERR.015.009.0004 Message:Unable to convert 'x' of type [string] to the expected type [integer].", e.getMessage()); //$NON-NLS-1$
         }       
     }
     

Modified: trunk/server/src/main/java/com/metamatrix/platform/config/spi/xml/ConfigTransactionException.java
===================================================================
--- trunk/server/src/main/java/com/metamatrix/platform/config/spi/xml/ConfigTransactionException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/server/src/main/java/com/metamatrix/platform/config/spi/xml/ConfigTransactionException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -29,27 +29,13 @@
 import com.metamatrix.common.config.api.exceptions.ConfigurationException;
 
 /**
- * Date Oct 10, 2002
- *
- * 
  * TransactionException exception indicates that the request cannot be
  * executed because of an error with the transaction.
  */
 
 public class ConfigTransactionException extends ConfigurationException {
 
-    //the transState indicates the state of the transaction
-    private String transState = ""; //$NON-NLS-1$
-
-    public void setTransactionState(String code) {
-        this.transState = code;
-    }
-    
-    public String getTransactionState() {
-        return this.transState;
-    }
-    
-    /**
+	/**
      * Construct an instance with the message and error code specified.
      *
      * @param message A message describing the exception
@@ -81,22 +67,6 @@
         super( e, code, message );
     }
 
-    /**
-     * @see java.io.Externalizable#readExternal(java.io.ObjectInput)
-     */
-    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
-        super.readExternal(in);
-        transState = (String)in.readObject();
-    }
-
-    /**
-     * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
-     */
-    public void writeExternal(ObjectOutput out) throws IOException {
-        super.writeExternal(out);
-        out.writeObject(transState);
-    }
-
 } // END CLASS
 
 

Modified: trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceConnectionException.java
===================================================================
--- trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceConnectionException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceConnectionException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -66,8 +66,7 @@
      * @param code    The error code 
      */
     public AuthorizationSourceConnectionException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceException.java
===================================================================
--- trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/server/src/main/java/com/metamatrix/platform/security/authorization/spi/AuthorizationSourceException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -71,8 +71,7 @@
      * @param code    The error code 
      */
     public AuthorizationSourceException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and

Modified: trunk/server/src/main/java/com/metamatrix/platform/security/membership/spi/MembershipSourceException.java
===================================================================
--- trunk/server/src/main/java/com/metamatrix/platform/security/membership/spi/MembershipSourceException.java	2009-04-24 13:12:52 UTC (rev 841)
+++ trunk/server/src/main/java/com/metamatrix/platform/security/membership/spi/MembershipSourceException.java	2009-04-24 16:12:37 UTC (rev 842)
@@ -65,8 +65,7 @@
      * @param code    The error code 
      */
     public MembershipSourceException( String code, String message ) {
-        super( message );
-        setCode( code );
+        super( code, message );
     }
     /**
      * Construct an instance with a linked exception, and an error code and




More information about the teiid-commits mailing list