felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Petritsch <michael.petrit...@gmail.com>
Subject IllegalArgumentException when trying to load a class
Date Sun, 02 Jan 2011 14:25:43 GMT
Hi,

a few weeks ago I wrote to the user-mailinglist but did not get a
reply. That's why I am trying the dev-list now. We have the following
situation here: a bundle is trying to load a class with a classname
that contains '(' and ')'. Now usually (by other classloaders) the
bundle is receiving a "ClassNotFoundException". Felix (or swissbox, I
don't know who should be finally throwing the classnotfoundexception)
is throwing an uncaught IllegalArgumentException instead.

Here is the stacktrace:

java.lang.IllegalArgumentException: Illegal value: Document doc =
element.getOwnerDocument();
     at org.apache.felix.framework.capabilityset.SimpleFilter.parseSubstring(SimpleFilter.java:399)
     at org.apache.felix.framework.util.manifestparser.RequirementImpl.convertToFilter(RequirementImpl.java:162)
     at org.apache.felix.framework.util.manifestparser.RequirementImpl.<init>(RequirementImpl.java:49)
     at org.apache.felix.framework.Felix$FelixResolver.isAllowedDynamicImport(Felix.java:4139)
     at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:4029)
     at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1367)
     at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:723)
     at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
     at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
     at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:634)
     at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1594)
     at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887)
     at org.ops4j.pax.swissbox.core.BundleClassLoader.findClass(BundleClassLoader.java:176)
     at org.ops4j.pax.swissbox.core.BundleClassLoader.loadClass(BundleClassLoader.java:194)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
     at org.milyn.util.ClassUtil.forName(ClassUtil.java:82)

Looking forward to some feedback on this topic.

Regards,
Michael

Mime
View raw message