Socket Listening problem in Netbeans

Hello All
I am using "Netbeans Version 6.8" and i am making a client chat application. and it is not receiving messages from the Server Application. the code is posted bellow, Can any body rectify or solve the problem.
* To change this template, choose Tools | Templates
* and open the template in the editor.
* ChatClient.java
* Created on May 7, 2010, 4:23:42 PM
package chatclient;
import java.io.*;
import java.net.*;
import java.util.*;
//import java.awt.*;
* @author Adeel
public class ChatClient extends javax.swing.JFrame {
    /** Creates new form ChatClient */
        Socket s;
     BufferedReader br;
     BufferedWriter bw;
     List list;
    public ChatClient() {
        initComponents();
                try{
               /*Put the current IP address for current machine
               if you didn't have an actual server and clients
               if you have an actual server and clients put the client IP address*/
////               s = new Socket("localhost",100);
                        s = new Socket("127.0.0.1",100);
               br = new BufferedReader(new InputStreamReader(
                         s.getInputStream()));
               bw = new BufferedWriter(new OutputStreamWriter(
                         s.getOutputStream()));
               Thread th;
               th = new Thread();
               th.start();
          }catch(Exception e){}
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jTextField1 = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jButton1.setText("Send");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
        jButton2.setText("Logout");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(59, 59, 59)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28)
                        .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)))
                .addContainerGap())
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap())
        pack();
    }// </editor-fold>
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
        System.exit(0);
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
        String chatText;
        String newline = "\n";    // for new line in jTextArea
        chatText=jTextField1.getText();
        jTextArea1.append(chatText + newline);
        try{
            bw.write(chatText);
            bw.newLine();
            bw.flush();
        }catch(Exception m){}
    * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ChatClient().setVisible(true);
           public void run()
          try{s.setSoTimeout(1);}catch(Exception e){}
          while (true)
               try{list.add(br.readLine());
               }catch (Exception h){}
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration
}Waiting for your response
Regards
Adeel

