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.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_144] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_144] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_144] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_144] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.set(XmlConfiguration.java:479)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:411)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:815)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:775)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:423)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:298)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:248)[jetty-xml-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.xml.XmlConfiguration$configure.call(Unknown Source)[na:na] at org.akhikhl.gretty.JettyConfigurerImpl.applyContextConfigFile(JettyConfigurerImpl.groovy:55)[gretty-runner-jetty9-2.0.0.jar:na] at org.akhikhl.gretty.JettyConfigurer$applyContextConfigFile$10.call(Unknown Source)[na:na] at org.akhikhl.gretty.JettyServerConfigurer.configureWithBaseResource(JettyServerConfigurer.groovy:33)[gretty-runner-jetty-2.0.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_144] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_144] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_144] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_144] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1080)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1087)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)[groovy-2.4.11.jar:2.4.11] at groovy.lang.Closure.call(Closure.java:414)[groovy-2.4.11.jar:2.4.11] at groovy.lang.Closure.call(Closure.java:430)[groovy-2.4.11.jar:2.4.11] at groovy.lang.Closure$call$0.call(Unknown Source)[na:na] at org.akhikhl.gretty.WebInfConfigurationEx.unpack(WebInfConfigurationEx.groovy:46)[gretty-runner-jetty9-2.0.0.jar:na] at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72)[jetty-webapp-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:468)[jetty-webapp-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:504)[jetty-webapp-9.2.22.v20170606.jar:9.2.22.v20170606] at org.akhikhl.gretty.JettyWebAppContext.super$10$doStart(JettyWebAppContext.groovy)[gretty-runner-jetty9-2.0.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_144] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_144] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_144] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_144] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)[groovy-2.4.11.jar:2.4.11] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)[groovy-2.4.11.jar:2.4.11] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:132)[groovy-2.4.11.jar:2.4.11] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:152)[groovy-2.4.11.jar:2.4.11] at org.akhikhl.gretty.JettyWebAppContext.doStart(JettyWebAppContext.groovy:44)[gretty-runner-jetty9-2.0.0.jar:na] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[jetty-server-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)[jetty-server-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.server.Server.start(Server.java:387)[jetty-server-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[jetty-server-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.server.Server.doStart(Server.java:354)[jetty-server-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.eclipse.jetty.util.component.LifeCycle$start$0.call(Unknown Source)[jetty-util-9.2.22.v20170606.jar:9.2.22.v20170606] at org.akhikhl.gretty.JettyServerManager.startServer(JettyServerManager.groovy:45)[gretty-runner-jetty-2.0.0.jar:na] at org.akhikhl.gretty.ServerManager$startServer$0.call(Unknown Source)[gretty-runner-2.0.0.jar:na] at org.akhikhl.gretty.Runner.run(Runner.groovy:135)[gretty-runner-2.0.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_144] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_144] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_144] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_144] at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)[groovy-2.4.11.jar:2.4.11] at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:71)[groovy-2.4.11.jar:2.4.11] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)[groovy-2.4.11.jar:2.4.11] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)[groovy-2.4.11.jar:2.4.11] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)[groovy-2.4.11.jar:2.4.11] at org.akhikhl.gretty.Runner.main(Runner.groovy:44)[gretty-runner-2.0.0.jar:na]Caused by: java.lang.IllegalArgumentException: DataSource with name 'pgsource' already exists! at org.postgresql.ds.PGPoolingDataSource.setDataSourceName(PGPoolingDataSource.java:245)[postgresql-42.1.3.jar:42.1.3] ... 72 more