You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Swapna Ponnam <sw...@gmail.com> on 2023/02/13 14:19:41 UTC

Getting InstantiatingNullHandler exception while using Struts2.5.30

Hi,



Getting InstantiatingNullHandler exception while using Struts2.5.30.
Please help me on this.

INFO  [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR
com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could
not create and/or set value back on to object

java.lang.InstantiationException: java.io.Serializable

        at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332]

        at
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39)
~[struts2-core-2.5.30.jar:2.5.30]

        at ognl.ASTProperty.getValueBody(ASTProperty.java:125)
~[ognl-3.1.29.jar:?]

        at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
~[ognl-3.1.29.jar:?]

        at ognl.SimpleNode.getValue(SimpleNode.java:258)
~[ognl-3.1.29.jar:?]

        at ognl.ASTChain.setValueBody(ASTChain.java:222)
~[ognl-3.1.29.jar:?]

        at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
~[ognl-3.1.29.jar:?]

        at ognl.SimpleNode.setValue(SimpleNode.java:308)
~[ognl-3.1.29.jar:?]

        at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?]

        at
com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:321)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:228)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
~[struts2-core-2.5.30.jar:2.5.30]

        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:574)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
~[struts2-core-2.5.30.jar:2.5.30]

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA dat

2023-02-09 10:21:48,156 INFO  [STDOUT] e=200905221634)]

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]

        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]

        at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]

        at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
date=200905221634)]

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)]

        at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]

Caused by: java.lang.NoSuchMethodException: java.io.Serializable.<init>()

        at java.lang.Class.getConstructor0(Class.java:3082) ~[?:1.8.0_332]

        at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_332]

        ... 77 more







-- 
Thanks & Regards
Swapna Ponnam
Mobile:+91-9959207096
Mail : swapna.ponnam@gmail.com

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

Posted by Lukasz Lenart <lu...@apache.org>.
Could you enable DEBUG level for the class
"com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler" and
post the log?

pon., 13 lut 2023 o 16:36 Swapna Ponnam <sw...@gmail.com> napisał(a):
>
> Here is the Request URL:
> https://localhost/app/PerformLater.action?view=json&username=admin&password=password
> Request Method: POST
>
> view=json&username=admin&password=password
> *payload :*
>
> applicationName:Main
> name:PING_IPADDRESSES
> resources.crontab:
> 14 23 12 2 0
> resources.description:
> resources.invoke:
> true
> resources.visibility:USER_VIEWABLE
> resources.runTaskNow:false
> resources.scheduleTime:2023-2-12 23:14:55 IST
> req.neInfo[0].ipAddress:10.51.251.90
>
>
>
> This is the action configuration:
> <action name="PerformLater"
> class="com.app.mvc.controller.useraction.soa.PerformLater">
> <interceptor-ref name="defaultStack"/></action>
>
> On Mon, Feb 13, 2023 at 8:48 PM Dave Newton <da...@gmail.com> wrote:
>
> > And what are you sending, what is the action, what is the action
> > configuration?
> >
> > On Mon, Feb 13, 2023 at 09:48 Swapna Ponnam <sw...@gmail.com>
> > wrote:
> >
> > > while hitting the backens (action) call the error getting in the logs.
> > >
> > > On Mon, Feb 13, 2023 at 8:09 PM Dave Newton <da...@gmail.com>
> > wrote:
> > >
> > > > And when does this happen?
> > > >
> > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam <sw...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > >
> > > > >
> > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30.
> > > > > Please help me on this.
> > > > >
> > > > > INFO  [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR
> > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler -
> > > Could
> > > > > not create and/or set value back on to object
> > > > >
> > > > > java.lang.InstantiationException: java.io.Serializable
> > > > >
> > > > >         at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332]
> > > > >
> > > > >         at
> > > > >
> > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at ognl.ASTProperty.getValueBody(ASTProperty.java:125)
> > > > > ~[ognl-3.1.29.jar:?]
> > > > >
> > > > >         at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
> > > > > ~[ognl-3.1.29.jar:?]
> > > > >
> > > > >         at ognl.SimpleNode.getValue(SimpleNode.java:258)
> > > > > ~[ognl-3.1.29.jar:?]
> > > > >
> > > > >         at ognl.ASTChain.setValueBody(ASTChain.java:222)
> > > > > ~[ognl-3.1.29.jar:?]
> > > > >
> > > > >         at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
> > > > > ~[ognl-3.1.29.jar:?]
> > > > >
> > > > >         at ognl.SimpleNode.setValue(SimpleNode.java:308)
> > > > > ~[ognl-3.1.29.jar:?]
> > > > >
> > > > >         at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?]
> > > > >
> > > > >         at
> > > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:321)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:228)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > >
> > >
> > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:574)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
> > > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> > > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA dat
> > > > >
> > > > > 2023-02-09 10:21:48,156 INFO  [STDOUT] e=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> > > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> > > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> > > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> > > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> > > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > >
> > >
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > >
> > >
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > >
> > > > >
> > > >
> > >
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at
> > > > > org.apache.tomcat.util.net
> > > .JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> > > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > > date=200905221634)]
> > > > >
> > > > >         at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
> > > > >
> > > > > Caused by: java.lang.NoSuchMethodException:
> > > java.io.Serializable.<init>()
> > > > >
> > > > >         at java.lang.Class.getConstructor0(Class.java:3082)
> > > > ~[?:1.8.0_332]
> > > > >
> > > > >         at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_332]
> > > > >
> > > > >         ... 77 more
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Thanks & Regards
> > > > > Swapna Ponnam
> > > > > Mobile:+91-9959207096
> > > > > Mail : swapna.ponnam@gmail.com
> > > > >
> > > > --
> > > > em: davelnewton@gmail.com
> > > > mo: 908-380-8699
> > > > gh: davelnewton <https://github.com/davelnewton>
> > > > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> > > > bl: Maker's End Blog <https://blog.makersend.com>
> > > >
> > >
> > >
> > > --
> > > Thanks & Regards
> > > Swapna Ponnam
> > > Mobile:+91-9959207096
> > > Mail : swapna.ponnam@gmail.com
> > >
> > --
> > em: davelnewton@gmail.com
> > mo: 908-380-8699
> > gh: davelnewton <https://github.com/davelnewton>
> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> > bl: Maker's End Blog <https://blog.makersend.com>
> >
>
>
> --
> Thanks & Regards
> Swapna Ponnam
> Mobile:+91-9959207096
> Mail : swapna.ponnam@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

