harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov" <ivavladi...@gmail.com>
Subject Re: [jira] Created: (HARMONY-1176) [classlib][net] new java.net.ServerSocket( InetAddress address, int port ) throws NPE
Date Tue, 15 Aug 2006 02:19:07 GMT
In my environment it is OK too (WinXp). Seems, it is a local problem.

 thanks Vladimir

C:\tmp\tmp17>C:\jdk1.5.0_06\bin\java.exe -cp . -showversion test
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

Test done. Socket:
Socket[addr=vivanov1-mobl/10.125.115.95,port=8080,localport=1283]

C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp .
-showversion test
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=vivanov1-mobl/10.125.115.95,port=8080,localport=1284]

C:\tmp\tmp17>C:\harmony\classlib1.5\deploy\jdk\jre\bin\java.exe -cp .
-showversion test
java version 1.5 (subset)

(c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as
applicable.
Test done. Socket:
Socket[addr=vivanov1-mobl/10.125.115.95,port=8080,localport=1285]

C:\tmp\tmp17>C:\harmony\drlvm1.5\build\win_ia32_msvc_debug\deploy\jre\bin\java
-Dvm.assert_dialog=false -cp . -showversion test
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r431304, (Aug 14 2006), Windows/ia32/msvc 1310, debug build
http://incubator.apache.org/harmony
Test done. Socket:
Socket[addr=vivanov1-mobl/10.125.115.95,port=8080,localport=1286]

C:\tmp\tmp17>C:\harmony\drlvm1.5\build\win_ia32_msvc_release\deploy\jre\bin\java
-Dvm.assert_dialog=false -cp . -showversion test
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r431304, (Aug 14 2006), Windows/ia32/msvc 1310, release build
http://incubator.apache.org/harmony
Test done. Socket:
Socket[addr=vivanov1-mobl/10.125.115.95,port=8080,localport=1287]
On 8/15/06, Andrew Zhang <zhanghuangzhu@gmail.com> wrote:
>
> 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) <jira@apache.org> 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.<init>(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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message