Problema na Criacao de Sockets em java]

oi, estou aprendendo JAVA e baixei o plugin do Visual Editor do eclipse e estou tentando criar um programa cliente X servidor

comecei criando o servidor… q no caso soh teria um Jtextarea e um botao para ligar criar o socket.

mas por algum motivo qnd o programa em tempo de execucao tenta criar o socket … aparecem varias msgs de erro no console do eclipse

private void Cria_ServerSocket(){
		
        ServerSocket serv=null; 
        Socket s= null;
        BufferedReader entrada=null;
                
        try{
            serv = new ServerSocket(80);
            s = serv.accept();
            entrada = new BufferedReader(new InputStreamReader(s.getInputStream()));
            
           ServerLog_txt.setText(ServerLog_txt.getText() + entrada.readLine());    
            
        }catch(IOException e){
        
            System.out.println("Algum problema ocorreu ao criar ou enviar dados pelo socket.");

         }finally{
            
            try{
                s.close();
                serv.close();
                
            }catch(IOException e){
            }
        }
	}

o erro:[color=red]
Algum problema ocorreu ao criar ou enviar dados pelo socket.
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at Server.Cria_ServerSocket(Server.java:49)
at Server.access$0(Server.java:29)
at Server$1.actionPerformed(Server.java:95)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)[/color]

O q tem na linha 49?

s.close();

humm… se ajudar posso postar o codigo todo aki… num eh grande nao… mas a parte funcional do socket eh esta q jah postei… o resto do codigo eh apenas da interface… eu usei o swing

Concordo com Sr Ricardo, pois sem o código completo não é possivel descobrir o que gerou o erro.