ServiceMix 4
  1. ServiceMix 4
  2. SMX4-561

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

        Activity

        Jeff Turner made changes -
        Project Import Sat Nov 27 01:13:56 EST 2010 [ 1290838436878 ]
        Gert Vanthienen made changes -
        Fix Version/s 4.4.0 [ 12241 ]
        Fix Version/s 4.3.0 [ 12345 ]
        Jean-Baptiste Onofré made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.4.0 [ 12241 ]
        Jean-Baptiste Onofré made changes -
        Field Original Value New Value
        Assignee Jean-Baptiste Onofré [ jb@nanthrax.net ]
        Scott Parkerson created issue -

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Scott Parkerson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development