#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0

    Help Finding Error Message


    Very new to Java here, so thanks for your patience. I just made some adjustments to my jspx page, ran Ant build and restarted Tomcat. When I view the page in my browser, I see this message:

    An error occurred. Error Message Identifier: 2c44c387-5333-4112-b45e-eae5478e4e76

    The problem I'm having is finding that error. I've checked the logs in my Tomcat directory but can't find that identifier anywhere, or even an error. The Ant build completed successfully, so I'm not sure why this error would not have been caught there.

    Any help pointing me in the correct direction is greatly appreciated.
  2. #2
  3. Daniel Schildsky
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Mar 2004
    Location
    KL, Malaysia.
    Posts
    1,553
    Rep Power
    1621

    Error message identifier vs actual error


    I would suggest you ignore this identifier but instead look inside the tomcat's own console logs to inspect the actual error caused by the jspx. Should there be a jspx compilation error, the tomcat's log would definitely reflect that by logging the stack trace, something similar to the following example:


    Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac. java:842)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac. java:682)
    at org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:317)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:370)
    at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:473)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:190)

    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:295)

    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)

    at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)

    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:247)

    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:193)

    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:256)

    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)

    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)

    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)

    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)

    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)

    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)

    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)

    at org.apache.catalina.core.StandardContext.invoke(St andardContext.java:2415)

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

    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)

    at org.apache.catalina.valves.ErrorDispatcherValve.in voke(ErrorDispatcherValve.java:171)

    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)

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

    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:641)

    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)

    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)

    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:174)

    at org.apache.catalina.core.StandardPipeline$Standard PipelineValveContext.invokeNext(StandardPipeline.j ava:643)

    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:480)

    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:995)

    at org.apache.coyote.tomcat4.CoyoteAdapter.service(Co yoteAdapter.java:223)

    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyo teHandler.java:261)

    at org.apache.jk.common.HandlerRequest.invoke(Handler Request.java:360)

    at org.apache.jk.common.ChannelSocket.invoke(ChannelS ocket.java:604)

    at org.apache.jk.common.ChannelSocket.processConnecti on(ChannelSocket.java:562)

    at org.apache.jk.common.SocketConnection.runIt(Channe lSocket.java:679)

    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:619)

    at java.lang.Thread.run(Thread.java:534)
    or something like the following:
    Unable to compile class for JSP: An error occurred at line: 41 in the jsp file: /TemplateSQL/sqlInsert.jsp sqlCourseBean cannot be resolved to a type 38: String ausgabe1=""; 39: 40: 41: sqlCourseBean c1 = new sqlCourseBean()
    depending on the type of error and the version of Tomcat you are using. Look for the clues within the stack traces logged in the log file, which might give you an idea which JSP file and where in the jspx file that might have caused such error.
    When the programming world turns decent, the real world will turn upside down.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0
    Thanks for your help. This is what I managed to find in the log:

    javax.servlet.ServletException: Could not resolve view with name 'web/reports/manage' in servlet with name 'springMvcServlet'
    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1139)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:927)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
    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:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    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:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 311)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:116)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilt er.java:113)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.ja va:101)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:113)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(R ememberMeAuthenticationFilter.java:146)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:45)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:182)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:87)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInVie wFilter.java:198)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
    I believe it's referring to my ReportsController.java file which looks like this:

    Code:
    package efi.unleashed.web.controller;
    
    import efi.unleashed.workflow.ReportsWorkflow;
    
    import org.springframework.stereotype.Controller;
    import org.springframework.ui.Model;
    import org.springframework.web.bind.annotation.PathVariable;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RequestMethod;
    
    import javax.annotation.Resource;
    
    /**
     * This class handles page requests for URLs dealing with reports.
     */
    @Controller
    @RequestMapping( value = ReportsController.REPORTS )
    public class ReportsController {
    
        // Controller mapping name
        public static final String REPORTS = "web/reports";
    
        // Request mapping names (please maintain alphabetic order)
        public static final String EDIT = "edit";
        public static final String MANAGE = "manage";
    
        // Resulting view names (please maintain alphabetic order)
        public static final String EDIT_REPORTS = REPORTS + "/" + EDIT;
        public static final String MANAGE_REPORTS = REPORTS + "/" + MANAGE;
    
        @Resource
        ReportsWorkflow reportsWorkflow;
    
        @RequestMapping( value = EDIT + "/edit/{reportId}", method = RequestMethod.GET )
        public String editReport( @PathVariable Long reportId, Model model ) {
            model.addAttribute( reportsWorkflow.prepareToEditReport( reportId ) );
            return EDIT_REPORTS;
        }
    
        @RequestMapping( value = MANAGE, method = RequestMethod.GET )
        public String manageReports( Model model ) {
            model.addAttribute( reportsWorkflow.getReports() );
            return MANAGE_REPORTS;
        }
    
    }
    Everything in this file looks okay to me. Am I missing something simple?
  6. #4
  7. Daniel Schildsky
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Mar 2004
    Location
    KL, Malaysia.
    Posts
    1,553
    Rep Power
    1621

    Missing view: 'web/reports/manage'


    If you are using ApplicationContext.xml to declare all your views, then check your xml to ensure that the view 'web/reports/manage' is declared properly.

    However, if you are using Java Config way of configuring spring web MVC view mappings, then you will have to go through all the annotated classes to find out if you have missed out the view 'web/reports/manage' in those annotations.
    When the programming world turns decent, the real world will turn upside down.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    8
    Rep Power
    0
    You Sir, are a tremendous help. I had my XML file misconfigured. Adjusting that seemed to take care of the issue.

    Thank you!

IMN logo majestic logo threadwatch logo seochat tools logo