[jira] [Commented] (NIFI-1125) ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/NIFI-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861925#comment-15861925 ] ASF subversion and git services commented on NIFI-1125: --- Commit 97d064ff5c1bc2d6eee615aa39a59f909fc98a0a in nifi's branch refs/heads/0.x from [~ijokarumawak] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=97d064f ] NIFI-1125 InvokeHTTP throws NullPointerException Added null check in onPropertyModified to avoid NPE. This closes #1477. > ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An > unexpected error has occurred: java.lang.NullPointerException > -- > > Key: NIFI-1125 > URL: https://issues.apache.org/jira/browse/NIFI-1125 > Project: Apache NiFi > Issue Type: Bug > Components: Configuration >Affects Versions: 0.4.0 > Environment: Centos 6.7 >Reporter: Mark Petronic >Assignee: Koji Kawamura >Priority: Minor > Fix For: 1.2.0 > > Attachments: StatsIngestFlow.xml > > > Running with a latest master branch build off commit > dbf0c7893fef964bfbb3a4c039c756396587ce12. > Steps to recreate: > 1. All processors stopped > 2. Add uuid to "Attributes to Send" in the InvokeHttp Processor > 3. Save and close config dialog > 4. Open same config dialog and remove uuid field so that is is "No value set" > 5. Apply changes and web UI will crash and indicate error has occurred > and below will seen in user log > 6. Hit F5 and browser reloads UI just fine > See attached template. > 2015-11-07 19:42:58,369 ERROR [NiFi Web Server-22655] > o.a.nifi.web.api.config.ThrowableMapper An unexpected error has > occurred: java.lang.NullPointerException. Returning Internal Server > Error response. > java.lang.NullPointerException: null > at > org.apache.nifi.processors.standard.InvokeHTTP.onPropertyModified(InvokeHTTP.java:121) > ~[na:na] > at > org.apache.nifi.controller.AbstractConfiguredComponent.removeProperty(AbstractConfiguredComponent.java:163) > ~[nifi-framework-core-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.configureProcessor(StandardProcessorDAO.java:174) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.updateProcessor(StandardProcessorDAO.java:391) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$FastClassBySpringCGLIB$$779e089b.invoke() > ~[spring-core-4.1.6.RELEASE.jar:na] > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > ~[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.audit.ProcessorAuditor.updateProcessorAdvice(ProcessorAuditor.java:120) > ~[classes/:na] > at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) ~[na:na] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_51] > at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$EnhancerBySpringCGLIB$$f8bfa279.updateProcessor() > ~[spring-core-4.1.6.RELEA
[jira] [Commented] (NIFI-1125) ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/NIFI-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861907#comment-15861907 ] Michael Moser commented on NIFI-1125: - I'm going to look at merging this into the 0.x branch as well. > ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An > unexpected error has occurred: java.lang.NullPointerException > -- > > Key: NIFI-1125 > URL: https://issues.apache.org/jira/browse/NIFI-1125 > Project: Apache NiFi > Issue Type: Bug > Components: Configuration >Affects Versions: 0.4.0 > Environment: Centos 6.7 >Reporter: Mark Petronic >Assignee: Koji Kawamura >Priority: Minor > Fix For: 1.2.0 > > Attachments: StatsIngestFlow.xml > > > Running with a latest master branch build off commit > dbf0c7893fef964bfbb3a4c039c756396587ce12. > Steps to recreate: > 1. All processors stopped > 2. Add uuid to "Attributes to Send" in the InvokeHttp Processor > 3. Save and close config dialog > 4. Open same config dialog and remove uuid field so that is is "No value set" > 5. Apply changes and web UI will crash and indicate error has occurred > and below will seen in user log > 6. Hit F5 and browser reloads UI just fine > See attached template. > 2015-11-07 19:42:58,369 ERROR [NiFi Web Server-22655] > o.a.nifi.web.api.config.ThrowableMapper An unexpected error has > occurred: java.lang.NullPointerException. Returning Internal Server > Error response. > java.lang.NullPointerException: null > at > org.apache.nifi.processors.standard.InvokeHTTP.onPropertyModified(InvokeHTTP.java:121) > ~[na:na] > at > org.apache.nifi.controller.AbstractConfiguredComponent.removeProperty(AbstractConfiguredComponent.java:163) > ~[nifi-framework-core-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.configureProcessor(StandardProcessorDAO.java:174) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.updateProcessor(StandardProcessorDAO.java:391) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$FastClassBySpringCGLIB$$779e089b.invoke() > ~[spring-core-4.1.6.RELEASE.jar:na] > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > ~[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.audit.ProcessorAuditor.updateProcessorAdvice(ProcessorAuditor.java:120) > ~[classes/:na] > at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) ~[na:na] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_51] > at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$EnhancerBySpringCGLIB$$f8bfa279.updateProcessor() > ~[spring-core-4.1.6.RELEASE.jar:na] > at > org.apache.nifi.web.StandardNiFiServiceFacade$2.execute(StandardNiFiServiceFacade.java:412) > ~[classes/:0.3.1-SNAPSHOT] > at > org.apache.nifi.web.StandardOptimisticLockingManager.configureFlow(StandardOptimisticLockingManager.java:83) > ~[nifi
[jira] [Commented] (NIFI-1125) ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/NIFI-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15855533#comment-15855533 ] ASF subversion and git services commented on NIFI-1125: --- Commit 9a638cc865518aef71ee34330c5192786bbfff44 in nifi's branch refs/heads/master from [~ijokarumawak] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=9a638cc ] NIFI-1125 InvokeHTTP throws NullPointerException Added null check in onPropertyModified to avoid NPE. This closes #1477. > ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An > unexpected error has occurred: java.lang.NullPointerException > -- > > Key: NIFI-1125 > URL: https://issues.apache.org/jira/browse/NIFI-1125 > Project: Apache NiFi > Issue Type: Bug > Components: Configuration >Affects Versions: 0.4.0 > Environment: Centos 6.7 >Reporter: Mark Petronic >Assignee: Koji Kawamura >Priority: Minor > Fix For: 1.2.0 > > Attachments: StatsIngestFlow.xml > > > Running with a latest master branch build off commit > dbf0c7893fef964bfbb3a4c039c756396587ce12. > Steps to recreate: > 1. All processors stopped > 2. Add uuid to "Attributes to Send" in the InvokeHttp Processor > 3. Save and close config dialog > 4. Open same config dialog and remove uuid field so that is is "No value set" > 5. Apply changes and web UI will crash and indicate error has occurred > and below will seen in user log > 6. Hit F5 and browser reloads UI just fine > See attached template. > 2015-11-07 19:42:58,369 ERROR [NiFi Web Server-22655] > o.a.nifi.web.api.config.ThrowableMapper An unexpected error has > occurred: java.lang.NullPointerException. Returning Internal Server > Error response. > java.lang.NullPointerException: null > at > org.apache.nifi.processors.standard.InvokeHTTP.onPropertyModified(InvokeHTTP.java:121) > ~[na:na] > at > org.apache.nifi.controller.AbstractConfiguredComponent.removeProperty(AbstractConfiguredComponent.java:163) > ~[nifi-framework-core-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.configureProcessor(StandardProcessorDAO.java:174) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.updateProcessor(StandardProcessorDAO.java:391) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$FastClassBySpringCGLIB$$779e089b.invoke() > ~[spring-core-4.1.6.RELEASE.jar:na] > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > ~[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.audit.ProcessorAuditor.updateProcessorAdvice(ProcessorAuditor.java:120) > ~[classes/:na] > at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) ~[na:na] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_51] > at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$EnhancerBySpringCGLIB$$f8bfa279.updateProcessor() > ~[spring-core-4.1.6.RE
[jira] [Commented] (NIFI-1125) ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/NIFI-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15855535#comment-15855535 ] ASF GitHub Bot commented on NIFI-1125: -- Github user asfgit closed the pull request at: https://github.com/apache/nifi/pull/1477 > ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An > unexpected error has occurred: java.lang.NullPointerException > -- > > Key: NIFI-1125 > URL: https://issues.apache.org/jira/browse/NIFI-1125 > Project: Apache NiFi > Issue Type: Bug > Components: Configuration >Affects Versions: 0.4.0 > Environment: Centos 6.7 >Reporter: Mark Petronic >Assignee: Koji Kawamura >Priority: Minor > Fix For: 1.2.0 > > Attachments: StatsIngestFlow.xml > > > Running with a latest master branch build off commit > dbf0c7893fef964bfbb3a4c039c756396587ce12. > Steps to recreate: > 1. All processors stopped > 2. Add uuid to "Attributes to Send" in the InvokeHttp Processor > 3. Save and close config dialog > 4. Open same config dialog and remove uuid field so that is is "No value set" > 5. Apply changes and web UI will crash and indicate error has occurred > and below will seen in user log > 6. Hit F5 and browser reloads UI just fine > See attached template. > 2015-11-07 19:42:58,369 ERROR [NiFi Web Server-22655] > o.a.nifi.web.api.config.ThrowableMapper An unexpected error has > occurred: java.lang.NullPointerException. Returning Internal Server > Error response. > java.lang.NullPointerException: null > at > org.apache.nifi.processors.standard.InvokeHTTP.onPropertyModified(InvokeHTTP.java:121) > ~[na:na] > at > org.apache.nifi.controller.AbstractConfiguredComponent.removeProperty(AbstractConfiguredComponent.java:163) > ~[nifi-framework-core-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.configureProcessor(StandardProcessorDAO.java:174) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.updateProcessor(StandardProcessorDAO.java:391) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$FastClassBySpringCGLIB$$779e089b.invoke() > ~[spring-core-4.1.6.RELEASE.jar:na] > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > ~[spring-core-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.audit.ProcessorAuditor.updateProcessorAdvice(ProcessorAuditor.java:120) > ~[classes/:na] > at sun.reflect.GeneratedMethodAccessor176.invoke(Unknown Source) ~[na:na] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.8.0_51] > at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653) > ~[spring-aop-4.1.6.RELEASE.jar:4.1.6.RELEASE] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$EnhancerBySpringCGLIB$$f8bfa279.updateProcessor() > ~[spring-core-4.1.6.RELEASE.jar:na] > at > org.apache.nifi.web.StandardNiFiServiceFacade$2.execute(StandardNiFiServiceFacade.java:412) > ~[classes/:0.3.1-SNAPSHOT] > at > org.apache.nifi.web.StandardOptimisticLockingManager.configureFlow(StandardOptimisti
[jira] [Commented] (NIFI-1125) ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException
[ https://issues.apache.org/jira/browse/NIFI-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15855158#comment-15855158 ] ASF GitHub Bot commented on NIFI-1125: -- GitHub user ijokarumawak opened a pull request: https://github.com/apache/nifi/pull/1477 NIFI-1125 InvokeHTTP throws NullPointerException Added null check in onPropertyModified to avoid NPE. Thank you for submitting a contribution to Apache NiFi. In order to streamline the review of the contribution we ask you to ensure the following steps have been taken: ### For all changes: - [x] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message? - [x] Does your PR title start with NIFI- where is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character. - [x] Has your PR been rebased against the latest commit within the target branch (typically master)? - [x] Is your initial contribution a single, squashed commit? ### For code changes: - [x] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder? - [x] Have you written or updated unit tests to verify your changes? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly? - [ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly? - [ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties? ### For documentation related changes: - [ ] Have you ensured that format looks appropriate for the output in which it is rendered? ### Note: Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ijokarumawak/nifi nifi-1125 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/nifi/pull/1477.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1477 commit 3120cd20e4a8fe911c7e61ed96e10519d647be74 Author: Koji Kawamura Date: 2017-02-07T02:08:06Z NIFI-1125 InvokeHTTP throws NullPointerException Added null check in onPropertyModified to avoid NPE. > ERROR [NiFi Web Server-22655] o.a.nifi.web.api.config.ThrowableMapper An > unexpected error has occurred: java.lang.NullPointerException > -- > > Key: NIFI-1125 > URL: https://issues.apache.org/jira/browse/NIFI-1125 > Project: Apache NiFi > Issue Type: Bug > Components: Configuration >Affects Versions: 0.4.0 > Environment: Centos 6.7 >Reporter: Mark Petronic >Priority: Minor > Attachments: StatsIngestFlow.xml > > > Running with a latest master branch build off commit > dbf0c7893fef964bfbb3a4c039c756396587ce12. > Steps to recreate: > 1. All processors stopped > 2. Add uuid to "Attributes to Send" in the InvokeHttp Processor > 3. Save and close config dialog > 4. Open same config dialog and remove uuid field so that is is "No value set" > 5. Apply changes and web UI will crash and indicate error has occurred > and below will seen in user log > 6. Hit F5 and browser reloads UI just fine > See attached template. > 2015-11-07 19:42:58,369 ERROR [NiFi Web Server-22655] > o.a.nifi.web.api.config.ThrowableMapper An unexpected error has > occurred: java.lang.NullPointerException. Returning Internal Server > Error response. > java.lang.NullPointerException: null > at > org.apache.nifi.processors.standard.InvokeHTTP.onPropertyModified(InvokeHTTP.java:121) > ~[na:na] > at > org.apache.nifi.controller.AbstractConfiguredComponent.removeProperty(AbstractConfiguredComponent.java:163) > ~[nifi-framework-core-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.configureProcessor(StandardProcessorDAO.java:174) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO.updateProcessor(StandardProcessorDAO.java:391) > ~[classes/:na] > at > org.apache.nifi.web.dao.impl.StandardProcessorDAO$$FastClassBySpringCGLIB$$779e089b.invoke() > ~[spring-core-4.1.6.RELEASE.jar:na] > at org.springframework.cglib.pr