5 Replies Latest reply: Nov 15, 2012 6:41 PM by jschellSomeoneStoleMyAlias RSS

    Application crashed after jvm update to java_sun_1.6.0_37

    974040
      my original code :

      1. CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
      2. cq.select(cq.from(SystemMessage.class));
      3. return em.createQuery(cq).getResultList();

      i update jvm, the application crashed on line 2 which is very simple and straight forward statement, and i have to change the code to use named query . after i changed it , everything works fine.

      the following is my new code
      Query q = em.createNamedQuery("SYSTEMMESSAGE.findallmessage");
      List<SystemMessage> results = q.getResultList();
      return results;

      can anyone help me on this ? i spent a lot of time and still unable to figure out why.
        • 1. Re: Application crashed after jvm update to java_sun_1.6.0_37
          jschellSomeoneStoleMyAlias
          971037 wrote:
          my original code :

          1. CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
          2. cq.select(cq.from(SystemMessage.class));
          3. return em.createQuery(cq).getResultList();

          i update jvm, the application crashed on line 2
          Define explicitly and exactly what you mean by "crashed".
          And insure that if your definition does not include a stack trace that you are using a catch(Throwable), and not 'Exception' around the code to capture what is happening.
          • 2. Re: Application crashed after jvm update to java_sun_1.6.0_37
            974040
            here is exception:

            at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2314)
            at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2096)
            at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1994)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
            at $Proxy481.findActive(Unknown Source)
            at ca.triumf.mis.qms.dao.workrequest.projectchartersheet.__EJB31_Generated__CommitmentTrackingNumberFacade__Intf____Bean__.findActive(Unknown Source)
            at ca.triumf.mis.qms.ejb.workrequest.projectchartersheet.CommitmentTrackingNumberManager.findActive(CommitmentTrackingNumberManager.java:32)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
            at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
            at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
            at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
            at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
            at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:42)
            at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
            at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
            at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
            at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
            at sun.reflect.GeneratedMethodAccessor310.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
            at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
            at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
            at $Proxy535.findActive(Unknown Source)
            at ca.triumf.mis.qms.ejb.workrequest.projectchartersheet.__EJB31_Generated__CommitmentTrackingNumberManager__Intf____Bean__.findActive(Unknown Source)
            at ca.triumf.mis.qms.jsf.converter.workrequest.CommitmentTrackingNumberConverter.getAsObject(CommitmentTrackingNumberConverter.java:38)
            at ca.triumf.mis.qms.jsf.converter.workrequest.CommitmentTrackingNumberConverter.getAsObject(CommitmentTrackingNumberConverter.java:23)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:171)
            at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1030)
            at javax.faces.component.UIInput.validate(UIInput.java:960)
            at javax.faces.component.UIInput.executeValidate(UIInput.java:1233)
            at javax.faces.component.UIInput.processValidators(UIInput.java:698)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at org.primefaces.component.tabview.TabView.processValidators(TabView.java:250)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIForm.processValidators(UIForm.java:253)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1214)
            at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1172)
            at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
            at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
            at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
            at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
            at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
            at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
            at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
            at com.sun.grizzly.http.ajp.AjpProcessorTask.invokeAdapter(AjpProcessorTask.java:135)
            at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
            at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
            at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
            at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
            at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
            at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
            at java.lang.Thread.run(Thread.java:662)
            Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.StackOverflowError
            at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:5074)
            at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4906)
            at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2045)
            ... 95 more
            Caused by: java.lang.StackOverflowError
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at org.hibernate.ejb.criteria.QueryStructure.from(QueryStructure.java:148)
            at org.hibernate.ejb.criteria.QueryStructure.from(QueryStructure.java:144)
            at org.hibernate.ejb.criteria.CriteriaQueryImpl.from(CriteriaQueryImpl.java:179)
            at ca.triumf.mis.qms.dao.workrequest.projectchartersheet.CommitmentTrackingNumberFacade.findActive(CommitmentTrackingNumberFacade.java:41)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
            at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
            at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
            at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
            at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
            at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:42)
            at sun.reflect.GeneratedMethodAccessor313.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
            at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
            at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
            at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
            at sun.reflect.GeneratedMethodAccessor310.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
            at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
            at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
            • 3. Re: Application crashed after jvm update to java_sun_1.6.0_37
              gimbal2
              Wow. A stack overflow on loadClass ? That looks like a pretty serious regression to me.
              • 4. Re: Application crashed after jvm update to java_sun_1.6.0_37
                974040
                does anyone here have any ideas?
                • 5. Re: Application crashed after jvm update to java_sun_1.6.0_37
                  jschellSomeoneStoleMyAlias
                  971037 wrote:
                  does anyone here have any ideas?
                  Other reply suggests one to me...there is a static initializer that is recursing. Might be doing it through several classes.