question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to look at triggers

See original GitHub issue

I love this product, and it makes working with the database I am connecting to is Informix (unfortunately) better. I am using version 4.1.0 Enterprise Edition; June 26, 2017; © JKISS project, 2017. When I try to view the triggers tab of a table, I get the following error:

SQL Error [IX000]: Number of input values does not match number of question marks java.sql.SQLException: Number of input values does not match number of question marks

This is not a show stopper for me, but I did want to report it. It looks like there is wrong number of arguments in a prepared statement.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexiGhostcommented, Feb 25, 2021

Hello, I have a similar bug with my DB2 database, when I try to open the triggers ‘folder’, I have this error: Internal driver error.

here is the log file :

!ENTRY org.jkiss.dbeaver.model 4 0 2021-02-25 15:39:19.527
!MESSAGE 
!SUBENTRY 1 org.jkiss.dbeaver.model 4 0 2021-02-25 15:39:19.527
!MESSAGE 
!STACK 0
java.lang.NullPointerException
	at org.jkiss.dbeaver.ext.db2.model.DB2Trigger.<init>(DB2Trigger.java:90)
	at org.jkiss.dbeaver.ext.db2.model.cache.DB2TriggerCache.fetchObject(DB2TriggerCache.java:64)
	at org.jkiss.dbeaver.ext.db2.model.cache.DB2TriggerCache.fetchObject(DB2TriggerCache.java:1)
	at org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCObjectCache.loadObjects(JDBCObjectCache.java:117)
	at org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCObjectCache.getAllObjects(JDBCObjectCache.java:73)
	at org.jkiss.dbeaver.ext.db2.model.DB2Schema.getTriggers(DB2Schema.java:363)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode.extractPropertyValue(DBNDatabaseNode.java:872)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode.access$1(DBNDatabaseNode.java:853)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode$PropertyValueReader.run(DBNDatabaseNode.java:915)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode$PropertyValueReader.run(DBNDatabaseNode.java:1)
	at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:168)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode.loadTreeItems(DBNDatabaseNode.java:539)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode.loadChildren(DBNDatabaseNode.java:429)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode.getChildren(DBNDatabaseNode.java:205)
	at org.jkiss.dbeaver.model.navigator.DBNDatabaseNode.getChildren(DBNDatabaseNode.java:1)
	at org.jkiss.dbeaver.model.navigator.DBNUtils.getNodeChildrenFiltered(DBNUtils.java:70)
	at org.jkiss.dbeaver.ui.navigator.database.load.TreeLoadService.evaluate(TreeLoadService.java:49)
	at org.jkiss.dbeaver.ui.navigator.database.load.TreeLoadService.evaluate(TreeLoadService.java:1)
	at org.jkiss.dbeaver.ui.LoadingJob.run(LoadingJob.java:88)
	at org.jkiss.dbeaver.ui.LoadingJob.run(LoadingJob.java:72)
	at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

I don’t know if I should have started a new ticket, but this bug seems close enough to me.

0reactions
serge-ridercommented, Aug 7, 2017

This is a bug in DBeaver. Thanks for report.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot common issues with triggers - Power Automate
This error means that Power Automate tried multiple times to establish a connection to register the trigger and failed.
Read more >
Try catch in trigger not suppressing error - sql - Stack Overflow
I have a trigger and I want to surround the dml statements in the trigger by a try catch block so that any...
Read more >
Trigger keeps creating error - MariaDB Knowledge Base
I get the error: SQL Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB...
Read more >
Raising errors from inside triggers
At times, it is possible to receive an error in executing a trigger. The error may be due to execution of SQL statements...
Read more >
Error: "Unable to re-find Trigger XXX" - Rockton Software
Error: "Unable to re-find Trigger XXX" · Go to Auditor Setup Window | Troubleshooting tab | Rebuild| Process. · Check the boxes: Rebuild...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found