mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

fguigues
26.16.2008 cf4107b24d1f1bd634ad7fd935d6e08cb8b026cb
Fixes :

3239 : On Windows, server can't load jdmkrt.jar file
3271 : SNMP: Each index of the dsApplIfProtocol entry should return unique identifier

2 files modified
17 ■■■■ changed files
opends/src/snmp/src/org/opends/server/snmp/DsApplIfOpsEntryImpl.java 14 ●●●● patch | view | raw | blame | history
opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java 3 ●●●● patch | view | raw | blame | history
opends/src/snmp/src/org/opends/server/snmp/DsApplIfOpsEntryImpl.java
@@ -97,8 +97,18 @@
   * @return an OID representing the connection handler:port
   */
  public String getDsApplIfProtocol() {
//      return  new String("1.3.6.1..27.3.") + portNumber;
      return DsApplIfProtocol;
      String portNumber = (String)this.monitor.getAttribute
              (this.connectionHandlerName, "ds-connectionhandler-listener");
      if (portNumber==null) {
          return this.DsApplIfProtocol;
      }
      else {
          int index = portNumber.lastIndexOf(":");
          if (index==-1) {
              return this.DsApplIfProtocol;
          }
          return  new String("1.3.6.1..27.3.") + portNumber.substring(index+1);
      }
  }
  /**
opends/src/snmp/src/org/opends/server/snmp/SNMPConnectionHandler.java
@@ -262,7 +262,8 @@
    @SuppressWarnings("unchecked")
    private void addFile(File file) {
        try {
            URL u = new URL("jar:file:/"+ file.toString()+"!/");
            String url = "jar:" + file.toURI().toURL() + "!/";
            URL u = new URL(url);
            Class[] parameters = new Class[]{URL.class};
            URLClassLoader sysloader =
              (URLClassLoader)ClassLoader.getSystemClassLoader();