Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4370787

close() on schema context invalidates all subsequent schema contexts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.1
    • 1.4.0
    • core-libs
    • None
    • 1.2.1
    • sparc
    • solaris_2.6

      Here's the customer report.

      --------------
      I have a problem with the "DSML Context". The description of this
      problem follows:
      This problem is very difficult to explain !
      I'll give you an example, it's easier :
      I create a "DSML Context" from an environment :
       Hashtable env = new Hashtable();
       env.put(Context.INITIAL_CONTEXT_FACTORY,
      "com.sun.jndi.dsml.DsmlCtxFactory");
       env.put("com.sun.jndi.dsml.ignoreContentType", "true");
       env.put(Context.PROVIDER_URL,"file:///c:/Base2.xml");

      my context :
       DirContext ctx = new InitialDirContext(env);

      After, I get the schema definition :
       DirContext schema = ctx.getSchema("");
       It works, I can manipulate this "schema" context.
      and I close this context : schema.close();

      After, I start again getting the schema :
       DirContext schema2 = ctx.getSchema("");
      and I do : System.out.println("Schema : " + schema2.toString());
      There is an exception : NullPointeurException !!

      is it normal ??

            rleesunw Rosanna Lee (Inactive)
            rleesunw Rosanna Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: