org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not load an entity: [org.jenkins.plugins.audit2db.internal.model.BuildDetailsImpl#localhost.localdomain/computer/(master)//test/7]; uncategorized SQLException for SQL [select builddetai0_.id as id78_1_, builddetai0_.duration as duration78_1_, builddetai0_.endDate as endDate78_1_, builddetai0_.fullName as fullName78_1_, builddetai0_.name as name78_1_, builddetai0_.node_url as node10_78_1_, builddetai0_.result as result78_1_, builddetai0_.startDate as startDate78_1_, builddetai0_.userId as userId78_1_, builddetai0_.userName as userName78_1_, buildnodei1_.url as url80_0_, buildnodei1_.description as descript2_80_0_, buildnodei1_.displayName as displayN3_80_0_, buildnodei1_.label as label80_0_, buildnodei1_.masterAddress as masterAd5_80_0_, buildnodei1_.masterHostName as masterHo6_80_0_, buildnodei1_.name as name80_0_ from JENKINS_BUILD_DETAILS builddetai0_ left outer join JENKINS_BUILD_NODE buildnodei1_ on builddetai0_.node_url=buildnodei1_.url where builddetai0_.id=?]; SQL state [3D000]; error code [1046]; No database selected; nested exception is java.sql.SQLException: No database selected

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

,
Expert tip

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

Solutions on the web

via Jenkins JIRA by Kevin Cheng, 1 year ago
Hibernate operation: could not load an entity: [org.jenkins.plugins.audit2db.internal.model.BuildDetailsImpl#localhost.localdomain/computer/(master)//test/7]; uncategorized SQLException for SQL [select builddetai0_.id as id78_1_, builddetai0_
via Jenkins JIRA by Kevin Cheng, 1 year ago
Hibernate operation: could not load an entity: [org.jenkins.plugins.audit2db.internal.model.BuildDetailsImpl#localhost.localdomain/computer/(master)//test/7]; uncategorized SQLException for SQL [select builddetai0_.id as id78_1_, builddetai0_
via novell.com by Unknown author, 1 year ago
Hibernate operation: could not execute update query; uncategorized SQLException for SQL [update SS_ChangeLogs set owningBinderKey=?, owningBinderId=? where (entityId in (? , ?)) and entityType=?]; SQL state [HY000]; error code [1206]; The total
via Stack Overflow by Harish Reddy
, 6 months ago
PreparedStatementCallback; uncategorized SQLException for SQL [INSERT INTO STUDENT(NAME , H_ADDERSSS , R_ADDERSSS , AGE , DATE_OF_JOINING) VALUES(:NAME , :H_ADDERSSS , :R_ADDERSSS , :AGE , TO_DATE (:DATE_OF_JOINING, 'DD/MM/YYYY HH24:MI:SS') ) ]; SQL state [99999]; error code [17004]; Invalid column type; nested exception is java.sql.SQLException: Invalid column type
via Stack Overflow by Krushna
, 1 year ago
CallableStatementCallback; uncategorized SQLException for SQL [{call VSC.GET_ALL_SYSTEM_USERS(?, ?, ?, ?)}]; SQL state [99999]; error code [17004]; Invalid column type: 1111; nested exception is java.sql.SQLException: Invalid column type: 1111
via Stack Overflow by user3652785
, 2 years ago
PreparedStatementCallback; uncategorized SQLException for SQL [insert into employees (employee_id,first_name,last_name,email,hire_date,job_id) values (?,?,?,?,?,?)]; SQL state [null]; error code [17004]; Invalid column type; nested exception is java.sql.SQLException: Invalid column type
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not load an entity: [org.jenkins.plugins.audit2db.internal.model.BuildDetailsImpl#localhost.localdomain/computer/(master)//test/7]; uncategorized SQLException for SQL [select builddetai0_.id as id78_1_, builddetai0_.duration as duration78_1_, builddetai0_.endDate as endDate78_1_, builddetai0_.fullName as fullName78_1_, builddetai0_.name as name78_1_, builddetai0_.node_url as node10_78_1_, builddetai0_.result as result78_1_, builddetai0_.startDate as startDate78_1_, builddetai0_.userId as userId78_1_, builddetai0_.userName as userName78_1_, buildnodei1_.url as url80_0_, buildnodei1_.description as descript2_80_0_, buildnodei1_.displayName as displayN3_80_0_, buildnodei1_.label as label80_0_, buildnodei1_.masterAddress as masterAd5_80_0_, buildnodei1_.masterHostName as masterHo6_80_0_, buildnodei1_.name as name80_0_ from JENKINS_BUILD_DETAILS builddetai0_ left outer join JENKINS_BUILD_NODE buildnodei1_ on builddetai0_.node_url=buildnodei1_.url where builddetai0_.id=?]; SQL state [3D000]; error code [1046]; No database selected; nested exception is java.sql.SQLException: No database selected
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3847)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3783)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2447)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2594)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2545)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1901)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2002)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1869)
at org.hibernate.loader.Loader.doQuery(Loader.java:718)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1953)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:86)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:76)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:496)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:477)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:227)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1080)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:997)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:990)
at org.springframework.orm.hibernate3.HibernateTemplate$1.doInHibernate(HibernateTemplate.java:519)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.get(HibernateTemplate.java:512)
at org.jenkins.plugins.audit2db.internal.data.BuildDetailsHibernateRepository.getBuildDetailsById(BuildDetailsHibernateRepository.java:121)
at org.jenkins.plugins.audit2db.internal.data.BuildDetailsHibernateRepository.getBuildDetailsForBuild(BuildDetailsHibernateRepository.java:307)
at org.jenkins.plugins.audit2db.internal.DbAuditPublisherImpl.perform(DbAuditPublisherImpl.java:108)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
at hudson.model.Run.execute(Run.java:1788)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)

Users with the same issue

Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
1741 times, 3 weeks ago
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
166 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.