thank you for your feedback,
but it is still not showing any problem or throwing any Exception. The sending code is working properly but it is not listening/receiving any message from server application. i think, there is a void run() method which is not reacting properly.. i have commented that area in the code.. other rest of code is 100% working, i have checked that...
There are 2 run() methods in the code, Can you please check it for me, may you understand/rectify the problem why it is not listening.
* To change this template, choose Tools | Templates
* and open the template in the editor.
* ChatClient.java
* Created on May 7, 2010, 4:23:42 PM
package chatclient;
import java.io.*;
import java.net.*;
import java.util.*;
//import java.awt.*;
* @author Adeel
public class ChatClient extends javax.swing.JFrame {
    /** Creates new form ChatClient */
        Socket s;
     BufferedReader br;
     BufferedWriter bw;
     List list;
    public ChatClient() {
        initComponents();
                try{
               /*Put the current IP address for current machine
               if you didn't have an actual server and clients
               if you have an actual server and clients put the client IP address*/
////               s = new Socket("localhost",100);
                        s = new Socket("127.0.0.1",100);
               br = new BufferedReader(new InputStreamReader(
                         s.getInputStream()));
               bw = new BufferedWriter(new OutputStreamWriter(
                         s.getOutputStream()));
               Thread th;
               th = new Thread();
               th.start();
          }catch(Exception e){
                e.printStackTrace();
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jTextField1 = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jButton1.setText("Send");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
        jButton2.setText("Logout");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(59, 59, 59)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28)
                        .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)))
                .addContainerGap())
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap())
        pack();
    }// </editor-fold>
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
        System.exit(0);
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
        String chatText;
        String newline = "\n";    // for new line in jTextArea
        chatText=jTextField1.getText();
        jTextArea1.append(chatText + newline);
        try{
            bw.write(chatText);
            bw.newLine();
            bw.flush();
        }catch(Exception m){
        m.printStackTrace();
    * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
/////////////////////////////////////////////  2nd RUN METHOD,  ///////////////////////////////////////////
            public void run() {
                new ChatClient().setVisible(true);
////////////////////////////////////////////  2nd RUN METHOD,  //////////////////////////////////////////
/////////////////////////////   RUN METHOD, which may have prob  /////////////////////////////
           public void run()
          try{s.setSoTimeout(1);}catch(Exception e){
                e.printStackTrace();
          while (true)
               try{list.add(br.readLine());
               }catch (Exception h){}
/////////////////////////////   RUN METHOD, which may have prob  /////////////////////////////
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration
}Thanks again for you attention.
Regards
Adeel

Similar Messages

  • Communication problem between NetBeans and Tomcat

    hi!
    i got a quite mysterious problem. here is what happens:
    - i start NetBeans 5.5.1 (the first time)
    - i want to debug my JSF-Project, the Debugger starts
    - After a few seconds the debugger waits for tomcat (it sais: "Waiting for Tomcat...") and tomcat starts
    - Again after a few seconds the tomcat-debugger-output sais "Tomcat startet in 3333 ms".
    okay.
    when i enter http://localhost:8084/ in my browser i get the tomcat homepage, so the server has definitely started! But nothing happens in NetBeans and nothing happens with my project....
    In the lower-right corner i see this blue working-bar that sais "deploying project" but nothing happens. The Project-Debugger-Output still sais "Waiting for Tomcat..." but nothing happens...
    And after something around 3 minutes (i guess it's a timeout) i get the error "Starting of Tomcat failed." But is HAS started, i can login to the Administration-Area in my browser!
    so i guess there is a communication problem between netbeans an tomcat. Netbeans waits for a message from tomcat but tomcat doesn't send it..or netbeans doesn't understand it.
    But the story goes on:
    When i press the debug-button a second time it takes only a few seconds till i get the message: "Tomcat server port 8084 already in use". OF COURSE! Because Tomcat has already startet and can't be stoped by NetBeans.
    i'm trying to solve this problem for 4 days now, so i would be very happy if anyone has an idea where to start/continue the search...
    thanks,
    flo.
    some system-info:
    - windows vista business 32-bit
    - no firewall is running
    - AntiVir Personal Edition IS running
    - Yahoo Widgets Engine IS running
    - no other software is running
    and finally the tomcat-log:
    Using CATALINA_BASE: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base
    Using CATALINA_HOME: C:\Program Files\NetBeans\enterprise3\apache-tomcat-5.5.17
    Using CATALINA_TMPDIR: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_12
    Listening for transport dt_shmem at address: tomcat_shared_memory_id
    21.09.2007 18:27:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_12\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\cvsnt;
    21.09.2007 18:27:50 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:50 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1862 ms
    21.09.2007 18:27:50 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    21.09.2007 18:27:50 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    21.09.2007 18:27:50 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    21.09.2007 18:27:53 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:54 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    21.09.2007 18:27:54 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    21.09.2007 18:27:54 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    21.09.2007 18:27:54 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3626 ms

    As i wrote before, the same problem occured for me. I have found a solution which is : Go to tools menu and then select options . In the proxy info, select No Proxy.
    I hope this help you

  • Problem starting NetBeans

    Hi, I am new to Java ... 1st Day ... which means Ive been trying to install it all. ... And I have not been succesfull.
    I've downloaded and installed jre-6u7-windows-i586-p and then netbeans-6.1-ml-windows ...
    After this I went to tutorials trying to follow the "Hello World"-instructions ... but the IDE is not running.
    1) I pressed on the desktop icon ... not running.
    2) I pressed on the menustart icon ... not running.
    3) I went to the directory where the .exe is ... not running.
    I checked if it was running in background but not executing. But there was no unneccesary process (or perhaps 3 at this time) running.
    When I did ^^(3) however ... I noticed an error-log was beeing made. And I have reported the bug as instructed in it. However I would prefer feedback here incase someone knows what the problem might be perhaps.
    So my problem is ... After first time installation and registration of Java and NetBeans... I cannot get NetBeans to work. I also tried it in savemode but that did not help either.
    Below the information as provided by the error-log: Filename hs_err_pid_2660
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d895268, pid=2660, tid=3188
    # Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
    # Problematic frame:
    # V [jvm.dll+0xd5268]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x284d9400): JavaThread "main" [_thread_in_vm, id=3188]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
    Registers:
    EAX=0x00000000, EBX=0x284bca5c, ECX=0x29040fe8, EDX=0x284bca64
    ESP=0x2958e93c, EBP=0x284d9400, ESI=0x6d172a04, EDI=0x284bca60
    EIP=0x6d895268, EFLAGS=0x00010206
    Top of Stack: (sp=0x2958e93c)
    0x2958e93c: 284d9400 284d94e8 2958e9b8 1a1b6cd8
    0x2958e94c: 2958e9b8 284bca60 6d89540a 00000000
    0x2958e95c: 6d172a04 00000000 284d9400 2958e9f0
    0x2958e96c: 284d94e8 2958e9b8 1a1b6cd8 284d9400
    0x2958e97c: 284bca58 0000016c 6d9a0448 6d1315b7
    0x2958e98c: 284d94e8 00000000 6d172a04 6d172a18
    0x2958e99c: 284d9400 1a1b6cd8 1a1b6cd8 2958e99c
    0x2958e9ac: 2958eadc 6d164ee0 00000000 2958e9e8
    Instructions: (pc=0x6d895268)
    0x6d895258: 11 01 00 00 85 db 0f 84 09 01 00 00 8b 44 24 1c
    0x6d895268: 8b 00 50 e8 60 b1 fe ff 83 c4 04 84 c0 74 12 8b
    Stack: [0x29390000,0x29590000), sp=0x2958e93c, free space=2042k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0xd5268]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j java.awt.Dialog.initIDs()V+0
    j java.awt.Dialog.<clinit>()V+9
    v ~StubRoutines::call_stub
    j sun.misc.Unsafe.ensureClassInitialized(Ljava/lang/Class;)V+0
    j sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(Ljava/lang/reflect/Field;Z)Lsun/reflect/FieldAccessor;+79
    j sun.reflect.ReflectionFactory.newFieldAccessor(Ljava/lang/reflect/Field;Z)Lsun/reflect/FieldAccessor;+5
    j java.lang.reflect.Field.acquireFieldAccessor(Z)Lsun/reflect/FieldAccessor;+47
    j java.lang.reflect.Field.getFieldAccessor(Ljava/lang/Object;)Lsun/reflect/FieldAccessor;+36
    j java.lang.reflect.Field.get(Ljava/lang/Object;)Ljava/lang/Object;+2
    j sun.awt.SunToolkit$6.run()Ljava/lang/Object;+20
    v ~StubRoutines::call_stub
    j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
    j sun.awt.SunToolkit.<clinit>()V+96
    v ~StubRoutines::call_stub
    j sun.awt.Win32GraphicsEnvironment.<clinit>()V+0
    v ~StubRoutines::call_stub
    j java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
    j java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;+5
    j java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;+24
    j org.netbeans.core.startup.Main.start([Ljava/lang/String;)V+177
    j org.netbeans.core.startup.TopThreadGroup.run()V+4
    j java.lang.Thread.run()V+11
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x284aac00 JavaThread "Timer-0" daemon [_thread_blocked, id=3368]
    =>0x284d9400 JavaThread "main" [_thread_in_vm, id=3188]
    0x2836e800 JavaThread "Active Reference Queue Daemon" daemon [_thread_blocked, id=1352]
    0x282e8000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=844]
    0x282e3400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1496]
    0x282e2400 JavaThread "Attach Listener" daemon [_thread_blocked, id=620]
    0x282e1400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1884]
    0x282e0400 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=3712]
    0x267e8c00 JavaThread "Finalizer" daemon [_thread_blocked, id=3720]
    0x267e4800 JavaThread "Reference Handler" daemon [_thread_blocked, id=1924]
    0x00398000 JavaThread "main" [_thread_blocked, id=2676]
    Other Threads:
    0x267e1800 VMThread [id=672]
    0x282eac00 WatcherThread [id=676]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation total 14784K, used 2907K [0x02be0000, 0x03be0000, 0x04850000)
    eden space 13184K, 22% used [0x02be0000, 0x02eb6e98, 0x038c0000)
    from space 1600K, 0% used [0x038c0000, 0x038c0000, 0x03a50000)
    to space 1600K, 0% used [0x03a50000, 0x03a50000, 0x03be0000)
    concurrent mark-sweep generation total 16384K, used 0K [0x04850000, 0x05850000, 0x19de0000)
    concurrent-mark-sweep perm gen total 32768K, used 4383K [0x19de0000, 0x1bde0000, 0x265e0000)
    Dynamic libraries:
    0x00400000 - 0x00423000      F:\Program Files\Java\jdk1.6.0_07\jre\bin\java.exe
    0x7c900000 - 0x7c9b5000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c900000      C:\WINDOWS\system32\kernel32.dll
    0x77f40000 - 0x77feb000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77da0000 - 0x77e32000      C:\WINDOWS\system32\RPCRT4.dll
    0x77f10000 - 0x77f21000      C:\WINDOWS\system32\Secur32.dll
    0x6d7c0000 - 0x6da07000      F:\Program Files\Java\jdk1.6.0_07\jre\bin\client\jvm.dll
    0x7e390000 - 0x7e421000      C:\WINDOWS\system32\USER32.dll
    0x77e40000 - 0x77e89000      C:\WINDOWS\system32\GDI32.dll
    0x76af0000 - 0x76b1e000      C:\WINDOWS\system32\WINMM.dll
    0x7c340000 - 0x7c396000      C:\WINDOWS\system32\MSVCR71.dll
    0x76330000 - 0x7634d000      C:\WINDOWS\system32\IMM32.DLL
    0x6d320000 - 0x6d328000      F:\Program Files\Java\jdk1.6.0_07\jre\bin\hpi.dll
    0x76bb0000 - 0x76bbb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d770000 - 0x6d77c000      F:\Program Files\Java\jdk1.6.0_07\jre\bin\verify.dll
    0x6d3b0000 - 0x6d3cf000      F:\Program Files\Java\jdk1.6.0_07\jre\bin\java.dll
    0x6d7b0000 - 0x6d7bf000      F:\Program Files\Java\jdk1.6.0_07\jre\bin\zip.dll
    0x6d0b0000 - 0x6d1de000      F:\Program Files\Java\jdk1.6.0_07\jre\bin\awt.dll
    0x72f70000 - 0x72f96000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x77be0000 - 0x77c38000      C:\WINDOWS\system32\msvcrt.dll
    0x774a0000 - 0x775dd000      C:\WINDOWS\system32\ole32.dll
    VM Arguments:
    jvm_args: -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -Dcom.sun.aas.installRoot=C:\Program Files\glassfish-v2ur2 -Xss2m -Xms32m -XX:PermSize=32m -XX:MaxPermSize=200m -Xverify:none -Dapple.laf.useScreenMenuBar=true -Dsun.java2d.noddraw=true -Xmx369m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -Djdk.home=F:\Program Files\Java\jdk1.6.0_07 -Dnetbeans.home=F:\Program Files\NetBeans 6.1\platform8 -Dnetbeans.dirs=F:\Program Files\NetBeans 6.1\nb6.1;F:\Program Files\NetBeans 6.1\ide9;F:\Program Files\NetBeans 6.1\java2;F:\Program Files\NetBeans 6.1\xml2;F:\Program Files\NetBeans 6.1\apisupport1;F:\Program Files\NetBeans 6.1\enterprise5;F:\Program Files\NetBeans 6.1\mobility8;F:\Program Files\NetBeans 6.1\profiler3;F:\Program Files\NetBeans 6.1\gsf1;F:\Program Files\NetBeans 6.1\ruby2;F:\Program Files\NetBeans 6.1\visualweb2;F:\Program Files\NetBeans 6.1\soa2;F:\Program Files\NetBeans 6.1\identity2;F:\Program Files\NetBeans 6.1\uml5;F:\Program Files\NetBeans 6.1\harness;F:\Program Files\NetBeans 6.1\cnd2 -Dnetbeans.user=C:\Documents and Settings\snurker\.netbeans\6.1 -Dnetbeans.system_http_proxy=DIRECT -Dnetbeans.system_http_non_proxy_hosts= -Dsun.awt.keepWorkingSetOnMinimize=true
    java_command: org/netbeans/Main --branding nb
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Samsung\Samsung PC Studio 3\;;C:\FPC\2.2.0\bin\i386-Win32
    USERNAME=snurker
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 107 Stepping 1, AuthenticAMD
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 3
    CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, mmxext, 3dnowext, 3dnow, ht
    Memory: 4k page, physical 2096428k(1498664k free), swap 4034852k(3410316k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0-b105) for windows-x86, built on Nov 29 2006 00:48:48 by "java_re" with unknown MS VC++:1310

    Well I did run jdk-6u7-windows-i586-p first. However at installing I got an error-msg. One that seems to be known but they havent had a sollution for yet. So following the instructions, ... I installed the JDK by using the online-installement. After that I installed NetBeans. But like I said before ... NetbBeans just aint starting up.
    It might very well be that the error-log presented above has got nothing to do with the actual error. That it just occurs because there is another problem. But I cant find any information anywhere concerning the problem that NetBeans aint starting up and just sticks to desktop. The only help I could find where about NetBeans erors occuring when NetBeans is alrdy running.
    Edited by: JungleHyena on Oct 6, 2008 4:50 AM

  • Socket Listener  - Exception (Connection refused, reset)

    Dear All,
    We are developing a Socket Listener for an application. when we try to check the performance the below errors came.
    Code
    public static void main(String[] args) {
              ServerSocket ss = null;
              Socket s = null;
              try {
                   ss = new ServerSocket(Integer.parseInt(property
                             .getProperty("SERVER_PORT")), 1500 );
                   while ((s = ss.accept()) != null) {
                        Thread current = new Thread(new ServerSocketListener(s));
                        current.setDaemon(true);
                        // start the user's thread
                        current.start();
              } catch (Exception exp) {
                   exp.printStackTrace();
    Exception 1
    java.net.ConnectException: Connection refused: connect     
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at srm.ServerSocketListener.run(ServerSocketListener.java:143)
         at java.lang.Thread.run(Unknown Source)
    Exception 2
    java.net.SocketException: Connection reset
    Test
    Invoking the Socket Server Listener with 1500 client (Java and .NET) requests.
    Then the above exceptions occurred.
    Help me
    1) Maximum client a port can supports?
    2) Is there any code or property change required?
    3) any other way

                        Thread current = new Thread(new ServerSocketListener(s));
    java.net.ConnectException: Connection refused: connect     Nothing is listening at the host:port you are trying to connect a new socket to.
         at srm.ServerSocketListener.run(ServerSocketListener.java:143)You are trying to create a new Socket inside the ServerSocketListener. Why? You already have a connected socket.
    java.net.SocketException: Connection resetStack trace please. This usually means you have written to a connection that has already been closed by the other end, but there are other possibilities.
    1) Maximum client a port can supports?Please restate your question in standard english.
    2) Is there any code or property change required?Required for what?
    3) any other wayAny other way to do what?

  • Data Socket listener

    Hi Bro's,
         how do i create Data socket listener in labview.i have a device which is capable of sending data over tcp/ip datasocket to pre-assigned ip address.pls find the attachment for configuration window of this device.
    Regards,
    Bosski
    Attachments:
    data socket.png ‏82 KB

    Hi Bro's,
         how do i create Data socket listener in labview.i have a device which is capable of sending data over tcp/ip datasocket to pre-assigned ip address.pls find the attachment for configuration window of this device.
    Regards,
    Bosski
    Attachments:
    data socket.png ‏82 KB

  • Problem with Netbeans IDE 5.0: Building Gui

    Hello,
    I have the following problem with Netbeans IDE 5.0 (I made the same with netbeans 3.6 and it works properly):
    Step 1) Create a myJPanel class (new JPanel Form)
    Step 2) make a simple operation on myJPanel such as adding a JTable.
    Step 3) Create a myJForm Class (new JFrame Form)
    Step 4) Adding a JPanel to myJFrame (default name jPanel1)
    Step 5) Select JPanle1 within myJFrame and go to code-> custom creation code and write "new myJPanel();"
    this should set the jPanel1 (and all its contents and behaviours) created
    in step 4 equals to myJPanel();
    Step 6) run myJFrame;
    ........ and nothing happens. It is dispalyed just a gray JFrame.
    It seems that myJFrame is able to istantiate myJPanel() but is not able to paint it. what's wrong?
    Hope you may help me,
    thx

    Unfortunately, Netbeans 3.6 files and Netbeans 5 files are not compatible. Except the Java source files, Netbeans uses other aditional files such as xml files etc for forming GUI and other reasons. I have also faced the same problem with you. Good luck.

  • Problem with infinitive loop for a socket listening

    I want my server program to respond different clients by means of listening the socket via a thread. If I write the thread as a different class j2sdk1.4.0 gives a compile error, but as a method in the class it works well. Will you please show me the way how to use them as separete classes. Thanks in advance.
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    public class MyServer {
         private ServerSocket s;
         private final int PORT=8888;
    public void MyServer(){
    try{
    s=new ServerSocket(PORT);
    System.out.println("Server started to listen..");
    try{
    while(true){
    new MainThread(s.accept());
    }catch(Exception ex){ex.printStackTrace();}
    }catch(Exception ex){
    System.err.println("Server failed!"+ex.getMessage());
    finally{
    try{
    s.close();
    }catch(Exception ex){
    ex.printStackTrace();
    AND MY MAINTHREAD CLASS IS AS BELOWS:
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    public class MainThread extends Thread{
         public Socket socket;
         private BufferedReader in;
         private PrintWriter out;
         private int index;
         private String countryName;
         private String countryCode;
         private Connection con;
         private final String url="jdbc:odbc:MyDB";
         private CountryEnterence conEnt;
    public void MainThread(Socket socket){
    this.socket=socket;
    start();
    public void run() {
    try{
    in=new BufferedReader(new InputStreamReader(socket.getInputStream()));
    out=new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())),true);
    index=Integer.parseInt(in.readLine());
    countryName=in.readLine();
    countryCode=in.readLine();
    }catch(IOException ex){
    ex.printStackTrace();
    switch(index){
    case(1001):
    System.out.println("New entry request");
    makeConnection();
    int r=conEnt.CountryEnterence(con,countryName,countryCode);
    if(r==1){out.println("Country "+countryName+" is added to database");
    }else{out.println(countryName+" is not added to database");}
    releaseConnection();
    break;
    default:out.println("Operation can not continue");
    /*************DATABASE CONNECTION***************/
    public void makeConnection(){     
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(java.lang.ClassNotFoundException ex){
    System.out.println("Connection to database is failed: "+ex.getMessage());     
    try{
    con=DriverManager.getConnection(url,"","");
    }catch(SQLException ex){ex.printStackTrace();
    public void releaseConnection() {
    try{
    con.close();
    }catch(SQLException ex){ex.printStackTrace();
    THE ERROR MESSAGE I GET IS AS BELOWS:
    MyServer.java:20:cannot resolve symbol
    symbol:class MainThread
    location:class MyServer
    new MainThread(s.accept());
    Any help will be appriciated.
    Regards,
    Dirgen

    1. public void MainThread(Socket socket) : Procedure??
    2. MainThread(Socket socket) : Constructor of your class.
    I think i would use the constructor approach. (2.).

  • Stop a socket listening thread?

    Hi all,
    I'm a newbie at java socket programming, and i have a problem in implementing realibility over UDP.
    This is the pseudocode of my program.
    class ChatProtocol
         DatagramSocket socket;
         Thread alwaysListeningSocket;
         public ChatProtocol(parameter)
              // Some setting up
    ]          this.alwaysListeningSocket = this;
         public void run()
              DatagramPacket packet = new DatagramPacket(parameter);
              socket.receive(packet);
              .     // Process the incoming messages
         public void send(message)
              // Chunking the message into datagramPackets[]
              // Thread for listening for acknowledgement for each will-be-sent packets
              Thread ackListener = new Thread(new Runnable()
                   public void run()
                        DatagramPacket ackPacket = new DatagramPacket(parameter);
                        socket.receive(ackPacket);
                        .     // Processing the acknowledgement
              ackListener.start(); // Start listening for ack
              for (int i = 0; i < datagramPackets.length; i++)
                   socket.send( datagramPacktes[i] );
              .     // Another process
    }I have an always listening socket in my program, which is done by invoking socket.receive() inside a thread
    And i have a send method, which will send messages thorugh the same socket.
    The problem is, i have to listen for acknowledgement for each sent packets through the same socket.
    This is done by invoking socket.receive(), but if i want to invoke this method, i have to stop the previous thread first.
    Is this possible, since stop() method in Thread class is deprecated?

    So you can't predict the ordering of ACKs and other messages. You can't even predict the ordering of ACKs even if there are np other messagesI have a sequence number put into the datagram packets.
    This is the format of my packets.
    Packet length 16 bytes, consist of :
    - Packet type, 1 byte (This will determine if the packets is a message or an ack).
    - Sequence number, 1 byte.
    - Payload 14 bytes.
    If the receiving socket receive a wrong type of packets (ack instead of message, vica versa), the receiver thread will just drop it.
    And in both cases why start another thread to receive the ACK instead of receiving it in the thread that did the send()? This makes even less sense.By 'receiving it in the thread that did the send()', do you mean that i should put it in the send() method block?
    I pressume that an ack may come before the process finish sending the messages. I put it into a thread so that the process can receive ack while sending another messages.
    It is not important though, because the number of packets that will be sent is relatively small. Should i just change it?
    So, rethink. I would say that your always-listening socket should listen in a single thread for all messages, and notify sending threads about the acknowledgements some other way, e.g. via some data structure. You need that anyway to overcome the lack of ordering among ACKs. You need to associate each sent message that has an ACK outstanding with the thread that sent it, and when it arrives, notify that thread; have the sending thread wait(), almost certainly with a timeout, for that notification, and resend if necessary, adjusting the data structure appropriately so that a late ACK to the previous send is ignored. Or whatever is appropriate to your application protocol.I'll try to redesign my protocol. Thanks for the tips !
    I'm not very good at English. Sorry if i misunderstood you in some way.

  • AppletViewer Socket security policies in Netbeans -

    I'm developing a database applet using NetBeans IDE 4.0, jre 1.5.0. To make this easier, I set up a database server on my desktop with a dummy database to work with. I'm having a great deal of trouble getting the applet to connect to the database from AppletViewer. It throws the following error:
    java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
    I believe this is an applet security issue - the default of the JVM being not to allow connections to network resources located anywhere other than where the applet came from (or that are signed). The applet works ok if I move it over to the production web/db server, which confirms this suspicion. This is precisely the problem I was hoping to circumvent by setting up a db server on the localhost.
    I've tried changing the code to point the connection to "localhost", the fqdn, and the actual IP of the machine. This just gives me the expected respective versions of the same error message. I've also tried adding items to the java.policy, to no avail.
    I'm really hoping to be able to work on this thing without having to copy it over to the server and/or sign the applet every time I compile and test it. Any suggestions?

    No - the setup with the database on the local machine is just meant as a convenience while I'm developing it. When it's deployed all clients will hit the same DB, which is hosted on the same server that the web server serving the applet is on. This, actually, already worked. The trouble was with getting the local db to work while I'm developing.
    I actually figured out a workaround. NetBeans' built in webserver has to be configured in the runtime options to load its own policy file. I added the socket permissions to that file and reloaded the server. Now when I compile/run the applet fromt the IDE it works.
    Still doesn't work directly from the stand-alone AppletViewer, but this will do.

  • Problem with NetBeans & Glassfish

    Hi
    I have done the "Simple Web Application Using a MySQL Database" tutorial. I got it to work with NetBeans 6.0. I then desicied to upgrade to 6.1 (uninstalled 6.0 and the Glassfish). After installation a run the application again with the following error (the four last lines):
    Starting Sun Java System Application Server 9.1_02 (build b04-fcs) ...
    MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
    CORE5098: AS Socket Service Initialization has been completed.
    CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_12] from [Sun Microsystems Inc.]
    SEC1002: Security Manager is OFF.
    F:/Program/glassfish-v2ur2/domains/domain1/config/.__com_sun_appserv_pid
    ADM0001:SunoneInterceptor is now enabled
    SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    WEB0114: SSO is disabled in virtual server [server]
    WEB0114: SSO is disabled in virtual server [__asadmin]
    ADM1079: Initialization of AMX MBeans started
    ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://192.168.0.167:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
    ADM1506: Status of Standard JMX Connector: Active = [true]
    WEB0302: Starting Sun-Java-System/Application-Server.
    JBIFW0010: JBI framework ready to accept requests.
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
    SMGT0007: Self Management Rules service is enabled
    Application server startup complete.
    SEC5046: Audit: Authentication refused for [admin].
    Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
    SEC5046: Audit: Authentication refused for [admin].
    Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
    I'm abel to log in onto the Glassfish server from the admin tool. But it seams that i can't logg in from the application. How do I handel this problem?
    Best regards
    Jonas
    Edited by: Lun on May 4, 2008 1:12 AM
    Edited by: Lun on May 4, 2008 1:14 AM
    Edited by: Lun on May 4, 2008 1:16 AM
    Edited by: Lun on May 4, 2008 1:18 AM
    Edited by: Lun on May 4, 2008 5:29 AM

    Im using "+JSF 1.1.02 Ri Run time suport -deprecated+", that library dont need to be include in the project becouse glashfish support it, (I thing)
    And I add Myfaces 1.2.2 with Tomahawk 1.1.6, becouse I need a jscookmenu, and tomahawk bring it. and Glassfish v2

  • PL/SQL SOCKET LISTENER

    Hi,
    I’ve found some samples of PL/SQL code that connects to remote ports using UTL_TCP package, but is it possible to write a PL/SQL program that executes in response of a socket connection to the listener?
    Thanks

    I am running SQL Developer on Windows XP Professional and I was experiencing the same problem.
    When I started the debugger I got the message from Win XP that Windows Firewall will block some features of the program (being the PC at work I don't have admin privileges on it). I accepted this, not knowing which features would be blocked.
    Then, the debugger was just hanging. After a while it timed out and came back with exactly this error message.
    I restarted the SQLDeveloper and tried again without much success. This time though I didn't get the Windows Firewall message.
    After another few trial and errors I figured out that the Firewall must be blocking connection establishement on the client site i.e. on my PC.
    It was the CALL DBMS_DEBUG_JDWP.CONNECT_TCP that was hanging.
    As the system admin disabled the Windows Firewall on my PC the debugger started working. We have a luxury to disable local firewalls as there is one that protects our network from outside traffic. People who cannot afford to disable the Windows firewall will have to tinker with the firewall itself and configure it in such a way that it allows traffic on certain port range (4000...4999). Then in SQLdeveloper you will have to go to Tools->Preferences->Debugger and tick Debugging Port Range. The chosen range should match the port range on the Windows Firewall side.
    By the way, in the call to CALL DBMS_DEBUG_JDWP.CONNECT_TCP the first parameter is the IP address of your PC and the second one is the port used for debugger connection with the database server. If for some reason the IP address chosen by the debugger is not your IP address (you can find your IP address as follows: Start->Run->cmd; then use command ipconfig), you will have to tick "Prompt for Debugger Host for Database Debugging" on your Debugger Preferences. This way you'll be able to chose the IP address yourself.
    Good luck!

  • Message Listener Problem (iDoc)

    I am receiving an iDoc successfully in the Message Listener within Mii.  I have created a Processing Rule for the Message Type and tied it to a simple BLS.  The BLS has an XML input parameter which is selected in the Processing Rule.
    The BLS simply maps the XML input parameter to an XML output parameter and that's it as I want to make sure communication is working before creating any BLS logic.
    The iDoc Message goes into failure status and this is what I get in the log:
    Unable to process request com.sap.jms.client.message.JMSObjectMessage@431f1d25
    [EXCEPTION]
    com.sap.xmii.bls.exceptions.TransactionLoadException: Unable to create transaction instance
    Any ideas why this is happening?

    After much searching and trial and error, I was able to locate the source of this problem.  While I was modifying the "Log Level" in the Processing Rule, someone else changed the Transaction Security to include the "SAP XMII Developer" role.  Once I remove this role from the BLS, the same symptom occurs. 
    It seems this is the only role that allows the Processing Rule to trigger the BLS's.  Is this hard coded somewhere in Mii that this role is required?  If so where can I find these types of requirements so I can avoid going through this for other Mii functionality in the future?
    Thanks

  • Compile / run problems with netbeans 6 but not netbeans 6 beta 1 or 5.5

    When I compile my project in netbeans IDE 6.0 (Build 200711261600) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 i get quite often a "can not find symbol" error or during runtime a "netbeans 6 java.lang.NoClassDefFoundError" exception. also switching between F6 or ctrl-F5 mode can cause the problem to appear.
    Compiling again or clean build resolves it.
    However running the same project under netbeans 5.5 or 6 beta 1 never gives this problem.
    any hint what might be wrong? i looked and compared the project settings but can't see any difference, but I assume that the upgrade script must have changed something.

    <?xml version="1.0" encoding="UTF-8" ?>
    - <project name="BorderDemo" default="default" basedir=".">
    <import file="nbproject/build-impl.xml" />
    </project>This is 'build.xml' file. Check for 'project.xml' file in 'nbproject' folder. You will find it to be:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      </data>
      </configuration>
      </project>Change it to:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project xmlns="http://www.netbeans.org/ns/project/1">
      <type>org.netbeans.modules.java.j2seproject</type>
    - <configuration>
    - <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
      <name>BorderDemo</name>
      <minimum-ant-version>1.6.5</minimum-ant-version>
    - <source-roots>
      <root id="src.dir" />
      </source-roots>
      <test-roots>
      <root id="test.src.dir" />
      </test-roots>
      </data>
      </configuration>
      </project>I hope it works.....
    thanks!

  • Problem on NetBeans 6.0.1 with Tomcat 6.0.14

    I had to uninstall and reinstall netbeans because at some point I always appeared a message in which I was reported that tomcat 8025 had already started.
    I closed and reopened the environment without result.
    In Server uninstall apache and try to put a standalone vers 5.5.25.
    It seems ok but does not appear in the list of available servers for my projects.
    If i tried to add tomcat 6.0.14 it's appear on the list but i obtain always the error:
    Starting of Tomcat failed, the server port 8025 is already in use.
    Deployment error:
    Starting of Tomcat failed, the server port 8025 is already in use.
    See the server log for details.
            at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
            at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:357)
            at org.apache.tools.ant.Target.performTasks(Target.java:385)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
            at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
            at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
            at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
    Caused by: org.netbeans.modules.j2ee.deployment.impl.ServerException: Starting of Tomcat failed, the server port 8025 is already in use.
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1270)
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1224)
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1035)
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:912)
            at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:417)
            at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:140)
            ... 16 more
    BUILD FAILED (total time: 0 seconds)For the moment i have resolved by change the port from 8025 to 8026 but i don't like this solution. :-(
    While the problem on tomcat 5.5.25 that it's not appear on the list of servers for my projects remain.

    I'm resolved the problem on server list, simply specifying a project as j2ee 5 can not appear tomcat 5.5 is necessary to specify j2ee 1.4.
    While for the problem on port just in use I have noticed that sometimes the server remains it isn't close, even exiting from NetBeans, for the moment i use the workaround of closing the process tomcat of linux.
    I hope that on netbeans 6.1 the problem is solved (if it had solved the problem permgen would be even more pleased, but that apparently is a problem of java and then not entered the environment from development).

  • HELP!!! Listener problem on AIX 4.1 with oracle 7.2.2.0

    When I try to do "lnsrctl start" (or stop) the server give to me the error below:
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=ora7))
    TNS-12224: TNS:no listener
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    IBM/AIX RISC System/6000 Error: 2: No such file or directory
    Connecting to (ADDRESS=(COMMUNITY=TCP.world)(PROTOCOL=TCP)(Host=BILANCIO)(Port=1521))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    IBM/AIX RISC System/6000 Error: 79: Connection refused
    Connecting to (ADDRESS=(COMMUNITY=TCP.world)(PROTOCOL=TCP)(Host=BILANCIO)(Port=1526))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    IBM/AIX RISC System/6000 Error: 79: Connection refused
    On metalink, solutions are client side, but I have this problem on server side.
    I try to change host name to ip add, but problem persist.
    I try to reboot server (because I think the problem was the oracle istance) but the db works correctly.
    What can I do?
    thank u so much!!!
    pedro

    Hello Pedro,
    Please can you tell me if you resolved this issue you were having and how did you resolve this. I am having the same issue now....
    We did a restore to a different box and now cannot connect to the database and having same issues you described.
    Your help will be appreciated,
    Regards
    Avishkar Bandu

Maybe you are looking for

  • Search Term in Search Help for SAP Users - su01

    Hello , we want to use the search Term fields in the user data. (T-Code SU01) As I read in the F1 help, these Fields should be available in the F4 Matchcode for Users? But there is no field available? Any Ideas? SAP ECC6.0 SP Stack 13 Regards Tobias

  • System Utilities Check: Check system for make, ld, ar and cc

    Can someone help me with this following problem? While installing 11i applications, its giving an error "System Utilities Check: Check system for make, ld, ar and cc" When I checked for these files, all the files are existing except for ld. How do I

  • Generating BELNR(Accounting Doc No).

    Hi Experts,   I have an issue in generating an Accounting Document Number. SAP uses document type to generate an accounting document number but its using it Company code level. But my client is asking to generate an accounting document number based o

  • Apple tv screensaver facebook

    Hello I hate on my apple tv screensaver facebook photo now I can not remember how I did

  • Form returns code when submitted.

    the processing jsp file runswell on localhost. but when i uploaded into the main server..... it returns code. i even matched the versions of java.. but it still doesnt works