Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H2GIS connection wrapper [Groovy editor] #25

Open
ebocher opened this issue Jan 26, 2020 · 1 comment
Open

H2GIS connection wrapper [Groovy editor] #25

ebocher opened this issue Jan 26, 2020 · 1 comment
Assignees

Comments

@ebocher
Copy link
Member

ebocher commented Jan 26, 2020

dbeaver 6.3.3

@GrabResolver(name='orbisgis', root='http://nexus-ng.orbisgis.org/repository/orbisgis/')
@Grab(group='org.orbisgis.orbisdata.datamanager', module='jdbc', version='1.0.1-SNAPSHOT')

import org.orbisgis.orbisdata.datamanager.jdbc.h2gis.H2GIS;


H2GIS h2gis = H2GIS.open(H2GIS_DEMO.connection);
logger.info h2gis.getTableNames()

returns

java.lang.ClassCastException: org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCConnectionImpl cannot be cast to org.h2gis.utilities.wrapper.ConnectionWrapper
	at org.orbisgis.orbisdata.datamanager.jdbc.h2gis.H2GIS.<init>(H2GIS.java:84)
	at org.orbisgis.orbisdata.datamanager.jdbc.h2gis.H2GIS.checkAndOpen(H2GIS.java:162)
	at org.orbisgis.orbisdata.datamanager.jdbc.h2gis.H2GIS.open(H2GIS.java:133)
	at org.orbisgis.orbisdata.datamanager.jdbc.h2gis.H2GIS$open.call(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
	at Script-1.run(Script-1.groovy:7)
	at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:570)
	at org.orbisgis.ui.editors.groovy.GroovyJob$GroovyRunnable.run(GroovyJob.java:133)
	at java.lang.Thread.run(Thread.java:748)

``
@ebocher
Copy link
Member Author

ebocher commented Feb 4, 2020

Remove the dbeaver connection wrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants