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

[jira] Created: (SMX4-50) NMR throws a null pointer exception when I attempt to deploy the ode bpel engine.

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.


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

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (SMX4-50) NMR throws a null pointer exception when I attempt to deploy the ode bpel engine.

Posted by "Edell Nolan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edell Nolan updated SMX4-50:
----------------------------


The ode bpel engine still fails to deploy but its to do with missing classes.

Edell.

> 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.