You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/07/09 11:38:00 UTC

[jira] Moved: (SMX4NMR-35) NMR throws a null pointer exception when I attempt to deploy the ode bpel engine.

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

Guillaume Nodet moved SMX4-50 to SMX4NMR-35:
--------------------------------------------

              Project: ServiceMix NMR  (was: ServiceMix 4)
                  Key: SMX4NMR-35  (was: SMX4-50)
    Affects Version/s:     (was: 4.0-m2)

> NMR throws a null pointer exception when I attempt to deploy the ode bpel engine.
> ---------------------------------------------------------------------------------
>
>                 Key: SMX4NMR-35
>                 URL: https://issues.apache.org/activemq/browse/SMX4NMR-35
>             Project: ServiceMix NMR
>          Issue Type: Bug
>            Reporter: Edell Nolan
>         Attachments: nmr.patch
>
>
> Hi,
> When I attempt to deploy the ode bpel engine for the loan-broker-bpel demo the nmr throws a null pointer exception
> The error is in jbi\deployer\src\main\java\org\apache\servicemix\jbi\deployer\handler\Transformer.java
>     public static void transformToOSGiBundle(File jbiArtifact, File osgiBundle) throws Exception {
>     	JarFile jar = new JarFile(jbiArtifact);
>         Manifest m = jar.getManifest();
>         if (m == null) {
>             m = new Manifest();
>             m.getMainAttributes().putValue("Manifest-Version", "1.0");
>         }
>         JarEntry jarEntry = jar.getJarEntry("META-INF/jbi.xml");
>         InputStream is = jar.getInputStream(jarEntry);
>         Descriptor desc = DescriptorFactory.buildDescriptor(is);
>         String version = m.getMainAttributes().getValue("Implementation-Version");
>         version = Builder.cleanupVersion(version);            /************ In this case the version is null ****/ as you just created the manifest above.
>  I have set the version to be 1.0 for a default.
> Edell.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.