struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ritvars Rundz─üns <rrundz...@gmail.com>
Subject Re: Setter in action triggers twice. Bug?
Date Thu, 16 Jul 2009 17:35:28 GMT
I put BP @ setCmd.

1st hit:
-------------------------------------------------------------------------------------------->
Daemon Thread [http-8080-2] (Suspended (breakpoint at line 28 in Person))

    Person.setCmd(String) line: 28
    NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
available [native method]
    NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
    DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
    Method.invoke(Object, Object...) line: 597
    OgnlRuntime.invokeMethod(Object, Method, Object[]) line: 517
    OgnlRuntime.callAppropriateMethod(OgnlContext, Object, Object, String,
String, List, Object[]) line: 812
    OgnlRuntime.setMethodValue(OgnlContext, Object, String, Object, boolean)
line: 964
    ObjectAccessor(ObjectPropertyAccessor).setPossibleProperty(Map, Object,
String, Object) line: 75
    ObjectAccessor(ObjectPropertyAccessor).setProperty(Map, Object, Object,
Object) line: 131
    ObjectAccessor.setProperty(Map, Object, Object, Object) line: 28
    OgnlRuntime.setProperty(OgnlContext, Object, Object, Object) line:
1656
    CompoundRootAccessor.setProperty(Map, Object, Object, Object) line:
50
    OgnlRuntime.setProperty(OgnlContext, Object, Object, Object) line:
1656
    ASTProperty.setValueBody(OgnlContext, Object, Object) line: 101
    ASTProperty(SimpleNode).evaluateSetValueBody(OgnlContext, Object,
Object) line: 177
    ASTProperty(SimpleNode).setValue(OgnlContext, Object, Object) line:
246
    Ognl.setValue(Object, Map, Object, Object) line: 476
    OgnlUtil.setValue(String, Map<String,Object>, Object, Object) line:
192
    OgnlValueStack.setValue(String, Object, boolean) line: 155
    OgnlValueStack.setValue(String, Object) line: 143
    StaticParametersInterceptor.intercept(ActionInvocation) line: 129
    DefaultActionInvocation.invoke() line: 236
    CheckboxInterceptor.intercept(ActionInvocation) line: 93
    DefaultActionInvocation.invoke() line: 236
    FileUploadInterceptor.intercept(ActionInvocation) line: 235
    DefaultActionInvocation.invoke() line: 236
    ModelDrivenInterceptor.intercept(ActionInvocation) line: 89
    DefaultActionInvocation.invoke() line: 236
    ScopedModelDrivenInterceptor.intercept(ActionInvocation) line: 128
    DefaultActionInvocation.invoke() line: 236
    ProfilingActivationInterceptor.intercept(ActionInvocation) line: 104
    DefaultActionInvocation.invoke() line: 236
    DebuggingInterceptor.intercept(ActionInvocation) line: 267
    DefaultActionInvocation.invoke() line: 236
    ChainingInterceptor.intercept(ActionInvocation) line: 126
    DefaultActionInvocation.invoke() line: 236
    PrepareInterceptor.doIntercept(ActionInvocation) line: 138
    PrepareInterceptor(MethodFilterInterceptor).intercept(ActionInvocation)
line: 87
    DefaultActionInvocation.invoke() line: 236
    I18nInterceptor.intercept(ActionInvocation) line: 148
    DefaultActionInvocation.invoke() line: 236
    ServletConfigInterceptor.intercept(ActionInvocation) line: 164
    DefaultActionInvocation.invoke() line: 236
    AliasInterceptor.intercept(ActionInvocation) line: 128
    DefaultActionInvocation.invoke() line: 236
    ExceptionMappingInterceptor.intercept(ActionInvocation) line: 176
    DefaultActionInvocation.invoke() line: 236
    StrutsActionProxy.execute() line: 52
    Dispatcher.serviceAction(HttpServletRequest, HttpServletResponse,
ServletContext, ActionMapping) line: 468
    ExecuteOperations.executeAction(HttpServletRequest, HttpServletResponse,
ActionMapping) line: 77
    StrutsPrepareAndExecuteFilter.doFilter(ServletRequest, ServletResponse,
FilterChain) line: 76
    ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse)
line: 235
    ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line:
206
    StandardWrapperValve.invoke(Request, Response) line: 233
    StandardContextValve.invoke(Request, Response) line: 191
    StandardHostValve.invoke(Request, Response) line: 128
    ErrorReportValve.invoke(Request, Response) line: 102
    StandardEngineValve.invoke(Request, Response) line: 109
    CoyoteAdapter.service(Request, Response) line: 286
    Http11Processor.process(Socket) line: 845
    Http11Protocol$Http11ConnectionHandler.process(Socket) line: 583
    JIoEndpoint$Worker.run() line: 447
    Thread.run() line: 619
<-------------------------------------------------------------------------------------------------------------------------------------------

2nd one:
-------------------------------------------------------------------------------------------->
Daemon Thread [http-8080-2] (Suspended (breakpoint at line 28 in Person))

    Person.setCmd(String) line: 28
    NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
available [native method]
    NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39
    DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
    Method.invoke(Object, Object...) line: 597
    OgnlRuntime.invokeMethod(Object, Method, Object[]) line: 517
    OgnlRuntime.callAppropriateMethod(OgnlContext, Object, Object, String,
String, List, Object[]) line: 812
    OgnlRuntime.setMethodValue(OgnlContext, Object, String, Object, boolean)
