Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/HIVEMIND-65

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-65
    Summary: Exception message to imprecise
       Type: Improvement

     Status: Unassigned
   Priority: Minor

    Project: HiveMind
 Components: 
             framework
   Versions:
             1.0
             1.1

   Assignee: 
   Reporter: Stefan Liebig

    Created: Tue, 5 Oct 2004 1:05 AM
    Updated: Tue, 5 Oct 2004 1:05 AM
Environment: jkd 1.4.2, Win 2000

Description:
Having a service which requires for successfull construction a few other 
services. Those services get injected by constructor injection. If one of the 
required services has not been defined (implemented), the exception is as 
follows:

org.apache.hivemind.ApplicationRuntimeException: Unable to construct service 
spirit.security.base.AuthorizationController: Instance factory for service 
spirit.security.base.AuthorizationController returned null.
        at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:156)
        at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:130)
        at 
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
        at $InnerProxy_ff680b9ca9_15._service($InnerProxy_ff680b9ca9_15.java)
        at 
$InnerProxy_ff680b9ca9_15.checkPermission($InnerProxy_ff680b9ca9_15.java)
        at 
$SingletonProxy_ff680b9c99_14.checkPermission($SingletonProxy_ff680b9c99_14.java)
        at 
de.compeople.spirit.security.base.authorization.AuthorizationControllerTest.testGetComponent(AuthorizationControllerTest.java:49)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:583)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:207)
Caused by: org.apache.hivemind.ApplicationRuntimeException: Instance factory 
for service spirit.security.base.AuthorizationController returned null.
        at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:103)
        at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:148)
        ... 19 more


Unfortunatly the exception message, does not tell the real cause, e.g. which 
required service could not be constructed.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to