java.net.SocketException: Can't assign requested address

Jenkins JIRA | Daryl Spartz | 2 years ago
  1. 0

    GitHub comment 18#140100907

    GitHub | 1 year ago | softwareklinic
    java.net.SocketException: Can't assign requested address
  2. 0

    Socket issue

    GitHub | 1 year ago | softwareklinic
    java.net.SocketException: Can't assign requested address
  3. 0

    [JENKINS-26889] java.lang.ArrayIndexOutOfBoundsException: -1 - Jenkins JIRA

    jenkins-ci.org | 1 day ago
    java.net.SocketException: Can't assign requested address
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Test phase of maven build of plugin, on jdk 1.8 fails. Works on 1.7 ------------------------------------------------------- T E S T S ------------------------------------------------------- Running InjectedTest Exploding jenkins.war at /Users/dspartz/.m2/repository/org/jenkins-ci/main/jenkins-war/1.520/jenkins-war-1.520-war-for-test.jar Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: jetty-6.1.26 Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: Started SocketConnector@0.0.0.0:49610 Feb 10, 2015 2:59:22 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Feb 10, 2015 2:59:28 PM hudson.model.ComputerSet <clinit> WARNING: Failed to instantiate NodeMonitors java.lang.ArrayIndexOutOfBoundsException: -1 at com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77) at java.util.HashMap.putMapEntries(HashMap.java:511) at java.util.HashMap.putAll(HashMap.java:784) at com.thoughtworks.xstream.core.util.OrderRetainingMap.<init>(OrderRetainingMap.java:36) at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135) at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:76) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:127) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:143) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:102) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at hudson.util.DescribableList$ConverterImpl.marshal(DescribableList.java:259) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) at com.thoughtworks.xstream.XStream.marshal(XStream.java:898) at com.thoughtworks.xstream.XStream.marshal(XStream.java:887) at com.thoughtworks.xstream.XStream.toXML(XStream.java:860) at hudson.XmlFile.write(XmlFile.java:183) at hudson.model.ComputerSet$1.save(ComputerSet.java:76) at hudson.util.PersistedList.onModified(PersistedList.java:173) at hudson.util.PersistedList.replaceBy(PersistedList.java:85) at hudson.model.ComputerSet.<clinit>(ComputerSet.java:431) at jenkins.metrics.impl.JenkinsHealthCheckProviderImpl.getHealthChecks(JenkinsHealthCheckProviderImpl.java:87) at jenkins.metrics.api.Metrics.afterExtensionsAugmented(Metrics.java:311) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:893) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Feb 10, 2015 2:59:28 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Feb 10, 2015 2:59:28 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Feb 10, 2015 2:59:28 PM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 49611 Feb 10, 2015 2:59:28 PM hudson.UDPBroadcastThread run WARNING: UDP handling problem java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:179) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:323) at hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:76) Feb 10, 2015 2:59:28 PM org.mortbay.log.Slf4jLog info INFO: jetty-6.1.26 Feb 10, 2015 2:59:28 PM org.mortbay.log.Slf4jLog info INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet Feb 10, 2015 2:59:28 PM org.mortbay.log.Slf4jLog info INFO: Started SocketConnector@0.0.0.0:49612 Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 7.867 sec <<< FAILURE! Feb 10, 2015 2:59:28 PM hudson.PluginWrapper stop INFO: Stopping metrics Results : Tests in error: org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest): -1 testCliSanity(org.jvnet.hudson.test.PluginAutomaticTestBuilder$CliSanityTest): second instance Tests run: 2, Failures: 0, Errors: 2, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.808s [INFO] Finished at: Tue Feb 10 14:59:29 PST 2015 [INFO] Final Memory: 37M/514M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project metrics: There are test failures. [ERROR] [ERROR] Please refer to /Users/dspartz/Documents/workspaces/git/metrics-plugin/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

    Jenkins JIRA | 2 years ago | Daryl Spartz
    java.net.SocketException: Can't assign requested address
  6. 0

    Test phase of maven build of plugin, on jdk 1.8 fails. Works on 1.7 ------------------------------------------------------- T E S T S ------------------------------------------------------- Running InjectedTest Exploding jenkins.war at /Users/dspartz/.m2/repository/org/jenkins-ci/main/jenkins-war/1.520/jenkins-war-1.520-war-for-test.jar Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: jetty-6.1.26 Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet Feb 10, 2015 2:59:22 PM org.mortbay.log.Slf4jLog info INFO: Started SocketConnector@0.0.0.0:49610 Feb 10, 2015 2:59:22 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Feb 10, 2015 2:59:25 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Feb 10, 2015 2:59:28 PM hudson.model.ComputerSet <clinit> WARNING: Failed to instantiate NodeMonitors java.lang.ArrayIndexOutOfBoundsException: -1 at com.thoughtworks.xstream.core.util.OrderRetainingMap.entrySet(OrderRetainingMap.java:77) at java.util.HashMap.putMapEntries(HashMap.java:511) at java.util.HashMap.putAll(HashMap.java:784) at com.thoughtworks.xstream.core.util.OrderRetainingMap.<init>(OrderRetainingMap.java:36) at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:135) at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:76) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:127) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:143) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:102) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at hudson.util.DescribableList$ConverterImpl.marshal(DescribableList.java:259) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) at com.thoughtworks.xstream.XStream.marshal(XStream.java:898) at com.thoughtworks.xstream.XStream.marshal(XStream.java:887) at com.thoughtworks.xstream.XStream.toXML(XStream.java:860) at hudson.XmlFile.write(XmlFile.java:183) at hudson.model.ComputerSet$1.save(ComputerSet.java:76) at hudson.util.PersistedList.onModified(PersistedList.java:173) at hudson.util.PersistedList.replaceBy(PersistedList.java:85) at hudson.model.ComputerSet.<clinit>(ComputerSet.java:431) at jenkins.metrics.impl.JenkinsHealthCheckProviderImpl.getHealthChecks(JenkinsHealthCheckProviderImpl.java:87) at jenkins.metrics.api.Metrics.afterExtensionsAugmented(Metrics.java:311) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:893) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Feb 10, 2015 2:59:28 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Feb 10, 2015 2:59:28 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Feb 10, 2015 2:59:28 PM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 49611 Feb 10, 2015 2:59:28 PM hudson.UDPBroadcastThread run WARNING: UDP handling problem java.net.SocketException: Can't assign requested address at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:179) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:323) at hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:76) Feb 10, 2015 2:59:28 PM org.mortbay.log.Slf4jLog info INFO: jetty-6.1.26 Feb 10, 2015 2:59:28 PM org.mortbay.log.Slf4jLog info INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet Feb 10, 2015 2:59:28 PM org.mortbay.log.Slf4jLog info INFO: Started SocketConnector@0.0.0.0:49612 Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 7.867 sec <<< FAILURE! Feb 10, 2015 2:59:28 PM hudson.PluginWrapper stop INFO: Stopping metrics Results : Tests in error: org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest): -1 testCliSanity(org.jvnet.hudson.test.PluginAutomaticTestBuilder$CliSanityTest): second instance Tests run: 2, Failures: 0, Errors: 2, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.808s [INFO] Finished at: Tue Feb 10 14:59:29 PST 2015 [INFO] Final Memory: 37M/514M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project metrics: There are test failures. [ERROR] [ERROR] Please refer to /Users/dspartz/Documents/workspaces/git/metrics-plugin/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

    Jenkins JIRA | 2 years ago | Daryl Spartz
    java.net.SocketException: Can't assign requested address

  1. davidvanlaatum 916 times, last 3 months 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.net.SocketException

    Can't assign requested address

    at java.net.PlainDatagramSocketImpl.join()
  2. Java RT
    MulticastSocket.joinGroup
    1. java.net.PlainDatagramSocketImpl.join(Native Method)
    2. java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:179)
    3. java.net.MulticastSocket.joinGroup(MulticastSocket.java:323)
    3 frames
  3. Hudson
    UDPBroadcastThread.run
    1. hudson.UDPBroadcastThread.run(UDPBroadcastThread.java:76)
    1 frame