Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

java.lang.IllegalArgumentException: port out of range:-1	at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)	at java.net.InetSocketAddress.(InetSocketAddress.java:224)	at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:686)	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.openTransportConnection(ClientSessionFactoryImpl.java:1227)	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.createTransportConnection(ClientSessionFactoryImpl.java:1287)	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.establishNewConnection(ClientSessionFactoryImpl.java:1501)	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1050)	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:926)	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:239)	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:897)	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:726)	at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:170)	at org.jboss.as.test.integration.messaging.mgmt.JMSQueueManagementTestCase.addQueues(JMSQueueManagementTestCase.java:97)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)	at org.jboss.arquillian.junit.Arquillian$StatementLifecycleExecutor.invoke(Arquillian.java:459)	at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.execute(ClientBeforeAfterLifecycleEventExecuter.java:99)	at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.on(ClientBeforeAfterLifecycleEventExecuter.java:72)	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:108)	at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:241)	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)	at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)	at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)	at org.jboss.arquillian.junit.Arquillian$7$1.invoke(Arquillian.java:315)	at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.execute(ClientBeforeAfterLifecycleEventExecuter.java:99)	at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.on(ClientBeforeAfterLifecycleEventExecuter.java:72)	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.fireCustomLifecycle(EventTestRunnerAdaptor.java:159)	at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:311)	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)	at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)	at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)	at org.junit.runners.Suite.runChild(Suite.java:127)	at org.junit.runners.Suite.runChild(Suite.java:26)	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)