Uploaded image for project: 'StreamPipes'
  1. StreamPipes
  2. STREAMPIPES-123

using specific runtame name leads to exception during extraction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.67.0
    • 0.67.0
    • None
    • None

    Description

      Using in SetEPSG.java [1] following runtime name in the addField method

       

      in.addField("epsg-key", epsg);
      

       

      I get an exceptions:

      Exception in thread "Thread-5" java.lang.IllegalArgumentException: Key not found
      

      in the next PE if I want to extract the EPSG Code from the required stream.

      You can reproduce the error with the ISS Adapter, using the EPSG PE and adding 4326. Then use the LatLngToGeo and try to create a JTS Point.

      The exception will be thrown in the LatLngToGeo.java [2]:

       

      Integer epsg = in.getFieldBySelector(epsg_code).getAsPrimitive().getAsInt();
      

       

      Everything is working fine if I change the runtime name as followed

      in.addField("epsg", epsg);
      

       

       

      [1] https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/setEPSG/SetEPSG.java

      [2] https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/jts/processor/latLngToGeo/LatLngToGeo.java

      Attachments

        1. Auswahl_119.png
          38 kB
          Florian Micklich
        2. Auswahl_120.png
          30 kB
          Florian Micklich

        Activity

          People

            Unassigned Unassigned
            micklich Florian Micklich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: