Message:

   The following issue has been closed.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: HIVEMIND-25
    Summary: BuilderProperyFacet out of synch with hivemodule.sdl
       Type: Bug

     Status: Closed
   Priority: Blocker
 Resolution: FIXED

    Project: HiveMind
 Components: 
             framework
   Fix Fors:
             1.0
   Versions:
             1.0

   Assignee: Howard M. Lewis Ship
   Reporter: Naresh Sikha

    Created: Tue, 20 Jul 2004 1:45 PM
    Updated: Wed, 21 Jul 2004 7:02 AM

Description:
The

org.apache.hivemind.service.impl.BuilderPropertyFacet

class has the method setValue; however, the hivemodule.sdl:474:38 for HiveMind 
Framework declares a property of "attributeValue".

This causes an invalid mapping exception for <set-object/>. I suspect this is 
may be the case in other places that declare a property of "attributeValue" but 
map to class "BuilderFacet".

The bug goes away when I change "attributeValue" to "value" (sorry no can do on 
patches from this e-mail address:).

Thanks.

The hivemodule.xml that causes the error:

<?xml version="1.0" encoding="UTF-8"?>
<module id="service" version="1.0.0">
  <service-point id="HivemindService" interface="service.HivemindService">
    <invoke-factory service-id="hivemind.BuilderFactory">
      <construct class="service.HivemindServiceImpl" autowire-services="false">
        <set-object property="schwabxService" 
value="component:service.SchwabxService"/>
      </construct>
    </invoke-factory>
  </service-point>
</module>



The exeception stack trace follows:

[ERROR] ReadAttributeRule - Error at 
file:/C:/work/wsad-5.1.2/Barista2/zz/bin/META-INF/hivemodule.xml, line 6, 
column 89: Unable to process attribute value (of element construct/set-object): 
Class org.apache.hivemind.service.impl.BuilderPropertyFacet does not contain a 
property named 'attributeValue'. 
<org.apache.hivemind.ApplicationRuntimeException: Class 
org.apache.hivemind.service.impl.BuilderPropertyFacet does not contain a 
property named 
'attributeValue'.>org.apache.hivemind.ApplicationRuntimeException: Class 
org.apache.hivemind.service.impl.BuilderPropertyFacet does not contain a 
property named 'attributeValue'.
        at 
org.apache.hivemind.util.ClassAdaptor.getAdaptor(ClassAdaptor.java:120)
        at 
org.apache.hivemind.util.ClassAdaptor.getPropertyType(ClassAdaptor.java:88)
        at 
org.apache.hivemind.util.PropertyUtils.getPropertyType(PropertyUtils.java:93)
        at 
org.apache.hivemind.schema.rules.ReadAttributeRule.begin(ReadAttributeRule.java:79)
        at 
org.apache.hivemind.impl.SchemaElement.fireBegin(SchemaElement.java:171)
        at 
org.apache.hivemind.impl.SchemaProcessorImpl.processElement(SchemaProcessorImpl.java:206)
        at 
org.apache.hivemind.impl.SchemaProcessorImpl.processNestedElements(SchemaProcessorImpl.java:228)
        at 
org.apache.hivemind.impl.SchemaProcessorImpl.processElement(SchemaProcessorImpl.java:208)
        at 
org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement(SchemaProcessorImpl.java:181)
        at 
org.apache.hivemind.impl.SchemaProcessorImpl.process(SchemaProcessorImpl.java:169)
        at 
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:65)
        at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:100)
        at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:148)
        at 
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:130)
        at 
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
        at $InnerProxy_fdde48ed38_5._service($InnerProxy_fdde48ed38_5.java)
        at $InnerProxy_fdde48ed38_5.getString($InnerProxy_fdde48ed38_5.java)
        at 
$SingletonProxy_fdde48ed2e_4.getString($SingletonProxy_fdde48ed2e_4.java)
        at service.TestServiceTest.testTestService(TestServiceTest.java:64)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
        at java.lang.reflect.Method.invoke(Method.java:386)
        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 junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)

[DEBUG] HivemindService - Set property schwabxService to null


---------------------------------------------------------------------
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