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

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 :-)

Answers