Topic
  • 3 replies
  • Latest Post - ‏2012-12-12T22:21:26Z by MikeRott
jww
jww
7 Posts

Pinned topic Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment

‏2012-12-12T20:30:26Z |
Environment: Worklight Studio 5.0.5, OSX 10.7.5, Eclipse Juno, jdk 7u9 64-bit

Fresh install of everything including updating eclipse.ini according to Worklight Studio 5.0.5 steps.

Scenario:
1. Create new Worklight project with Worklight app.
2. Create iPhone environment under Worklight app.
3. Receive following error when building Worklight app where xxxxxx is replaced with my hostname.

iphone build failed: java.net.UnknownHostException: xxxxxx: xxxxxx; nodename nor servname provided, or not known
java.net.InetAddress.getLocalHost(InetAddress.java:1438)
com.worklight.common.util.GeneralUtil.scanIPAddresses(GeneralUtil.java:560)
com.worklight.common.util.GeneralUtil.scanIPAddresses(GeneralUtil.java:528)
com.worklight.common.util.GeneralUtil.getIPscanResults(GeneralUtil.java:621)
com.worklight.gadgets.GFWProps.getPublicWorkLightHostname(GFWProps.java:66)
......
2012-12-12 14:55:57 Application 'HelloWorklight' with all environments build finished.
2012-12-12 14:55:57 Deploying application 'HelloWorklight' with all environments to Worklight Server...
  • jww
    jww
    7 Posts

    Re: Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment

    ‏2012-12-12T21:57:52Z  
    Changing that environment setup to:
    Environment: Worklight Studio 5.0.5, OSX 10.7.5, Eclipse Indigo, jdk 7u9 64-bit, Xcode 4.5.2

    Builds and runs successfully with no UnknownHostException.

    The install steps at: http://www.ibm.com/developerworks/mobile/worklight/download/alternatives.html
    mention "In addition to Eclipse Juno (4.2), IBM Worklight Developer Edition also supports Eclipse Helios SR2 (3.6.2)."
    On first read of that statement the implication is that Worklight 5.0.5 doesn't support Eclipse Indigo so we were trying Eclipse Juno where we encountered the problem with UnknownHostException.

    Our further review did find that Eclipse Indigo is, as I would expect, supported by Worklight 5.0.5::
    http://pic.dhe.ibm.com/infocenter/prodguid/v1r0/clarity-reports/report/html/softwareReqsForProduct?deliverableId=1322605181306&osPlatform=Mac%20OS

    Indigo is fine for our needs at this time.

    Thanks!
  • SystemAdmin
    SystemAdmin
    2327 Posts

    Re: Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment

    ‏2012-12-12T22:14:39Z  
    • jww
    • ‏2012-12-12T21:57:52Z
    Changing that environment setup to:
    Environment: Worklight Studio 5.0.5, OSX 10.7.5, Eclipse Indigo, jdk 7u9 64-bit, Xcode 4.5.2

    Builds and runs successfully with no UnknownHostException.

    The install steps at: http://www.ibm.com/developerworks/mobile/worklight/download/alternatives.html
    mention "In addition to Eclipse Juno (4.2), IBM Worklight Developer Edition also supports Eclipse Helios SR2 (3.6.2)."
    On first read of that statement the implication is that Worklight 5.0.5 doesn't support Eclipse Indigo so we were trying Eclipse Juno where we encountered the problem with UnknownHostException.

    Our further review did find that Eclipse Indigo is, as I would expect, supported by Worklight 5.0.5::
    http://pic.dhe.ibm.com/infocenter/prodguid/v1r0/clarity-reports/report/html/softwareReqsForProduct?deliverableId=1322605181306&osPlatform=Mac%20OS

    Indigo is fine for our needs at this time.

    Thanks!
    I am not able to replicate your issue on 5.0.5, OSX 10.7.5, and Eclipse Juno, however many of the search results for that error message seem to indicate it can be caused by transient network issues. Did you check if the issue still exists in Juno while being resolved in Indigo, or could it simply be a timing issue where it appeared to be resolved later because that is when you installed Indigo?
  • MikeRott
    MikeRott
    2 Posts

    Re: Worklight 5.0.5 UnknownHostException in building iPhone/iPad environment

    ‏2012-12-12T22:21:26Z  
    I am not able to replicate your issue on 5.0.5, OSX 10.7.5, and Eclipse Juno, however many of the search results for that error message seem to indicate it can be caused by transient network issues. Did you check if the issue still exists in Juno while being resolved in Indigo, or could it simply be a timing issue where it appeared to be resolved later because that is when you installed Indigo?
    Perhaps it's a problem with /etc/hosts? See: http://stackoverflow.com/questions/1881546/inetaddress-getlocalhost-throws-unknownhostexception