java.sql.SQLException: No database selected

okky.kr | 4 months ago
  1. 0

    migrate hsqldb to mysql

    j-trac | 8 years ago | lukas_bernardi
    java.sql.SQLException: Cannot add or update a child row: a foreign key constraint fails (\`jtrac\`.\`history\`, CONSTRAINT \`FK373FE4949F34E6BD\` FOREIGN KEY (\`assigned\_to\`) REFERENCES \`users\` (\`id\`))
  2. 0

    No database selected in mysql from eclipse java

    Stack Overflow | 9 months ago | M.J.Watson
    java.sql.SQLException: No database selected
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Why Can't I connect to AWS RDS instance with Dropwizard?

    Stack Overflow | 7 months ago | mdw7326
    java.sql.SQLException: No database selected
  5. 0

    Error applying Permissions

    GitHub | 2 years ago | wezell
    com.dotmarketing.exception.DotDataException: You can't specify target table 'permission_reference' for update in FROM clause

  1. Kialandei 1 times, last 2 weeks ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLException

    No database selected

    at com.mysql.jdbc.SQLError.createSQLException()
  2. MySQL jdbc
    PreparedStatement.execute
    1. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
    2. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603)
    3. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535)
    4. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989)
    5. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2150)
    6. com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    7. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
    8. com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1362)
    8 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  4. com.ibatis.common
    PreparedStatementLogProxy.invoke
    1. com.ibatis.common.jdbc.logging.PreparedStatementLogProxy.invoke(PreparedStatementLogProxy.java:62)
    1 frame
  5. Unknown
    $Proxy21.execute
    1. $Proxy21.execute(Unknown Source)
    1 frame
  6. com.ibatis.sqlmap
    SqlMapClientImpl.update
    1. com.ibatis.sqlmap.engine.execution.SqlExecutor.executeUpdate(SqlExecutor.java:81)
    2. com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.sqlExecuteUpdate(GeneralStatement.java:200)
    3. com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:78)
    4. com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java:505)
    5. com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.update(SqlMapSessionImpl.java:90)
    6. com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.update(SqlMapClientImpl.java:67)
    6 frames
  7. com.gcaddy.dwr
    SystemService.updateUserStatsInfo
    1. com.gcaddy.dwr.service.SystemService.updateUserStatsInfo(SystemService.java:560)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  9. Direct Web Remoting
    DwrServlet.doPost
    1. org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:740)
    2. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:744)
    3. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:593)
    4. org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:90)
    5. org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120)
    6. org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141)
    6 frames
  10. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    2 frames
  11. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    8 frames
  12. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    3 frames
  13. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame