struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: AnnotationValidationConfigurationBuilder.validationFactory is null after updating from 2.2.1.1 to 2.3.8
Date Fri, 11 Jan 2013 09:08:20 GMT
Nope, the cause is missing and type of the Exception like below:

Exception in thread "main" java.lang.IllegalStateException: A book has
a null property
        at com.example.myproject.Author.getBookIds(Author.java:38)
        at com.example.myproject.Bootstrap.main(Bootstrap.java:14)
Caused by: java.lang.NullPointerException
        at com.example.myproject.Book.getId(Book.java:22)
        at com.example.myproject.Author.getBookIds(Author.java:35)
        ... 1 more

2013/1/11 Jan-Olav Eide <janolaveide@gmail.com>:
> I think what I just posted is the whole trace ?
>
> On 11 January 2013 10:00, Lukasz Lenart <lukaszlenart@apache.org> wrote:
>> Could you post the whole stack trace?
>>
>>
>> Regards
>> --
>> Ɓukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> 2013/1/11 Jan-Olav Eide <janolaveide@gmail.com>:
>>> After updating, I now receive the following stack trace when executing
>>> certain operations. As can be seen, this stack-trace onvolves none of
>>> my code, so I am not sure what else to include here to aid debugging.
>>> So I guess my first question is what erroneous configuration could
>>> cause the validatorFactory to be null in
>>> AnnotationValidationConfigurationBuilder ?
>>>
>>>     com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processVisitorFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:485)
>>>     com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationValidationConfigurationBuilder.java:208)
>>>     com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.buildAnnotationClassValidatorConfigs(AnnotationValidationConfigurationBuilder.java:781)
>>>     com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:283)
>>>     com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:371)
>>>     com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:102)
>>>     com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:141)
>>>     com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:133)
>>>     com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:128)
>>>     com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:222)
>>>     com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
>>>     org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
>>>     com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     org.apache.struts2.rest.ContentTypeInterceptor.intercept(ContentTypeInterceptor.java:66)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)
>>>     com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:238)
>>>     com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
>>>     com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     org.apache.struts2.interceptor.MessageStoreInterceptor.intercept(MessageStoreInterceptor.java:194)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
>>>     com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:242)
>>>     org.apache.struts2.rest.RestActionInvocation.invoke(RestActionInvocation.java:138)
>>>     com.opensymphony.xwork2.DefaultActionProxy.execute(DefaultActionProxy.java:147)
>>>     org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:544)
>>>     org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
>>>     org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
>>>     org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>>>     org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>>     org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>>     org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>>     org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>>     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>>     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
>>>     org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>>     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>>     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>>>     org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
>>>     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>>>     org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>>>     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>>     java.lang.Thread.run(Thread.java:662)
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

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


Mime
View raw message