line: 964
    ObjectAccessor(ObjectPropertyAccessor).setPossibleProperty(Map, Object,
String, Object) line: 75
    ObjectAccessor(ObjectPropertyAccessor).setProperty(Map, Object, Object,
Object) line: 131
    ObjectAccessor.setProperty(Map, Object, Object, Object) line: 28
    OgnlRuntime.setProperty(OgnlContext, Object, Object, Object) line:
1656
    CompoundRootAccessor.setProperty(Map, Object, Object, Object) line:
50
    OgnlRuntime.setProperty(OgnlContext, Object, Object, Object) line:
1656
    ASTProperty.setValueBody(OgnlContext, Object, Object) line: 101
    ASTProperty(SimpleNode).evaluateSetValueBody(OgnlContext, Object,
Object) line: 177
    ASTProperty(SimpleNode).setValue(OgnlContext, Object, Object) line:
246
    Ognl.setValue(Object, Map, Object, Object) line: 476
    OgnlUtil.setValue(String, Map<String,Object>, Object, Object) line:
192
    OgnlValueStack.setValue(String, Object, boolean) line: 155
    OgnlValueStack.setValue(String, Object) line: 143
    ParametersInterceptor.setParameters(Object, ValueStack,
Map<String,Object>) line: 273
    ParametersInterceptor.doIntercept(ActionInvocation) line: 187

ParametersInterceptor(MethodFilterInterceptor).intercept(ActionInvocation)
line: 87
    DefaultActionInvocation.invoke() line: 236

ActionMappingParametersInteceptor(ParametersInterceptor).doIntercept(ActionInvocation)
line: 195

ActionMappingParametersInteceptor(MethodFilterInterceptor).intercept(ActionInvocation)
line: 87
    DefaultActionInvocation.invoke() line: 236
    StaticParametersInterceptor.intercept(ActionInvocation) line: 148
    DefaultActionInvocation.invoke() line: 236
    CheckboxInterceptor.intercept(ActionInvocation) line: 93
    DefaultActionInvocation.invoke() line: 236
    FileUploadInterceptor.intercept(ActionInvocation) line: 235
    DefaultActionInvocation.invoke() line: 236
    ModelDrivenInterceptor.intercept(ActionInvocation) line: 89
    DefaultActionInvocation.invoke() line: 236
    ScopedModelDrivenInterceptor.intercept(ActionInvocation) line: 128
    DefaultActionInvocation.invoke() line: 236
    ProfilingActivationInterceptor.intercept(ActionInvocation) line: 104
    DefaultActionInvocation.invoke() line: 236
    DebuggingInterceptor.intercept(ActionInvocation) line: 267
    DefaultActionInvocation.invoke() line: 236
    ChainingInterceptor.intercept(ActionInvocation) line: 126
    DefaultActionInvocation.invoke() line: 236
    PrepareInterceptor.doIntercept(ActionInvocation) line: 138
    PrepareInterceptor(MethodFilterInterceptor).intercept(ActionInvocation)
line: 87
    DefaultActionInvocation.invoke() line: 236
    I18nInterceptor.intercept(ActionInvocation) line: 148
    DefaultActionInvocation.invoke() line: 236
    ServletConfigInterceptor.intercept(ActionInvocation) line: 164
    DefaultActionInvocation.invoke() line: 236
    AliasInterceptor.intercept(ActionInvocation) line: 128
    DefaultActionInvocation.invoke() line: 236
    ExceptionMappingInterceptor.intercept(ActionInvocation) line: 176
    DefaultActionInvocation.invoke() line: 236
    StrutsActionProxy.execute() line: 52
    Dispatcher.serviceAction(HttpServletRequest, HttpServletResponse,
ServletContext, ActionMapping) line: 468
    ExecuteOperations.executeAction(HttpServletRequest, HttpServletResponse,
ActionMapping) line: 77
    StrutsPrepareAndExecuteFilter.doFilter(ServletRequest, ServletResponse,
FilterChain) line: 76
    ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse)
line: 235
    ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line:
206
    StandardWrapperValve.invoke(Request, Response) line: 233
    StandardContextValve.invoke(Request, Response) line: 191
    StandardHostValve.invoke(Request, Response) line: 128
    ErrorReportValve.invoke(Request, Response) line: 102
    StandardEngineValve.invoke(Request, Response) line: 109
    CoyoteAdapter.service(Request, Response) line: 286
    Http11Processor.process(Socket) line: 845
    Http11Protocol$Http11ConnectionHandler.process(Socket) line: 583
    JIoEndpoint$Worker.run() line: 447
    Thread.run() line: 619
<
--------------------------------------------------------------------------------------------

Tomcat 6 used as a container.

Just compared 2 traces. They are almost identical, except 1st one has:
    StaticParametersInterceptor.intercept(ActionInvocation) line: 129

, but 2nd one [has it replaced with]
    ParametersInterceptor.setParameters(Object, ValueStack,
Map<String,Object>) line: 273
    ParametersInterceptor.doIntercept(ActionInvocation) line: 187

ParametersInterceptor(MethodFilterInterceptor).intercept(ActionInvocation)
line: 87
    DefaultActionInvocation.invoke() line: 236

ActionMappingParametersInteceptor(ParametersInterceptor).doIntercept(ActionInvocation)
line: 195

ActionMappingParametersInteceptor(MethodFilterInterceptor).intercept(ActionInvocation)
line: 87
    DefaultActionInvocation.invoke() line: 236
    StaticParametersInterceptor.intercept(ActionInvocation) line: 148
.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message