Skip to main content
added 2628 characters in body
Source Link

Edit: This is our initializer code


@Component
@ComponentScan("com.sdl.dxa.modules.generic")
@RegisteredViewModels({
        @RegisteredViewModel(viewName = "CustomTeaser_jsp", modelClass = CustomTeaser.class, controllerName = "Generic"),
        @RegisteredViewModel(viewName = "CodeBlock_jsp",  modelClass = CodeBlock.class, controllerName = "Generic"),
        @RegisteredViewModel(viewName = "SiteMap_jsp", modelClass = SitemapItem.class, controllerName = "Generic"),
        @RegisteredViewModel(viewName = "ShortArticle_jsp", modelClass = Article.class, controllerName = "Generic"),

This is our controller code.


@Controller
public class CampaignRedirectsController {

    // TODO: Move this to common-impl or core-module

    private static final Logger LOG = LoggerFactory.getLogger(CampaignRedirectsController.class);

    private final UrlPathHelper urlPathHelper = new UrlPathHelper();
    private final ContentProvider contentProvider;
    private final LinkResolver linkResolver;
    private final MediaHelper mediaHelper;
    private final WebRequestContext webRequestContext;
    private final Markup markup;
    private final ViewResolver viewResolver;
    private final DataFormatter dataFormatters;
    @Value("#{environment.getProperty('AllowJsonResponse', 'false')}")
    private boolean allowJsonResponse;

    @Autowired
    public CampaignRedirectsController(ContentProvider contentProvider, LinkResolver linkResolver, MediaHelper mediaHelper,
                                       WebRequestContext webRequestContext, Markup markup, ViewResolver viewResolver, DataFormatter dataFormatter) {
        this.contentProvider = contentProvider;
        this.linkResolver = linkResolver;
        this.mediaHelper = mediaHelper;
        this.webRequestContext = webRequestContext;
        this.markup = markup;
        this.viewResolver = viewResolver;
        this.dataFormatters = dataFormatter;
    }

    private static boolean isIncludeRequest(HttpServletRequest request) {
        return request.getAttribute(WebUtils.INCLUDE_REQUEST_URI_ATTRIBUTE) != null;
    }

    @RequestMapping(method = RequestMethod.GET, value = {"/{shortcutName}",
            "/f/{shortcutName}",
            "/g/{shortcutName}",
            "/l/{shortcutName}",
            "/t/{shortcutName}",
            "/i/{shortcutName}",
            "/s/{shortcutName}",
            "/q/{shortcutName}",
            "/e/{shortcutName}"}, produces = {MediaType.TEXT_HTML_VALUE, MediaType.ALL_VALUE})
    public String handleCampaignRedirectsPage(@PathVariable Map pathVariables, HttpServletRequest request, HttpServletResponse response) throws Exception {

Edit: This is our initializer code


@Component
@ComponentScan("com.sdl.dxa.modules.generic")
@RegisteredViewModels({
        @RegisteredViewModel(viewName = "CustomTeaser_jsp", modelClass = CustomTeaser.class, controllerName = "Generic"),
        @RegisteredViewModel(viewName = "CodeBlock_jsp",  modelClass = CodeBlock.class, controllerName = "Generic"),
        @RegisteredViewModel(viewName = "SiteMap_jsp", modelClass = SitemapItem.class, controllerName = "Generic"),
        @RegisteredViewModel(viewName = "ShortArticle_jsp", modelClass = Article.class, controllerName = "Generic"),

This is our controller code.


@Controller
public class CampaignRedirectsController {

    // TODO: Move this to common-impl or core-module

    private static final Logger LOG = LoggerFactory.getLogger(CampaignRedirectsController.class);

    private final UrlPathHelper urlPathHelper = new UrlPathHelper();
    private final ContentProvider contentProvider;
    private final LinkResolver linkResolver;
    private final MediaHelper mediaHelper;
    private final WebRequestContext webRequestContext;
    private final Markup markup;
    private final ViewResolver viewResolver;
    private final DataFormatter dataFormatters;
    @Value("#{environment.getProperty('AllowJsonResponse', 'false')}")
    private boolean allowJsonResponse;

    @Autowired
    public CampaignRedirectsController(ContentProvider contentProvider, LinkResolver linkResolver, MediaHelper mediaHelper,
                                       WebRequestContext webRequestContext, Markup markup, ViewResolver viewResolver, DataFormatter dataFormatter) {
        this.contentProvider = contentProvider;
        this.linkResolver = linkResolver;
        this.mediaHelper = mediaHelper;
        this.webRequestContext = webRequestContext;
        this.markup = markup;
        this.viewResolver = viewResolver;
        this.dataFormatters = dataFormatter;
    }

    private static boolean isIncludeRequest(HttpServletRequest request) {
        return request.getAttribute(WebUtils.INCLUDE_REQUEST_URI_ATTRIBUTE) != null;
    }

    @RequestMapping(method = RequestMethod.GET, value = {"/{shortcutName}",
            "/f/{shortcutName}",
            "/g/{shortcutName}",
            "/l/{shortcutName}",
            "/t/{shortcutName}",
            "/i/{shortcutName}",
            "/s/{shortcutName}",
            "/q/{shortcutName}",
            "/e/{shortcutName}"}, produces = {MediaType.TEXT_HTML_VALUE, MediaType.ALL_VALUE})
    public String handleCampaignRedirectsPage(@PathVariable Map pathVariables, HttpServletRequest request, HttpServletResponse response) throws Exception {
added 4612 characters in body
Source Link

Edit: we have upadatd some of the jars files and now logging is working. Now in tridion.core log file, there is an error message "ClassPathBeanDefinitionScanner - Ignored because not matching any filter" for all the classes (dxa modules and custom classes)


2016-06-27 15:15:28,497 DEBUG ClassPathBeanDefinitionScanner - Identified candidate component class: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\webapp\main\WebAppConfiguration.class]
2016-06-27 15:15:28,497 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\webapp\main\WebAppInitializer.class]
2016-06-27 15:15:28,512 DEBUG ClassPathBeanDefinitionScanner - Identified candidate component class: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\webapp\main\WebAppInitializer.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ConditionalEntityEvaluator.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ConditionalEntityEvaluator.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProviderException.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProviderException.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ExternalContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ExternalContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/LinkResolver.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/LinkResolver.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\Brand.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\Brand.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandAwards.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandAwards.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandList.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandList.class]

Edit: we have upadatd some of the jars files and now logging is working. Now in tridion.core log file, there is an error message "ClassPathBeanDefinitionScanner - Ignored because not matching any filter" for all the classes (dxa modules and custom classes)


2016-06-27 15:15:28,497 DEBUG ClassPathBeanDefinitionScanner - Identified candidate component class: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\webapp\main\WebAppConfiguration.class]
2016-06-27 15:15:28,497 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\webapp\main\WebAppInitializer.class]
2016-06-27 15:15:28,512 DEBUG ClassPathBeanDefinitionScanner - Identified candidate component class: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\webapp\main\WebAppInitializer.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ConditionalEntityEvaluator.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ConditionalEntityEvaluator.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProviderException.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ContentProviderException.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ExternalContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/ExternalContentProvider.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Scanning URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/LinkResolver.class]
2016-06-27 15:15:28,512 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: URL [jar:file:/D:/Apache/tomcat-sh-web13/webapps/ROOT/WEB-INF/lib/dxa-common-api-1.4.1-SNAPSHOT.jar!/com/sdl/webapp/common/api/content/LinkResolver.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\Brand.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\Brand.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandAwards.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandAwards.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Scanning file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandList.class]
2016-06-27 15:15:30,603 TRACE ClassPathBeanDefinitionScanner - Ignored because not matching any filter: file [D:\Apache\tomcat-sh-web13\webapps\ROOT\WEB-INF\classes\com\sdl\dxa\modules\generic\model\BrandList.class]
added 5034 characters in body; edited body
Source Link

EDIT:

Following @Alexey's suggestion we changed our controllers to NOT extend BaseController and now we are not getting the ambiguous mapping related in the logs. However now we are getting a different error regarding PageModel. Please see the error below. Kindly let us know what could be the cause of this error and how can we resolve the same.

java.lang.NullPointerException
at com.sdl.webapp.tridion.mapping.PageBuilderImpl.createPageModel(PageBuilderImpl.java:322)
at com.sdl.webapp.tridion.mapping.PageBuilderImpl.createPage(PageBuilderImpl.java:255)
at com.sdl.webapp.tridion.mapping.ModelBuilderPipeline.createPageModel(ModelBuilderPipeline.java:72)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider$1.tryFindPage(AbstractDefaultProvider.java:287)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider$1.tryFindPage(AbstractDefaultProvider.java:267)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider.findPage(AbstractDefaultProvider.java:102)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider.getPageModel(AbstractDefaultProvider.java:267)
at com.sdl.webapp.common.controller.PageController.getPageModel(PageController.java:321)
at com.sdl.webapp.common.controller.PageController.handleGetPage(PageController.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:844)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2463)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2452)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)

