Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer exception on config update #38

Open
Dagon- opened this issue Jan 12, 2018 · 2 comments
Open

Null pointer exception on config update #38

Dagon- opened this issue Jan 12, 2018 · 2 comments

Comments

@Dagon-
Copy link

Dagon- commented Jan 12, 2018

I'm testing out 1.1.31 which was working very well until I hit the following exception trying to update a config

Process:

  • Push two templates to nifi 1.4.0
  • Pull config
  • Add a connection to config.json:
"connections": [
    {
      "name": "test_connection",
      "source": "root > SimulateDataMinrAlerts",
      "destination": "root > Publish_to_Kafka "
    }
  ],
  • Run update config:
2018-01-12 15:51:29 | INFO  | [main] c.g.h.n.c.Main:132 - Communicate with nifi 1.4.0
2018-01-12 15:51:29 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:66 - Processing : config.json
2018-01-12 15:51:30 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  Listen on ip:8123/dataminr (fb775b49-fb5c-3143-8941-3acbcc51b4bf) is already STOPPED
2018-01-12 15:51:30 | INFO  | [main] c.g.h.n.c.s.PortService:65 -  input (d5398d95-4877-300e-8dd5-8f7bc055b47b) is already STOPPED
2018-01-12 15:51:30 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  ConsumeKafka (ae5c25c6-bf14-3cda-8763-5aa7e6c51907) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.PortService:65 -  Dataminr Alerts (b33bcebd-f820-35c3-9e1c-d6024cbb9784) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  PublishKafka (46404dd1-e9d9-33f8-8887-a5cc17753c82) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  SimulateDataMinrAlertsFailures (10f7de65-c07b-31eb-b8c9-3266d809aa28) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  SimulateDataminr (df373b6f-1a5f-3309-a02c-14bae056ee78) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  Send Http Response to client (8da0147b-03a4-3fa3-9db5-01046b830400) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  LogAttribute (593ef047-2f06-3148-adc3-3a7d36637445) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  LogAttribute (f8686ee4-778a-3450-a686-c31d87d7ec97) is already STOPPED
2018-01-12 15:51:31 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  Listen on ip:8123/dataminr (fb775b49-fb5c-3143-8941-3acbcc51b4bf) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  Send Http Response to client (8da0147b-03a4-3fa3-9db5-01046b830400) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  SimulateDataMinrAlertsFailures (10f7de65-c07b-31eb-b8c9-3266d809aa28) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  SimulateDataminr (df373b6f-1a5f-3309-a02c-14bae056ee78) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.PortService:65 -  Dataminr Alerts (b33bcebd-f820-35c3-9e1c-d6024cbb9784) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.PortService:65 -  input (d5398d95-4877-300e-8dd5-8f7bc055b47b) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  ConsumeKafka (ae5c25c6-bf14-3cda-8763-5aa7e6c51907) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  LogAttribute (593ef047-2f06-3148-adc3-3a7d36637445) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  PublishKafka (46404dd1-e9d9-33f8-8887-a5cc17753c82) is already STOPPED
2018-01-12 15:51:32 | INFO  | [main] c.g.h.n.c.s.ProcessorService:56 -  LogAttribute (f8686ee4-778a-3450-a686-c31d87d7ec97) is already STOPPED
2018-01-12 15:51:33 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:76 - [root] is stopped
2018-01-12 15:51:33 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor Listen on ip:8123/dataminr (fb775b49-fb5c-3143-8941-3acbcc51b4bf) 
2018-01-12 15:51:33 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor Listen on ip:8123/dataminr (fb775b49-fb5c-3143-8941-3acbcc51b4bf) have config updated 
2018-01-12 15:51:33 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor SimulateDataMinrAlertsFailures (10f7de65-c07b-31eb-b8c9-3266d809aa28) 
2018-01-12 15:51:33 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor SimulateDataMinrAlertsFailures (10f7de65-c07b-31eb-b8c9-3266d809aa28) have config updated 
2018-01-12 15:51:33 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor SimulateDataminr (df373b6f-1a5f-3309-a02c-14bae056ee78) 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor SimulateDataminr (df373b6f-1a5f-3309-a02c-14bae056ee78) have config updated 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor Send Http Response to client (8da0147b-03a4-3fa3-9db5-01046b830400) 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor Send Http Response to client (8da0147b-03a4-3fa3-9db5-01046b830400) have config updated 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor LogAttribute (593ef047-2f06-3148-adc3-3a7d36637445) 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor LogAttribute (593ef047-2f06-3148-adc3-3a7d36637445) have config updated 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor PublishKafka (46404dd1-e9d9-33f8-8887-a5cc17753c82) 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor PublishKafka (46404dd1-e9d9-33f8-8887-a5cc17753c82) have config updated 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor LogAttribute (593ef047-2f06-3148-adc3-3a7d36637445) 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor LogAttribute (593ef047-2f06-3148-adc3-3a7d36637445) have config updated 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:288 - Update config processor ConsumeKafka (ae5c25c6-bf14-3cda-8763-5aa7e6c51907) 
2018-01-12 15:51:34 | INFO  | [main] c.g.h.n.c.s.UpdateProcessorService:320 - Processor ConsumeKafka (ae5c25c6-bf14-3cda-8763-5aa7e6c51907) have config updated 
Exception in thread "main" java.lang.NullPointerException
	at com.github.hermannpencole.nifi.config.service.UpdateProcessorService.updateControllers(UpdateProcessorService.java:149)
	at com.github.hermannpencole.nifi.config.service.UpdateProcessorService.updateByBranch(UpdateProcessorService.java:88)
	at com.github.hermannpencole.nifi.config.Main.main(Main.java:137)

I see there was a previous issue #26, am I misreading that this should have been fixed or is this something different?

@hermannpencole
Copy link
Owner

Hello,
it's not the same problem as # 36.
Do you have multiple controllers with the same name in one of the templates?

@Dagon-
Copy link
Author

Dagon- commented Jan 16, 2018

Do you have multiple controllers with the same name in one of the templates?

I don't believe so, but I'm new to nifi and I didn't create these templates (my goal being to investigate getting some automation around nifi).
You can see the templates here: https://pastebin.com/U0EJQp3b and here: https://pastebin.com/V6GK9ZJv if you want to check them out yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants