Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2335

Java Compilation Error in ClientCnxn.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.5.2, 3.6.0
    • java client, server
    • None

    Description

      There are some compilation error in latest trunk code.

      [javac] D:\gitHome\zookeeperTrunk\src\java\main\org\apache\zookeeper\ClientCnxn.java:49: error: package org.apache.log4j does not exist
          [javac] import org.apache.log4j.MDC;
          [javac]                        ^
          [javac] D:\gitHome\zookeeperTrunk\src\java\main\org\apache\zookeeper\ClientCnxn.java:1108: error: cannot find symbol
          [javac]             MDC.put("myid", hostPort);
          [javac]             ^
          [javac]   symbol:   variable MDC
          [javac]   location: class ClientCnxn.SendThread
          [javac] 2 errors
      
      

      This compilation error got introduced by ZOOKEEPER-2330 patch. This patch used log4j api and log4 dependency has already been removed by ZOOKEEPER-1371

      Attachments

        1. ZOOKEEPER-2335-01.patch
          0.8 kB
          Raúl Gutiérrez Segalés
        2. ZOOKEEPER-2335-01.patch
          0.8 kB
          Mohammad Arshad

        Issue Links

          Activity

            People

              arshad.mohammad Mohammad Arshad
              arshad.mohammad Mohammad Arshad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: