java.io.IOException: Operation not permitted

Jenkins JIRA | lacostej | 6 years ago
  1. 0

    I've had the 2 issues fail the integration tests on my machine: {code} 1) testMulticast(hudson.UDPBroadcastThreadTest)hudson.remoting.ProxyException: java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:725) at hudson.UDPBroadcastThreadTest.receiveAndVerify(UDPBroadcastThreadTest.java:64) at hudson.UDPBroadcastThreadTest.testMulticast(UDPBroadcastThreadTest.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:323) at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:226) at com.sun.maven.junit.LocalTestCaseRunner.runTests(LocalTestCaseRunner.java:113) at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:250) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code} Logs show {code} Feb 4, 2011 2:13:43 PM hudson.UDPBroadcastThread run WARNING: UDP handling problem java.io.IOException: Operation not permitted at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:625) at hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:88) Feb 4, 2011 2:13:48 PM hudson.util.CharacterEncodingFilter destroy {code} What I've found interesting is that it seems that only jenkins/hudson exhibits this stack trace. So it's worth having a look at. Some issues in different code path but similar stack: JENKINS-7129 JENKINS-6614 The other one I haven't looked into yet. {code} 2) testSelectBoxesUnique3(lib.hudson.ListScmBrowsersTest)hudson.remoting.ProxyException: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.<init>(Socket.java:375) at java.net.Socket.<init>(Socket.java:249) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:97) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1456) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:328) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374) at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1539) at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1530) at org.jvnet.hudson.test.HudsonTestCase$WebClient.getPage(HudsonTestCase.java:1491) at lib.hudson.ListScmBrowsersTest.check(ListScmBrowsersTest.java:32) at lib.hudson.ListScmBrowsersTest.testSelectBoxesUnique3(ListScmBrowsersTest.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:323) at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:226) at com.sun.maven.junit.LocalTestCaseRunner.runTests(LocalTestCaseRunner.java:113) at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:56) at sun.reflect.GeneratedMethodAccessor1004.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:250) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code} In the logs: {code} INFO: JNLP slave agent listener started on TCP port 59922 Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: Retrying request Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: Retrying request Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry {code} I will investigate this further later on.

    Jenkins JIRA | 6 years ago | lacostej
    java.io.IOException: Operation not permitted
  2. 0

    I've had the 2 issues fail the integration tests on my machine: {code} 1) testMulticast(hudson.UDPBroadcastThreadTest)hudson.remoting.ProxyException: java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:725) at hudson.UDPBroadcastThreadTest.receiveAndVerify(UDPBroadcastThreadTest.java:64) at hudson.UDPBroadcastThreadTest.testMulticast(UDPBroadcastThreadTest.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:323) at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:226) at com.sun.maven.junit.LocalTestCaseRunner.runTests(LocalTestCaseRunner.java:113) at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:250) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code} Logs show {code} Feb 4, 2011 2:13:43 PM hudson.UDPBroadcastThread run WARNING: UDP handling problem java.io.IOException: Operation not permitted at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:625) at hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:88) Feb 4, 2011 2:13:48 PM hudson.util.CharacterEncodingFilter destroy {code} What I've found interesting is that it seems that only jenkins/hudson exhibits this stack trace. So it's worth having a look at. Some issues in different code path but similar stack: JENKINS-7129 JENKINS-6614 The other one I haven't looked into yet. {code} 2) testSelectBoxesUnique3(lib.hudson.ListScmBrowsersTest)hudson.remoting.ProxyException: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.<init>(Socket.java:375) at java.net.Socket.<init>(Socket.java:249) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:97) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1456) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:328) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374) at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1539) at org.jvnet.hudson.test.HudsonTestCase$WebClient.goTo(HudsonTestCase.java:1530) at org.jvnet.hudson.test.HudsonTestCase$WebClient.getPage(HudsonTestCase.java:1491) at lib.hudson.ListScmBrowsersTest.check(ListScmBrowsersTest.java:32) at lib.hudson.ListScmBrowsersTest.testSelectBoxesUnique3(ListScmBrowsersTest.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.jvnet.hudson.test.HudsonTestCase.runTest(HudsonTestCase.java:323) at org.jvnet.hudson.test.HudsonTestCase.runBare(HudsonTestCase.java:226) at com.sun.maven.junit.LocalTestCaseRunner.runTests(LocalTestCaseRunner.java:113) at com.sun.maven.junit.LocalTestCaseRunner.runTestCase(LocalTestCaseRunner.java:56) at sun.reflect.GeneratedMethodAccessor1004.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:250) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code} In the logs: {code} INFO: JNLP slave agent listener started on TCP port 59922 Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: Retrying request Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: Retrying request Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused Feb 4, 2011 1:42:33 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry {code} I will investigate this further later on.

    Jenkins JIRA | 6 years ago | lacostej
    java.io.IOException: Operation not permitted
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Jenkins users - Can't get past "getting ready to work screen"

    nabble.com | 1 year ago
    java.io.IOException: Operation not permitted
  5. 0

    Jenkins issues - accessing 8080 restarts server

    nabble.com | 1 year ago
    java.io.IOException: Operation not permitted

  1. Aria Pahlavan 32 times, last 2 weeks ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Operation not permitted

    at java.net.PlainDatagramSocketImpl.send()
  2. Java RT
    DatagramSocket.send
    1. java.net.PlainDatagramSocketImpl.send(Native Method)
    2. java.net.DatagramSocket.send(DatagramSocket.java:625)
    2 frames
  3. Hudson
    UDPBroadcastThread.run
    1. hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:88)
    1 frame