Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
Error while starting cluster: java.lang.NullPointerException

I'm seeing this when joining a cluster. I think it's because windows firewall is blocking the executable. Probably the error should be more helpful.
Exception in thread "main" java.lang.reflect.InvocationTargetException
2019-02-27 15:59:45.550/11.531 Oracle Coherence GE 12.2.1.3.0 <Error> (thread=main, member=n/a): Error while starting cluster: java.lang.NullPointerException
at com.oracle.common.internal.net.MultiplexedSocketProvider$MultiplexedServerSocketChannel$1.accept(MultiplexedSocketProvider.java:871)
at com.oracle.common.net.InetAddresses.isNatLocalAddress(InetAddresses.java:1211)
at com.oracle.common.net.InetAddresses.isNatLocalAddress(InetAddresses.java:1127)
at com.tangosol.coherence.component.net.Cluster.configureSockets(Cluster.CDB:161)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:29)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:12)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:4)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:32)
at com.tangosol.coherence.component.util.SafeCluster.getRunningCluster(SafeCluster.CDB:7)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:5)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:580)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:27)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:1040)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:1040)
Caused by: java.lang.NullPointerException
at com.oracle.common.internal.net.MultiplexedSocketProvider$MultiplexedServerSocketChannel$1.accept(MultiplexedSocketProvider.java:871)
at com.oracle.common.net.InetAddresses.isNatLocalAddress(InetAddresses.java:1211)
at com.oracle.common.net.InetAddresses.isNatLocalAddress(InetAddresses.java:1127)
at com.tangosol.coherence.component.net.Cluster.configureSockets(Cluster.CDB:161)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:29)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:12)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:4)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:32)
at com.tangosol.coherence.component.util.SafeCluster.getRunningCluster(SafeCluster.CDB:7)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:5)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:580)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:27)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
Answers
-
It appears you're using JDK9 or later. Do you see the issue with JDK8?
-
Not sure. All my dependencies are compiled w/jdk 11 now so going back to jdk8 to reproduce the issue is not an option. I"m 99% sure it was caused by the Windows firewall probably preventing the port from opening or something.