[
https://issues.apache.org/activemq/browse/SMX4NMR-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet resolved SMX4NMR-35.
------------------------------------
Assignee: Guillaume Nodet
Fix Version/s: 1.0-m2
Resolution: Fixed
Sending
deployer/src/main/java/org/apache/servicemix/jbi/deployer/handler/Transformer.java
Transmitting file data .
Committed revision 675126.
> 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
> Assignee: Guillaume Nodet
> Fix For: 1.0-m2
>
> 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.