You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2010/07/20 10:00:53 UTC

[jira] Resolved: (SMX4-561) Servicemix flatpack component is missing the default fpconvert.properties, causing NullPointerException

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

Jean-Baptiste Onofré resolved SMX4-561.
---------------------------------------

    Fix Version/s: 4.4.0
       Resolution: Fixed

Revision 965745.

> Servicemix flatpack component is missing the default fpconvert.properties, causing NullPointerException
> -------------------------------------------------------------------------------------------------------
>
>                 Key: SMX4-561
>                 URL: https://issues.apache.org/activemq/browse/SMX4-561
>             Project: ServiceMix 4
>          Issue Type: Bug
>          Components: Bundles
>    Affects Versions: 4.2.0
>         Environment: Apache ServiceMix 4.2 (fuse-4.2.0-02-00)
> Apache ServiceMix Bundles: flatpack-3.1.1 (3.1.1.3)
>            Reporter: Scott Parkerson
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.4.0
>
>
> Apache ServiceMix bundle for Flatpack 3.1.1_3 is missing fpconfig.properties. This causes a NullPointerException if you are using a FlatpackDataFormat at the following line when using the camel-flatpack component to unmarshal a CSV file without using a pzmap file:
> {code:java|title:ParserUtils.java}
>     /**
>      * Retrieves the conversion table for use with the getObject()
>      * method in IDataSet
>      *
>      * @throws IOException
>      * @return Properties
>      *              Properties contained in the pzconvert.properties file
>      */
>     public static Properties loadConvertProperties() throws IOException {
>         final Properties pzConvertProps = new Properties();
>         final URL url = ParserUtils.class.getClassLoader().getResource("fpconvert.properties");
>         pzConvertProps.load(url.openStream());
>         return pzConvertProps;
>     }
> {code}
> Modifying the cached bundle to include fpconvert.properties works around the issue.

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