Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: FABRIC-12
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: Charles Moulliard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fuse Fabric

Cannot create a repository.karaf containing a list of urls

Created: 04/May/11 04:41 PM   Updated: 10/Feb/12 11:04 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1


 Description  « Hide
Scenario to follow to reproduce the error :
features:addurl mvn:org.fusesource.fabric/fabric-distro/1.0-SNAPSHOT/xml/features
features:install fabric-commands
fabric:zk-cluster root
features:install fabric-dosgi
features:install fabric-camel
features:addurl mvn:org.apache.camel.karaf/apache-camel/2.7.0/xml/features
features:install camel
fabric:create-profile --parents default webserver

zk:create -r /fabric/configs/versions/base/profiles/webserver/org.fusesource.fabric.agent/repository.karaf mvn:org.apache.karaf.assemblies.features/standard/2.2.1-SNAPSHOT/xml/features,mvn:com.fusesource.fabric/features/1.0.0/xml/features

zk:create -r  /fabric/configs/versions/base/profiles/webserver/org.fusesource.fabric.agent/feature.fusesource-fabric fusesource-fabric
zk:list /fabric/configs/versions/base/profiles/webserver/org.fusesource.fabric.agent
fabric:create-agent --profile webserver --parent root test
fabric:connect test

The following error is reported from the karaf instance

18:36:51,046 | ERROR | pool-7-thread-1  | DeploymentAgent                  | e.fabric.agent.DeploymentAgent$1  147 | 44 - org.fusesource.fabric.fabric-agent - 1.0.0.SNAPSHOT | Unable to update agent
java.lang.RuntimeException: URL [mvn:org.apache.karaf.assemblies.features/standard/2.2.1-SNAPSHOT/xml/features,mvn:com.fusesource.fabric/features/1.0.0/xml/features] could not be resolved.
	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)[2:org.ops4j.pax.url.mvn:1.2.6]
	at org.ops4j.pax.url.mvn.internal.AetherBridgeConnection.getInputStream(AetherBridgeConnection.java:68)[2:org.ops4j.pax.url.mvn:1.2.6]
	at org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:49)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
	at org.fusesource.fabric.agent.DeploymentAgent.addRepository(DeploymentAgent.java:215)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
	at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:174)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
	at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:145)[44:org.fusesource.fabric.fabric-agent:1.0.0.SNAPSHOT]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_24]
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_24]
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_24]
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_24]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_24]
	at java.lang.Thread.run(Thread.java:680)[:1.6.0_24]


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Nodet added a comment - 04/May/11 11:28 PM
Please run "osgi:info fabric-agent" to have some information about the agent configuration.

Guillaume Nodet added a comment - 04/May/11 11:37 PM
It's working as designed. A single key should be used for each repository:
repository.karaf = mvn:xxx
repository.fabric = mvn:xxx

We may provide some commands to more easily edit profiles in the future and those would definitely check the validity of the arguments.