Posted by Swapna Ponnam <sw...@gmail.com>.
Here is the Request URL:
https://localhost/app/PerformLater.action?view=json&username=admin&password=password
Request Method: POST

view=json&username=admin&password=password
*payload :*

applicationName:Main
name:PING_IPADDRESSES
resources.crontab:
14 23 12 2 0
resources.description:
resources.invoke:
true
resources.visibility:USER_VIEWABLE
resources.runTaskNow:false
resources.scheduleTime:2023-2-12 23:14:55 IST
req.neInfo[0].ipAddress:10.51.251.90



This is the action configuration:
<action name="PerformLater"
class="com.app.mvc.controller.useraction.soa.PerformLater">
<interceptor-ref name="defaultStack"/></action>

On Mon, Feb 13, 2023 at 8:48 PM Dave Newton <da...@gmail.com> wrote:

> And what are you sending, what is the action, what is the action
> configuration?
>
> On Mon, Feb 13, 2023 at 09:48 Swapna Ponnam <sw...@gmail.com>
> wrote:
>
> > while hitting the backens (action) call the error getting in the logs.
> >
> > On Mon, Feb 13, 2023 at 8:09 PM Dave Newton <da...@gmail.com>
> wrote:
> >
> > > And when does this happen?
> > >
> > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam <sw...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > >
> > > >
> > > > Getting InstantiatingNullHandler exception while using Struts2.5.30.
> > > > Please help me on this.
> > > >
> > > > INFO  [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR
> > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler -
> > Could
> > > > not create and/or set value back on to object
> > > >
> > > > java.lang.InstantiationException: java.io.Serializable
> > > >
> > > >         at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332]
> > > >
> > > >         at
> > > >
> com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at ognl.ASTProperty.getValueBody(ASTProperty.java:125)
> > > > ~[ognl-3.1.29.jar:?]
> > > >
> > > >         at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
> > > > ~[ognl-3.1.29.jar:?]
> > > >
> > > >         at ognl.SimpleNode.getValue(SimpleNode.java:258)
> > > > ~[ognl-3.1.29.jar:?]
> > > >
> > > >         at ognl.ASTChain.setValueBody(ASTChain.java:222)
> > > > ~[ognl-3.1.29.jar:?]
> > > >
> > > >         at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
> > > > ~[ognl-3.1.29.jar:?]
> > > >
> > > >         at ognl.SimpleNode.setValue(SimpleNode.java:308)
> > > > ~[ognl-3.1.29.jar:?]
> > > >
> > > >         at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?]
> > > >
> > > >         at
> > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:321)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:228)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > >
> >
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:574)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
> > > > ~[struts2-core-2.5.30.jar:2.5.30]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA dat
> > > >
> > > > 2023-02-09 10:21:48,156 INFO  [STDOUT] e=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> > > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > >
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > >
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > >
> > > >
> > >
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at
> > > > org.apache.tomcat.util.net
> > .JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> > > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > > date=200905221634)]
> > > >
> > > >         at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
> > > >
> > > > Caused by: java.lang.NoSuchMethodException:
> > java.io.Serializable.<init>()
> > > >
> > > >         at java.lang.Class.getConstructor0(Class.java:3082)
> > > ~[?:1.8.0_332]
> > > >
> > > >         at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_332]
> > > >
> > > >         ... 77 more
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks & Regards
> > > > Swapna Ponnam
> > > > Mobile:+91-9959207096
> > > > Mail : swapna.ponnam@gmail.com
> > > >
> > > --
> > > em: davelnewton@gmail.com
> > > mo: 908-380-8699
> > > gh: davelnewton <https://github.com/davelnewton>
> > > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> > > bl: Maker's End Blog <https://blog.makersend.com>
> > >
> >
> >
> > --
> > Thanks & Regards
> > Swapna Ponnam
> > Mobile:+91-9959207096
> > Mail : swapna.ponnam@gmail.com
> >
> --
> em: davelnewton@gmail.com
> mo: 908-380-8699
> gh: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> bl: Maker's End Blog <https://blog.makersend.com>
>


