geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hendy Irawan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-4711) Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create component instance
Date Thu, 25 Jun 2009 17:27:07 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hendy Irawan updated GERONIMO-4711:
-----------------------------------

    Attachment: caterpillar-blueprint-stacktrace.txt

Thank you.

Attached relevant log and stack trace info.

Snippet stack trace:

org.apache.geronimo.gshell.commandline.CommandLineExecutionFailed: org.osgi.service.blueprint.container.ComponentDefinitionException:
Cound not create component instance for gshell-160
	at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:246)
	at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:107)
	at org.apache.geronimo.gshell.parser.ASTExpression.jjtAccept(ASTExpression.java:17)
	at org.apache.geronimo.gshell.parser.SimpleNode.childrenAccept(SimpleNode.java:61)
	at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:90)
	at org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept(ASTCommandLine.java:17)
	at org.apache.geronimo.gshell.wisdom.shell.CommandLineBuilderImpl$1.execute(CommandLineBuilderImpl.java:96)
	at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:71)
	at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.execute(ShellImpl.java:172)
	at org.apache.geronimo.gshell.wisdom.shell.ShellImpl$2.execute(ShellImpl.java:208)
	at org.apache.geronimo.gshell.console.Console.work(Console.java:194)
	at org.apache.geronimo.gshell.console.Console.run(Console.java:128)
	at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:252)
	at org.apache.felix.karaf.gshell.core.ShellWrapper.run(ShellWrapper.java:81)
	at org.apache.felix.karaf.gshell.core.LocalConsole.run(LocalConsole.java:119)
	at java.lang.Thread.run(Thread.java:619)
Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Cound not create
component instance for gshell-160
	at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:576)
	at org.apache.felix.karaf.gshell.core.BeanContainerWrapper.getBean(BeanContainerWrapper.java:71)
	at org.apache.geronimo.gshell.wisdom.command.StatefulCommand.createAction(StatefulCommand.java:82)
	at org.apache.geronimo.gshell.wisdom.command.StatefulCommand.getAction(StatefulCommand.java:62)
	at org.apache.geronimo.gshell.wisdom.command.CommandSupport.prepareAction(CommandSupport.java:225)
	at org.apache.geronimo.gshell.wisdom.command.CommandSupport.execute(CommandSupport.java:191)
	at org.apache.geronimo.gshell.command.Command$$EnhancerByCGLIB$$4e5c2a77.execute(<generated>)
	at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.doExecute(CommandLineExecutorImpl.java:127)
	at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:106)
	at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor$1.run(ExecutingVisitor.java:208)
	at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:231)
	... 15 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(String.java:687)
	at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:558)
	at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1389)
	at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:792)
	at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.loadClass(BlueprintContainerImpl.java:148)
	at org.apache.geronimo.blueprint.container.BlueprintRepository.loadClass(BlueprintRepository.java:328)
	at org.apache.geronimo.blueprint.utils.TypeUtils.parseJavaType(TypeUtils.java:205)
	at org.apache.geronimo.blueprint.di.AbstractRecipe.loadType(AbstractRecipe.java:106)
	at org.apache.geronimo.blueprint.container.BeanRecipe.loadClass(BeanRecipe.java:163)
	at org.apache.geronimo.blueprint.container.BeanRecipe.getType(BeanRecipe.java:554)
	at org.apache.geronimo.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:224)
	at org.apache.geronimo.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:482)
	at org.apache.geronimo.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:66)
	at org.apache.geronimo.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:211)
	at org.apache.geronimo.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:148)
	at org.apache.geronimo.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:135)
	at org.apache.geronimo.blueprint.container.BlueprintContainerImpl.getComponentInstance(BlueprintContainerImpl.java:572)
	... 25 more


> Geronimo Blueprint throws org.osgi.service.blueprint.container.ComponentDefinitionException:
Cound not create component instance
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4711
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4711
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>         Environment: Ubuntu 9.04, Sun JDK 6u10, Felix 1.8.0, Karaf SNAPSHOT, Blueprint
SNAPSHOT
>            Reporter: Hendy Irawan
>         Attachments: caterpillar-blueprint-bug-sampler.tar.bz2, caterpillar-blueprint-stacktrace.txt
>
>
> Component should be Geronimo Blueprint, but I can't find it in the list.
> Relevant context of my Blueprint XML is as below. Do I write the XML correctly?
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
>     <command-bundle xmlns="http://felix.apache.org/karaf/xmlns/gshell/v1.0.0">
>         <command name="ou/show">
>             <action factory-bean="qi4jApp" factory-method="createShowState">
>                 <property name="bundleContext" ref="blueprintBundleContext"/>
>                 <property name="project" ref="theProject" />
>             </action>
>         </command>
>     </command-bundle>
> 	<bean id="qi4jApp" class="com.openubiquity.caterpillar.Qi4jApp">
> 	</bean>
> 	
> 	<bean id="theProject" class="com.openubiquity.caterpillar.SpringProject">
>    		<property name="name" value="Caterpillar" />
>    		<property name="contextFiles">
>    			<list>
>    				<value>bundle-context-osgi.xml</value>
>    				<value>bundle-context.xml</value>
>    			</list>
>    		</property>
> 	</bean>
> 	
> </blueprint>
> BTW, what is the URL of Blueprint XSD ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message