Search - Coherence invalid argument supplied
I just set up a new workspace for Eclipse and my Search project. I followed [this guide](
https://thehub.thomsonreuters.com/docs/DOC-831462) from start to end to set up Eclipse and then [this guide](
http://nsawiki.int.westgroup.com/wiki/index.php5/Java_developer_startup_instructions_(WestlawNext)) to set up Search. When I run my tomcat server, I get a Coherence error. I have tried many things to fix this including: pulling latest from TFS, cleaning workspace, resolving with ivy, building workspace, verifying all tomcat settings, etc. My last resort was starting from complete scratch again and even that did not change this issue. Below is my stack trace. `Mar 04, 2015 3:12:13 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_75\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Java\jdk1.8.0_25\jre\bin;C:\Program Files\Java\jdk1.8.0_25\bin;C:\Program Files (x86)\Oracle\Berkeley DB 11gR2 5.1.19\bin;C:\Program Files (x86)\Git\cmd;. Mar 04, 2015 3:12:13 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:WLNSearch' did not find a matching property. Mar 04, 2015 3:12:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 04, 2015 3:12:16 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3302 ms Mar 04, 2015 3:12:16 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 04, 2015 3:12:16 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.43 Properties loaded via resources/local.properties System property instanceName not set for the instance name, local logging may not work. Logging initialized via resources/localLogging.xml` **This is where the coherence stuff starts** `2015-03-04 15:12:21,482 INFO [main] CoherenceInfra: Starting coherence services. 2015-03-04 15:12:22,038 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence 12.1.2.0.0 (thread=main, member=n/a): Loaded operational configuration from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/coherence-12.1.2.0.jar!/tangosol-coherence.xml" 2015-03-04 15:12:22,038 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence 12.1.2.0.0 (thread=main, member=n/a): Loaded operational overrides from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/coherenceInfra-25.2.0.jar!/infrastructure.tangosol.override.xml" 2015-03-04 15:12:22,048 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Loaded cache configuration from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/SearchSerialized-27.0.1.jar!/searchcache-coherence-cache-config.xml"; this document does not refer to any schema definition and has not been validated. 2015-03-04 15:12:22,378 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Loaded Reporter configuration from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/coherence-12.1.2.0.jar!/reports/report-group.xml" 2015-03-04 15:12:22,449 INFO [main] CoherenceInfra: Cache factory is class com.tangosol.net.ExtensibleConfigurableCacheFactory 2015-03-04 15:12:22,449 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Created cache factory com.tangosol.net.ExtensibleConfigurableCacheFactory 2015-03-04 15:12:22,609 WARN [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Disabling the service-guardian by setting a timeout of 0 has been deprecated. Instead, please configure a "service-failure-policy" of "logging" which will perform non-invasive monitoring of Coherence services. Configuring the Guardian to use the "logging" policy with a timeout of 60000ms` **This is where the Coherence errors begin.** `2015-03-04 15:12:52,170 ERROR [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Error while starting cluster: (Wrapped) java.net.SocketException: An invalid argument was supplied at com.tangosol.util.Base.ensureRuntimeException(Base.java:286) at com.tangosol.util.Base.ensureRuntimeException(Base.java:267) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:40) at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11) at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3) at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10) at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:30) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:428) at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:572) at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:666) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:369) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:314) at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:130) at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:286) at com.trgr.cobalt.infrastructure.coherenceinfra.CoherenceLifecycle.start(CoherenceLifecycle.java:93) at com.trgr.cobalt.infrastructure.coherenceinfra.CacheServletContextListener.contextInitialized(CacheServletContextListener.java:35) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.net.SocketException: An invalid argument was supplied at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Native Method) at java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksPlainDatagramSocketImpl.java:145) at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:310) at java.net.MulticastSocket.setInterface(MulticastSocket.java:467) at com.tangosol.coherence.component.net.socket.udpSocket.MulticastUdpSocket.instantiateDatagramSocket(MulticastUdpSocket.CDB:33) at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:12) at com.tangosol.coherence.component.net.Cluster$SocketManager.bindSockets(Cluster.CDB:128) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:36) ... 29 more` `2015-03-04 15:12:52,170 ERROR [main] CoherenceInfra: Timeout starting Coherence, try# 1 (Wrapped) java.net.SocketException: An invalid argument was supplied at com.tangosol.util.Base.ensureRuntimeException(Base.java:286) at com.tangosol.util.Base.ensureRuntimeException(Base.java:267) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:40) at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11) at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3) at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10) at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:30) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:428) at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:572) at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:666) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:369) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:314) at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:130) at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:286) at com.trgr.cobalt.infrastructure.coherenceinfra.CoherenceLifecycle.start(CoherenceLifecycle.java:93) at com.trgr.cobalt.infrastructure.coherenceinfra.CacheServletContextListener.contextInitialized(CacheServletContextListener.java:35) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.net.SocketException: An invalid argument was supplied at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Native Method) at java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksPlainDatagramSocketImpl.java:145) at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:310) at java.net.MulticastSocket.setInterface(MulticastSocket.java:467) at com.tangosol.coherence.component.net.socket.udpSocket.MulticastUdpSocket.instantiateDatagramSocket(MulticastUdpSocket.CDB:33) at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:12) at com.tangosol.coherence.component.net.Cluster$SocketManager.bindSockets(Cluster.CDB:128) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:36) ... 29 more 2015-03-04 15:12:52,244 ERROR [main] CoherenceInfra: 1425503572221ic0a863010000014be6a250fd7de129d3APPLICATIONCOHERENCEErrorLogWed Mar 04 15:12:52 CST 2015(Wrapped) java.net.SocketException: An invalid argument was supplied at com.tangosol.util.Base.ensureRuntimeException(Base.java:286) at com.tangosol.util.Base.ensureRuntimeException(Base.java:267) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:40) at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11) at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3) at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10) at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:30) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:428) at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:572) at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:666) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:369) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:314) at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:130) at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:286) at com.trgr.cobalt.infrastructure.coherenceinfra.CoherenceLifecycle.start(CoherenceLifecycle.java:93) at com.trgr.cobalt.infrastructure.coherenceinfra.CacheServletContextListener.contextInitialized(CacheServletContextListener.java:35) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.net.SocketException: An invalid argument was supplied at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Native Method) at java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksPlainDatagramSocketImpl.java:145) at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:310) at java.net.MulticastSocket.setInterface(MulticastSocket.java:467) at com.tangosol.coherence.component.net.socket.udpSocket.MulticastUdpSocket.instantiateDatagramSocket(MulticastUdpSocket.CDB:33) at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:12) at com.tangosol.coherence.component.net.Cluster$SocketManager.bindSockets(Cluster.CDB:128) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:36) ... 29 more coherencenode.lifecycle.startTimeout starting Coherence, try# 1` This actually continues on and does 5 tries but it fails each time. I have no clue what argument is invalid since I haven’t changed anything yet. Pulling to get the latest should have everything I need but I have continually had this issue. I was hoping that someone would know what is wrong or maybe have seen this issue before. **Some other quick facts**: Eclipse Luna 4.4.2, Tomcat 6.0.43, JDK 1.7.0_75
https://thehub.thomsonreuters.com/docs/DOC-831462) from start to end to set up Eclipse and then [this guide](
http://nsawiki.int.westgroup.com/wiki/index.php5/Java_developer_startup_instructions_(WestlawNext)) to set up Search. When I run my tomcat server, I get a Coherence error. I have tried many things to fix this including: pulling latest from TFS, cleaning workspace, resolving with ivy, building workspace, verifying all tomcat settings, etc. My last resort was starting from complete scratch again and even that did not change this issue. Below is my stack trace. `Mar 04, 2015 3:12:13 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_75\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Java\jdk1.8.0_25\jre\bin;C:\Program Files\Java\jdk1.8.0_25\bin;C:\Program Files (x86)\Oracle\Berkeley DB 11gR2 5.1.19\bin;C:\Program Files (x86)\Git\cmd;. Mar 04, 2015 3:12:13 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:WLNSearch' did not find a matching property. Mar 04, 2015 3:12:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Mar 04, 2015 3:12:16 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3302 ms Mar 04, 2015 3:12:16 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 04, 2015 3:12:16 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.43 Properties loaded via resources/local.properties System property instanceName not set for the instance name, local logging may not work. Logging initialized via resources/localLogging.xml` **This is where the coherence stuff starts** `2015-03-04 15:12:21,482 INFO [main] CoherenceInfra: Starting coherence services. 2015-03-04 15:12:22,038 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence 12.1.2.0.0 (thread=main, member=n/a): Loaded operational configuration from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/coherence-12.1.2.0.jar!/tangosol-coherence.xml" 2015-03-04 15:12:22,038 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence 12.1.2.0.0 (thread=main, member=n/a): Loaded operational overrides from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/coherenceInfra-25.2.0.jar!/infrastructure.tangosol.override.xml" 2015-03-04 15:12:22,048 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Loaded cache configuration from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/SearchSerialized-27.0.1.jar!/searchcache-coherence-cache-config.xml"; this document does not refer to any schema definition and has not been validated. 2015-03-04 15:12:22,378 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Loaded Reporter configuration from "jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WLNSearch/WEB-INF/lib/coherence-12.1.2.0.jar!/reports/report-group.xml" 2015-03-04 15:12:22,449 INFO [main] CoherenceInfra: Cache factory is class com.tangosol.net.ExtensibleConfigurableCacheFactory 2015-03-04 15:12:22,449 INFO [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Created cache factory com.tangosol.net.ExtensibleConfigurableCacheFactory 2015-03-04 15:12:22,609 WARN [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Disabling the service-guardian by setting a timeout of 0 has been deprecated. Instead, please configure a "service-failure-policy" of "logging" which will perform non-invasive monitoring of Coherence services. Configuring the Guardian to use the "logging" policy with a timeout of 60000ms` **This is where the Coherence errors begin.** `2015-03-04 15:12:52,170 ERROR [Logger@1752368054 12.1.2.0.0] Coherence: Oracle Coherence GE 12.1.2.0.0 (thread=main, member=n/a): Error while starting cluster: (Wrapped) java.net.SocketException: An invalid argument was supplied at com.tangosol.util.Base.ensureRuntimeException(Base.java:286) at com.tangosol.util.Base.ensureRuntimeException(Base.java:267) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:40) at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11) at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3) at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10) at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:30) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:428) at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:572) at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:666) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:369) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:314) at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:130) at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:286) at com.trgr.cobalt.infrastructure.coherenceinfra.CoherenceLifecycle.start(CoherenceLifecycle.java:93) at com.trgr.cobalt.infrastructure.coherenceinfra.CacheServletContextListener.contextInitialized(CacheServletContextListener.java:35) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.net.SocketException: An invalid argument was supplied at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Native Method) at java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksPlainDatagramSocketImpl.java:145) at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:310) at java.net.MulticastSocket.setInterface(MulticastSocket.java:467) at com.tangosol.coherence.component.net.socket.udpSocket.MulticastUdpSocket.instantiateDatagramSocket(MulticastUdpSocket.CDB:33) at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:12) at com.tangosol.coherence.component.net.Cluster$SocketManager.bindSockets(Cluster.CDB:128) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:36) ... 29 more` `2015-03-04 15:12:52,170 ERROR [main] CoherenceInfra: Timeout starting Coherence, try# 1 (Wrapped) java.net.SocketException: An invalid argument was supplied at com.tangosol.util.Base.ensureRuntimeException(Base.java:286) at com.tangosol.util.Base.ensureRuntimeException(Base.java:267) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:40) at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11) at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3) at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10) at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:30) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:428) at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:572) at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:666) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:369) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:314) at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:130) at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:286) at com.trgr.cobalt.infrastructure.coherenceinfra.CoherenceLifecycle.start(CoherenceLifecycle.java:93) at com.trgr.cobalt.infrastructure.coherenceinfra.CacheServletContextListener.contextInitialized(CacheServletContextListener.java:35) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.net.SocketException: An invalid argument was supplied at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Native Method) at java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksPlainDatagramSocketImpl.java:145) at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:310) at java.net.MulticastSocket.setInterface(MulticastSocket.java:467) at com.tangosol.coherence.component.net.socket.udpSocket.MulticastUdpSocket.instantiateDatagramSocket(MulticastUdpSocket.CDB:33) at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:12) at com.tangosol.coherence.component.net.Cluster$SocketManager.bindSockets(Cluster.CDB:128) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:36) ... 29 more 2015-03-04 15:12:52,244 ERROR [main] CoherenceInfra: 1425503572221ic0a863010000014be6a250fd7de129d3APPLICATIONCOHERENCEErrorLogWed Mar 04 15:12:52 CST 2015(Wrapped) java.net.SocketException: An invalid argument was supplied at com.tangosol.util.Base.ensureRuntimeException(Base.java:286) at com.tangosol.util.Base.ensureRuntimeException(Base.java:267) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:40) at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11) at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3) at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10) at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:30) at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2) at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:428) at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureService(ExtensibleConfigurableCacheFactory.java:572) at com.tangosol.net.ExtensibleConfigurableCacheFactory.startServices(ExtensibleConfigurableCacheFactory.java:666) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:369) at com.tangosol.net.DefaultCacheServer.startServicesInternal(DefaultCacheServer.java:314) at com.tangosol.net.DefaultCacheServer.startServices(DefaultCacheServer.java:130) at com.tangosol.net.DefaultCacheServer.start(DefaultCacheServer.java:286) at com.trgr.cobalt.infrastructure.coherenceinfra.CoherenceLifecycle.start(CoherenceLifecycle.java:93) at com.trgr.cobalt.infrastructure.coherenceinfra.CacheServletContextListener.contextInitialized(CacheServletContextListener.java:35) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.net.SocketException: An invalid argument was supplied at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Native Method) at java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksPlainDatagramSocketImpl.java:145) at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainDatagramSocketImpl.java:310) at java.net.MulticastSocket.setInterface(MulticastSocket.java:467) at com.tangosol.coherence.component.net.socket.udpSocket.MulticastUdpSocket.instantiateDatagramSocket(MulticastUdpSocket.CDB:33) at com.tangosol.coherence.component.net.socket.UdpSocket.open(UdpSocket.CDB:12) at com.tangosol.coherence.component.net.Cluster$SocketManager.bindSockets(Cluster.CDB:128) at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:36) ... 29 more coherencenode.lifecycle.startTimeout starting Coherence, try# 1` This actually continues on and does 5 tries but it fails each time. I have no clue what argument is invalid since I haven’t changed anything yet. Pulling to get the latest should have everything I need but I have continually had this issue. I was hoping that someone would know what is wrong or maybe have seen this issue before. **Some other quick facts**: Eclipse Luna 4.4.2, Tomcat 6.0.43, JDK 1.7.0_75
Tagged:
0
Best Answer
-
Glad this got you through. This is a Java/Coherence issue, if you upgrade to JDK8 it should go away. As to what's changed I can't say as I don't use any of your stack at all, I only have prior Coherence experience :-)0
Answers
-
Hi Kyle, you might be hitting a variant of this issue: [
https://bugs.openjdk.java.net/browse/JDK-8062249?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab][1] Try adding `-Djava.net.preferIPv4Stack=true ` to your startup options and see if that works for you. [1]:
https://bugs.openjdk.java.net/browse/JDK-8062249?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab1 -
This actually got me past my Coherence issues (though I have other problems with a failed autorwire injection). I tried adding to eclipse.ini. Didn't work. Added it as a command line parameter to launch eclipse. Didn't work. Added it in the Tomcat launch configuration. Worked. I would like to know why I now have to use this argument when it is not part of the normal setup. What changed and why do I need to use it. I would rather not if I don't have to.0
-
Upgrading to JDK8 fixed any coherence issue as you suggested. Since the guide says use Java 7 and everyone on my team already was, I was still curious though. Turns out Java 1.7.0_75 is a bad version for Coherence. I downgraded to Java 1.7.0_60 and it also worked.0
-
The problem with downgrading is that you're exchanging one set of bugs for another - granted they might be obscure and hard to hit but still. If your team doesn't have a hard dependency on JDK1.7.x, I definitely recommend moving off to 8.0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