aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Lichtin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-1098) BeanRecipe.findMatchingMethods does not support "varargs"
Date Fri, 16 Aug 2013 13:15:48 GMT
Martin Lichtin created ARIES-1098:
-------------------------------------

             Summary: BeanRecipe.findMatchingMethods does not support "varargs"
                 Key: ARIES-1098
                 URL: https://issues.apache.org/jira/browse/ARIES-1098
             Project: Aries
          Issue Type: Bug
          Components: Blueprint
            Reporter: Martin Lichtin


For example:

	<bean id="webServer" class="org.h2.tools.Server" factory-method="runTool"
		init-method="start" depends-on="jdbcDataSource">
		<argument value="-web" />
	</bean>

with Server.runTool signature:

public void runTool(String... args)


gives

org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find a matching
factory method runTool on class org.h2.tools.Server for arguments [-web] when instanciating
bean webServer
	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:318)[7:org.apache.aries.blueprint.core:1.1.0]
	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)[7:org.apache.aries.blueprint.core:1.1.0]
	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[7:org.apache.aries.blueprint.core:1.1.0]
	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[7:org.apache.aries.blueprint.core:1.1.0]
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_25]
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]
	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.1.0]
...


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message