Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14832

(7.2.z) Decompose all absolute names to avoid infinite recursion

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 7.1.2.GA
    • Fix Version/s: None
    • Component/s: Naming
    • Labels:
      None

      Description

      StackOverflow when doing jndi lookup:

      jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");  
              jndiProperties.put(Context.PROVIDER_URL, "remote+http://localhost:8080");  
              final Context context = new InitialContext(jndiProperties);  
      
      Exception in thread "main" java.lang.StackOverflowError
      at java.lang.StringBuffer.append(StringBuffer.java:270)
      at java.net.URI.appendAuthority(URI.java:1835)
      at java.net.URI.appendSchemeSpecificPart(URI.java:1909)
      at java.net.URI.toString(URI.java:1941)
      at java.net.URI.<init>(URI.java:669)
      at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:466)
      at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:433)
      at org.jboss.remoting3.UncloseableEndpoint.getConnectedIdentity(UncloseableEndpoint.java:51)
      at org.wildfly.naming.client.remote.RemoteNamingProvider.getFuturePeerIdentityPrivileged(RemoteNamingProvider.java:151)
      at org.wildfly.naming.client.remote.RemoteNamingProvider.lambda$getFuturePeerIdentity$0(RemoteNamingProvider.java:138)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.wildfly.naming.client.remote.RemoteNamingProvider.getFuturePeerIdentity(RemoteNamingProvider.java:138)
      at org.wildfly.naming.client.remote.RemoteNamingProvider.getPeerIdentity(RemoteNamingProvider.java:126)
      at org.wildfly.naming.client.remote.RemoteNamingProvider.getPeerIdentityForNaming(RemoteNamingProvider.java:106)
      at org.wildfly.naming.client.remote.RemoteNamingProvider.getPeerIdentityForNaming(RemoteNamingProvider.java:53)
      

      workaround: https://github.com/dmlloyd/wildfly-naming-client/commit/decompose

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thofman Tomas Hofman
                  Reporter:
                  thofman Tomas Hofman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: