NMR throws a null pointer exception when I attempt to deploy the ode bpel 
engine.
---------------------------------------------------------------------------------

                 Key: SMX4-50
                 URL: https://issues.apache.org/activemq/browse/SMX4-50
             Project: ServiceMix 4
          Issue Type: Bug
    Affects Versions: 4.0-m2
            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.

Reply via email to