java.lang.ClassCastException: com.basho.riakts.jdbc.Statement cannot be cast to java.sql.PreparedStatement


Solutions on the web

Solution icon of github
via GitHub by cvitter
, 9 months ago
com.basho.riakts.jdbc.Statement cannot be cast to java.sql.PreparedStatement

Stack trace

java.lang.ClassCastException: com.basho.riakts.jdbc.Statement cannot be cast to java.sql.PreparedStatement
	at com.basho.riakts.jdbc.Connection.prepareStatement(Connection.java:73)
	at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createStatement(JRJdbcQueryExecuter.java:384)
	at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:297)
	at com.jaspersoft.studio.data.jdbc.JDBCFieldsProvider.getFields(JDBCFieldsProvider.java:79)
	at com.jaspersoft.studio.data.jdbc.JDBCDataAdapterDescriptor.getFields(JDBCDataAdapterDescriptor.java:75)
	at com.jaspersoft.studio.data.ui.SimpleQueryWizardDataEditorComposite.readFields(SimpleQueryWizardDataEditorComposite.java:241)
	at com.jaspersoft.studio.wizards.datasource.StaticWizardDataSourcePage.run(StaticWizardDataSourcePage.java:380)
	at com.jaspersoft.studio.wizards.JSSWizardRunnablePage$1.run(JSSWizardRunnablePage.java:81)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.