DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33444>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33444 Summary: UDPAppender encoding problems Product: Log4j Version: 1.3alpha Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Appender AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] UDPAppender.append-method assumes that String.getBytes(null) works the same as String.getBytes(), that is it encodes the string with the system default encoding. However, that behaviour is unspecified in the JDK API documentation. In fact it throws a NullPointerException at least on my VM implementation: java.fullversion: J2RE 1.4.1 IBM J9 build 20030915 (JIT enabled) Also if an encoding is used that expands 1 character to many bytes, the UDP message is truncated. That is because the datagram length is taken from the length of the original string, not the encoded representation. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
