Re: NPE in BND
On 24/05/07, Niclas Hedhman [EMAIL PROTECTED] wrote: Sure I have some problem in my setup, but this exception doesn't help much to locate it; java.lang.NullPointerException at aQute.lib.osgi.Instruction.getPattern(Instruction.java:63) at aQute.lib.osgi.Builder.replaceWithPattern(Builder.java:235) at aQute.lib.osgi.Builder.doExpand(Builder.java:176) at aQute.lib.osgi.Builder.build(Builder.java:30) can you provide the pom.xml / bnd directives file that caused this? at org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:158) at org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:115) at org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:110) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) Cheers -- Niclas Hedhman, Software Developer I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug -- Cheers, Stuart
Re: NPE in BND
On 24/05/07, Stuart McCulloch [EMAIL PROTECTED] wrote: On 24/05/07, Niclas Hedhman [EMAIL PROTECTED] wrote: Sure I have some problem in my setup, but this exception doesn't help much to locate it; java.lang.NullPointerException at aQute.lib.osgi.Instruction.getPattern(Instruction.java:63) at aQute.lib.osgi.Builder.replaceWithPattern(Builder.java:235) at aQute.lib.osgi.Builder.doExpand(Builder.java:176) at aQute.lib.osgi.Builder.build(Builder.java:30) can you provide the pom.xml / bnd directives file that caused this? also, it's nigh-on impossible to print out the config file+line with the problem because by the time the instructions go through maven and onto BND, that associated information has been lost. next best thing would be to print out the current instruction on any failure - this would need to be raised with Peter as it requires a change to BND. at org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:158) at org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:115) at org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:110) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) Cheers -- Niclas Hedhman, Software Developer I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug -- Cheers, Stuart -- Cheers, Stuart
Re: NPE in BND
i got a similar problem on felix where they had substitution brackets without actual substitutions.. bnd was not very happy with this. Probably your problem is going into this direction? btw, this was my problem: Include-Resource{src/main/resources/}/Include-Resource Fixed with Include-Resourcesrc/main/resources//Include-Resource Peter agreed to make bnd more indulgent ;-) Toni
Re: NPE in BND
On 24/05/07, Toni Menzel [EMAIL PROTECTED] wrote: i got a similar problem on felix where they had substitution brackets without actual substitutions.. bnd was not very happy with this. Probably your problem is going into this direction? btw, this was my problem: Include-Resource{src/main/resources/}/Include-Resource hi toni - could you provide a bit more info? the {...} indicates that files in this folder should be filtered before including them in the bundle - do you mean your pom didn't have any properties to substitute (unlikely) or there weren't any files to filter? Fixed with Include-Resourcesrc/main/resources//Include-Resource Peter agreed to make bnd more indulgent ;-) neat - any idea which version of bnd will (or does) contain this fix? Toni -- Cheers, Stuart
Re: NPE in BND
Stuart, its archived here: http://mail-archives.apache.org/mod_mbox/felix-dev/200705.mbox/[EMAIL PROTECTED] (and its followups) it turns put that it was not a NPE but may show some indicators.. Toni Original-Nachricht Datum: Thu, 24 May 2007 20:02:02 +0800 Von: Stuart McCulloch [EMAIL PROTECTED] An: dev@felix.apache.org Betreff: Re: NPE in BND On 24/05/07, Toni Menzel [EMAIL PROTECTED] wrote: i got a similar problem on felix where they had substitution brackets without actual substitutions.. bnd was not very happy with this. Probably your problem is going into this direction? btw, this was my problem: Include-Resource{src/main/resources/}/Include-Resource hi toni - could you provide a bit more info? the {...} indicates that files in this folder should be filtered before including them in the bundle - do you mean your pom didn't have any properties to substitute (unlikely) or there weren't any files to filter? Fixed with Include-Resourcesrc/main/resources//Include-Resource Peter agreed to make bnd more indulgent ;-) neat - any idea which version of bnd will (or does) contain this fix? Toni -- Cheers, Stuart
Re: NPE in BND
On Thursday 24 May 2007 19:23, Niclas Hedhman wrote: Sure I have some problem in my setup, but this exception doesn't help much to locate it; Not sure, but I think it was due to a space after the backslash on continued ImportPackage lines. Cheers -- Niclas Hedhman, Software Developer I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug
Re: NPE in BND
hi toni, On 24/05/07, Toni Menzel [EMAIL PROTECTED] wrote: Stuart, its archived here: http://mail-archives.apache.org/mod_mbox/felix-dev/200705.mbox/[EMAIL PROTECTED] (and its followups) it turns put that it was not a NPE but may show some indicators.. I think this is a different issue, and it seems to be fixed in the latest version of the bundle-plugin - when I add a resource file with a variable $foo but no definition of foo, I get the following: No translation found for macro: foo and no build exception. Toni Original-Nachricht Datum: Thu, 24 May 2007 20:02:02 +0800 Von: Stuart McCulloch [EMAIL PROTECTED] An: dev@felix.apache.org Betreff: Re: NPE in BND On 24/05/07, Toni Menzel [EMAIL PROTECTED] wrote: i got a similar problem on felix where they had substitution brackets without actual substitutions.. bnd was not very happy with this. Probably your problem is going into this direction? btw, this was my problem: Include-Resource{src/main/resources/}/Include-Resource hi toni - could you provide a bit more info? the {...} indicates that files in this folder should be filtered before including them in the bundle - do you mean your pom didn't have any properties to substitute (unlikely) or there weren't any files to filter? Fixed with Include-Resourcesrc/main/resources//Include-Resource Peter agreed to make bnd more indulgent ;-) neat - any idea which version of bnd will (or does) contain this fix? Toni -- Cheers, Stuart -- Cheers, Stuart
Re: NPE in BND
Well, line 63 in Instruction.java does not contain a potential NPE since Bnd version 0.0.131 of April 28. What version are you using? Bnd writes its version in the manifest of any bundle it makes. Kind regards, Peter Kriens NH Sure I have some problem in my setup, but this exception doesn't help much to NH locate it; NH java.lang.NullPointerException NH at aQute.lib.osgi.Instruction.getPattern(Instruction.java:63) NH at aQute.lib.osgi.Builder.replaceWithPattern(Builder.java:235) NH at aQute.lib.osgi.Builder.doExpand(Builder.java:176) NH at aQute.lib.osgi.Builder.build(Builder.java:30) NH at NH org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:158) NH at NH org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:115) NH at NH org.apache.felix.tools.maven2.bundleplugin.BundlePlugin.execute(BundlePlugin.java:110) NH at NH org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) NH at NH org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) NH at NH org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) NH at NH org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) NH at NH org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) NH at NH org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) NH at NH org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) NH at NH org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) NH at NH org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) NH at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) NH Cheers -- Peter Kriens Tel +33467542167 9C, Avenue St. DrézéryAOL,Yahoo: pkriens 34160 Beaulieu, FranceICQ 255570717 Skype pkriens Fax +1 8153772599