com.springsource.platform.io.core.FatalIOException: Unable to determine network interface list.

SpringSource Issue Tracker | Josef Wegner | 8 years ago
  1. 0

    Because Eclipse is not available for Solaris x86, I installed Spring STS and Spring AP in a Linux Branded Zone in OpenSolaris 5.11. Eclipse and STS runs fine, but Spring AP fails to start because of: -------------------------------------------------------------------------------- | | SpringSource Application Platform | -------------------------------------------------------------------------------- [2008-06-27 14:46:16.769] main <SPKB0001I> Platform starting. [2008-06-27 14:46:29.854] main <SPKE0000I> Boot subsystems installed. [2008-06-27 14:46:31.899] main <SPKE0001I> Base subsystems installed. [2008-06-27 14:46:36.611] platform-dm-0 <SPPM0000I> Installing profile 'web'. [2008-06-27 14:46:39.035] platform-dm-10 <SPFF0002I> Wrote dump file "/export/home/jwegne/Work/springsource-ap-1.0.0.beta6/serviceability/dump/2008-06-27_14-46-36.dump" com.springsource.platform.io.core.FatalIOException: Unable to determine network interface list. at com.springsource.platform.io.core.NetUtils.isPortAvailable(NetUtils.java:37) at com.springsource.platform.control.core.internal.PortCheckingRmiRegistryFactoryBean.afterPropertiesSet(PortCheckingRmiRegistryFactoryBean.java:33) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:276) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145) at com.springsource.platform.kernel.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketException: Bad address at java.net.NetworkInterface.getAll(Native Method) at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:281) at com.springsource.platform.io.core.NetUtils.isPortAvailable(NetUtils.java:35) ... 20 more and a lot more errors. I will also attach the corresponding AP trace file. I guess running Spring Application Platform in a Linux Branded Zone might not be an useful Use Case, but still it would be nice if you could use STS + AP on OpenSolaris.

    SpringSource Issue Tracker | 8 years ago | Josef Wegner
    com.springsource.platform.io.core.FatalIOException: Unable to determine network interface list.
  2. 0

    Because Eclipse is not available for Solaris x86, I installed Spring STS and Spring AP in a Linux Branded Zone in OpenSolaris 5.11. Eclipse and STS runs fine, but Spring AP fails to start because of: -------------------------------------------------------------------------------- | | SpringSource Application Platform | -------------------------------------------------------------------------------- [2008-06-27 14:46:16.769] main <SPKB0001I> Platform starting. [2008-06-27 14:46:29.854] main <SPKE0000I> Boot subsystems installed. [2008-06-27 14:46:31.899] main <SPKE0001I> Base subsystems installed. [2008-06-27 14:46:36.611] platform-dm-0 <SPPM0000I> Installing profile 'web'. [2008-06-27 14:46:39.035] platform-dm-10 <SPFF0002I> Wrote dump file "/export/home/jwegne/Work/springsource-ap-1.0.0.beta6/serviceability/dump/2008-06-27_14-46-36.dump" com.springsource.platform.io.core.FatalIOException: Unable to determine network interface list. at com.springsource.platform.io.core.NetUtils.isPortAvailable(NetUtils.java:37) at com.springsource.platform.control.core.internal.PortCheckingRmiRegistryFactoryBean.afterPropertiesSet(PortCheckingRmiRegistryFactoryBean.java:33) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:276) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145) at com.springsource.platform.kernel.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketException: Bad address at java.net.NetworkInterface.getAll(Native Method) at java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:281) at com.springsource.platform.io.core.NetUtils.isPortAvailable(NetUtils.java:35) ... 20 more and a lot more errors. I will also attach the corresponding AP trace file. I guess running Spring Application Platform in a Linux Branded Zone might not be an useful Use Case, but still it would be nice if you could use STS + AP on OpenSolaris.

    SpringSource Issue Tracker | 8 years ago | Josef Wegner
    com.springsource.platform.io.core.FatalIOException: Unable to determine network interface list.
  3. 0

    NetworkInterface.getNetworkInterfaces() not work on JDK 1.7 OS X?

    Stack Overflow | 4 years ago | DANG Fan
    java.net.SocketException: Can't assign requested address
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      Bad address

      at java.net.NetworkInterface.getAll()
    2. Java RT
      NetworkInterface.getNetworkInterfaces
      1. java.net.NetworkInterface.getAll(Native Method)
      2. java.net.NetworkInterface.getNetworkInterfaces(NetworkInterface.java:281)
      2 frames
    3. com.springsource.platform
      PortCheckingRmiRegistryFactoryBean.afterPropertiesSet
      1. com.springsource.platform.io.core.NetUtils.isPortAvailable(NetUtils.java:35)
      2. com.springsource.platform.control.core.internal.PortCheckingRmiRegistryFactoryBean.afterPropertiesSet(PortCheckingRmiRegistryFactoryBean.java:33)
      2 frames
    4. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      4 frames
    5. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    6. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
      7 frames
    7. Spring Context
      AbstractApplicationContext.finishBeanFactoryInitialization
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
      1 frame
    8. Spring OSGi Core
      AbstractDelegatedExecutionApplicationContext.completeRefresh
      1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:276)
      1 frame
    9. org.springframework.osgi
      DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
      1. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:145)
      1 frame
    10. com.springsource.platform
      ContextPropagatingTaskExecutor$2.run
      1. com.springsource.platform.kernel.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82)
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames