5 Replies Latest reply on Dec 25, 2006 4:50 PM by svadu

    StackOverflowError and

      HI All,

      Trying to run JBoss Seam on Resin under linux (works in my development environment under win xp).

      Getting the following strange errors upon startup:



      01:28:30,148 INFO [AnnotationBinder] Binding entity from annotated class: org.emaps.dao.UserBean
      01:28:30,148 INFO [EntityBinder] Bind entity org.emaps.dao.UserBean on table users
      01:28:30,151 INFO [AnnotationBinder] Binding entity from annotated class: org.emaps.dao.CityBean
      01:28:30,152 INFO [EntityBinder] Bind entity org.emaps.dao.CityBean on table NP
      01:28:30,545 INFO [CollectionBinder] Mapping collection: org.emaps.dao.CountryBean.regionses -> REGIONS
      01:28:30,545 INFO [CollectionBinder] Mapping collection: org.emaps.dao.RegionBean.districts -> DISTRICTS
      01:28:30,686 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory
      .url.pkgs=org.jboss.naming:org.jnp.interfaces}
      01:28:30,691 INFO [DatasourceConnectionProvider] Using datasource: java:/EmapsDS
      [01:28:31.209] java.lang.RuntimeException: exception invoking: startup
      [01:28:31.209] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:112)
      [01:28:31.209] at org.jboss.seam.Component.callComponentMethod(Component.java:1799)
      [01:28:31.209] at org.jboss.seam.Component.callCreateMethod(Component.java:1739)
      [01:28:31.209] at org.jboss.seam.Component.newInstance(Component.java:1728)
      [01:28:31.209] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:152)
      [01:28:31.209] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:126)
      [01:28:31.209] at org.jboss.seam.init.Initialization.init(Initialization.java:430)
      [01:28:31.209] at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
      [01:28:31.209] at com.caucho.server.webapp.Application.start(Application.java:1647)
      [01:28:31.209] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
      [01:28:31.209] at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:584)
      [01:28:31.209] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.alarm(StartAutoRedeployAutoStrategy.java:176)
      [01:28:31.209] at com.caucho.server.deploy.DeployController.handleAlarm(DeployController.java:742)
      [01:28:31.209] at com.caucho.util.Alarm.handleAlarm(Alarm.java:339)
      [01:28:31.209] at com.caucho.util.Alarm.run(Alarm.java:309)
      [01:28:31.209] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:516)
      [01:28:31.209] at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
      [01:28:31.209] at java.lang.Thread.run(Thread.java:595)
      [01:28:31.209] Caused by: java.lang.reflect.InvocationTargetException
      [01:28:31.209] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [01:28:31.209] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [01:28:31.209] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [01:28:31.209] at java.lang.reflect.Method.invoke(Method.java:585)
      [01:28:31.209] at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
      [01:28:31.209] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
      [01:28:31.209] ... 17 more
      [01:28:31.209] Caused by: java.lang.StackOverflowError
      [01:28:31.209] at org.jboss.resource.JBossResourceException.getCause(JBossResourceException.java:132)
      [01:28:31.209] at javax.resource.ResourceException.getLinkedException(ResourceException.java:78)
      [01:28:31.209] at org.jboss.resource.JBossResourceException.getCause(JBossResourceException.java:132)
      [01:28:31.209] at javax.resource.ResourceException.getLinkedException(ResourceException.java:78)


      skipped (very long repeating stack trace)...


      [01:28:31.240] at javax.resource.ResourceException.getLinkedException(ResourceException.java:78)
      01:28:31,178 WARN [LocalTxDataSource] Throwable while attempting to get a new connection: null
      01:28:31,567 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml


      Using pojo + jpa here.

      Any idea what this could be? Completely the same deployment works on another PC under windows...

      Thanks in advance,

      Siarhei

        • 1. Re: StackOverflowError and

          Well, it's obviously not able to pull a database connection from the connection pool. You should verify that you have the right driver for your platform and that your datasource configuration is correct. Are you sure you have connectivity between the machines? I can't imagine what kind of connection problems would result in a stack overflow error though. :(

          If you can turn the logging up to trace level, you'll be able to see quite a bit more info. But, I haven't got the slightest idea of how to do that under resin.

          • 2. Re: StackOverflowError and

            Thanks for reacting so fast! :)

            The same driver worked before for hibernate (I am upgrading from JSF+hibernate to JBoss Seam and db is mysql) and I managed to login via command line client to the same host that is specified in configuration.

            • 3. Re: StackOverflowError and

              Without better logging, I can't help any more than that. Hopefully someone with some Resin experience will chime in.

              • 4. Re: StackOverflowError and

                I will enable logging as soon as my hosting provider will restart the server (I've managed to crash it) :)

                • 5. Re: StackOverflowError and

                  Looks like it was Resin hot deployment issue, after the server restart the problem was gone!