GitHub user matthiasblaesing added a comment to the discussion: Open file from 
console

Interesting. The state sequence matches a startup with an existing lock 
(another NetBeans process running). That lock file encodes the TCP port that 
instance listens on. That matches the last line:

> FINEST: state: 28 thread: Thread[#3,main,5,main]

This is the corresponding code following that:

https://github.com/apache/netbeans/blob/9950295dbddf576c1bfbdae73d45b3ada9692be9/platform/o.n.bootstrap/src/org/netbeans/CLIHandler.java#L734-L745

The code tries to open a socket and this seems to fail. Gut feeling: A local 
firewall, that filters access to localhost?

Check this:

```
matthias@enterprise:~/src/netbeans$ od --endian=big -N 4 -i 
~/.netbeans/dev/lock                                                            
                                                                           
0000000       33019
0000004
matthias@enterprise:~/src/netbeans$ ss -lnp | grep 33019                        
                                                                                
                                                            
RTNETLINK answers: Invalid argument
tcp   LISTEN 0      50                                                          
                         [::1]:33019                   [::]:*    
users:(("java",pid=815728,fd=24))                                               
                                                  
matthias@enterprise:~/src/netbeans$
```

This is my current session (I'm on a custom built, you need to replace the 
`dev` in the path with `27`).

I have no local firewall, could it be, that you have a local firewall, that 
blocks access to `localhost`?

GitHub link: 
https://github.com/apache/netbeans/discussions/8983#discussioncomment-14951086

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to