glassfish
  1. glassfish
  2. GLASSFISH-15400

Stack overflow when referencing bad external resources

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1_b35
    • Fix Version/s: None
    • Component/s: other
    • Labels:
      None
    • Environment:

      Glassfish v3.1 b35

      Description

      When I try to reference invalid, bad configured external LDAP resource from Web application I got stack overflow exception.

      Caused by: com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Env-Prop: ldap/softperience@Field-Injectable Resource. Class name = eu.softper.common.auth.usermanagment.UserTest Field name=dirContext@java.lang.String@ldap/softperience@@ into class eu.softper.common.auth.usermanagment.UserTest
      at org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:194)
      at com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205)
      ... 46 more
      Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Env-Prop: ldap/softperience@Field-Injectable Resource. Class name = eu.softper.common.auth.usermanagment.UserTest Field name=dirContext@java.lang.String@ldap/softperience@@ into class eu.softper.common.auth.usermanagment.UserTest
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:698)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:468)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:173)
      at org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:184)
      ... 47 more
      Caused by: java.lang.StackOverflowError
      at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:140)
      at java.lang.StringCoding.decode(StringCoding.java:173)
      at java.lang.String.<init>(String.java:443)
      at java.lang.String.<init>(String.java:515)
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      at java.net.Socket.connect(Socket.java:529)
      at java.net.Socket.connect(Socket.java:478)
      at java.net.Socket.<init>(Socket.java:375)
      at java.net.Socket.<init>(Socket.java:189)
      at com.sun.jndi.ldap.Connection.createSocket(Connection.java:352)
      at com.sun.jndi.ldap.Connection.<init>(Connection.java:187)
      at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
      at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1580)
      at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2652)
      at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:293)
      at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:53)
      at com.sun.enterprise.resource.deployer.ExternalJndiResourceDeployer.installExternalJndiResource(ExternalJndiResourceDeployer.java:256)
      at com.sun.enterprise.resource.deployer.ExternalJndiResourceDeployer.createExternalJndiResource(ExternalJndiResourceDeployer.java:126)
      at com.sun.enterprise.resource.deployer.ExternalJndiResourceDeployer.deployResource(ExternalJndiResourceDeployer.java:105)
      at org.glassfish.javaee.services.ResourceProxy.create(ResourceProxy.java:90)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:548)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.sun.appserv.connectors.internal.api.ResourceNamingService.lookup(ResourceNamingService.java:221)
      at org.glassfish.javaee.services.ResourceProxy.create(ResourceProxy.java:93)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:548)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      <repeat....> at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:548)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)

        Activity

          People

          • Assignee:
            naman_mehta
            Reporter:
            rsmogura
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: