Daniel Arnaiz created NIFI-5159:
-----------------------------------

             Summary: SimpleCsvFileLookupService doesn't resolve 'variables' 
properly
                 Key: NIFI-5159
                 URL: https://issues.apache.org/jira/browse/NIFI-5159
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.6.0
            Reporter: Daniel Arnaiz


- Create a new process Group.

- Add "Variables" from UI to the process group scope:

   csv=d:\tmp\mycsv.csv

- Create a controller service SimpleCsvFileLookupService in Group scope.

- Configure attribute "CSV File" as ${csv}

- Enable the controller service, so got an error:

2018-05-07 08:56:11,160 DEBUG [Timer-Driven Process Thread-10] 
o.a.n.lookup.SimpleCsvFileLookupService 
SimpleCsvFileLookupService[id=c7639ef7-9932-3ae8-d4df-b0eaf5dce379] Loading 
lookup table from file: ${csv}

java.io.FileNotFoundException: ${csv} (El sistema no puede encontrar el archivo 
especificado)
 at java.io.FileInputStream.open0(Native Method)
 at java.io.FileInputStream.open(FileInputStream.java:195)
 at java.io.FileInputStream.<init>(FileInputStream.java:138)
 at java.io.FileInputStream.<init>(FileInputStream.java:93)
 at java.io.FileReader.<init>(FileReader.java:58)
 at 
org.apache.nifi.lookup.SimpleCsvFileLookupService.loadCache(SimpleCsvFileLookupService.java:139)

at 
org.apache.nifi.lookup.SimpleCsvFileLookupService.onEnabled(SimpleCsvFileLookupService.java:190)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to