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: ECLIPSE-689
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

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

Deploying fuse esb - cbr example using drag n drop over JMX fails with a null in the path

Created: 26/Apr/12 09:09 AM   Updated: 02/May/12 07:54 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1.0


 Description  « Hide
So I am trying the new drag n drop of a project to deploy to Fuse ESB.

I have Fuse ESB7 running, and connected from Fuse IDE over JMX.
I then import the Fuse ESB7 examples into Fuse IDE, and then drag n drop the cbr example to the Fuse ESB in the JMX tree on the bundles node.

I can see Fuse IDE builds and tries to install the example

I find this in the error log

java.io.IOException: Installation of a bundle with location fab:mvn:org.fusesource.examples/cbr/null failed with the message: Unable to cache bundle: fab:mvn:org.fusesource.examples/cbr/null
	at org.apache.aries.jmx.framework.Framework.installBundle(Framework.java:83)
	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:597)
	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
	at javax.management.StandardMBean.invoke(StandardMBean.java:391)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
	at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
	at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)
	at sun.rmi.transport.Transport$1.run(Transport.java:159)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: Unable to cache bundle: fab:mvn:org.fusesource.examples/cbr/null
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2780)
	at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
	at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:138)
	at org.apache.aries.jmx.framework.Framework.installBundle(Framework.java:80)
	... 30 more
Caused by: java.io.IOException: URL [mvn:org.fusesource.examples/cbr/null] could not be resolved.
	at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:244)
	at org.fusesource.fabric.fab.osgi.internal.FabConnection.getInputStream(FabConnection.java:117)
	at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:520)
	at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)
	at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)
	at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)
	at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
	at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
	at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
	at org.apache.felix.framework.Felix.installBundle(Felix.java:2776)
	... 33 more
Caused by: java.lang.RuntimeException: URL [mvn:org.fusesource.examples/cbr/null] could not be resolved.
	at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)
	at java.net.URL.openStream(URL.java:1010)
	at org.fusesource.fabric.fab.util.Files.urlToFile(Files.java:68)
	at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getJarFile(FabResolverFactoryImpl.java:202)
	at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.resolvePomDetails(FabResolverFactoryImpl.java:219)
	at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getVersionedDependencyId(FabResolverFactoryImpl.java:167)
	at org.fusesource.fabric.fab.osgi.internal.FabClassPathResolver.resolve(FabClassPathResolver.java:113)
	at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.configureInstructions(FabResolverFactoryImpl.java:283)
	at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.createInstructions(FabResolverFactoryImpl.java:275)
	at org.fusesource.fabric.fab.osgi.internal.FabResolverFactoryImpl$FabResolverImpl.getInfo(FabResolverFactoryImpl.java:229)
	... 42 more


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen added a comment - 26/Apr/12 09:12 AM
Ah I added a version to the pom.xml of the cbr example

eg i added

<version>7.0.0.fuse-beta-051</version>

After this

<groupId>org.fusesource.examples</groupId>
    <artifactId>cbr</artifactId>
    <packaging>jar</packaging>
    <name>Fuse ESB :: Examples :: Content-Based Router</name>
    <description>Content-Based Router Example</description>

The issue could be that the examples do not have an explicit version in their pom.xml but inherit the version from the parent


James Strachan added a comment - 01/May/12 09:49 AM
I wonder if you could retry sometime on a newer version of IDE; we inherit the version now from the parent pom.xml so even if a version isn't specified we should find one

Claus Ibsen added a comment - 02/May/12 07:47 AM
Yes trying now with beta refresh and latest RCP

Claus Ibsen added a comment - 02/May/12 07:54 AM
Works fine now.