-- 
Thanks & Regards
Swapna Ponnam
Mobile:+91-9959207096
Mail : swapna.ponnam@gmail.com

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

Posted by Dave Newton <da...@gmail.com>.
And what are you sending, what is the action, what is the action
configuration?

On Mon, Feb 13, 2023 at 09:48 Swapna Ponnam <sw...@gmail.com> wrote:

> while hitting the backens (action) call the error getting in the logs.
>
> On Mon, Feb 13, 2023 at 8:09 PM Dave Newton <da...@gmail.com> wrote:
>
> > And when does this happen?
> >
> > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam <sw...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > >
> > >
> > > Getting InstantiatingNullHandler exception while using Struts2.5.30.
> > > Please help me on this.
> > >
> > > INFO  [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR
> > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler -
> Could
> > > not create and/or set value back on to object
> > >
> > > java.lang.InstantiationException: java.io.Serializable
> > >
> > >         at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332]
> > >
> > >         at
> > > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at ognl.ASTProperty.getValueBody(ASTProperty.java:125)
> > > ~[ognl-3.1.29.jar:?]
> > >
> > >         at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
> > > ~[ognl-3.1.29.jar:?]
> > >
> > >         at ognl.SimpleNode.getValue(SimpleNode.java:258)
> > > ~[ognl-3.1.29.jar:?]
> > >
> > >         at ognl.ASTChain.setValueBody(ASTChain.java:222)
> > > ~[ognl-3.1.29.jar:?]
> > >
> > >         at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
> > > ~[ognl-3.1.29.jar:?]
> > >
> > >         at ognl.SimpleNode.setValue(SimpleNode.java:308)
> > > ~[ognl-3.1.29.jar:?]
> > >
> > >         at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?]
> > >
> > >         at
> > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:321)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:228)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> >
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:574)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
> > > ~[struts2-core-2.5.30.jar:2.5.30]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA dat
> > >
> > > 2023-02-09 10:21:48,156 INFO  [STDOUT] e=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> > > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > >
> > >
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at
> > > org.apache.tomcat.util.net
> .JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> > > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > > date=200905221634)]
> > >
> > >         at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
> > >
> > > Caused by: java.lang.NoSuchMethodException:
> java.io.Serializable.<init>()
> > >
> > >         at java.lang.Class.getConstructor0(Class.java:3082)
> > ~[?:1.8.0_332]
> > >
> > >         at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_332]
> > >
> > >         ... 77 more
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Thanks & Regards
> > > Swapna Ponnam
> > > Mobile:+91-9959207096
> > > Mail : swapna.ponnam@gmail.com
> > >
> > --
> > em: davelnewton@gmail.com
> > mo: 908-380-8699
> > gh: davelnewton <https://github.com/davelnewton>
> > so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> > bl: Maker's End Blog <https://blog.makersend.com>
> >
>
>
> --
> Thanks & Regards
> Swapna Ponnam
> Mobile:+91-9959207096
> Mail : swapna.ponnam@gmail.com
>
-- 
em: davelnewton@gmail.com
mo: 908-380-8699
gh: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
bl: Maker's End Blog <https://blog.makersend.com>

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

Posted by Lukasz Lenart <lu...@apache.org>.
pon., 13 lut 2023 o 15:48 Swapna Ponnam <sw...@gmail.com> napisał(a):
>
> while hitting the backens (action) call the error getting in the logs.

Do you mean the Back button in a browser?


Regards
-- 
Łukasz

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

