-
1. Re: AS 7 in domain mode on windows xp won't start
ctomc Mar 12, 2013 11:36 AM (in response to leolo)Hi,
looking at jstack you posted:
Thread 25: (state = IN_NATIVE)
- java.net.Inet4AddressImpl.getLocalHostName() @bci=0 (Interpreted frame)
- java.net.InetAddress.getLocalHost() @bci=7, line=1409 (Interpreted frame)
- sun.security.provider.SeedGenerator$1.run() @bci=61, line=176 (Interpreted frame)
- sun.security.provider.SeedGenerator$1.run() @bci=1, line=162 (Interpreted frame)
- java.security.AccessController.doPrivileged(java.security.PrivilegedAction) @bci=0 (Interpreted frame)
- sun.security.provider.SeedGenerator.getSystemEntropy() @bci=39, line=161 (Interpreted frame)
- sun.security.provider.SecureRandom$SeederHolder.<clinit>() @bci=4, line=184 (Interpreted frame)
- sun.security.provider.SecureRandom.engineNextBytes(byte[]) @bci=21, line=203 (Interpreted frame)
- java.security.SecureRandom.nextBytes(byte[]) @bci=5, line=455 (Interpreted frame)
- java.security.SecureRandom.next(int) @bci=17, line=477 (Interpreted frame)
- java.util.Random.nextLong() @bci=3, line=334 (Interpreted frame)
- org.jboss.as.host.controller.ManagedServer.<init>..
there looks like jvm is trying to getLocalHost from underlaying OS and it waits there.
Don't know what would cause that to happen...
I any case can you reproduce this on EAP 6.1 alpha1 we just released? http://www.jboss.org/jbossas/downloads/
there ware some changes in code that handles domain mode.
--
tomaz
-
2. Re: AS 7 in domain mode on windows xp won't start
leolo Mar 12, 2013 12:20 PM (in response to ctomc)Hi,
yes, I can reproduce with JBoss EAP 6.1.0.Alpha1 (AS 7.2.0.Alpha1-redhat-4).
I've attached two jstack-files to this posting.
pid2040 is the process listening on port 9999 and pid2228 is the other one.
Regards,
Hardy
-
3. Re: AS 7 in domain mode on windows xp won't start
ctomc Mar 12, 2013 12:26 PM (in response to leolo)Hi,
it hangs in same method, in call to getLocalHost().
Can you try with JDK6, given that JDK7 is not officaly supported on windows xp.
--
tomaz
-
4. Re: AS 7 in domain mode on windows xp won't start
leolo Mar 12, 2013 12:40 PM (in response to ctomc)I've checked with jdk1.6.0_29. Same behaviour.
I've attached jstack of pid 5348 which is the one not listening on port 9999. (The host controller?)
I can't connect with jstack to the process listening on port 9999. jstack just hangs.
-
jstack_pid5348.txt.zip 1.4 KB
-
-
5. Re: AS 7 in domain mode on windows xp won't start
ctomc Mar 12, 2013 12:50 PM (in response to leolo)It looks like problem is in native code not in java/jboss code at all.
method getLocalHost() is implemented native by jvm and just calls OS functions...
take a look at method: Java_java_net_Inet4AddressImpl_getLocalHostName
it just calls "gethostname" function in windows sdk
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738527%28v=vs.85%29.aspx
i would recommend reinstaling windows or maybe upgrading to something more modern
maybe you can try reparing winsock instalation http://support.microsoft.com/kb/811259
--
tomaz
-
6. Re: AS 7 in domain mode on windows xp won't start
leolo Mar 12, 2013 1:06 PM (in response to ctomc)Something more modern? I've just upgraded to Windows XP! ;-)
I'll check other machines to find out if my OS is broken.
Thanks for your help!
Hardy
-
7. Re: AS 7 in domain mode on windows xp won't start
nickarls Mar 13, 2013 3:06 AM (in response to leolo)Don't listen to Tomaz, he just wants to lobby for OS/2 ;-)
Can you show an ipconfig /all ? It's probably something with your network configuration...
-
8. Re: AS 7 in domain mode on windows xp won't start
nickarls Mar 13, 2013 5:33 AM (in response to nickarls)One thing that comes to mind if you have any vmware/virtualpc/virtualbox software installed and they have installed virtual adapters or something that could interfere (if you have any, try disabling them). What does ping localhost show?
-
9. Re: AS 7 in domain mode on windows xp won't start
leolo Mar 13, 2013 7:17 AM (in response to nickarls)I have vmware on the machine but I guess I can skip that. A colleague checked on his (similar) machine and had the same issue with domain.bat. He has no virtualization-solution installed. So, maybe it's something special in our LAN...
Here's the "ping localhost" output:
Ping PCADWELK [127.0.0.1] mit 32 Bytes Daten:
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Antwort von 127.0.0.1: Bytes=32 Zeit<1ms TTL=128
Ping-Statistik for 127.0.0.1:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0 (0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
-
10. Re: AS 7 in domain mode on windows xp won't start
leolo Mar 13, 2013 7:18 AM (in response to leolo)Maybe it's the same issue as in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6306875.
Time to move on to OS/2 for me ;-)
-
11. Re: AS 7 in domain mode on windows xp won't start
ctomc Mar 13, 2013 9:07 AM (in response to leolo)There are few similar issues like:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4939977
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4653680
and many others.
I have just tried in clean instalation of windows xp sp3 with all updates installed in my vmware
and it starts just fine for me...
there was similar problem reported while back https://community.jboss.org/message/777082#777082
which i also could not reproduce...
--
toamz