You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by GitBox <gi...@apache.org> on 2022/11/26 12:50:41 UTC

[GitHub] [streampipes] dominikriemer opened a new issue, #277: using specific runtame name leads to exception during extraction

dominikriemer opened a new issue, #277:
URL: https://github.com/apache/streampipes/issues/277

   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](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](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)
   
   Imported from Jira [STREAMPIPES-123](https://issues.apache.org/jira/browse/STREAMPIPES-123). Original Jira may contain additional context.
   Reported by: micklich.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [streampipes] dominikriemer closed issue #277: using specific runtame name leads to exception during extraction

Posted by GitBox <gi...@apache.org>.
dominikriemer closed issue #277: using specific runtame name leads to exception during extraction
URL: https://github.com/apache/streampipes/issues/277


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org