Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 25892 invoked from network); 15 Aug 2006 01:36:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2006 01:36:26 -0000 Received: (qmail 75333 invoked by uid 500); 15 Aug 2006 01:36:24 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 75115 invoked by uid 500); 15 Aug 2006 01:36:23 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 75100 invoked by uid 99); 15 Aug 2006 01:36:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 18:36:23 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of zhanghuangzhu@gmail.com designates 66.249.82.225 as permitted sender) Received: from [66.249.82.225] (HELO wx-out-0506.google.com) (66.249.82.225) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2006 18:36:20 -0700 Received: by wx-out-0506.google.com with SMTP id s13so1340021wxc for ; Mon, 14 Aug 2006 18:36:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Kx58mS3BcHfrqY3lNVpZRe6XK1sgGfcthygJ0FJuRyAZXWBn2+XeopAdPys9sbHNits2PHiVWWw1Rmz9u5kR29cnl35+yTP0jqIewY/0hDa/J2xgMTvD3TYTX0Mes4sy8yKzAs+6JtltnJtXraWYr+actIIXaXqtdkLaiAwWBjY= Received: by 10.70.38.12 with SMTP id l12mr10826340wxl; Mon, 14 Aug 2006 18:36:00 -0700 (PDT) Received: by 10.70.123.4 with HTTP; Mon, 14 Aug 2006 18:36:00 -0700 (PDT) Message-ID: <4d0b24970608141836i3dd53061lffa5bdf313b86b40@mail.gmail.com> Date: Tue, 15 Aug 2006 09:36:00 +0800 From: "Andrew Zhang" To: harmony-dev@incubator.apache.org Subject: Re: [jira] Created: (HARMONY-1176) [classlib][net] new java.net.ServerSocket( InetAddress address, int port ) throws NPE In-Reply-To: <22378552.1155565934179.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26622_30209397.1155605760165" References: <22378552.1155565934179.JavaMail.jira@brutus> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_26622_30209397.1155605760165 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Igor, I ran your test on windows, and seems everything is ok. Test output: (Harmony) Test done. Socket: Socket[addr=Harmony-zhanghz/9.181.106.94,port=8080,localport=1290] My environment: WindowsXP (SP2) + IBM j9 vm Thanks! On 8/14/06, Igor V. Stolyarov (JIRA) wrote: > > [classlib][net] new java.net.ServerSocket( InetAddress address, int port > ) throws NPE > > -------------------------------------------------------------------------------------- > > Key: HARMONY-1176 > URL: http://issues.apache.org/jira/browse/HARMONY-1176 > Project: Harmony > Issue Type: Bug > Reporter: Igor V. Stolyarov > > > new java.net.ServerSocket( InetAddress address, int port ) throws NPE > from native code > > > Test------------------------------------------------------------------------------------------ > import java.net.*; > > > public class SocketTest { > public static void main(String[] args) { > try{ > ServerSocket ss = new ServerSocket(8080, 50, > InetAddress.getLocalHost()); > Socket s = new Socket(InetAddress.getLocalHost(), 8080); > System.out.println("Test done. Socket: " +s); > }catch(Exception e){ > e.printStackTrace(); > } > } > > } > > > Output--------------------------------------------------------------------------------------- > JRockit: > > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) > BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, > R25.0.0-75, GC: > System optimized over throughput (initial strategy singleparpar)) > > Test done. Socket: > Socket[addr=ivstolya-mobl/10.125.132.107,port=8080,localport= > 4701] > > Harmony: > > java version 1.5 (subset) > > (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, > as app > licable. > Unhandled exception > Type=Segmentation error vmState=0x00040000 > J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 > ExceptionAddress=7FE40F5 > 1 ContextFlags=0001003f > Handler1=7FE50390 Handler2=7FD074F0 InaccessibleAddress=00000000 > EDI=00000000 ESI=01578F00 EAX=00000000 EBX=0013F7A4 > ECX=00000000 EDX=00000020 > EIP=7FE40F51 ESP=0013F70C EBP=0013F77C > Module=c:\test\deploy\jre\bin\default\j9vm23.dll > Module_base_address=7FE30000 Offset_in_DLL=00010f51 > Target=2_30_20060727_07300_lHdSMR (Windows XP 5.1 build 2600 Service Pack > 2) > CPU=x86 (1 logical CPUs) (0x7feec000 RAM) > > JavaVMInitArgs.nOptions=10: > -Dcom.ibm.oti.vm.vmdir=c:\test\deploy\jre\bin\default\ > -Dcom.ibm.oti.vm.exe=c:\test\deploy\jre\bin\java.exe > -Dcom.ibm.oti.vm.bootstrap.library.path=c:\test\deploy\jre\bin > ;c:\test\deplo > y\jre\bin\default > -Xbootclasspath/p:c:\test\deploy\jre\bin\default\luni-kernel.jar > ;c:\test\dep > loy\jre\bin\default\security-kernel.jar > -Djava.home=c:\test\deploy\jre > -Djava.library.path=c:\test\deploy\jre\bin\ > ;.;c:\test\deploy\jre\bin\default > ;C:\Program Files\Far;C:\Program Files\Intel\VTune\tcheck\bin;C:\Program > Files\I > ntel\VTune\CGGlbCache;C:\Program Files\Intel\VTune\Shared\Bin;C:\Program > Files\C > ommon Files\Intel\Shared Files\IDVC;C:\Program > Files\Intel\VTune\Analyzer\Bin;C: > \PROGRAM > FILES\THINKPAD\UTILITIES;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\W > bem;C:\Program Files\PC-Doctor for Windows\services;C:\Program Files\ATI > Technol > ogies\ATI Control Panel;C:\Program Files\ATI Technologies\Fire GL 3D > Studio Max; > C:\PROGRA~1\F-Secure\ssh;C:\jrockit-j2sdk1.4.2_04\bin;C:\apache- > ant-1.6.2\bin;C: > \jcsc\bin;C:\Program Files\Intel\Compiler\C++\9.0\IA32\Bin;C:\Program > Files\Humm > ingbird\Connectivity\10.00\Accessories\;;C:\Program > Files\Subversion\bin;C:\Prog > ram Files\Microsoft Platform SDK\Bin;c:\cygwin\bin;C:\Program > Files\QuickTime\QT > System\;C:\Program Files\cvsnt;cvsgrab-2.2.2; > -Djava.class.path=C:\ProgramFiles\Intel\VTune\Analyzer\Bin;.;C:\Program Fil > es\Java\j2re1.4.2_10\lib\ext\QTJava.zip > _org.apache.harmony.vmi.portlib (extra info: 0013FBC4) > -Xjcl:jclclear_23 > _j2se_j9=136448 > > Generated system dump: C:\Documents and Settings\ivstolya\j9.dmp > > Thread: main (priority 5) (LOCATION OF ERROR) > NATIVE > org/apache/harmony/luni/platform/OSNetworkSystem.createSocketImpl(Ljav > a/io/FileDescriptor;Z)V > 00000002 > org/apache/harmony/luni/platform/OSNetworkSystem.createSocket(Ljava/io > /FileDescriptor;Z)V > 00000016 org/apache/harmony/luni/net/PlainSocketImpl2.create(Z)V > 00000031 > java/net/Socket.startupSocket(Ljava/net/InetAddress;ILjava/net/InetAdd > ress;IZ)V > 00000010 java/net/Socket.(Ljava/net/InetAddress;I)V > 0000001a SocketTest.main([Ljava/lang/String;)V > > Thread: JIT Compilation Thread (priority 10) (daemon) > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > http://issues.apache.org/jira/secure/Administrators.jspa > - > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > -- Andrew Zhang China Software Development Lab, IBM ------=_Part_26622_30209397.1155605760165--