Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: naming
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Sun

    • Issuezilla Id:
      10,822

      Description

      The error happens when I lookup a UserTransaction, and then a DataSource on a
      new InitialContext (I didn't try to see what happens if I reuse it).

      These are the stack traces of the 2 lookups:

      [java] at org.jvnet.hk2.component.Habitat.<init>(Habitat.java:85)
      [java] at
      com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newHabitat(AbstractModulesRegistryImpl.java:112)
      [java] at
      com.sun.enterprise.module.single.StaticModulesRegistry.createHabitat(StaticModulesRegistry.java:83)
      [java] at
      com.sun.enterprise.naming.impl.SerialContext.<init>(SerialContext.java:184)
      [java] at
      com.sun.enterprise.naming.impl.SerialContext.<init>(SerialContext.java:254)
      [java] at
      com.sun.enterprise.naming.impl.SerialInitContextFactory.createInitialContext(SerialInitContextFactory.java:121)
      [java] at
      com.sun.enterprise.naming.impl.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:116)
      [java] at
      javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      [java] at
      javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      [java] at javax.naming.InitialContext.init(InitialContext.java:223)
      [java] at javax.naming.InitialContext.<init>(InitialContext.java:175)

      and

      [java] at org.jvnet.hk2.component.Habitat.<init>(Habitat.java:85)
      [java] at
      com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newHabitat(AbstractModulesRegistryImpl.java:112)
      [java] at
      com.sun.enterprise.module.single.StaticModulesRegistry.createHabitat(StaticModulesRegistry.java:83)
      [java] at
      com.sun.enterprise.resource.naming.ConnectorNamingUtils.getHabitat(ConnectorNamingUtils.java:80)
      [java] at
      com.sun.enterprise.resource.naming.ConnectorNamingUtils.getRuntime(ConnectorNamingUtils.java:72)
      [java] at
      com.sun.enterprise.resource.naming.ConnectorObjectFactory.getRuntime(ConnectorObjectFactory.java:166)
      [java] at
      com.sun.enterprise.resource.naming.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:97)
      [java] at
      javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      [java] at
      com.sun.enterprise.naming.impl.SerialContext.getObjectInstance(SerialContext.java:473)
      [java] at
      com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:392)

        Issue Links

          Activity

          Hide
          ksak added a comment -

          Reassign to Mahesh.

          Show
          ksak added a comment - Reassign to Mahesh.
          Hide
          ksak added a comment -

          Reassign to Mahesh

          Show
          ksak added a comment - Reassign to Mahesh
          Hide
          Mahesh Kannan added a comment -

          Started

          Show
          Mahesh Kannan added a comment - Started
          Hide
          Mahesh Kannan added a comment -

          Changes are ready. Sent for review. Will checkin after review is complete.

          Show
          Mahesh Kannan added a comment - Changes are ready. Sent for review. Will checkin after review is complete.
          Hide
          Mahesh Kannan added a comment -

          Fixed.

          Sending
          common/glassfish-naming/src/main/java/com/sun/enterprise/naming/impl/SerialContext.java
          Sending
          common/internal-api/src/main/java/org/glassfish/internal/api/Globals.java
          Sending
          connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/naming/ConnectorNamingUtils.java
          Transmitting file data ...
          Committed revision 34270.

          Show
          Mahesh Kannan added a comment - Fixed. Sending common/glassfish-naming/src/main/java/com/sun/enterprise/naming/impl/SerialContext.java Sending common/internal-api/src/main/java/org/glassfish/internal/api/Globals.java Sending connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/naming/ConnectorNamingUtils.java Transmitting file data ... Committed revision 34270.

            People

            • Assignee:
              Mahesh Kannan
              Reporter:
              marina vatkina
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: