← Back to team overview

dhis2-users team mailing list archive

Re: 2.21 tracker capture

 

Dear Nami,

 

I Faced  error before

 

This error might be, if you select attribute in program and this attribute
not exist in registration form

 

Regards,

 

 

From: Dhis2-users
[mailto:dhis2-users-bounces+abdulkarim.jaafar87=gmail.com@xxxxxxxxxxxxxxxxxx
t] On Behalf Of Nami ghadri
Sent: Wednesday, October 21, 2015 1:45 PM
To: dhis2-users@xxxxxxxxxxxxxxxxxxx
Subject: [Dhis2-users] 2.21 tracker capture

 

hello dears,

 

i am using dhis2 2.21 in order to use tracker capture 

 

when i enter info and press save and continue it gives me "


Error in registration"


 

and the output of log for that is:

 

 ERROR 2015-10-21 13:33:40,581 Exception occurred during processing request:
getOutputStream() has already been called for this response
(CommonsLogger.java [http-nio-0.0.0.0-8089-exec-6])

java.lang.IllegalStateException: getOutputStream() has already been called
for this response

            at
org.apache.catalina.connector.Response.getWriter(Response.java:578)

            at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:2
12)

            at
javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:1
09)

            at
javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:1
09)

            at
org.springframework.security.web.context.OnCommittedResponseWrapper.getWrite
r(OnCommittedResponseWrapper.java:133)

            at
org.springframework.security.web.context.SaveContextOnUpdateOrErrorResponseW
rapper.getWriter(SaveContextOnUpdateOrErrorResponseWrapper.java:40)

            at
org.hisp.dhis.result.PlainTextErrorResult.execute(PlainTextErrorResult.java:
98)

            at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionI
nvocation.java:371)

            at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:275)

            at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)

            at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:562)

            at
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOper
ations.java:77)

            at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilt
er(StrutsPrepareAndExecuteFilter.java:99)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:239)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:330)

            at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.
invoke(FilterSecurityInterceptor.java:118)

            at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.
doFilter(FilterSecurityInterceptor.java:84)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(
ExceptionTranslationFilter.java:113)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.session.SessionManagementFilter.doFilter(Se
ssionManagementFilter.java:103)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.authentication.AnonymousAuthenticationFilte
r.doFilter(AnonymousAuthenticationFilter.java:113)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.servletapi.SecurityContextHolderAwareReques
tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilt
er(RequestCacheAwareFilter.java:45)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.authentication.www.BasicAuthenticationFilte
r.doFilter(BasicAuthenticationFilter.java:150)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:87)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.authentication.AbstractAuthenticationProces
singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.authentication.AbstractAuthenticationProces
singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.hisp.dhis.security.filter.CustomAuthenticationFilter.doFilter(CustomAuth
enticationFilter.java:64)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.oauth2.provider.authentication.OAuth2Authentica
tionProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:140)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter
(LogoutFilter.java:110)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccess
Filter.java:115)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(
HeaderWriterFilter.java:57)

            at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.context.request.async.WebAsyncManagerIntegr
ationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)

            at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.context.SecurityContextPersistenceFilter.do
Filter(SecurityContextPersistenceFilter.java:87)

            at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte
r(FilterChainProxy.java:342)

            at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterCha
inProxy.java:192)

            at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
java:160)

            at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Delegati
ngFilterProxy.java:344)

            at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilt
erProxy.java:261)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:239)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterI
nternal(OpenSessionInViewFilter.java:151)

            at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:239)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Char
acterEncodingFilter.java:85)

            at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:107)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:239)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:219)

            at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:106)

            at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:502)

            at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142
)

            at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

            at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogVa
lve.java:617)

            at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:88)

            at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)

            at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
ssor.java:1091)

            at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
tProtocol.java:668)

            at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.jav
a:1527)

            at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:
1484)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)

            at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.ja
va:61)

            at java.lang.Thread.run(Unknown Source)

 

thanks in advance

 


References