10 Replies Latest reply on May 20, 2009 2:37 PM by Sathish Kumar

    Not running in Debug mode

    Sudha Perumal Newbie

      Hi,


      without debug mode my application running but with debug mode my application not running.
      in this same system my application ran with debug mode before. but i don't know why it is not running..




      INFO  Contexts starting up: org.jboss.seam.web.session

      up to this line printing in the console but here after no response.. what is the problem?


        • 1. Re: Not running in Debug mode
          Tomaz Cerar Master

          Usually there should be some stack trace when something goes on...


          the line that you are talking about is the line that gets printed to log when new http session is created on web server,
          that means that request has came to seam. question is what happenes next. Is problem maybe somewhere in you code?
          Try enabling more logging...



          • 2. Re: Not running in Debug mode
            Sudha Perumal Newbie

            How to enable more logging...

            • 3. Re: Not running in Debug mode
              Sudha Perumal Newbie

              application is running in normal mode..
              if error in code means.. how to run in normal mode..

              • 4. Re: Not running in Debug mode
                Sudha Perumal Newbie

                application is running in normal mode..it's not working in debug mode only.. if error in code means.. how it's running in normal mode..

                • 5. Re: Not running in Debug mode
                  Francisco Jose Peredo Noguez Master

                  What do you  do to switch between normal and debug mode

                  • 6. Re: Not running in Debug mode
                    Sudha Perumal Newbie

                    I mean that When I'm running the application, its working...
                    But Debugging is not working...

                    • 7. Re: Not running in Debug mode
                      Sathish Kumar Newbie

                      Me too Tomaz Cerar



                      i getting same like this error. here i mentioned clearly. i hope you give a suggestion for that

                      when i am running my JBOSS AS generally it will take 6 to 7 min both normal mode and debug mode also.
                      i typed in url (http://localhost:8080/hrms) immediately creating INFO  Contexts starting up: org.jboss.seam.web.session when normal mode, when i typed in url (http://localhost:8080/hrms) after 5 min created INFO  Contexts starting up: org.jboss.seam.web.session  when debug mode after long time nearly after 7 min it will print below this. 21:02:29,421 WARN  arjLoggerI18N


                      com.arjuna.ats.arjuna.coordinator.TransactionReaper18 - TransactionReaper::check timeout for TX -3f57fef5:11c3:4a12cc7f:80 in state  RUN
                      21:02:29,468 WARN  arjLoggerI18N com.arjuna.ats.arjuna.coordinator.BasicAction58 - Abort of action id -3f57fef5:11c3:4a12cc7f:80 invoked while multiple threads active within it.
                      21:02:29,531 WARN  arjLoggerI18N com.arjuna.ats.arjuna.coordinator.CheckedActio2 - CheckedAction::check - atomic action -3f57fef5:11c3:4a12cc7f:80 aborting with 1 threads active!
                      21:02:29,578 WARN  arjLoggerI18N com.arjuna.ats.arjuna.coordinator.TransactionReape7 - TransactionReaper::doCancellations worker Thread Thread-10,5,jboss successfuly cancelled TX -3f57fef5:11c3:4a12cc7f:80



                      after that i am getting this


                      21:03:02,328 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jboss-seam-rss.jar/META-INF/seam-rss.taglib.xml
                      21:03:06,312 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar/META-INF/a4j.taglib.xml
                      21:03:07,593 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar/META-INF/ajax4jsf.taglib.xml
                      21:03:08,593 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar/META-INF/jsp.taglib.xml
                      21:03:21,734 INFO compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar/META-INF/rich.taglib.xml
                      21:03:23,671 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/richfaces-ui-3.3.0.GA.jar/META-INF/richfaces.taglib.xml
                      21:03:24,671 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jboss-seam-mail.jar/META-INF/seam-mail.taglib.xml
                      21:03:27,015 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jboss-seam-ui.jar/META-INF/s.taglib.xml
                      21:03:27,906 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jboss-seam-pdf.jar/META-INF/seam-pdf.taglib.xml
                      21:03:31,062 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-core.taglib.xml
                      21:03:32,203 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-html.taglib.xml
                      21:03:35,031 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jsf-ui.taglib.xml
                      21:03:37,390 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-core.taglib.xml
                      21:03:38,187 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jsf-facelets.jar/META-INF/jstl-fn.taglib.xml
                      21:03:38,953 INFO  compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jboss-seam-excel.jar/META-INF/seam-excel.taglib.xml



                      after that it will give an jdbc error
                      21:05:21,171 WARN  JDBCExceptionReporter SQL Error: 0, SQLState: null
                      21:05:21,187 ERROR JDBCExceptionReporter Transaction is not active: tx TransactionImple ac, BasicAction: -3f57fef5:11c3:4a12cc7f:80 status: ActionStatus.ABORTED nested throwable: (javax.resource.ResourceException: Transaction is not active: tx TransactionImple ac, BasicAction: -3f57fef5:11c3:4a12cc7f:80 status: ActionStatus.ABORTED
                      21:05:24,031 ERROR viewhandler Error Rendering View/login.xhtml
                      javax.faces.FacesException: javax.el.ELException: /login.xhtml @31,77 value {sysclientList.clientNames}: Error reading 'clientNames' on type com.sipl.hrms.session.admin.SysclientList$$javassist1
                              at javax.faces.component.UISelectItems.getValue(UISelectItems.java:144)
                              at com.sun.faces.renderkit.RenderKitUtils.getSelectItems(RenderKitUtils.java:289)
                              at com.sun.faces.renderkit.htmlbasic.MenuRenderer.renderSelect(MenuRenderer.java:814)
                              at com.sun.faces.renderkit.htmlbasic.MenuRenderer.encodeEnd(MenuRenderer.java:280)
                              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
                              at com.sun.faces.renderkit.htmlbasic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:242)
                              at com.sun.faces.renderkit.htmlbasic.GridRenderer.renderRow(GridRenderer.java:180)
                              at com.sun.faces.renderkit.htmlbasic.GridRenderer.encodeChildren(GridRenderer.java:127)
                              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                              at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
                              at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
                              at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220)
                              at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215)
                              at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
                              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                              at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
                              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
                              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
                              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
                              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                              at java.lang.Thread.run(Unknown Source)
                      Caused by: javax.el.ELException: /login.xhtml @31,77 value{sysclientList.clientNames}: Error reading 'clientNames' on type com.sipl.hrms.session.admin.SysclientList$$javassist1
                              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
                              at javax.faces.component.UISelectItems.getValue(UISelectItems.java:141)
                              ... 69 more
                      Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
                              at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
                              at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
                              at com.sipl.hrms.session.admin.SysclientList.getClientList(SysclientList.java:94)
                              at com.sipl.hrms.session.admin.SysclientList.getClientNames(SysclientList.java:70)
                              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.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                              at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                              at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                              at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)
                              at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
                              at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)
                              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                              at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                              at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                              at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                              at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                              at com.sipl.hrms.session.admin.SysclientList$$javassist1.getClientNames(SysclientList$$javassist1.java)
                              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 javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                              at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                              at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                              at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
                              at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
                              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                              ... 70 more
                      Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
                              at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
                              at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
                              at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
                              at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
                              at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
                              at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
                              at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
                              at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
                              at org.hibernate.loader.Loader.doQuery(Loader.java:696)
                              at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
                              at org.hibernate.loader.Loader.doList(Loader.java:2228)
                              at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
                              at org.hibernate.loader.Loader.list(Loader.java:2120)



                      But i create new application (refer same db) means it's run fine with debug mode
                      what's the problem?
                      give an idea/suggestion.?

                      • 8. Re: Not running in Debug mode
                        Francisco Jose Peredo Noguez Master

                        Looks like a connection problem (network failure? database server failure? incorrect connection string?):


                        Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
                        

                        • 9. Re: Not running in Debug mode
                          Francisco Jose Peredo Noguez Master

                          And what do you mean by Debug mode

                          • 10. Re: Not running in Debug mode
                            Sathish Kumar Newbie

                            Francisco Peredo wrote on May 20, 2009 13:20:


                            Looks like a connection problem (network failure? database server failure? incorrect connection string?):

                            Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
                            




                            Click HELP for text formatting instructions. Then edit this text and check the preview.


                            Hi Francisco Peredo
                                 
                            when i'm try to run in Debug mode i got this error. but no error when i try to run normal mode. so only in debug mode that time application keep on try to connect with db that's why time out or connection failure problem.


                            i informed here how much time took it debug mode step by step



                            when i am running my JBOSS AS generally it will take 6 to 7 min both normal mode and debug mode also. i typed in url (http://localhost:8080/hrms) immediately creating INFO Contexts starting up: org.jboss.seam.web.session when normal mode, when i typed in url (http://localhost:8080/hrms) after 5 min created INFO Contexts starting up: org.jboss.seam.web.session when debug mode after long time nearly after 7 min it will print below this. 21:02:29,421 WARN arjLoggerI18N

                            com.arjuna.ats.arjuna.coordinator.TransactionReaper18 - TransactionReaper::check timeout for TX -3f57fef5:11c3:4a12cc7f:80 in state RUN 21:02:29,468 WARN arjLoggerI18N com.arjuna.ats.arjuna.coordinator.BasicAction58 - Abort of action id -3f57fef5:11c3:4a12cc7f:80 invoked while multiple threads active within it. 21:02:29,531 WARN arjLoggerI18N com.arjuna.ats.arjuna.coordinator.CheckedActio2 - CheckedAction::check - atomic action -3f57fef5:11c3:4a12cc7f:80 aborting with 1 threads active! 21:02:29,578 WARN arjLoggerI18N com.arjuna.ats.arjuna.coordinator.TransactionReape7 - TransactionReaper::doCancellations worker Thread Thread-10,5,jboss successfuly cancelled TX -3f57fef5:11c3:4a12cc7f:80

                            after that i am getting this

                            21:03:02,328 INFO compiler Added Library from: vfszip:/E:/jboss5/server/default/deploy/HRMSAPP.ear/HRMSAPP.war/WEB-INF/lib/jboss-seam-rss.jar/META-INF/seam-rss.taglib.xml 21:03:06,312 INFO compiler Added Library from:


                            Thanks in Advance