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

Solutions on the web

via GitHub by thopiekar
, 1 year ago
Error preparing query: Unknown column 'openhab_db' in 'where clause' Query: SELECT table_name FROM information_schema.tables WHERE table_type='BASE TABLE' AND table_schema=openhab_db AND NOT table_name=items Parameters: []
via GitHub by thopiekar
, 1 year ago
Error preparing query: Unknown column 'openhab_db' in 'where clause' Query: SELECT table_name FROM information_schema.tables WHERE table_type='BASE TABLE' AND table_schema=openhab_db AND NOT table_name=items Parameters: []
via Apache's JIRA Issue Tracker by Mario Vega, 2 years ago
com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'WHERE'. Query: select * from (select *, row_number() over( order by id desc ) as row from import2 where typ = ? ) a where row > 10 Parameters: [TYPE1]
via apache.org by Unknown author, 2 years ago
com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'WHERE'. Query: select * from (select *, row_number() over( order by id desc ) as row from import2 where typ = ? ) a where row > 10 Parameters: [TYPE1]
via apache.org by Unknown author, 2 years ago
com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'WHERE'. Query: select * from (select *, row_number() over( order by id desc ) as row from import2 where typ = ? ) a where row > 10 Parameters: [TYPE1]
via GitHub by alex3kov
, 2 years ago
Table/View 'ITEMS' does not exist. Query: SELECT itemid, itemname FROM items Parameters: []
java.sql.SQLException: Error preparing query: Unknown column 'openhab_db' in 'where clause' Query: SELECT table_name FROM information_schema.tables WHERE table_type='BASE TABLE' AND table_schema=openhab_db AND NOT table_name=items Parameters: []	at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:392)	at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:351)	at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:289)	at org.knowm.yank.Yank.queryBeanList(Yank.java:429)	at org.knowm.yank.Yank.queryBeanList(Yank.java:409)	at org.openhab.persistence.jdbc.db.JdbcBaseDAO.doGetItemTables(JdbcBaseDAO.java:307)	at org.openhab.persistence.jdbc.internal.JdbcMapper.getItemTables(JdbcMapper.java:110)	at org.openhab.persistence.jdbc.internal.JdbcMapper.formatTableNames(JdbcMapper.java:302)	at org.openhab.persistence.jdbc.internal.JdbcMapper.checkDBSchema(JdbcMapper.java:214)	at org.openhab.persistence.jdbc.internal.JdbcPersistenceService.updateConfig(JdbcPersistenceService.java:219)	at org.openhab.persistence.jdbc.internal.JdbcPersistenceService.activate(JdbcPersistenceService.java:61)	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.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:302)	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:113)	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:866)	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:833)	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:724)	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)	at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676)	at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339)	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360)	at org.apache.felix.scr.impl.Activator.access$000(Activator.java:53)	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260)	at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)	at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)	at org.eclipse.osgi.container.Module.publishEvent(Module.java:466)	at org.eclipse.osgi.container.Module.start(Module.java:457)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)