java.net.NoRouteToHostException: Cannot assign requested address

Oracle Community | 996278 | 4 years ago
  1. 0

    Urgent !!! ....Cannot Assign Requested Address: Cannot Bind

    wpthm.com | 1 year ago
    java.net.NoRouteToHostException: Cannot assign requested address
  2. 0

    Weblogic IIOP security settings

    Oracle Community | 4 years ago | 996278
    java.net.NoRouteToHostException: Cannot assign requested address
  3. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-733].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}Hey, I am using the post-function "Set Field Value to constant or Groovy expression" on a create transition which does the following 1. It searches for a specific string in the Description 2. If it finds the string it regexps out a value from that string 3. It sets the Component/s field to this value This has worked fine until my last upgrade of JIRA (and the script runner) JIRA went from 6.3.10 to 6.4.3 and Script Runner from 3.0.10 to 3.0.14 These are my settings in the post-function: *The Condition clause* _Used to make sure there is a relevant Component defined in the project_ {code:javascript} import java.util.regex.Matcher import java.util.regex.Pattern import com.atlassian.jira.bc.project.component.ProjectComponent import com.atlassian.jira.ComponentManager import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.project.Project import com.atlassian.jira.project.ProjectManager import webwork.action.ActionContext // Define the pattern to search for def pattern = ~/\[Component: [A-Z].*\]/ // (String[]) ids = ActionContext.getParameters().get("pid") // String pid = ids[0] def project = issueObject.getProjectObject() // project = ComponentManager.getInstance().getProjectManager().getProjectObj(pid.toLong()) log.error('Project is: ' + project.getName()) // Match the Description field matcher = issue.description =~ pattern if( issue.description =~ pattern ) { // Split out the Component name comp = matcher[0] comp -= "[Component: " comp -= "]" ProjectComponent component = ComponentAccessor.getProjectComponentManager().findByComponentName(project.getId(), comp) if( !(component == null)) { log.error('Component ' + component.getName() + ' found! Continue to set the Component!') return true } } // No Matching string or Component not found, exit with false log.error('Condition failed! Exiting!') return false {code} *The Value clause* _Used to set the Component/s field (if found)_ {code:javascript} import java.util.regex.Matcher import java.util.regex.Pattern def pattern = ~/\[Component: [A-Z].*\]/ matcher = issue.description =~ pattern // Split out the Component name comp = matcher[0] comp -= "[Component: " comp -= "]" log.error('Trying to set: ' + comp + '!!!') if (comp) { // If there is a component, set it! // This should be always true because of the Conditional Execution setup return comp } else { log.error('No Match!') } {code} However when creating a ticket with the correct string in Description I get the following error messages in my log and no update of the Component/s field {noformat} 2015-06-16 10:23:06,689 http-bio-8080-exec-14 ERROR svante.gustafsson 623x40302x1 24xuum 10.4.128.18,127.0.0.1 /secure/QuickCreateIssue.jspa [jmwe.plugins.functions.SetFieldValueFunction] Component Denied purchase found! Continue to set the Component! 2015-06-16 10:23:06,728 http-bio-8080-exec-14 ERROR svante.gustafsson 623x40302x1 24xuum 10.4.128.18,127.0.0.1 /secure/QuickCreateIssue.jspa [jmwe.plugins.functions.SetFieldValueFunction] Trying to set: Denied purchase!!! 2015-06-16 10:23:33,997 com.atlassian.mywork.client.reliability.DefaultUnreliableWorker:thread-4 WARN svante.gustafsson 911x17674x1 1q9hahg 10.4.128.18,127.0.0.1 /secure/CreateIssueDetails.jspa [mywork.client.reliability.DefaultReliabilityService] Failed task "{"username":"svante.gustafsson","type":"POST","json":"{\"globalId\":\"appId=d5a1efa2-ac5d-3884-bb26-078307c8d6e9&entity=issue&id=118572\",\"condition\":{},\"metadata\":{\"watching\":true}}","path":"/rest/mywork/1/notification/metadata"}" com.atlassian.sal.api.net.ResponseTransportException: No route to host at com.atlassian.sal.core.net.HttpClientRequest.executeAndReturn(HttpClientRequest.java:361) at com.atlassian.plugins.rest.module.jersey.JerseyRequest.executeAndReturn(JerseyRequest.java:161) at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor.execute(ApplicationLinkRequestAdaptor.java:84) at com.atlassian.applinks.core.auth.oauth.OAuthRequest.execute(OAuthRequest.java:44) at com.atlassian.mywork.client.reliability.DefaultUnreliableWorker.send(DefaultUnreliableWorker.java:121) at com.atlassian.mywork.client.reliability.DefaultUnreliableWorker.access$200(DefaultUnreliableWorker.java:27) at com.atlassian.mywork.client.reliability.DefaultUnreliableWorker$1$1.run(DefaultUnreliableWorker.java:79) at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:38) 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) Caused by: java.net.NoRouteToHostException: No route to host at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:656) <+2> (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:129) at com.atlassian.sal.core.net.CustomSSLProtocolSocketFactory.createSocket(CustomSSLProtocolSocketFactory.java:10 {noformat} NOTE: the two first ERROR messages are just printouts from the post-function. Any idea why this post-function groovy script is not working any more? Are there any changes in the Script Runner (or JIRA) that I have missed during the upgrade? Another change was that we introduced Crowd at the same time so now JIRA authenticate through a Crowd User directory rather than direct to the LDAP directory. I am not sure if this could affect this post-function. Cheers, // Svante

    JIRA | 1 year ago | svante.gustafsson@riada.se
    com.atlassian.sal.api.net.ResponseTransportException: No route to host
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 1062#258141852

    GitHub | 1 month ago | joakime
    java.net.NoRouteToHostException: Cannot assign requested address

    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.NoRouteToHostException

      Cannot assign requested address

      at java.net.PlainSocketImpl.socketConnect()
    2. Java RT
      SocksSocketImpl.connect
      1. java.net.PlainSocketImpl.socketConnect(Native Method)
      2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
      3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
      4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
      5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      5 frames