You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2013/04/30 17:54:15 UTC

[jira] [Updated] (LOG4J2-228) Log4j2 UDP socket configure error. Class not found org.apache.logging.log4j.core.impl.Log4jLogEvent$LogEventProxy

     [ https://issues.apache.org/jira/browse/LOG4J2-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-228:
-------------------------------

    Attachment: TCPServer_test.java
                Logs_test.java
                log4j2.xml
                pom.xml

Attaching files received from Imesh:
----
Hi Remko,

Sorry, I do not have access to your JIRA. (User name pwd).

Here with I have attached relevant files. My whole program needs to configure but within these classes you should be able to understand.

client code (Logs_test.java class) send the debug log and TCPServer_test.java class receive it.  

But there is an error catching in line 111 ( class not found). 

Let me know if I miss any jar file. My pom.xml file also attached.

Regards,
Imesh
                
>  Log4j2 UDP socket configure error. Class not found org.apache.logging.log4j.core.impl.Log4jLogEvent$LogEventProxy
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-228
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-228
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.0-beta4
>            Reporter: Remko Popma
>         Attachments: log4j2.xml, Logs_test.java, pom.xml, TCPServer_test.java
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org