You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jérémy Cazaux (Created JIRA)" <ji...@apache.org> on 2011/10/11 19:35:12 UTC

[jira] [Created] (FELIX-3157) When I make a mistake in a BND file, no trace indicate in which file is the issue and what is the cause of the issue.

When I make a mistake in a BND file, no trace indicate in which file is the issue and what is the cause of the issue. 
----------------------------------------------------------------------------------------------------------------------

                 Key: FELIX-3157
                 URL: https://issues.apache.org/jira/browse/FELIX-3157
             Project: Felix
          Issue Type: Improvement
          Components: Bundle Repository (OBR)
            Reporter: Jérémy Cazaux


When I make a mistake in a BND file, no trace indicate in which file is the issue and what is the cause of the issue. 

In the following BND file, I did an error (",\" shouldn't be there in following line: Import-Package org.ow2.util.asm.tree;resolution:=optional,\) :

# Export helper package
Export-Package org.ow2.util.ee.deploy.impl.helper,\
 org.ow2.util.ee.deploy.impl.deployable.*,\
 org.ow2.util.ee.deploy.impl.deployer

Private-Package org.ow2.util.ee.deploy.impl.deployment.ear,\
 org.ow2.util.ee.deploy.impl.osgi,\
 org.ow2.util.asm.*

Bundle-Activator org.ow2.util.ee.deploy.impl.osgi.Activator

# asm-tree is optional
Import-Package org.ow2.util.asm.tree;resolution:=optional,\
 *

Export-Service org.ow2.util.ee.deploy.api.deployer.IDeployerManager,\
 org.ow2.util.ee.deploy.api.deployer.IDeployer,\
 org.ow2.util.archive.api.IArchiveManager, \

DynamicImport-Package *



See the error:

ERROR: Bundle org.apache.felix.bundlerepository [5] Error starting reference:file:/home/cazaux-j/projects/git_jonas/jonas/assemblies/profiles/minimal/target/micro-jonas-5.3.0-M5-SNAPSHOT-bin.dir/micro-jonas-5.3.0-M5-SNAPSHOT/repositories/maven2-internal/org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar (org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.bundlerepository [5].)
 java.lang.IllegalArgumentException: No path specified on clause: 
 at org.apache.felix.utils.manifest.Parser.parseClauses(Parser.java:75)
 at org.apache.felix.utils.manifest.Parser.parseHeader(Parser.java:40)
 at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.doImportExportServices(DataModelHelperImpl.java:584)
 at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.populate(DataModelHelperImpl.java:552)
 at org.apache.felix.bundlerepository.impl.LocalResourceImpl.initialize(LocalResourceImpl.java:56)
 at org.apache.felix.bundlerepository.impl.LocalResourceImpl.<init>(LocalResourceImpl.java:39)
 at org.apache.felix.bundlerepository.impl.LocalRepositoryImpl.addBundle(LocalRepositoryImpl.java:98)
 at org.apache.felix.bundlerepository.impl.LocalRepositoryImpl.initialize(LocalRepositoryImpl.java:163)
 at org.apache.felix.bundlerepository.impl.LocalRepositoryImpl.<init>(LocalRepositoryImpl.java:45)
 at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.<init>(RepositoryAdminImpl.java:69)
 at org.apache.felix.bundlerepository.impl.Activator.start(Activator.java:70)
 at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
 at org.apache.felix.framework.Felix.activateBundle(Felix.java:1904)
 at org.apache.felix.framework.Felix.startBundle(Felix.java:1822)
 at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
 at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
 at java.lang.Thread.run(Thread.java:619)

No traces indicate in which file is the issue and what is the cause of the issue. 
It's really disturbing to find the issue when you are working with a lots of BND files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira