Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-561

Servicemix flatpack component is missing the default fpconvert.properties, causing NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: Bundles
    • Labels:
      None
    • Environment:

      Apache ServiceMix 4.2 (fuse-4.2.0-02-00)
      Apache ServiceMix Bundles: flatpack-3.1.1 (3.1.1.3)

      Description

      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:

          /**
           * 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;
          }
      

      Modifying the cached bundle to include fpconvert.properties works around the issue.

        Attachments

          Activity

            People

            • Assignee:
              jb@nanthrax.net Jean-Baptiste Onofré
              Reporter:
              smerp Scott Parkerson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: