[
https://issues.apache.org/jira/browse/NIFI-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15122710#comment-15122710
]
Aldrin Piri commented on NIFI-259:
----------------------------------
Stacktrace for the UI representation:
{code}
2016-01-28 19:37:29,408 DEBUG [NiFi Web Server-92]
o.a.n.w.a.c.IllegalArgumentExceptionMapper
java.lang.NumberFormatException: For input string: "3181""
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
~[na:1.8.0_60]
at java.lang.Integer.parseInt(Integer.java:580) ~[na:1.8.0_60]
at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_60]
at
org.apache.zookeeper.client.ConnectStringParser.<init>(ConnectStringParser.java:72)
~[zookeeper-3.4.6.jar:3.4.6-1569965]
at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:443)
~[zookeeper-3.4.6.jar:3.4.6-1569965]
at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:380)
~[zookeeper-3.4.6.jar:3.4.6-1569965]
at
org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.getZooKeeper(ZooKeeperStateProvider.java:195)
~[nifi-framework-core-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
at
org.apache.nifi.controller.state.providers.zookeeper.ZooKeeperStateProvider.getState(ZooKeeperStateProvider.java:385)
~[nifi-framework-core-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
at
org.apache.nifi.controller.state.StandardStateManager.getState(StandardStateManager.java:63)
~[nifi-framework-core-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
at
org.apache.nifi.web.dao.impl.StandardComponentStateDAO.getState(StandardComponentStateDAO.java:42)
~[classes/:na]
at
org.apache.nifi.web.dao.impl.StandardComponentStateDAO.getState(StandardComponentStateDAO.java:65)
~[classes/:na]
at
org.apache.nifi.web.dao.impl.StandardComponentStateDAO$$FastClassBySpringCGLIB$$51589743.invoke(<generated>)
~[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.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.StandardComponentStateDAO$$EnhancerBySpringCGLIB$$b250b9.getState(<generated>)
~[spring-core-4.1.6.RELEASE.jar:na]
at
org.apache.nifi.web.dao.impl.StandardProcessorDAO.getState(StandardProcessorDAO.java:462)
~[classes/:na]
at
org.apache.nifi.web.dao.impl.StandardProcessorDAO$$FastClassBySpringCGLIB$$779e089b.invoke(<generated>)
~[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]
{code}
> Framework should offer Processors/extensions a way to manage simple state
> -------------------------------------------------------------------------
>
> Key: NIFI-259
> URL: https://issues.apache.org/jira/browse/NIFI-259
> Project: Apache NiFi
> Issue Type: Sub-task
> Components: Core Framework
> Reporter: Joseph Witt
> Assignee: Mark Payne
> Fix For: 0.5.0
>
> Attachments: error-message.png
>
>
> It is not uncommon for processors to need managed state which persists
> across restarts. One good example of this is the GetHTTP processor which
> needs to save state of the last cache/e-tag information it received from the
> server it interacts with so that it can avoid constantly pulling an unchanged
> resource.
> Rather than making processors roll their own persistant state management
> perhaps we can offer something to them via the ProcessContext which will
> allow them to save simple primitive values and limited length Strings which
> are local to that node and which are local to that processor only.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)