You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by da...@apache.org on 2015/09/10 12:04:39 UTC

svn commit: r1702205 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java

Author: davidb
Date: Thu Sep 10 10:04:39 2015
New Revision: 1702205

URL: http://svn.apache.org/r1702205
Log:
Add some extra diagnostic information to log message for ServiceException when factory returns null.

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java?rev=1702205&r1=1702204&r2=1702205&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistrationImpl.java Thu Sep 10 10:04:39 2015
@@ -378,7 +378,7 @@ class ServiceRegistrationImpl implements
         else
         {
             throw new ServiceException(
-                "Service factory returned null.", ServiceException.FACTORY_ERROR);
+                "Service factory returned null. (" + m_factory + ")", ServiceException.FACTORY_ERROR);
         }
         return svcObj;
     }