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

Samebug tips

  1. ,

    Check if your MongoDB is available.

  2. ,

    Check if your MariaDB is running and available.

Solutions on the web

via Stack Overflow by ankit arora
, 1 year ago
java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused.
via Stack Overflow by Vijay Kurhade
, 1 year ago
java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused.
via Stack Overflow by Robert Justin
, 8 months ago
java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused.
via apache.org by Unknown author, 2 years ago
java.net.ConnectException : Error connecting to server 59.96.37.195 on port 1527 with message Connection refused: connect.
via knowcoding.com by Unknown author, 2 years ago
User id length (0) is outside the range of 1 to 255.
via knowcoding.com by Unknown author, 2 years ago
User id length (0) is outside the range of 1 to 255.
java.net.ConnectException: Connection refused	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:589)	at java.net.Socket.connect(Socket.java:538)	at java.net.Socket.(Socket.java:434)	at java.net.Socket.(Socket.java:211)	at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:271)	at org.apache.derby.client.net.OpenSocketAction.run(Unknown Source)	at java.security.AccessController.doPrivileged(Native Method)	at org.apache.derby.client.net.NetAgent.(Unknown Source)	at org.apache.derby.client.net.NetConnection.newAgent_(Unknown Source)	at org.apache.derby.client.am.Connection.(Unknown Source)	at org.apache.derby.client.net.NetConnection.(Unknown Source)	at org.apache.derby.client.net.NetConnection40.(Unknown Source)	at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)	at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)	at java.sql.DriverManager.getConnection(DriverManager.java:664)	at java.sql.DriverManager.getConnection(DriverManager.java:208)	at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)	at com.jolbox.bonecp.BoneCP.(BoneCP.java:416)	at com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)	at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:483)	at org.datanucleus.store.rdbms.RDBMSStoreManager.(RDBMSStoreManager.java:296)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)	at org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)	at org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)	at org.datanucleus.NucleusContextHelper.createStoreManagerForProperties(NucleusContextHelper.java:133)	at org.datanucleus.PersistenceNucleusContextImpl.initialise(PersistenceNucleusContextImpl.java:420)	at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:821)	at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:338)	at org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:217)	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:498)	at javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)	at java.security.AccessController.doPrivileged(Native Method)	at javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)	at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)	at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)	at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)	at org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:397)	at org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:426)	at org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:320)	at org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:287)	at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76)	at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)	at org.apache.hadoop.hive.metastore.RawStoreProxy.(RawStoreProxy.java:55)	at org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:64)	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:516)	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:481)	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:547)	at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:370)	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.(RetryingHMSHandler.java:78)	at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)	at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5749)	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.(HiveMetaStoreClient.java:219)	at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.(SessionHiveMetaStoreClient.java:67)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)	at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1548)	at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.(RetryingMetaStoreClient.java:86)	at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:132)	at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104)	at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3080)	at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3108)	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:521)	at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:494)	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:709)	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:645)	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:498)	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)