On Sunday, September 22, 2013 3:20:15 AM UTC-4, Lukas Eder wrote:
 

> you don't mind further investigating this, could you add log4j to your 
> classpath and use this configuration file here:
> https://github.com/jOOQ/jOOQ/blob/master/jOOQ-test/src/log4j.xml
>

Okay, did that. I think the answer is that the code you pasted is not 
released in the 3.1 jars that I'm using. Here is the new error log. The 
javap output for the is2012 method bytecode shows no try/catch. I see 
that's the way the code was about 4 months ago.


10:10:49,485 ERROR [org.jooq.util.AbstractDatabase                    ] - 
Error while fetching sequences
org.jooq.exception.DataAccessException: SQL [select count(*) from 
[INFORMATION_SCHEMA].[SEQUENCES]]; Invalid object name 
'INFORMATION_SCHEMA.SEQUENCES'.
at org.jooq.impl.Utils.translate(Utils.java:1078)
at 
org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:462)
at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:302)
at org.jooq.impl.AbstractResultQuery.fetchLazy(AbstractResultQuery.java:339)
at org.jooq.impl.AbstractResultQuery.fetchLazy(AbstractResultQuery.java:330)
at org.jooq.impl.AbstractResultQuery.fetchOne(AbstractResultQuery.java:458)
at org.jooq.impl.AbstractResultQuery.fetchOne(AbstractResultQuery.java:426)
at org.jooq.impl.AbstractResultQuery.fetchOne(AbstractResultQuery.java:432)
at org.jooq.impl.SelectImpl.fetchOne(SelectImpl.java:1114)
at 
org.jooq.util.sqlserver.SQLServerDatabase.is2012(SQLServerDatabase.java:90)
at 
org.jooq.util.sqlserver.SQLServerDatabase.getSequences0(SQLServerDatabase.java:245)
at org.jooq.util.AbstractDatabase.getSequences(AbstractDatabase.java:347)
at org.jooq.util.JavaGenerator.generateSchema(JavaGenerator.java:1578)
at org.jooq.util.JavaGenerator.generate(JavaGenerator.java:183)
at org.jooq.util.JavaGenerator.generate(JavaGenerator.java:174)
at org.jooq.util.GenerationTool.run(GenerationTool.java:291)
at org.jooq.util.GenerationTool.main(GenerationTool.java:135)
at org.jooq.util.GenerationTool.main(GenerationTool.java:122)
Caused by: java.sql.SQLException: Invalid object name 
'INFORMATION_SCHEMA.SEQUENCES'.
at 
net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:372)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2893)

javap -c ... :

  private boolean is2012();
    Code:
       0: getstatic     #2                  // Field 
is2012:Ljava/lang/Boolean;
       3: ifnonnull     45
       6: aload_0
       7: invokevirtual #3                  // Method 
create:()Lorg/jooq/DSLContext;
      10: invokeinterface #4,  1            // InterfaceMethod 
org/jooq/DSLContext.selectCount:()Lorg/jooq/SelectSelectStep;
      15: iconst_1
      16: anewarray     #5                  // class org/jooq/TableLike
      19: dup
      20: iconst_0
      21: getstatic     #6                  // Field 
org/jooq/util/sqlserver/information_schema/Tables.SEQUENCES:Lorg/jooq/util/sqlserver/information_schema/tables/Sequences;
      24: aastore
      25: invokeinterface #7,  2            // InterfaceMethod 
org/jooq/SelectSelectStep.from:([Lorg/jooq/TableLike;)Lorg/jooq/SelectJoinStep;
      30: iconst_0
      31: getstatic     #8                  // Field 
java/lang/Boolean.TYPE:Ljava/lang/Class;
      34: invokeinterface #9,  3            // InterfaceMethod 
org/jooq/SelectJoinStep.fetchOne:(ILjava/lang/Class;)Ljava/lang/Object;
      39: checkcast     #10                 // class java/lang/Boolean
      42: putstatic     #2                  // Field 
is2012:Ljava/lang/Boolean;
      45: getstatic     #2                  // Field 
is2012:Ljava/lang/Boolean;
      48: invokevirtual #11                 // Method 
java/lang/Boolean.booleanValue:()Z
      51: ireturn

  protected org.jooq.DSLContext create0();


-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to