metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arunkumar Pillai <>
Subject Error while getting schema in for mysql
Date Wed, 06 Jul 2016 08:58:19 GMT

I'm trying to list all table names from a schema
I'm getting the following error

        String connectionURL =  "jdbc:mysql://localhost:3306";
        String userName = "user";
        String password = "pass";

         DataContext dataContext =
         Schema schemas = dataContext.getSchemaByName("exampledb");

Exception in thread "main" org.apache.metamodel.MetaModelException: Could
not retrieve table metadata for exampledb: Table name pattern can not be
NULL or empty.
at org.apache.metamodel.jdbc.JdbcUtils.wrapException(

It works fine for postgres
Thanks and Regards

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message