Posted by Swapna Ponnam <sw...@gmail.com>.
while hitting the backens (action) call the error getting in the logs.

On Mon, Feb 13, 2023 at 8:09 PM Dave Newton <da...@gmail.com> wrote:

> And when does this happen?
>
> On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam <sw...@gmail.com>
> wrote:
>
> > Hi,
> >
> >
> >
> > Getting InstantiatingNullHandler exception while using Struts2.5.30.
> > Please help me on this.
> >
> > INFO  [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR
> > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could
> > not create and/or set value back on to object
> >
> > java.lang.InstantiationException: java.io.Serializable
> >
> >         at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332]
> >
> >         at
> > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at ognl.ASTProperty.getValueBody(ASTProperty.java:125)
> > ~[ognl-3.1.29.jar:?]
> >
> >         at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
> > ~[ognl-3.1.29.jar:?]
> >
> >         at ognl.SimpleNode.getValue(SimpleNode.java:258)
> > ~[ognl-3.1.29.jar:?]
> >
> >         at ognl.ASTChain.setValueBody(ASTChain.java:222)
> > ~[ognl-3.1.29.jar:?]
> >
> >         at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
> > ~[ognl-3.1.29.jar:?]
> >
> >         at ognl.SimpleNode.setValue(SimpleNode.java:308)
> > ~[ognl-3.1.29.jar:?]
> >
> >         at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?]
> >
> >         at
> > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:321)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:228)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:574)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
> > ~[struts2-core-2.5.30.jar:2.5.30]
> >
> >         at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA dat
> >
> > 2023-02-09 10:21:48,156 INFO  [STDOUT] e=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> > ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> >
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> > ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> > date=200905221634)]
> >
> >         at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
> >
> > Caused by: java.lang.NoSuchMethodException: java.io.Serializable.<init>()
> >
> >         at java.lang.Class.getConstructor0(Class.java:3082)
> ~[?:1.8.0_332]
> >
> >         at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_332]
> >
> >         ... 77 more
> >
> >
> >
> >
> >
> >
> >
> > --
> > Thanks & Regards
> > Swapna Ponnam
> > Mobile:+91-9959207096
> > Mail : swapna.ponnam@gmail.com
> >
> --
> em: davelnewton@gmail.com
> mo: 908-380-8699
> gh: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> bl: Maker's End Blog <https://blog.makersend.com>
>


-- 
Thanks & Regards
Swapna Ponnam
Mobile:+91-9959207096
Mail : swapna.ponnam@gmail.com

Re: Getting InstantiatingNullHandler exception while using Struts2.5.30

Posted by Dave Newton <da...@gmail.com>.
And when does this happen?

On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam <sw...@gmail.com> wrote:

> Hi,
>
>
>
> Getting InstantiatingNullHandler exception while using Struts2.5.30.
> Please help me on this.
>
> INFO  [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could
> not create and/or set value back on to object
>
> java.lang.InstantiationException: java.io.Serializable
>
>         at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332]
>
>         at
> com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at ognl.ASTProperty.getValueBody(ASTProperty.java:125)
> ~[ognl-3.1.29.jar:?]
>
>         at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
> ~[ognl-3.1.29.jar:?]
>
>         at ognl.SimpleNode.getValue(SimpleNode.java:258)
> ~[ognl-3.1.29.jar:?]
>
>         at ognl.ASTChain.setValueBody(ASTChain.java:222)
> ~[ognl-3.1.29.jar:?]
>
>         at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
> ~[ognl-3.1.29.jar:?]
>
>         at ognl.SimpleNode.setValue(SimpleNode.java:308)
> ~[ognl-3.1.29.jar:?]
>
>         at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?]
>
>         at
> com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
> com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
> com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
> com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:321)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:142)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:160)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:175)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:121)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:167)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:228)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:48)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:574)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
> ~[struts2-core-2.5.30.jar:2.5.30]
>
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA dat
>
> 2023-02-09 10:21:48,156 INFO  [STDOUT] e=200905221634)]
>
>         at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
> ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
> ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> ~[jboss-web-service.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> ~[jbossweb.jar!/:5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA
> date=200905221634)]
>
>         at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_332]
>
> Caused by: java.lang.NoSuchMethodException: java.io.Serializable.<init>()
>
>         at java.lang.Class.getConstructor0(Class.java:3082) ~[?:1.8.0_332]
>
>         at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_332]
>
>         ... 77 more
>
>
>
>
>
>
>
> --
> Thanks & Regards
> Swapna Ponnam
> Mobile:+91-9959207096
> Mail : swapna.ponnam@gmail.com
>
-- 
em: davelnewton@gmail.com
mo: 908-380-8699
gh: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
bl: Maker's End Blog <https://blog.makersend.com>