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


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.

Reply via email to