Query error
Message:
net.sf.jasperreports.engine.JRException: General problem:
Error executing SQL statement for : null
Check username and password; is the DBMS active ?!
Level:
SEVERE
Stack Trace:
General problem: Error executing SQL statement for : null Check username and password; is the DBMS active ?!
com.jaspersoft.ireport.designer.data.fieldsproviders.SQLFieldsProvider.getFields(SQLFieldsProvider.java:172)
com.jaspersoft.ireport.designer.connection.JDBCConnection.readFields(JDBCConnection.java:472)
com.jaspersoft.ireport.designer.wizards.ConnectionSelectionWizardPanel.validate(ConnectionSelectionWizardPanel.java:146)
org.openide.WizardDescriptor$7.run(WizardDescriptor.java:1357)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
SELECT
proyecto."iddatosproyecto" AS proyecto_iddatosproyecto,
proyecto."montofinancimiento" AS proyecto_montofinancimiento,
proyecto."status" AS proyecto_status,
proyecto."titulo" AS proyecto_titulo,
proyecto."fechainicio" AS proyecto_fechainicio,
proyecto."fuentefinanciamiento" AS proyecto_fuentefinanciamiento
FROM
"public"."proyecto" proyecto
WHERE
proyecto."financiado" LIKE "SI" //Error here
ORDER BY
proyecto."montofinancimiento" ASC
0 Answers:
No answers yet
Have you tried to change the SQL statement..???
for example without LIKE condition..??? to understand is wrong the syntax ???
try :
proyecto."financiado" LIKE 'SI'
proyecto."financiado" LIKE "%SI%"
proyecto."financiado" = "SI"
bye Max