directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r328280 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContext.java
Date Tue, 25 Oct 2005 06:22:25 GMT
Author: akarasulu
Date: Mon Oct 24 23:22:22 2005
New Revision: 328280

URL: http://svn.apache.org/viewcvs?rev=328280&view=rev
Log:
DIREVE-280 improvement changes - http://issues.apache.org/jira/browse/DIREVE-280

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContext.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContext.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContext.java?rev=328280&r1=328279&r2=328280&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/ServerContext.java
Mon Oct 24 23:22:22 2005
@@ -382,8 +382,6 @@
         // Check for Referenceable
         if ( obj instanceof Referenceable )
         {
-            obj = ( ( Referenceable ) obj ).getReference();
-
             throw new NamingException( "Do not know how to store Referenceables yet!" );
         }
 
@@ -579,9 +577,7 @@
     public Object lookup( Name name ) throws NamingException
     {
         Object obj;
-
         LdapName target = buildTarget( name );
-
         Attributes attributes = nexusProxy.lookup( target );
 
         try
@@ -590,7 +586,11 @@
         }
         catch ( Exception e )
         {
-            throw new NamingException( e.getMessage() );
+            String msg = "Failed to create an object for " + target;
+            msg += " using object factories within the context's environment.";
+            NamingException ne = new NamingException( msg );
+            ne.setRootCause( e );
+            throw ne;
         }
 
         if ( obj != null )



Mime
View raw message