EDIT:

Following @Alexey's suggestion we changed our controllers to NOT extend BaseController and now we are not getting the ambiguous mapping related in the logs. However now we are getting a different error regarding PageModel. Please see the error below. Kindly let us know what could be the cause of this error and how can we resolve the same.

java.lang.NullPointerException
at com.sdl.webapp.tridion.mapping.PageBuilderImpl.createPageModel(PageBuilderImpl.java:322)
at com.sdl.webapp.tridion.mapping.PageBuilderImpl.createPage(PageBuilderImpl.java:255)
at com.sdl.webapp.tridion.mapping.ModelBuilderPipeline.createPageModel(ModelBuilderPipeline.java:72)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider$1.tryFindPage(AbstractDefaultProvider.java:287)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider$1.tryFindPage(AbstractDefaultProvider.java:267)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider.findPage(AbstractDefaultProvider.java:102)
at com.sdl.webapp.tridion.mapping.AbstractDefaultProvider.getPageModel(AbstractDefaultProvider.java:267)
at com.sdl.webapp.common.controller.PageController.getPageModel(PageController.java:321)
at com.sdl.webapp.common.controller.PageController.handleGetPage(PageController.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:844)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2463)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2452)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Added some more info regarding the problem and code fragment from the conflicting controller
Source Link
Loading
Source Link
Loading