[BUG] Hibernate Tools plugin 0.6 doesn't work at all on #2226/linux

In the "Schema export/update", "Code generator" and Map Generator, I get
a stacktrace dialog:

Error message: Assertion failed: Access is allowed from event dispatch
thread only
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:91)
at com.intellij.openapi.f.b.a.show(a.java:29)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:700)
at com.intellij.openapi.ui.Messages.showDialog(Messages.java:63)
at com.intellij.openapi.ui.Messages.showMessageDialog(Messages.java:89)
at
com.mssra.hibernate.views.AbstractToolView$3.construct(AbstractToolView.java:139)
at com.mssra.hibernate.util.SwingWorker$2.run(SwingWorker.java:140)
at java.lang.Thread.run(Thread.java:534)

followed by a errordialog:

java.io.IOException: "<whateverjdki'musing>/jre/bin/java": not found.

I think there's a problem with the commandline generated: there are
quotes around the executable - this is what the log shows:

"/opt/sun-jdk-1.4.2.04/jre/bin/java"
-Dhibernate.connection.driver_class=org.hsql.jdbcDriver
-Dhibernate.connection.url=jdbc:HypersonicSQL:/tmp/httest
-Dhibernate.connection.username=sa -Dhibernate.connection.password=sa
-Dhibernate.dialect=net.sf.hibernate.dialect.HSQLDialect -cp
"/home/edwin/code/HibernateTools/classes":"/opt/sun-jdk-1.4.2.04/jre/lib/sunrsasign.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/jce.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/jsse.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/charsets.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/plugin.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/rt.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/ext/sunjce_provider.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/ext/dnsns.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/ext/ldapsec.jar":"/opt/sun-jdk-1.4.2.04/jre/lib/ext/localedata.jar":"/usr/share/hibernate/lib/hibernate2.jar":"/usr/share/hibernate/lib/odmg-3.0.jar":"/usr/share/hibernate/lib/jcs-1.0-dev.jar":"/usr/share/hibernate/lib/c3p0-0.8.4.5.jar":"/usr/share/hibernate/lib/cglib-full-2.0.1.jar":"/usr/share/hibernate/lib/oscache-2.0.jar":"/usr/share/hibernate/lib/proxool-0.8.3.jar":"/usr/share/hibernate/lib/swarmcache-1.0rc2.jar":"/usr/share/hibernate/lib/concurrent-1.3.2.jar":"/usr/share/hibernate/lib/ehcache-0.7.jar":"/usr/share/hibernate/lib/connector.jar":"/usr/
share/hsqldb-1.7.2/lib/hsqldb.jar"
net.sf.hibernate.tool.hbm2ddl.SchemaExport

And another stacktrace dialog:

Error message: Assertion failed: leaveModal() should be invoked in
event-dispatch thread
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:91)
at com.intellij.openapi.i.a.d.b(d.java:19)
at com.intellij.openapi.f.b.a.show(a.java:33)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:700)
at com.intellij.openapi.ui.Messages.showDialog(Messages.java:63)
at com.intellij.openapi.ui.Messages.showMessageDialog(Messages.java:89)
at
com.mssra.hibernate.views.AbstractToolView$3.construct(AbstractToolView.java:139)
at com.mssra.hibernate.util.SwingWorker$2.run(SwingWorker.java:140)
at java.lang.Thread.run(Thread.java:534)


The Reverse Generator cannot connect to any database I tried.
Pity - plugin looks very nice otherwise :)

Regards,
Edwin

Please sign in to leave a comment.