InetAddress - getHostName()

I am using getHostName method of InetAddress class to get the host name of an ip address
but it returns me the same ip address as hostname(for some addresses it is working fine)
Following is my code
import java.awt.*;
import java.awt.event.*;
import java.net.*;
class GetIP extends Frame implements ActionListener{
TextField t = new TextField("yahoo.com",20);
TextArea ta = new TextArea("",10,50);
Button b1 = new Button("Get IP Addresses");
public GetIP(){
add(t);
add(ta);
add(b1);
b1.addActionListener(this);
setLayout(new FlowLayout());
setSize(400, 300);
setTitle("Getip");
setVisible(true);
public void actionPerformed(ActionEvent ae){
try{
ta.setText("");
InetAddress[] address = InetAddress.getAllByName(t.getText());
for(int i=0;i<address.length;i++)
ta.append(address.getHostName()+" : "+address[i].getHostAddress()+"\n");
catch(Exception e){ta.setText(e.toString());}
public static void main(String args[]){
GetIP mainFrame = new GetIP();
Thank you
Manu

Some times for security purpose, the applet security prevents the host name to be known to others.
Regards
Deepa Datar

Similar Messages

  • Help - InetAddress.getHostName() returns the ip address

    Hi,
    After updating two windows XP computers witht the latest windows updates the InetAddress.getHostName() stoped returning the remote computers name and instead returns the ip address. This is how it worked :
    rx = a custom DataPacket class
    public InetAddress from;
    System.out.println("From: "+ (rx.from.getHostName() + "/" + rx.from.getHostAddress()) + " " + receivedMessage + "\r\n");
    printed - From: AUTOTEST1/192.1.3.60 test message
    now it prints this - From: 192.1.3.223/192.1.3.223 test message
    Is there an alternate way of getting a computers host name or is there a work around i could implement?
    I need the computers host names as this is a fault logging program and without the computer name the users will not know who they are sending the mesage to as it displays ip addresses and not the computer name
    Thanks,
    sjs1985

    getCanonicalHostName() still returns the ip address instead of the host name, thanx 4 trying to help me.
    It seems like it is not possible to receive the host name on a fully updated Windows XP computer using the InetAddress class anymore.
    I will have to do it the long way and send a message containing the computer name on start up which would then be added to a list of computernames/ip addresses

  • InetAddress.getHostName under Linux

    Hello,
    anyone here know why InetAddress.getHostName sometimes returns <Computer-Name> only and sometimes <Computer-Name>.<Domain-Name>? I just migrated a java project to linux, and on my computer InetAddress.getHostName returns <Computer-Name>.<Domain-Name>. A colleague of mine is already running under Linux and he gets <Computer-Name>. We both have the same Domain-Name, and we have compared network settings and haven't found any differences.
    I have tried to google, but I haven't found anything. Any know the reason for this behaviour?

    After juggling around a bit with the network settings, turning IPv6 on and off, switching between static IP and DHCP (computer-name and domain name remained untouched), the InetAddress.getHostName suddenly returned <computer-name> only. I tried to retrace my configuration changes, and tested InetAddress.getHostName and it only returned <computer-name> without the <domain-name> extension. Did I miss something? Do anyone know when InetAddress.getHostName returns <computer-name> and when it returns <computer-name>.<domain-name>?

  • InetAddress.getHostname() takes a lot of time

    hi,
    When i am trying to get the hostname of a solaris machine by passing its ip address, it returns its hostname. If the dnsname of this machine is removed from the dns server, then it will it return its ip address. But it will take 6 seconds whereas in previous case it will take 10 millisecond. This is happening only when i am trying to get the hostname of solaris machine from a windows machine.
    Is there any way to reduce the time delay?
    Please help in this regard.
    Thanks and regards,
    P. Shivaprakash
    code snippet :
    System.out.println("Time before processing : " + new Date(System.currentTimeMillis()));
    try
    hostaddress = (InetAddress.getByName(ipaddress)).getHostName();
    catch(UnknownHostException uhe)
    System.out.println("Exception occured " + uhe);
    System.out.println("Ip address : " + ipaddress);
    System.out.println("Host name : " + hostaddress);
    System.out.println("Time after processing : " + new Date(System.currentTimeMillis()));

    If you have multiple DNS servers, if the first one fails then it moves on to the next until eventually it either finds a result or it gives up.
    When the name exists in your nearest DNS server it responds quickly because it finds the result and comes back. When the name does not exist it travels all round the world until eventually it gives up - not bad through round the world in 10 seconds.
    I seem to recall that there is a TTL setting on the DNS server that restricts how far it will go to get your answer - you may want to try that.

  • Using InetAddress.getHostName() method doesn't return DNS of the machine.

    Hi,
    I have the following simple code:
    String sIP = "SOME_IP";
    InetAddress inet = InetAddress.getByName(sIP);
    sRemoteTerminalID = inet.getHostName();
    The problem is that the output I get for the 'getHostName' method is the same as the IP, while in the DNS, I have an actual name for the machine & not an IP; this happens in one of our clients environements.
    I tried also to use the 'InetAddress.getAllByName' method and analyzing all its output, but got the same results.
    - Is anyone familiar with this issue?
    - Is the 'getHostName' method requires some setting in the underlying environement so using the DNS system is actually allowed?
    I'll appreciate any hint on this.
    Thanks,
    Asaf.

    Below is the code
    I didn't see any bugs
    import java.util.*;
    //Part 1 using the  Random class print out an ArrayList of 10 random numbers
    // - use an iterator object
    public class TryArrayList
       public static void main(String[] args)
       ArrayList myNumberList = new ArrayList();
       Random intRandom = new Random();
       for (int j = 0; j < 11; j++) {
         myNumberList.add(Integer.toString(intRandom.nextInt(10)));
       System.out.println("The random values in the ArrayList are: ");
       Iterator it = myNumberList.iterator();
       while (it.hasNext()) {
         System.out.println(it.next());
         System.out.println();
         //Part 2
         //Use the Collections sort() to order the elements
         Collections.sort(myNumberList);
          System.out.println("The ordered values in the ArrayList are: ");
          Iterator i = myNumberList.iterator();
          while(i.hasNext())
             System.out.println(i.next());
          System.out.println();
          //Part 3
    //Use the Collections reverse() to reverse order the elements
    Collections.reverse(myNumberList);
    System.out.println("The reverse ordered values in the ArrayList are: ");
      Iterator iter = myNumberList.iterator();
      while(iter.hasNext())
         System.out.println(iter.next());
            System.out.println();
            //Part 5 print out the maximum and minimum values
            System.out.println("The maximum value in the ArrayList is: ");
            System.out.println( Collections.max( myNumberList));
            System.out.println();
           System.out.println("The minimum value in the ArrayList is: ");
           System.out.println( Collections.min( myNumberList));
           System.out.println();
           System.out.println("The frequency of the value 5 was");
         System.out.println ( Collections.frequency(myNumberList, (Integer)5));
    } //end of main()
    } //end of class

  • How to get InetAddress.getHostName() to skip non valid ips.

    im trying to build a network mapper that will scan all ip addresses up to 192.168.0.256 indexing the last 3 digits from 0 to 257. It takes less than a second to grab the host name of ip addresses that are alive, but for the rest that are down, it takes 10-20 seconds before returning the ip addresses. How can I send a packet to see if the host is up before asking for the hostName. I tried creating a socket to connect to various ports but even that takes 10-20 seconds for downed hosts. Thanks in advance.

    You want to do it fast?
    You can't, that isn't how sockets work. Sometimes it takes minutes to connect.
    If you are scanning local addresses and it takes that long, then something is wrong with your intranet and you need to talk to your sys admin.
    If you are scanning internet addresses then that is how long they take (assuming that something is not wrong with your internal network.)
    You can use a tentative approval process and threads to allow some processing to proceed. That, of course, depends on what you are doing.

  • How to retrieve the fully qualified domain name from the IP Address?

    Hi,
    How can i retrieve the commplete host name along with the domain name (something like x.y.com) of a server?
    I tried using the InetAddress.getHostName(), getCanonicalHostName(), etc but it retrieves me only the host name (only x in x.y.com)
    Is there a way to solve ?
    Thanx and Regards
    Biju Nair

    getInetAddress() of Socket Class will return the remote IP address in a InetAddress object.
    Use the object with the getCanonicalHostName() of InetAddress class.
    I may be wrong though. Cheers!

  • Creator Freeze Often -- SWING Worker thread also

    I'm developping an app with creator. And I have many freezes in several minutes long as some people mentioned before.
    I'm running win XP on an opeteron 244(1.8G) x2 , with 2G memory. I've updated creator to the latest updates, but it doesn't seem to be better.
    The things I found is that when I edit Session Bean , Creator takes especially long time to come up.
    At that time, SWING worker thread of Creator IDE also stopping, No update of display , I only look window frame.
    You know the SWING has a Single thread model ,so if some logic uses SWING worker's thread long time, all displying process will be stopped.
    Below is the stacktrace just after a few seconds when Creator freeze by editing Session Bean.
    I use the stacktrace tool at http://tmitevski.users.mcs2.netarray.com/trace.do
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode):
    "StackTrace Remote Thread" prio=5 tid=0x48b10418 nid=0x368 waiting on condition [0x00000000..0x4e85fbac]
    "Inactive RequestProcessor thread [Was:TimedWeakReference/org.netbeans.modules.projectapi.TimedWeakReference]" daemon prio=2 tid=0x48cc9e78 nid=0x634 in Object.wait() [0x4e89f000..0x4e89fbe8]
         at java.lang.Object.wait(Native Method)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:692)
         - locked <0x1eeb8620> (a java.lang.Object)
    "Inactive RequestProcessor thread [Was:Default RequestProcessor/org.netbeans.modules.editor.NbEditorUI$2]" daemon prio=2 tid=0x48d00d18 nid=0x814 in Object.wait() [0x4e79f000..0x4e79fce8]
         at java.lang.Object.wait(Native Method)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:692)
         - locked <0x1eeb8690> (a java.lang.Object)
    "Inactive RequestProcessor thread [Was:Java Children Provider/org.netbeans.modules.java.ui.nodes.elements.SourceChildren$4]" daemon prio=2 tid=0x48ce0d98 nid=0xd8c in Object.wait() [0x4e65f000..0x4e65fae8]
         at java.lang.Object.wait(Native Method)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:692)
         - locked <0x1edbfe00> (a java.lang.Object)
    "Inactive RequestProcessor thread [Was:Suggestions Broker/org.netbeans.modules.tasklist.suggestions.SuggestionsBroker$2]" daemon prio=2 tid=0x473e1c80 nid=0x9fc in Object.wait() [0x4b84f000..0x4b84fbe8]
         at java.lang.Object.wait(Native Method)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:692)
         - locked <0x1ed09d38> (a java.lang.Object)
    "Timer-48" prio=7 tid=0x492d4748 nid=0x930 in Object.wait() [0x4e43f000..0x4e43fa68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1eb90290> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-46" prio=7 tid=0x4831ede8 nid=0xff0 in Object.wait() [0x4e71f000..0x4e71fae8]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1ea9f428> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-44" prio=7 tid=0x48b26ab0 nid=0xc50 in Object.wait() [0x4e81f000..0x4e81fb68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1dc0d688> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-42" prio=7 tid=0x50f3bb68 nid=0x8f0 in Object.wait() [0x4e7df000..0x4e7dfa68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1db078b8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-40" prio=7 tid=0x48bbde20 nid=0xf0c in Object.wait() [0x4e75f000..0x4e75f9e8]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1d85d2b8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-38" prio=7 tid=0x50e67840 nid=0x8a4 in Object.wait() [0x4e6df000..0x4e6dfae8]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1d7bc160> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-36" prio=7 tid=0x48ba3f50 nid=0xf58 in Object.wait() [0x4e5df000..0x4e5dfd68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1d7bc1d8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-34" prio=7 tid=0x48abb270 nid=0xee8 in Object.wait() [0x4e53f000..0x4e53fb68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1d339d68> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-32" prio=7 tid=0x47a6e050 nid=0xe98 in Object.wait() [0x4e69f000..0x4e69fa68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1b93e2e8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-30" prio=7 tid=0x4925bd38 nid=0x9a8 in Object.wait() [0x4e4bf000..0x4e4bfa68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1b3022f0> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-28" prio=7 tid=0x4930aae8 nid=0x620 in Object.wait() [0x4b70f000..0x4b70fae8]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1af19770> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-26" prio=7 tid=0x485620c8 nid=0x120 in Object.wait() [0x4e59f000..0x4e59fb68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1978f0f8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-24" prio=7 tid=0x46d7e9e8 nid=0xaf8 in Object.wait() [0x4e61f000..0x4e61fbe8]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x196f19e8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "VCS Command Tasks Starter Loop" daemon prio=2 tid=0x48aeed00 nid=0x96c in Object.wait() [0x4e4ff000..0x4e4ffbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x18841770> (a org.netbeans.modules.vcscore.commands.CommandProcessor)
         at java.lang.Object.wait(Object.java:474)
         at org.netbeans.modules.vcscore.commands.CommandProcessor.executorStarterLoop(CommandProcessor.java:757)
         - locked <0x18841770> (a org.netbeans.modules.vcscore.commands.CommandProcessor)
         at org.netbeans.modules.vcscore.commands.CommandProcessor.access$700(CommandProcessor.java:65)
         at org.netbeans.modules.vcscore.commands.CommandProcessor$5.run(CommandProcessor.java:776)
         at java.lang.Thread.run(Thread.java:595)
    "Timer-16" prio=7 tid=0x46fa81a8 nid=0x69c in Object.wait() [0x4e3ff000..0x4e3ffd68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x151bf408> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "Timer-12" prio=7 tid=0x479eacf0 nid=0x2ec in Object.wait() [0x4b4df000..0x4b4dfce8]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.util.TimerThread.mainLoop(Timer.java:483)
         - locked <0x1499b4e8> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "URLdisplayer" prio=7 tid=0x4865de20 nid=0xe2c in Object.wait() [0x4727f000..0x4727fd68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x12a02bb0> (a org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer)
         at java.lang.Object.wait(Object.java:474)
         at org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer.getNextTask(NbDdeBrowserImpl.java:223)
         - locked <0x12a02bb0> (a org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer)
         at org.netbeans.modules.extbrowser.NbDdeBrowserImpl$URLDisplayer.run(NbDdeBrowserImpl.java:235)
         at java.lang.Thread.run(Thread.java:595)
    "Text-Layout" prio=2 tid=0x475967e8 nid=0xa68 in Object.wait() [0x4b68f000..0x4b68fae8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x129e8cd0> (a org.netbeans.editor.view.spi.ViewLayoutQueue)
         at java.lang.Object.wait(Object.java:474)
         at org.netbeans.editor.view.spi.ViewLayoutQueue.waitForTask(ViewLayoutQueue.java:128)
         - locked <0x129e8cd0> (a org.netbeans.editor.view.spi.ViewLayoutQueue)
         at org.netbeans.editor.view.spi.ViewLayoutQueue$LayoutThread.run(ViewLayoutQueue.java:182)
    "MDR event dispatcher" daemon prio=2 tid=0x47b8b450 nid=0x9c8 in Object.wait() [0x4b88f000..0x4b88fa68]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at org.netbeans.mdr.util.EventNotifier$EventsDelivery.run(EventNotifier.java:257)
         - locked <0x087d1b10> (a java.util.LinkedList)
         at java.lang.Thread.run(Thread.java:595)
    "DestroyJavaVM" prio=5 tid=0x00038890 nid=0x4e4 waiting on condition [0x00000000..0x0007fae8]
    "TimerQueue" daemon prio=5 tid=0x46da6908 nid=0x768 in Object.wait() [0x4716f000..0x4716fb68]
         at java.lang.Object.wait(Native Method)
         at javax.swing.TimerQueue.run(TimerQueue.java:233)
         - locked <0x07b22b68> (a javax.swing.TimerQueue)
         at java.lang.Thread.run(Thread.java:595)
    "AWT-EventQueue-1" prio=7 tid=0x46ea8478 nid=0x990 runnable [0x4820e000..0x4820fbe8]
         at java.net.Inet4AddressImpl.getHostByAddr(Native Method)
         at java.net.InetAddress$1.getHostByAddr(InetAddress.java:842)
         at java.net.InetAddress.getHostFromNameService(InetAddress.java:532)
         at java.net.InetAddress.getHostName(InetAddress.java:475)
         at java.net.InetAddress.getHostName(InetAddress.java:447)
         at java.net.InetSocketAddress.getHostName(InetSocketAddress.java:210)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:341)
         at java.net.Socket.connect(Socket.java:507)
         at java.net.Socket.connect(Socket.java:457)
         at java.net.Socket.<init>(Socket.java:365)
         at java.net.Socket.<init>(Socket.java:207)
         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:142)
         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
         at com.mysql.jdbc.Connection.createNewIO(Connection.java:1774)
         at com.mysql.jdbc.Connection.<init>(Connection.java:437)
         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
         at com.sun.rave.sql.DesignTimeDataSource.getConnection(DesignTimeDataSource.java:238)
         at com.sun.rave.sql.DesignTimeDataSource.getConnection(DesignTimeDataSource.java:214)
         at com.sun.sql.rowset.JdbcRowSetXImpl.connect(JdbcRowSetXImpl.java:410)
         at com.sun.sql.rowset.JdbcRowSetXImpl.prepare(JdbcRowSetXImpl.java:532)
         at com.sun.sql.rowset.JdbcRowSetXImpl.execute(JdbcRowSetXImpl.java:349)
         at caico.jsf.svc.itemSvc.<init>(itemSvc.java:81)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.sun.rave.insync.beans.BeansUnit.instantiateBean(BeansUnit.java:884)
         at com.sun.rave.insync.live.LiveUnit.ressurectDesignBean(LiveUnit.java:339)
         at com.sun.rave.insync.live.LiveUnit.resurrect(LiveUnit.java:406)
         at com.sun.rave.insync.live.LiveUnit.sync(LiveUnit.java:294)
         at com.sun.rave.insync.live.LiveUnitWrapper.sync(LiveUnitWrapper.java:115)
         at com.sun.rave.insync.models.FacesModel.syncImpl(FacesModel.java:899)
         at com.sun.rave.insync.Model.sync(Model.java:207)
         at com.sun.rave.insync.Model.sync(Model.java:173)
         at com.sun.rave.insync.ModelSet$WindowManagerPropertyRegistry.processNodes(ModelSet.java:107)
         at com.sun.rave.insync.ModelSet$WindowManagerPropertyRegistry.propertyChange(ModelSet.java:125)
         at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
         at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
         at org.netbeans.core.windows.RegistryImpl.doFirePropertyChange(RegistryImpl.java:249)
         at org.netbeans.core.windows.RegistryImpl.tryFireChanges(RegistryImpl.java:222)
         at org.netbeans.core.windows.RegistryImpl.selectedNodesChanged(RegistryImpl.java:186)
         at org.netbeans.core.windows.RegistryImpl.topComponentActivated(RegistryImpl.java:138)
         at org.netbeans.core.windows.WindowManagerImpl.notifyRegistryTopComponentActivated(WindowManagerImpl.java:893)
         at org.netbeans.core.windows.Central.setActiveMode(Central.java:182)
         at org.netbeans.core.windows.Central.userActivatedMode(Central.java:1451)
         at org.netbeans.core.windows.view.DefaultView.userActivatedModeView(DefaultView.java:591)
         at org.netbeans.core.windows.view.ui.TabbedHandler$ActivationManager.handleActivation(TabbedHandler.java:477)
         at org.netbeans.core.windows.view.ui.TabbedHandler$ActivationManager.eventDispatched(TabbedHandler.java:425)
         at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2206)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2100)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
         at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
         at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:3867)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    "Creator Error Handler Listener" prio=5 tid=0x4665f3d8 nid=0xf70 runnable [0x481cf000..0x481cfce8]
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
         - locked <0x0793baf0> (a java.net.SocksSocketImpl)
         at java.net.ServerSocket.implAccept(ServerSocket.java:450)
         at java.net.ServerSocket.accept(ServerSocket.java:421)
         at com.sun.rave.errorhandler.DebugServerThread.run(DebugServerThread.java:81)
    "Java2D Disposer" daemon prio=10 tid=0x467d6760 nid=0xa08 in Object.wait() [0x46c8f000..0x46c8fce8]
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
         - locked <0x07451380> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
         at sun.java2d.Disposer.run(Disposer.java:107)
         at java.lang.Thread.run(Thread.java:595)
    "Active Reference Queue Daemon" daemon prio=2 tid=0x467bb638 nid=0xb70 in Object.wait() [0x46c4f000..0x46c4fd68]
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
         - locked <0x07451408> (a java.lang.ref.ReferenceQueue$Lock)
         at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2465)
         at java.lang.Thread.run(Thread.java:595)
    "Timer-0" daemon prio=5 tid=0x4678f2f0 nid=0xaf0 in Object.wait() [0x46c0f000..0x46c0f9e8]
         at java.lang.Object.wait(Native Method)
         at java.util.TimerThread.mainLoop(Timer.java:509)
         - locked <0x07451498> (a java.util.TaskQueue)
         at java.util.TimerThread.run(Timer.java:462)
    "AWT-Windows" daemon prio=7 tid=0x467a54a0 nid=0x790 runnable [0x46a6f000..0x46a6fa68]
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(WToolkit.java:269)
         at java.lang.Thread.run(Thread.java:595)
    "AWT-Shutdown" prio=5 tid=0x467a5008 nid=0xafc in Object.wait() [0x46a2f000..0x46a2fae8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x07451568> (a java.lang.Object)
         at java.lang.Object.wait(Object.java:474)
         at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
         - locked <0x07451568> (a java.lang.Object)
         at java.lang.Thread.run(Thread.java:595)
    "CLI Requests Server" daemon prio=5 tid=0x4676b380 nid=0xa64 runnable [0x4693f000..0x4693fbe8]
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
         - locked <0x07451720> (a java.net.SocksSocketImpl)
         at java.net.ServerSocket.implAccept(ServerSocket.java:450)
         at java.net.ServerSocket.accept(ServerSocket.java:421)
         at org.netbeans.CLIHandler$Server.run(CLIHandler.java:758)
    "Low Memory Detector" daemon prio=5 tid=0x00ab83b8 nid=0xee0 runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=10 tid=0x00ab7020 nid=0x9c4 waiting on condition [0x00000000..0x465cfa4c]
    "Signal Dispatcher" daemon prio=10 tid=0x00ab6470 nid=0x31c runnable [0x00000000..0x00000000]
    "Finalizer" daemon prio=9 tid=0x00aa95e0 nid=0x85c in Object.wait() [0x4654f000..0x4654fa68]
         at java.lang.Object.wait(Native Method)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
         - locked <0x074519c0> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=10 tid=0x00aa8150 nid=0xf1c in Object.wait() [0x4650f000..0x4650fae8]
         at java.lang.Object.wait(Native Method)
         at java.lang.Object.wait(Object.java:474)
         at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
         - locked <0x07451590> (a java.lang.ref.Reference$Lock)
    "VM Thread" prio=10 tid=0x00aa5780 nid=0x808 runnable
    "VM Periodic Task Thread" prio=10 tid=0x00ab9858 nid=0x1b0 waiting on condition

    Use a SwingUtilities.invokeLater(...) to invoke the main GUI. This will allow the button to repaint itself before the main GUI is invoked.

  • JVM crash on Debian Linux

    Hi
    I am running some simple web applications in Tomcat on a Debian Linux machine and my JVM is crashing frequently. The server load is very low.
    Mostly it is the java.net.Inet4AddressImpl.getHostByAddr(Native Method) that causes the crash but i have also seen java.lang.Thread.start(Native Method) crash. The library /lib/tls/libc.so.6 is always involved.
    Configuration:
    J2SE v 1.4.2_07-b05 SDK
    GNU/Linux 2.6.11.2 Debian Sarge
    Tomcat 5.0.30
    I would be very thankful if someone could help me out with this!
    Here is the error log:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0xB7F25604
    Function=memchr+0x104
    Library=/lib/tls/libc.so.6
    Current Java thread:
    at java.net.Inet4AddressImpl.getHostByAddr(Native Method)
    at java.net.InetAddress$1.getHostByAddr(InetAddress.java:774)
    at java.net.InetAddress.getHostFromNameService(InetAddress.java:464)
    at java.net.InetAddress.getHostName(InetAddress.java:407)
    at java.net.InetAddress.getHostName(InetAddress.java:379)
    at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:1011)
    at org.apache.coyote.Request.action(Request.java:367)
    at org.apache.coyote.tomcat5.CoyoteRequest.getRemoteHost(CoyoteRequest.java:1226)
    at org.apache.coyote.tomcat5.CoyoteRequestFacade.getRemoteHost(CoyoteRequestFacade.java:346)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:557)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Dynamic libraries:
    08048000-0804f000 r-xp 00000000 08:05 339473 /usr/java/jakarta-tomcat-5.0.30/bin/jsvc
    0804f000-08050000 rw-p 00006000 08:05 339473 /usr/java/jakarta-tomcat-5.0.30/bin/jsvc
    9d2d2000-9d38c000 r-xp 00000000 08:05 337392 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libfontmanager.so
    9d38c000-9d3a7000 rw-p 000b9000 08:05 337392 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libfontmanager.so
    9d3e9000-9d3fd000 r-xp 00000000 08:05 562292 /usr/X11R6/lib/libICE.so.6.3
    9d3fd000-9d3fe000 rw-p 00013000 08:05 562292 /usr/X11R6/lib/libICE.so.6.3
    9d400000-9d408000 r-xp 00000000 08:05 562247 /usr/X11R6/lib/libSM.so.6.0
    9d408000-9d409000 rw-p 00007000 08:05 562247 /usr/X11R6/lib/libSM.so.6.0
    9d409000-9d4cd000 r-xp 00000000 08:05 562279 /usr/X11R6/lib/libX11.so.6.2
    9d4cd000-9d4d0000 rw-p 000c4000 08:05 562279 /usr/X11R6/lib/libX11.so.6.2
    9d4d0000-9d4d4000 r-xp 00000000 08:05 562290 /usr/X11R6/lib/libXtst.so.6.1
    9d4d4000-9d4d5000 rw-p 00004000 08:05 562290 /usr/X11R6/lib/libXtst.so.6.1
    9d4d5000-9d4e2000 r-xp 00000000 08:05 562741 /usr/X11R6/lib/libXext.so.6.4
    9d4e2000-9d4e3000 rw-p 0000c000 08:05 562741 /usr/X11R6/lib/libXext.so.6.4
    9d4e3000-9d530000 r-xp 00000000 08:05 562249 /usr/X11R6/lib/libXt.so.6.0
    9d530000-9d533000 rw-p 0004d000 08:05 562249 /usr/X11R6/lib/libXt.so.6.0
    9d534000-9d53b000 r-xp 00000000 08:05 562262 /usr/X11R6/lib/libXp.so.6.2
    9d53b000-9d53c000 rw-p 00006000 08:05 562262 /usr/X11R6/lib/libXp.so.6.2
    9d541000-9d594000 r-xp 00000000 08:05 337388 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libmlib_image.so
    9d594000-9d595000 rw-p 00052000 08:05 337388 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libmlib_image.so
    9d595000-9d866000 r-xp 00000000 08:05 337389 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libawt.so
    9d866000-9d87c000 rw-p 002d0000 08:05 337389 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libawt.so
    9d8a1000-9d8d8000 r-xp 00000000 08:05 337393 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libjpeg.so
    9d8d8000-9d8d9000 rw-p 00036000 08:05 337393 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libjpeg.so
    9d910000-9d963000 r-xp 00000000 08:05 337394 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libcmm.so
    9d963000-9d965000 rw-p 00052000 08:05 337394 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libcmm.so
    9e210000-9e21f000 r-xp 00000000 08:01 40440 /lib/tls/libresolv-2.3.2.so
    9e21f000-9e220000 rw-p 0000f000 08:01 40440 /lib/tls/libresolv-2.3.2.so
    9e222000-9e24f000 r--s 00000000 08:05 337819 /usr/java/jakarta-tomcat-5.0.30/server/lib/tomcat-util.jar
    9e24f000-9e253000 r--s 00000000 08:05 337818 /usr/java/jakarta-tomcat-5.0.30/server/lib/tomcat-jni.jar
    9e253000-9e271000 r--s 00000000 08:05 337817 /usr/java/jakarta-tomcat-5.0.30/server/lib/tomcat-jk2.jar
    9e271000-9e272000 r--s 00000000 08:05 337816 /usr/java/jakarta-tomcat-5.0.30/server/lib/tomcat-jk.jar
    9e272000-9e27f000 r--s 00000000 08:05 337815 /usr/java/jakarta-tomcat-5.0.30/server/lib/tomcat-http11.jar
    9e27f000-9e284000 r--s 00000000 08:05 337814 /usr/java/jakarta-tomcat-5.0.30/server/lib/tomcat-coyote.jar
    9e284000-9e28a000 r--s 00000000 08:05 337813 /usr/java/jakarta-tomcat-5.0.30/server/lib/servlets-webdav.jar
    9e28a000-9e28c000 r--s 00000000 08:05 337811 /usr/java/jakarta-tomcat-5.0.30/server/lib/servlets-invoker.jar
    9e28c000-9e292000 r--s 00000000 08:05 337810 /usr/java/jakarta-tomcat-5.0.30/server/lib/servlets-default.jar
    9e292000-9e293000 r--s 00000000 08:05 337809 /usr/java/jakarta-tomcat-5.0.30/server/lib/servlets-common.jar
    9e293000-9e294000 r--s 00000000 08:05 337807 /usr/java/jakarta-tomcat-5.0.30/server/lib/jkshm.jar
    9e294000-9e29c000 r--s 00000000 08:05 337806 /usr/java/jakarta-tomcat-5.0.30/server/lib/jkconfig.jar
    9e29c000-9e2a3000 r--s 00000000 08:05 337805 /usr/java/jakarta-tomcat-5.0.30/server/lib/jakarta-regexp-1.3.jar
    9e2a3000-9e2be000 r--s 00000000 08:05 337804 /usr/java/jakarta-tomcat-5.0.30/server/lib/commons-modeler.jar
    9e2be000-9e2c4000 r--s 00000000 08:05 337803 /usr/java/jakarta-tomcat-5.0.30/server/lib/commons-fileupload-1.0.jar
    9e2c4000-9e2df000 r--s 00000000 08:05 337802 /usr/java/jakarta-tomcat-5.0.30/server/lib/commons-digester.jar
    9e2df000-9e30e000 r--s 00000000 08:05 337801 /usr/java/jakarta-tomcat-5.0.30/server/lib/commons-beanutils.jar
    9e30e000-9e3bc000 r--s 00000000 08:05 337800 /usr/java/jakarta-tomcat-5.0.30/server/lib/catalina.jar
    9e3bc000-9e3d7000 r--s 00000000 08:05 337799 /usr/java/jakarta-tomcat-5.0.30/server/lib/catalina-optional.jar
    9e3d7000-9e3dd000 r--s 00000000 08:05 337798 /usr/java/jakarta-tomcat-5.0.30/server/lib/catalina-i18n-ja.jar
    9e3dd000-9e3e3000 r--s 00000000 08:05 337797 /usr/java/jakarta-tomcat-5.0.30/server/lib/catalina-i18n-fr.jar
    9e3e3000-9e3e9000 r--s 00000000 08:05 337796 /usr/java/jakarta-tomcat-5.0.30/server/lib/catalina-i18n-es.jar
    9e3e9000-9e408000 r--s 00000000 08:05 337795 /usr/java/jakarta-tomcat-5.0.30/server/lib/catalina-cluster.jar
    9e408000-9e40d000 r--s 00000000 08:05 337794 /usr/java/jakarta-tomcat-5.0.30/server/lib/catalina-ant.jar
    9e40d000-9e41b000 r--s 00000000 08:05 404959 /usr/java/jakarta-tomcat-5.0.30/common/lib/activation.jar
    9e41b000-9e470000 r--s 00000000 08:05 405025 /usr/java/jakarta-tomcat-5.0.30/common/lib/mail.jar
    9e470000-9e473000 r--s 00000000 08:05 404902 /usr/java/jakarta-tomcat-5.0.30/common/lib/jta-spec1_0_1.jar
    9e473000-9e475000 r--s 00000000 08:05 404901 /usr/java/jakarta-tomcat-5.0.30/common/lib/jdbc2_0-stdext.jar
    9e475000-9e486000 r--s 00000000 08:05 404849 /usr/java/jakarta-tomcat-5.0.30/common/lib/mssqlserver.jar
    9e486000-9e495000 r--s 00000000 08:05 404850 /usr/java/jakarta-tomcat-5.0.30/common/lib/msutil.jar
    9e495000-9e4dc000 r--s 00000000 08:05 404848 /usr/java/jakarta-tomcat-5.0.30/common/lib/msbase.jar
    9e4dc000-9e53d000 r--s 00000000 08:05 404899 /usr/java/jakarta-tomcat-5.0.30/common/lib/mysql-connector-java-3.1.7-bin.jar
    9e53d000-9e555000 r--s 00000000 08:05 337793 /usr/java/jakarta-tomcat-5.0.30/common/lib/servlet-api.jar
    9e555000-9e560000 r--s 00000000 08:05 337792 /usr/java/jakarta-tomcat-5.0.30/common/lib/naming-resources.jar
    9e560000-9e561000 r--s 00000000 08:05 337791 /usr/java/jakarta-tomcat-5.0.30/common/lib/naming-java.jar
    9e561000-9e565000 r--s 00000000 08:05 337790 /usr/java/jakarta-tomcat-5.0.30/common/lib/naming-factory.jar
    9e565000-9e56c000 r--s 00000000 08:05 337789 /usr/java/jakarta-tomcat-5.0.30/common/lib/naming-common.jar
    9e56c000-9e579000 r--s 00000000 08:05 337788 /usr/java/jakarta-tomcat-5.0.30/common/lib/jsp-api.jar
    9e579000-9e594000 r--s 00000000 08:05 337787 /usr/java/jakarta-tomcat-5.0.30/common/lib/jasper-runtime.jar
    9e594000-9e5eb000 r--s 00000000 08:05 337786 /usr/java/jakarta-tomcat-5.0.30/common/lib/jasper-compiler.jar
    9e5eb000-9e5f6000 r--s 00000000 08:05 337785 /usr/java/jakarta-tomcat-5.0.30/common/lib/commons-pool-1.2.jar
    9e5f6000-9e612000 r--s 00000000 08:05 337784 /usr/java/jakarta-tomcat-5.0.30/common/lib/commons-el.jar
    9e612000-9e62d000 r--s 00000000 08:05 337783 /usr/java/jakarta-tomcat-5.0.30/common/lib/commons-dbcp-1.2.1.jar
    9e62d000-9e6b6000 r--s 00000000 08:05 337782 /usr/java/jakarta-tomcat-5.0.30/common/lib/commons-collections-3.1.jar
    9e6b6000-9e7ab000 r--s 00000000 08:05 337781 /usr/java/jakarta-tomcat-5.0.30/common/lib/ant.jar
    9e7ab000-9e7ae000 r--s 00000000 08:05 337780 /usr/java/jakarta-tomcat-5.0.30/common/lib/ant-launcher.jar
    9e7ae000-9e7cd000 r--s 00000000 08:05 404834 /usr/java/jakarta-tomcat-5.0.30/common/endorsed/xml-apis.jar
    9e7cd000-9e8c4000 r--s 00000000 08:05 404833 /usr/java/jakarta-tomcat-5.0.30/common/endorsed/xercesImpl.jar
    9e8c4000-9ebc5000 r--s 00000000 08:05 404841 /usr/java/jakarta-tomcat-5.0.30/common/endorsed/xalan.jar
    9ebc5000-9ebd5000 r-xp 00000000 08:05 337384 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libnet.so
    9ebd5000-9ebd6000 rw-p 0000f000 08:05 337384 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libnet.so
    9ebd6000-9ebdd000 r--s 00000000 08:05 337757 /usr/java/jakarta-tomcat-5.0.30/bin/commons-logging-api.jar
    9ebdd000-9ec31000 r--s 00000000 08:05 337763 /usr/java/jakarta-tomcat-5.0.30/bin/jmx.jar
    9ec31000-9ec39000 r--s 00000000 08:05 337750 /usr/java/jakarta-tomcat-5.0.30/bin/bootstrap.jar
    9ec39000-9ec3c000 r--s 00000000 08:05 337755 /usr/java/jakarta-tomcat-5.0.30/bin/commons-daemon.jar
    9ec3c000-9f118000 r--s 00000000 08:05 355210 /usr/java/j2sdk1.4.2_07/lib/tools.jar
    9f118000-9f1d4000 r--s 00000000 08:05 354117 /usr/java/j2sdk1.4.2_07/jre/lib/ext/localedata.jar
    9f1d4000-9f1e1000 r--s 00000000 08:05 353577 /usr/java/j2sdk1.4.2_07/jre/lib/ext/ldapsec.jar
    9f1e1000-9f1e4000 r--s 00000000 08:05 353575 /usr/java/j2sdk1.4.2_07/jre/lib/ext/dnsns.jar
    9f1e4000-9f200000 r--s 00000000 08:05 353574 /usr/java/j2sdk1.4.2_07/jre/lib/ext/sunjce_provider.jar
    9f400000-9f407000 r--p 01a81000 08:05 167297 /usr/lib/locale/locale-archive
    9f407000-9f607000 r--p 00000000 08:05 167297 /usr/lib/locale/locale-archive
    b38c2000-b38c5000 r-xp 00000000 08:01 40433 /lib/tls/libnss_dns-2.3.2.so
    b38c5000-b38c6000 rw-p 00003000 08:01 40433 /lib/tls/libnss_dns-2.3.2.so
    b5973000-b5ecc000 r--s 00000000 08:05 337449 /usr/java/j2sdk1.4.2_07/jre/lib/charsets.jar
    b5ecc000-b5edd000 r--s 00000000 08:05 337404 /usr/java/j2sdk1.4.2_07/jre/lib/jce.jar
    b5edd000-b5fba000 r--s 00000000 08:05 337448 /usr/java/j2sdk1.4.2_07/jre/lib/jsse.jar
    b5fba000-b5fd0000 r--s 00000000 08:05 337403 /usr/java/j2sdk1.4.2_07/jre/lib/sunrsasign.jar
    b601a000-b79c3000 r--s 00000000 08:05 337346 /usr/java/j2sdk1.4.2_07/jre/lib/rt.jar
    b79c3000-b79d7000 r-xp 00000000 08:05 337381 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libzip.so
    b79d7000-b79da000 rw-p 00013000 08:05 337381 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libzip.so
    b79da000-b79fa000 r-xp 00000000 08:05 337379 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libjava.so
    b79fa000-b79fc000 rw-p 0001f000 08:05 337379 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libjava.so
    b79fc000-b7a0c000 r-xp 00000000 08:05 337378 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libverify.so
    b7a0c000-b7a0e000 rw-p 0000f000 08:05 337378 /usr/java/j2sdk1.4.2_07/jre/lib/i386/libverify.so
    b7a0e000-b7a12000 rw-s 00000000 08:08 64258 /tmp/hsperfdata_tomcat/17768
    b7a12000-b7a1a000 r-xp 00000000 08:05 337367 /usr/java/j2sdk1.4.2_07/jre/lib/i386/native_threads/libhpi.so
    b7a1a000-b7a1b000 rw-p 00007000 08:05 337367 /usr/java/j2sdk1.4.2_07/jre/lib/i386/native_threads/libhpi.so
    b7a1b000-b7a27000 r-xp 00000000 08:01 40439 /lib/tls/libpthread-0.60.so
    b7a27000-b7a28000 rw-p 0000c000 08:01 40439 /lib/tls/libpthread-0.60.so
    b7a2a000-b7a4b000 r-xp 00000000 08:01 40429 /lib/tls/libm-2.3.2.so
    b7a4b000-b7a4c000 rw-p 00020000 08:01 40429 /lib/tls/libm-2.3.2.so
    b7a51000-b7e4f000 r-xp 00000000 08:05 337373 /usr/java/j2sdk1.4.2_07/jre/lib/i386/client/libjvm.so
    b7e4f000-b7e6b000 rw-p 003fd000 08:05 337373 /usr/java/j2sdk1.4.2_07/jre/lib/i386/client/libjvm.so
    b7e7d000-b7e86000 r-xp 00000000 08:01 40434 /lib/tls/libnss_files-2.3.2.so
    b7e86000-b7e87000 rw-p 00008000 08:01 40434 /lib/tls/libnss_files-2.3.2.so
    b7e87000-b7e8f000 r-xp 00000000 08:01 40436 /lib/tls/libnss_nis-2.3.2.so
    b7e8f000-b7e90000 rw-p 00007000 08:01 40436 /lib/tls/libnss_nis-2.3.2.so
    b7e90000-b7ea1000 r-xp 00000000 08:01 40431 /lib/tls/libnsl-2.3.2.so
    b7ea1000-b7ea2000 rw-p 00011000 08:01 40431 /lib/tls/libnsl-2.3.2.so
    b7ea4000-b7eab000 r-xp 00000000 08:01 40432 /lib/tls/libnss_compat-2.3.2.so
    b7eab000-b7eac000 rw-p 00006000 08:01 40432 /lib/tls/libnss_compat-2.3.2.so
    b7eac000-b7fd5000 r-xp 00000000 08:01 40426 /lib/tls/libc-2.3.2.so
    b7fd5000-b7fdd000 rw-p 00129000 08:01 40426 /lib/tls/libc-2.3.2.so
    b7fe1000-b7fe3000 r-xp 00000000 08:01 40428 /lib/tls/libdl-2.3.2.so
    b7fe3000-b7fe4000 rw-p 00002000 08:01 40428 /lib/tls/libdl-2.3.2.so
    b7fea000-b8000000 r-xp 00000000 08:01 40401 /lib/ld-2.3.2.so
    b8000000-b8001000 rw-p 00015000 08:01 40401 /lib/ld-2.3.2.so
    Heap at VM Abort:
    Heap
    def new generation total 18176K, used 8742K [0x9f8c0000, 0xa0c70000, 0xa0c70000)
    eden space 16192K, 51% used [0x9f8c0000, 0xa00eabf0, 0xa0890000)
    from space 1984K, 19% used [0xa0a80000, 0xa0adecd8, 0xa0c70000)
    to space 1984K, 0% used [0xa0890000, 0xa0890000, 0xa0a80000)
    tenured generation total 241984K, used 18638K [0xa0c70000, 0xaf8c0000, 0xaf8c0000)
    the space 241984K, 7% used [0xa0c70000, 0xa1ea3860, 0xa1ea3a00, 0xaf8c0000)
    compacting perm gen total 14592K, used 14337K [0xaf8c0000, 0xb0700000, 0xb38c0000)
    the space 14592K, 98% used [0xaf8c0000, 0xb06c07e8, 0xb06c0800, 0xb0700000)
    Local Time = Mon May 2 09:21:20 2005
    Elapsed Time = 321329
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_07-b05 mixed mode)
    #

    Hi
    Does a simple java.net.InetAddress.getHostName fail?
    How about not using NPTL? Not too familiar with linux but since u mentioned tls is always seen when using tls.
    Hope this helps.

  • JVM SIGSEGV error running Java 1.5.0_01 on linux

    Three times last week we had the JVM come down hard with a SISSEGV error running our web application. Each crash was on a different machine. The offending thread was always in libnet.so shared library handling either a getHostByAddr() or getLocalHostName() call. I included a portion of one of the JVM dumps below. In the other two cases we are in either an Oracle JDBC driver or a SQL Server JDBC driver (tds).
    We are not able to issolate and reproduce this problem at will. This is happening in our QA environment and we are planning to go to production soon. Any ideas or information would be most helpful.
    We've just decided to upgrade to Java 1.5.0_04 in the hope it might help this problem. Too early to tell if this is making a difference or not.
    The JVM is running Tomcat 5.5.9.
    OS:Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
    vm_info: Java HotSpot(TM) Server VM (1.5.0_01-b08) for linux-x86, built on Dec 6 2004 19:33:50 by java_re with gcc 3.2.1-7a (J2SE release)
    Thanks for your attention.
    --Brad
    first part of jvm dump follows:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x007737b9, pid=16179, tid=122411952
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_01-b08 mixed mode)
    # Problematic frame:
    # C [libc.so.6+0x797b9] memchr+0x29
    --------------- T H R E A D ---------------
    Current thread (0xb192d0f0): JavaThread "http-80-Processor25" daemon [_thread_in_native, id=16341]
    siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0xb0bfe0c2
    Registers:
    EAX=0xb0bfe0c2, EBX=0x0082ea98, ECX=0x00000a0a, EDX=0x0a0a0a0a
    ESP=0x074bcae8, EBP=0x074bcb14, ESI=0x00000036, EDI=0x000003e7
    EIP=0x007737b9, CR2=0xb0bfe0c2, EFLAGS=0x00010202
    Top of Stack: (sp=0x074bcae8)
    0x074bcae8: 000003e7 00000036 0075ae2b b0bfe0c2
    0x074bcaf8: 0000000a 00000036 b0bff038 074bcc48
    0x074bcb08: 0082ea98 b2f87428 074bcc48 074bcb38
    0x074bcb18: 0075adb3 b2f87428 074bcc48 000003e7
    0x074bcb28: 0000000a 00000001 00000000 0082ea98
    0x074bcb38: 074bcb64 00763ebb b2f87428 074bcc48
    0x074bcb48: 000003e7 0000000a 00000001 00000000
    0x074bcb58: 0011c3a4 074bcc48 000003e8 074bcbb0
    Instructions: (pc=0x007737b9)
    0x007737a9: 89 d1 c1 e2 10 66 89 ca a8 03 0f 84 cd 00 00 00
    0x007737b9: 38 10 0f 84 67 01 00 00 40 4e 0f 84 3f 01 00 00
    Stack: [0x0747d000,0x074be000), sp=0x074bcae8, free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [libc.so.6+0x797b9] memchr+0x29
    C [libc.so.6+0x60db3] IOgetline+0x43
    C [libc.so.6+0x69ebb] fgets_unlocked+0x5b
    C [libnss_files.so.2+0x4b14] nssfiles_gethostbyaddr_r+0x184
    C [libc.so.6+0xef7ed] gethostbyaddr_r+0xdd
    C [libnet.so+0x5321] Java_java_net_Inet4AddressImpl_getHostByAddr+0x10d
    j java.net.Inet4AddressImpl.getHostByAddr([B)Ljava/lang/String;+0
    j java.net.InetAddress$1.getHostByAddr([B)Ljava/lang/String;+4
    j java.net.InetAddress.getHostFromNameService(Ljava/net/InetAddress;Z)Ljava/lang/String;+7
    j java.net.InetAddress.getHostName(Z)Ljava/lang/String;+10
    j java.net.InetAddress.getHostName()Ljava/lang/String;+2
    j org.apache.coyote.http11.Http11Processor.parseHost(Lorg/apache/tomcat/util/buf/MessageBytes;)V+38
    j org.apache.coyote.http11.Http11Processor.prepareRequest()V+794

    So, we started getting this problem again in production (on 1.5.0_06, even).
    Following up on Dan Paum's report, I dug around a little deeper:
    ~/java/old/java/net$ javap Inet4AddressImpl
    Compiled from "Inet4AddressImpl.java"
    class java.net.Inet4AddressImpl extends java.lang.Object implements java.net.InetAddressImpl{
    java.net.Inet4AddressImpl();
    public native java.lang.String getLocalHostName() throws java.net.UnknownHostException;
    public native byte[][] lookupAllHostAddr(java.lang.String) throws java.net.UnknownHostException;
    public native java.lang.String getHostByAddr(byte[]) throws java.net.UnknownHostException;
    public synchronized java.net.InetAddress anyLocalAddress();
    public synchronized java.net.InetAddress loopbackAddress();
    public boolean isReachable(java.net.InetAddress, int, java.net.NetworkInterface, int) throws java.io.IOException;
    Both anyLocalAddress() and loopbackAddress() are synchronized, but not getLocalHostName(). The native code for getLocalHostName() calls gethostbyaddr_r in lieu of synchronization. gethostbyaddr_r is a non-standard, non-portable call that, judging from a brief trawl through Google, has historically been problematic for multi-platform code.
    I'm guessing this bug is another such problem.
    I extracted Inet4AddressImpl.java from src.zip in the JDK, changed the declaration, compiled, and "updated" the modified version into lib/rt.jar:
    ~/java/new/java/net$ javap Inet4AddressImpl
    Compiled from "Inet4AddressImpl.java"
    class java.net.Inet4AddressImpl extends java.lang.Object implements java.net.InetAddressImpl{
    java.net.Inet4AddressImpl();
    public synchronized native java.lang.String getLocalHostName() throws java.net.UnknownHostException;
    public native byte[][] lookupAllHostAddr(java.lang.String) throws java.net.UnknownHostException;
    public native java.lang.String getHostByAddr(byte[]) throws java.net.UnknownHostException;
    public synchronized java.net.InetAddress anyLocalAddress();
    public synchronized java.net.InetAddress loopbackAddress();
    public boolean isReachable(java.net.InetAddress, int, java.net.NetworkInterface, int) throws java.io.IOException;
    So far, so good. I will stress test this over the next few days, and if it works, I'll open a bug in the bug database to get this fixed.

  • Jdev freeze while waiting for "something"

    Hi All,
    I have problem in my jdeveloper. everytime when i open my jsp file (contains ADF component) and it is freeze and when i look at the thread information, it is waiting for my internal db connection. If i try to comment out, it is fine but when i am going to deploy, i have to dis-comment my db connection. After that, i open another jsp file, the problem comes out again even i have comment out my db connection after deployment.
    thx for reply and here is the thread information:
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode):
    "Designer-Layout-Dispatcher" prio=7 tid=0x2e561028 nid=0x2cc in Object.wait() [0x3dfef000..0x3dfef9e4]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x09ca2968> (a oracle.jdevimpl.webapp.view.DisplayManager$RefreshQueue)
    at java.lang.Object.wait(Object.java:474)
    at oracle.jdevimpl.webapp.view.DisplayManager$RefreshDispatcher.run(DisplayManager.java:1436)
    - locked <0x09ca2968> (a oracle.jdevimpl.webapp.view.DisplayManager$RefreshQueue)
    at java.lang.Thread.run(Thread.java:595)
    "Designer-Layout-Dispatcher [file:/C:/Projekts/ViewController/public_html/UserManagement.jsp]" prio=7 tid=0x2e6e75d8 nid=0x5d0 in Object.wait() [0x3c57f000.
    at java.lang.Object.wait(Native Method)
    - waiting on <0x08fa15f8> (a oracle.jdevimpl.webapp.view.DisplayManager$RefreshQueue)
    at java.lang.Object.wait(Object.java:474)
    at oracle.jdevimpl.webapp.view.DisplayManager$RefreshDispatcher.run(DisplayManager.java:1436)
    - locked <0x08fa15f8> (a oracle.jdevimpl.webapp.view.DisplayManager$RefreshQueue)
    at java.lang.Thread.run(Thread.java:595)
    "JSP VE Design Time Thread: ViewController.jpr 1145178935291" prio=7 tid=0x375d0030 nid=0x488 runnable [0x39b7e000..0x39b7f9e4]
    at java.net.Inet4AddressImpl.getHostByAddr(Native Method)
    at java.net.InetAddress$1.getHostByAddr(InetAddress.java:842)
    at java.net.InetAddress.getHostFromNameService(InetAddress.java:532)
    at java.net.InetAddress.getHostName(InetAddress.java:475)
    at java.net.InetAddress.getHostName(InetAddress.java:447)
    at java.net.InetSocketAddress.getHostName(InetSocketAddress.java:210)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:341)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at java.net.Socket.<init>(Socket.java:365)
    at java.net.Socket.<init>(Socket.java:178)
    at org.postgresql.core.PGStream.<init>(PGStream.java:60)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:116)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
    at org.postgresql.Driver.makeConnection(Driver.java:369)
    at org.postgresql.Driver.connect(Driver.java:245)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    - locked <0x27504420> (a java.lang.Class)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    - locked <0x27504420> (a java.lang.Class)
    at com.oneNetwork.accountingSystem.common.DAO.GeneralDBDAO.getConnection(GeneralDBDAO.java:36)
    at com.oneNetwork.accountingSystem.common.DAO.CountryDAOPostgresql.getCountryList(CountryDAOPostgresql.java:172)
    at com.oneNetwork.accountingSystem.common.valueobjects.basic.CountryVO.getCountriesList(CountryVO.java:78)
    at com.oneNetwork.accountingSystem.webclient.actions.CountryAction.getList(CountryAction.java:24)
    at com.oneNetwork.accountingSystem.webclient.forms.UserRegister.createCountryList(UserRegister.java:189)
    at com.oneNetwork.accountingSystem.webclient.forms.UserRegister.load(UserRegister.java:137)
    at com.oneNetwork.accountingSystem.webclient.forms.UserRegister.<init>(UserRegister.java:103)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at oracle.jdevimpl.webapp.design.renderer.utils.RenderUtils.createBean(RenderUtils.java:232)
    at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer._addManagedBean(FacesActionRenderer.java:1938)
    at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer._initialize(FacesActionRenderer.java:1911)
    at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer._initializeFromFacesConfig(FacesActionRenderer.java:1895)
    at oracle.jdevimpl.webapp.design.renderer.FacesActionRenderer.tagInitialize(FacesActionRenderer.java:1079)
    at oracle.jdevimpl.webapp.design.renderer.DesignTimeJspActionRenderer.renderCustomParentNode(DesignTimeJspActionRenderer.java:877)
    at oracle.jdevimpl.webapp.design.renderer.utils.FacesUtils.renderFakeNamespaceContainer(FacesUtils.java:179)
    at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet._renderSource(DesignTimeJspServlet.java:183)
    at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.serviceJsp(DesignTimeJspServlet.java:109)
    at oracle.jdevimpl.webapp.design.support.jsp.DesignTimeJspServlet.service(DesignTimeJspServlet.java:73)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:268)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(DesignTimeRequestDispatcher.java:197)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.forward(DesignTimeRequestDispatcher.java:72)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletInfo.service(DesignTimeServletInfo.java:268)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher$DesignTimeFilterChain.doFilter(DesignTimeRequestDispatcher.java:315)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher$DesignTimeFilterChain.doFilter(DesignTimeRequestDispatcher.java:292)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeRequestDispatcher.dispatch(DesignTimeRequestDispatcher.java:193)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext._service(DesignTimeServletContainerContext.java:611)
    at oracle.jdevimpl.webapp.design.support.http.DesignTimeServletContainerContext.service(DesignTimeServletContainerContext.java:570)
    at oracle.jdevimpl.webapp.design.DesignTimeRenderThread.runImpl(DesignTimeRenderThread.java:264)
    - locked <0x08082168> (a oracle.jdevimpl.webapp.design.DesignTimeRenderThread)
    at oracle.jdevimpl.webapp.design.DesignTimeThread.run(DesignTimeThread.java:147)
    "CssObservreTimer" daemon prio=5 tid=0x376c9878 nid=0x6a4 in Object.wait() [0x39a7f000..0x39a7fa64]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x08082280> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x08082280> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "IdeMinPriorityTimer" daemon prio=2 tid=0x375847c8 nid=0x4c4 in Object.wait() [0x3947f000..0x3947fd64]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x07d4c028> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x07d4c028> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "AuditExecutor-15" daemon prio=7 tid=0x2e4955c8 nid=0x690 in Object.wait() [0x38c7f000..0x38c7fae4]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x06b15110> (a oracle.javatools.util.SynchronizedQueue)
    at java.lang.Object.wait(Object.java:474)
    at oracle.javatools.util.SynchronizedQueue.remove(SynchronizedQueue.java:61)
    - locked <0x06b15110> (a oracle.javatools.util.SynchronizedQueue)
    at oracle.jdevimpl.audit.util.SwingExecutor.run(SwingExecutor.java:467)
    at java.lang.Thread.run(Thread.java:595)
    "WaitCursorTimer" daemon prio=5 tid=0x2da7f568 nid=0x3d0 in Object.wait() [0x3895f000..0x3895fce4]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x0671c150> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x0671c150> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "BufferDomModel background parse thread" daemon prio=2 tid=0x2da7e490 nid=0x654 in Object.wait() [0x3885f000..0x3885fd64]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x06051f88> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x06051f88> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "WeakDataReference polling" prio=2 tid=0x368297d0 nid=0x630 in Object.wait() [0x3875f000..0x3875f9e4]
    at java.lang.Object.wait(Native Method)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x06050ac8> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at oracle.ide.util.WeakDataReference$Cleaner.run(WeakDataReference.java:88)
    at java.lang.Thread.run(Thread.java:595)
    "Native Directory Watcher" prio=2 tid=0x373618d0 nid=0x4fc runnable [0x3855f000..0x3855fae4]
    at oracle.ide.natives.NativeHandler.enterWatcherThread(Native Method)
    at oracle.ide.natives.NativeHandler$1.run(NativeHandler.java:244)
    at java.lang.Thread.run(Thread.java:595)
    "IconOverlayTracker Timer" prio=5 tid=0x3738f010 nid=0x2f8 in Object.wait() [0x3845f000..0x3845fb64]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x05ffe648> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x05ffe648> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "TimerQueue" daemon prio=5 tid=0x2dc17ec0 nid=0x500 in Object.wait() [0x2e3ff000..0x2e3ffd64]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x059a0678> (a javax.swing.TimerQueue)
    at javax.swing.TimerQueue.run(TimerQueue.java:233)
    - locked <0x059a0678> (a javax.swing.TimerQueue)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-EventQueue-0" prio=7 tid=0x2dbec780 nid=0x458 in Object.wait() [0x2e28e000..0x2e28f9e4]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x08082168> (a oracle.jdevimpl.webapp.design.DesignTimeRenderThread)
    at java.lang.Object.wait(Object.java:474)
    at oracle.jdevimpl.webapp.design.DesignTimeRenderThread.service(DesignTimeRenderThread.java:141)
    - locked <0x08082168> (a oracle.jdevimpl.webapp.design.DesignTimeRenderThread)
    at oracle.jdevimpl.webapp.design.DesignTimeEngine.service(DesignTimeEngine.java:346)
    at oracle.jdevimpl.webapp.design.view.DesignTimeViewDocument._serviceJsp(DesignTimeViewDocument.java:930)
    at oracle.jdevimpl.webapp.design.view.DesignTimeViewDocument.rebuildTree(DesignTimeViewDocument.java:206)
    at oracle.jdevimpl.webapp.design.view.DesignTimeFixedViewDocument.rebuildTree(DesignTimeFixedViewDocument.java:155)
    at oracle.jdevimpl.webapp.model.content.dom.view.proxy.ProxyViewDocument.initialize(ProxyViewDocument.java:80)
    at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.rebuildViewDocument(AbstractWebAppEditor.java:686)
    at oracle.jdevimpl.webapp.editor.html.HtmlEditor.rebuildViewDocument(HtmlEditor.java:621)
    at oracle.jdevimpl.webapp.editor.jsp.JspEditor.rebuildViewDocument(JspEditor.java:209)
    at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.createDocuments(AbstractWebAppEditor.java:1206)
    at oracle.jdevimpl.webapp.editor.AbstractWebAppEditor.open(AbstractWebAppEditor.java:393)
    at oracle.jdevimpl.webapp.editor.html.HtmlEditor.open(HtmlEditor.java:172)
    at oracle.jdevimpl.webapp.editor.jsp.JspEditor.open(JspEditor.java:113)
    at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:239)
    at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:147)
    at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:90)
    at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:231)
    at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:194)
    at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:103)
    at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:275)
    at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1261)
    at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
    at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1131)
    at oracle.ideimpl.editor.EditorManagerImpl.whenOpenEditor(EditorManagerImpl.java:2332)
    at oracle.ideimpl.editor.EditorManagerImpl.handleDefaultAction(EditorManagerImpl.java:1893)
    at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:343)
    - locked <0x05b615b0> (a java.util.ArrayList)
    at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1504)
    at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:1841)
    at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:1862)
    at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:176)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    "Java2D Disposer" daemon prio=5 tid=0x2db98d40 nid=0x54c in Object.wait() [0x2e08f000..0x2e08fae4]
    at java.lang.Object.wait(Native Method)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x05986308> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at sun.java2d.Disposer.run(Disposer.java:107)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-Windows" daemon prio=7 tid=0x2db7c5e0 nid=0x650 runnable [0x2df8f000..0x2df8fb64]
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(WToolkit.java:269)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-Shutdown" prio=5 tid=0x2dbd2268 nid=0x3a0 in Object.wait() [0x2de8f000..0x2de8fbe4]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x059863f0> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:474)
    at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
    - locked <0x059863f0> (a java.lang.Object)
    at java.lang.Thread.run(Thread.java:595)
    "Low Memory Detector" daemon prio=5 tid=0x01119d10 nid=0x67c runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=5 tid=0x01118600 nid=0x5b8 waiting on condition [0x00000000..0x2d95fa48]
    "Signal Dispatcher" daemon prio=5 tid=0x010f94d8 nid=0x160 waiting on condition [0x00000000..0x00000000]
    "Finalizer" daemon prio=8 tid=0x010eb008 nid=0x680 in Object.wait() [0x2d75f000..0x2d75fae4]
    at java.lang.Object.wait(Native Method)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x0592aa40> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=5 tid=0x007afc20 nid=0x5fc in Object.wait() [0x2d65f000..0x2d65fa64]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:474)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x0592aac0> (a java.lang.ref.Reference$Lock)
    "main" prio=5 tid=0x007a9b18 nid=0x69c waiting on condition [0x00000000..0x0012fb60]
    "VM Thread" prio=5 tid=0x010e8ae8 nid=0x644 runnable
    "VM Periodic Task Thread" prio=5 tid=0x0112cc00 nid=0x550 waiting on condition
    NAV _ ENTITY TYPE :: End Customer

    I was just going to suggest these two solutions myself. If you've got the time, check into this stuff.
    1) use Thread.join() to wait (block) until a given
    Thread completes its task.
    2) Bite the bullet and learn how to use
    wait()/notify() (Google should send you to some good
    tutorials). Granted, it can be a complex topic, but
    it is vital to know if you want to write efficient
    asynchronous programs.
    Good luck!

  • JTextArea.append

    I have got some problem using the .append method of the JTextArea class. Below is my statement.
    The declaration
    private JTextArea ulist;
    ulist = new JTextArea();
    ulist.setFont(new Font("Tahoma", 0, 11));
    ulist.setEnabled(false);
    JScrollPane spulist = new JScrollPane(ulist);
    spulist.setLocation(24, 285);
    spulist.setSize(187, 150);
    con.add(spulist);
    spulist.append("Client" + clientno + "'s host name is" inetAddress.getHostName() "\n");
    The error message i got was " cannot find symbol method in java.lang.string"
    Can anyone help?

    try ulist.append() rather than spulist.append. it
    might workYes I rather think it will. I was hoping in reply 1 that the OP would spot the error of their ways with just a hint.

  • How to retrieve the node on which is running an ejb ?

              Hi all,
              I need to retrieve on which node is running and EJB that is deployed
              on the cluster. Since the cluster is made up of logical addresses on
              the same machine, I cannot get it with InetAddress.getHostName().
              It always return the phisical address of the machine.
              So I wonder if it's possible to retrieve with some Weblogic Api
              the node on which is running an ejb.....
              Thanks a lot
              Francesco
              

              You can get the server name by reading the system property "weblogic.Name" :
              System.getProperty("weblogic.Name")
              or using the wls Mbeans :
              import weblogic.management.MBeanHome;
              import weblogic.management.configuration.ServerMBean;
              String serverName = null;
              Context ctx = new InitialContext();
              MBeanHome mBeanH = (MBeanHome)ctx.lookup(MBeanHome.LOCAL_JNDI_NAME);
              java.util.Set serverMbeanSet = mBeanH.getMBeansByClass(weblogic.management.configuration.ServerMBean.class);
              Iterator iterat = serverMbeanSet.iterator();
              ServerMBean serverMb = (ServerMBean)iterat.next();
              serverName = serverMb.getName();
              Sergi
              "Francesco" <[email protected]> wrote:
              >
              >Hi all,
              >I need to retrieve on which node is running and EJB that is deployed
              >
              >on the cluster. Since the cluster is made up of logical addresses on
              >the same machine, I cannot get it with InetAddress.getHostName().
              >It always return the phisical address of the machine.
              >So I wonder if it's possible to retrieve with some Weblogic Api
              >the node on which is running an ejb.....
              >Thanks a lot
              >Francesco
              

  • Re: Where do I configure reverse lookup?

    Thank you. Many times you can disable it for performance reasons. I wanted
              to make sure that this was not the case here for when my code goes to
              production.
              Bob
              "Dimitri I. Rakitine" <[email protected]> wrote in message
              news:[email protected]..
              > Isn't it supposed to always try to perform reverse lookup? I do
              > not think there are any configuration settings.
              >
              > Bob Lee <[email protected]> wrote:
              > > How can I verify that ServletRequest.getRemoteHost() is working
              > > (configuration-wise)?
              >
              > > Thanks,
              > > Bob
              >
              > --
              > Dimitri
              

    Ahhh, interesting. Thank you very much. I need to start taking advantage of
              jdb more often.
              Bob
              "Dimitri I. Rakitine" <[email protected]> wrote in message
              news:[email protected]...
              > Out of curiosity:
              >
              > > stop in java.net.InetAddress.getHostName()
              >
              > and hit a page which calls request.getRemoteHost() :
              >
              > Breakpoint hit: "thread=ExecuteThread: '14' for queue: 'default'",
              java.net.InetAddress.getHostName(), line=379 bci=0
              >
              > ExecuteThread: '14' for queue: 'default'[1] where
              > [1] java.net.InetAddress.getHostName (InetAddress.java:379)
              > [2] weblogic.servlet.internal.InetAddressCacheRecord.getRemoteHost
              (ServletRequestImpl.java:2,437)
              > [3] weblogic.servlet.internal.ServletRequestImpl.getRemoteHost
              (ServletRequestImpl.java:1,331)
              > [4] jsp_servlet.__test._jspService (__test.java:87)
              > [5] weblogic.servlet.jsp.JspBase.service (JspBase.java:27)
              > [6] weblogic.servlet.internal.ServletStubImpl.invokeServlet
              (ServletStubImpl.java:265)
              > [7] weblogic.servlet.internal.ServletStubImpl.invokeServlet
              (ServletStubImpl.java:304)
              > [8] weblogic.servlet.internal.ServletStubImpl.invokeServlet
              (ServletStubImpl.java:200)
              > [9] weblogic.servlet.internal.WebAppServletContext.invokeServlet
              (WebAppServletContext.java:2,495)
              > [10] weblogic.servlet.internal.ServletRequestImpl.execute
              (ServletRequestImpl.java:2,204)
              > [11] weblogic.kernel.ExecuteThread.execute (ExecuteThread.java:139)
              > [12] weblogic.kernel.ExecuteThread.run (ExecuteThread.java:120)
              > ExecuteThread: '14' for queue: 'default'[1]
              >
              > Bob Lee <[email protected]> wrote:
              > > Thank you. Many times you can disable it for performance reasons. I
              wanted
              > > to make sure that this was not the case here for when my code goes to
              > > production.
              >
              > > Bob
              >
              > > "Dimitri I. Rakitine" <[email protected]> wrote in message
              > > news:[email protected]...
              > >> Isn't it supposed to always try to perform reverse lookup? I do
              > >> not think there are any configuration settings.
              > >>
              > >> Bob Lee <[email protected]> wrote:
              > >> > How can I verify that ServletRequest.getRemoteHost() is working
              > >> > (configuration-wise)?
              > >>
              > >> > Thanks,
              > >> > Bob
              > >>
              > >> --
              > >> Dimitri
              >
              > --
              > Dimitri
              

  • Help Regarding Properties Class

    Hi folks,
    The problem is . . .
    I need to send a Properties Object over the network. I do this using DatagramPacket and DatagramSocket Utilities.
              Properties p=new Properties();
              String z=p.toString();
              byte b[]=new byte[1024];
              b=z.getBytes();
              InetAddress ia=InetAddress.getHostName("172.16.1.0");
              DatagramPacket=new DatagramPacket(b,b.length,ia,8000);
              DatagramSocket ds=new DatagramSocket();
              ds.send(dp);But the problem is at the recieving end how do I convert the string recieved into an identifiyable Property.

    I DO feel like a search engine

