You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2013/03/21 13:29:15 UTC

[jira] [Resolved] (SMX4-1405) nmr example broken

     [ https://issues.apache.org/jira/browse/SMX4-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen resolved SMX4-1405.
-----------------------------------

    Resolution: Fixed
      Assignee: Gert Vanthienen

Fixed in https://svn.apache.org/viewvc?view=revision&revision=1459258
Thanks for the patch, Wim!
                
> nmr example broken
> ------------------
>
>                 Key: SMX4-1405
>                 URL: https://issues.apache.org/jira/browse/SMX4-1405
>             Project: ServiceMix 4
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 4.5.0
>            Reporter: Wim Verreydt
>            Assignee: Gert Vanthienen
>            Priority: Minor
>             Fix For: 4.5.1
>
>         Attachments: 0001-SMX4-1405-set-spring.import.range-and-add-nmr-as-req.patch
>
>
> Installing the example, you get this error:
> {noformat}
> org.osgi.framework.BundleException: Could not create bundle object.
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2650)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2501)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:150)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.installBundleIfNeeded(FeaturesServiceImpl.java:734)[22:org.apache.karaf.features.core:2.2.10]
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:483)[22:org.apache.karaf.features.core:2.2.10]
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:295)[22:org.apache.karaf.features.core:2.2.10]
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:283)[22:org.apache.karaf.features.core:2.2.10]
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:279)[22:org.apache.karaf.features.core:2.2.10]
>         at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)[39:org.apache.karaf.features.command:2.2.10]
>         at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)[39:org.apache.karaf.features.command:2.2.10]
>         at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.2.10]
>         at org.apache.karaf.shell.console.jline.Console.run(Console.java:173)[15:org.apache.karaf.shell.console:2.2.10]
>         at java.lang.Thread.run(Thread.java:680)[:1.6.0_43]
> Caused by: java.lang.NumberFormatException: For input string: "${spring"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)[:1.6.0_43]
>         at java.lang.Integer.parseInt(Integer.java:449)[:1.6.0_43]
>         at java.lang.Integer.parseInt(Integer.java:499)[:1.6.0_43]
>         at org.osgi.framework.Version.<init>(Version.java:125)[karaf.jar:2.2.10]
>         at org.apache.felix.framework.util.VersionRange.parse(VersionRange.java:98)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:298)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:158)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.ModuleImpl.<init>(ModuleImpl.java:243)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1162)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:81)[org.apache.felix.framework-3.2.2.jar:]
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2593)[org.apache.felix.framework-3.2.2.jar:]
>         ... 20 more
> {noformat}
> I suppose spring.import.range property is not set in the pom file
> Also feature nmr is required for this example

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira