I've found in 'nix machines that some socket openings mixup the localhost vs real IP address ethernet interfaces. The ERFA might be listening on one, but the testcase tries to contact it on the other?

I usually confirm this by doing something like (depends on which unix you have):

netstat -anp | fgrep LISTEN

this will show you which processes and ports have socket listeners, and it can tell you which interface is being used. I think the 'null' parameter is saying use the 'wildcard' address, which I've found can lead to weirdness on unix machines, particularly those that have multiple eth interfaces. In some cases, I've had to work around this by changing the /etc/hosts file so that 'localhost' maps to the real IP address, and not the 127.0.0.1. Not ideal, but it does seem to fix it.

On 07/06/2007, at 1:56 AM, Curt Arnold wrote:

I've been experimenting with Ubuntu 6.0.6.1 (aka Dapper Drake) as a possible release build environment, but I'm running into a "Connection Refused" exception on a New Socket((String) null, 5500) call around line 70 in ERFATestCase when attempting to send a message to the ExternallyRolledFileAppender to tell it to roll. The same test passes on other platforms and I'm guessing that it is a firewall issue. I've played with iptables rules (newbie at that), but haven't fixed the problem. When I started, sudo iptables -L showed no rules.

Build environment:

Ubuntu 6.0.6-1 desktop freshly installed in JVM
subversion and sun-java6-jdk installed in Package Manager (requires adding multiverse to repos in Settings/Repos) ant-1.6.5 and maven 2.0.6 installed in home directory from Apache binaries (javah task failed in Ant when installed from Ubuntu)
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=~/maven-2.0.6/bin:~/apache-ant-1.6.5/bin:$PATH
svn co https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2- branch log4j
cd log4j
mvn test

I was able to build an NTEventAppender.dll on Ubuntu by installing mingw from the package manager and copying include/win32/jni_md.h from a Windows JDK 6 to /usr/lib/java-6-sun/include/win32/ jni_md.h. Haven't actually gone back and tried the generated DLL on Windows to make sure that it works.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Paul Smith
Core Engineering Manager

Aconex
The easy way to save time and money on your project

696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200  Fax: +61 3 9240 0299
Email: [EMAIL PROTECTED]  www.aconex.com

This email and any attachments are intended solely for the addressee. The contents may be privileged, confidential and/or subject to copyright or other applicable law. No confidentiality or privilege is lost by an erroneous transmission. If you have received this e-mail in error, please let us know by reply e-mail and delete or destroy this mail and all copies. If you are not the intended recipient of this message you must not disseminate, copy or take any action in reliance on it. The sender takes no responsibility for the effect of this message upon the recipient's computer system.



Reply via email to