Maybe you are looking for

  • Sharing iTunes library on PC and Mac

    I have a 2011 model MacBook Air setup to dual-boot OSX Lion and Windows 7.  I have a 3rd partition on my drive, formatted as FAT32, so that both Windows and OSX can access shared data files, like music, pictures, documents, etc. I'd like to setup my

  • Generic Data Source Creation Problem....URGENT!!!!!!!!!!!!!

    Hello BW Experts...! I need to create a Generic Data Source out of a table called VBSEGK... I was trying in the usual way with RSO2 , but when I press save button after entering the Table name the following error is coming: " Invalid Extract Stucture

  • Best way for itunes to find songs on another network computer?

    On my itunes, it is unable to find the original files of some of my songs. These are songs not purchased on itunes. The original files are on the other computer on the home network, that also has itunes. From what I understand, you can designate itun

  • Download weblogic server 6.1

    Hi, Can everyone tellme that where I can download weblogic server 6.1 trial version. So I can learn weblogic and EJB at the same time. Thanks. Abe Liu

  • Primavera Contract managment take much time when open large PDF files.

    Dears, i have a big problem! i made integration between the PCM and sharepoint 2010 and make migration from the file system to sharepoint. the sharepoint database reach 355GB after that unfortunately, when i try to open large pdf attachment through P