Log4j 2
  1. Log4j 2
  2. LOG4J2-228

Log4j2 UDP socket configure error. Class not found org.apache.logging.log4j.core.impl.Log4jLogEvent$LogEventProxy

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta4
    • Fix Version/s: 2.0-beta7
    • Component/s: None
    • Labels:
      None

      Description

      On Wednesday 10 April 2013 04:15 PM, Imesh Damith wrote:
      Hi,

      I'm trying to use UDP server to log my messages. For this I use LOG4J2.
      But I got below error in the server side.

      ClassNotFoundException Error : java.lang.ClassNotFoundException:
      org.apache.logging.log4j.core.impl.Log4jLogEvent$LogEventProxy

      Below is my server side code.

      ByteArrayInputStream bis = new ByteArrayInputStream(packet.getData());
      ObjectInputStream obj = new ObjectInputStream(bis);
      LogEvent logEvent = (LogEvent) obj.readObject();

      System.out.println(logEvent.toString());

      Below is my pom.xml file dependency.

      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
      <version>2.0-beta4</version>
      </dependency>
      <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>2.0-beta4</version>
      </dependency>

      Thanks in advance,
      Imesh

      1. pom.xml
        4 kB
        Remko Popma
      2. log4j2.xml
        0.6 kB
        Remko Popma
      3. Logs_test.java
        0.4 kB
        Remko Popma
      4. TCPServer_test.java
        3 kB
        Remko Popma

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Ralph Goers
              Reporter:
              Remko Popma
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development