-
1. Re: Error when start mavan bundle in karaf.
ffang Feb 5, 2013 4:59 AM (in response to mitesh.patel)Hi,
The exception is like
Caused by: java.lang.NullPointerException at java.util.regex.Matcher.quoteReplacement(Matcher.java:598)[:1.6.0_20] at org.apache.camel.core.osgi.OsgiManagementNameStrategy.customResolveManagementName(OsgiManagementNameStrategy.java:53)[149:org.apache.camel.camel-spring:2.10.0.fuse-71-047] at org.apache.camel.impl.DefaultManagementNameStrategy.resolveManagementName(DefaultManagementNameStrategy.java:131)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047] at org.apache.camel.impl.DefaultManagementNameStrategy.getName(DefaultManagementNameStrategy.java:72)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047] at org.apache.camel.management.DefaultManagementLifecycleStrategy.onContextStart(DefaultManagementLifecycleStrategy.java:135)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
Something like the regex in your camel router isn't correct, you need post your camel router here so our camel expert can take a look.
Freeman
-
2. Re: Error when start mavan bundle in karaf.
mitesh.patel Feb 5, 2013 5:40 AM (in response to mitesh.patel)/person/city = 'London' -
3. Re: Error when start mavan bundle in karaf.
mitesh.patel Feb 5, 2013 5:41 AM (in response to mitesh.patel)/person/city = 'London' -
4. Re: Error when start mavan bundle in karaf.
davsclaus Feb 5, 2013 7:40 AM (in response to mitesh.patel)Do your bundle have any symbolic name. Can you take a look in the MANIFEST.MF file and show us what it contains.
The NPE indicate the symbolic name is empty/null, as this is line 53:
String symbolicName = Matcher.quoteReplacement(bundleContext.getBundle().getSymbolicName());
-
5. Re: Error when start mavan bundle in karaf.
davsclaus Feb 5, 2013 7:43 AM (in response to davsclaus)I logged a ticket about the NPE, so we can get that fixed
-
6. Re: Error when start mavan bundle in karaf.
mitesh.patel Feb 5, 2013 8:58 AM (in response to davsclaus)contains of the Manifest.mf file
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: mitesh.patel
Build-Jdk: 1.7.0_13
Edited by: mitesh.patel on Feb 5, 2013 1:57 PM
-
7. Re: Error when start mavan bundle in karaf.
ffang Feb 5, 2013 9:11 AM (in response to mitesh.patel)Ok, the Manifest.mf tells us there's no OSGi metadata header at all, so it's not a bundle.
You need OSGi-fy it first.
Freeman
-
8. Re: Error when start mavan bundle in karaf.
davsclaus Feb 5, 2013 12:14 PM (in response to ffang)A bit strange that Karaf would install the JAR since its not an OSGi bundle at all.
-
9. Re: Error when start mavan bundle in karaf.
davsclaus Feb 5, 2013 12:15 PM (in response to davsclaus)He can install it as a FAB
http://fuse.fusesource.org/bundle/index
osgi:install fab:mvn:com.foo/foo/1.0
Eg use "fab:" as prefix to the install command.
Then his application do not need to be an OSGi bundle at all.
-
10. Re: Error when start mavan bundle in karaf.
ffang Feb 5, 2013 8:22 PM (in response to davsclaus)Yep, fab should also work.
Freeman
-
11. Re: Error when start mavan bundle in karaf.
mitesh.patel Feb 6, 2013 1:10 AM (in response to ffang)yap,that's work fine,Thanks to all for support.