Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

"Hello World" compilling error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody!
I get this error message in NetBeans 5.0 in any source code
when I try to run:

java.net.SocketException: Invalid argument: listen failed
at org.netbeans.modules.debugger.jpda.ant.JPDAStart.execute(JPDAStart.java:183)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Caused by: java.net.SocketException: Invalid argument: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:374)
at java.net.ServerSocket.bind(ServerSocket.java:320)
at java.net.ServerSocket.bind(ServerSocket.java:277)
at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:237)
at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:265)
at com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:96)
at com.sun.tools.jdi.SocketListeningConnector.startListening(SocketListeningConnector.java:67)
at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:219)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
--- Nested Exception ---
java.net.SocketException: Invalid argument: listen failed
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:374)
at java.net.ServerSocket.bind(ServerSocket.java:320)
at java.net.ServerSocket.bind(ServerSocket.java:277)
at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:237)
at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:265)
at com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:96)
at com.sun.tools.jdi.SocketListeningConnector.startListening(SocketListeningConnector.java:67)
at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:219)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
C:\Documents and Settings\Ady\Desktop\test\JavaApplication6\nbproject\build-impl.xml:358: The following error occurred while executing this line:
C:\Documents and Settings\Ady\Desktop\test\JavaApplication6\nbproject\build-impl.xml:164: java.net.SocketException: Invalid argument: listen failed
BUILD FAILED (total time: 1 second)

Can somebody help me?
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried to compile your program from the command-line? It might be simpler doing so, even if it takes a little bit of work to set it up so you can.

The error you see here is a problem with Netbeans, not your code. I don't know why this error occurs. You might want to google for the error message to see if it is a known issue. The only suggestion I can give at the moment is to uninstall and reinstall NetBeans.

Sorry that I can't be of any further help.

Layne
 
A magnificient life is loaded with tough challenges. En garde tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic