Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7097

Stack overflow error when establishing secured connection to Profile Service

    Details

      Description

      The stack overflow occurs in Jopr AS5 plugin AbstractProfileServiceConnection.init() after the connection has been established.

      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.rhq.plugins.jbossas5.connection.AbstractProfileServiceConnection.init(AbstractProfileServiceConnection.java:54)
      at org.rhq.plugins.jbossas5.connection.AbstractProfileServiceConnectionProvider.connect(AbstractProfileServiceConnectionProvider.java:43)
      at org.rhq.plugins.jbossas5.ApplicationServerComponent.connectToProfileService(ApplicationServerComponent.java:309)
      at org.rhq.plugins.jbossas5.ApplicationServerComponent.getAvailability(ApplicationServerComponent.java:148)
      at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:526)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      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:619)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.rhq.plugins.jbossas5.connection.JaasAuthenticationInvocationHandler.invoke(JaasAuthenticationInvocationHandler.java:57)
      at $Proxy45.loadProfile(Unknown Source)
      at org.rhq.plugins.jbossas5.connection.AbstractProfileServiceConnection.init(AbstractProfileServiceConnection.java:52)
      ... 12 more
      Caused by: java.lang.StackOverflowError
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.aspects.security.SecurityActions.getSecurityContext(SecurityActions.java:447)
      at org.jboss.aspects.security.SecurityActions$2.run(SecurityActions.java:129)
      at org.jboss.aspects.security.SecurityActions$2.run(SecurityActions.java:127)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.aspects.security.SecurityActions.getPrincipal(SecurityActions.java:125)
      at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:49)
      at org.jboss.profileservice.remoting.PojiMethodInvocation.invokeNext(PojiMethodInvocation.java:153)
      at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
      ....
      at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
      at org.jboss.profileservice.remoting.PojiMethodInvocation.invokeNext(PojiMethodInvocation.java:153)
      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)
      at org.jboss.remoting.Client.invoke(Client.java:1724)
      at org.jboss.remoting.Client.invoke(Client.java:629)
      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.remoting.MergeMetaDataInterceptor.invoke(MergeMetaDataInterceptor.java:74)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      at org.jboss.aop.generatedproxies.AOPProxy$2.loadProfile(AOPProxy$2.java)
      ... 18 more

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            lkrejci Lukas Krejci added a comment -

            This exception occurs during DeploymentManager.loadProfile() method wrapped in a dynamic proxy with http://anonsvn.jboss.org/repos/jopr/trunk/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/connection/JaasAuthenticationInvocationHandler.java as a handler.

            Show
            lkrejci Lukas Krejci added a comment - This exception occurs during DeploymentManager.loadProfile() method wrapped in a dynamic proxy with http://anonsvn.jboss.org/repos/jopr/trunk/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/connection/JaasAuthenticationInvocationHandler.java as a handler.
            Hide
            ccrouch Charles Crouch added a comment -

            (8:23:33 AM) ips: stackoverflowerror in the new aop security code...
            (8:32:50 AM) ccrouch: "new" as in from JBAS-7085 or new from JOPR-263 ?
            (8:33:17 AM) ips: 7085 i think
            (8:33:56 AM) ips: 263 was working great on my box - tested pretty thoroughly
            (8:34:23 AM) ips: lukas saw this for the first time this morning after updating his EAP build to the latest

            Show
            ccrouch Charles Crouch added a comment - (8:23:33 AM) ips: stackoverflowerror in the new aop security code... (8:32:50 AM) ccrouch: "new" as in from JBAS-7085 or new from JOPR-263 ? (8:33:17 AM) ips: 7085 i think (8:33:56 AM) ips: 263 was working great on my box - tested pretty thoroughly (8:34:23 AM) ips: lukas saw this for the first time this morning after updating his EAP build to the latest
            Hide
            lkrejci Lukas Krejci added a comment -

            I've updated the ejb-client to try and replicate it (Jopr rev910) but everything seems to work correctly with JBPAPP_5_0 revision 91282. The JON server seems to connect OK now as well.

            Show
            lkrejci Lukas Krejci added a comment - I've updated the ejb-client to try and replicate it (Jopr rev910) but everything seems to work correctly with JBPAPP_5_0 revision 91282. The JON server seems to connect OK now as well.
            Hide
            ccrouch Charles Crouch added a comment -

            Lukas, if you are happy this is fixed please resolve

            Show
            ccrouch Charles Crouch added a comment - Lukas, if you are happy this is fixed please resolve
            Hide
            lkrejci Lukas Krejci added a comment -

            Haven't seen this in a while. Secured connections work flawlessly in EAP5 branch now.

            Show
            lkrejci Lukas Krejci added a comment - Haven't seen this in a while. Secured connections work flawlessly in EAP5 branch now.

              People

              • Assignee:
                starksm64 Scott Stark
                Reporter:
                lkrejci Lukas Krejci
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development