Hello Ravi,

You shouldn't leave the <inputSchema/> empty. Relevant sections about
what <inputSchema/> and <outputSchema/> are used for can be found
here:
http://www.jooq.org/manual/META/Configuration/
http://www.jooq.org/manual/META/AdvancedConfiguration/
http://www.jooq.org/manual/ADVANCED/SchemaMapping/

I have filed #1279 to improve the error message on this case:
https://sourceforge.net/apps/trac/jooq/ticket/1279

Cheers
Lukas

2012/4/8 Atharva <[email protected]>:
> When I run the GenerationTool I get following error. My jooq-
> config.xml contents are below the error.
>
> java.lang.NullPointerException
>        at
> org.jooq.util.AbstractDatabase.getOutputSchema(AbstractDatabase.java:
> 150)
>        at org.jooq.util.SchemaDefinition.getOutputName(SchemaDefinition.java:
> 58)
>        at
> org.jooq.util.DefaultGeneratorStrategy.getJavaClassName0(DefaultGeneratorStrategy.java:
> 160)
>        at
> org.jooq.util.DefaultGeneratorStrategy.getJavaClassName(DefaultGeneratorStrategy.java:
> 113)
>        at
> org.jooq.util.GeneratorStrategyWrapper.getJavaClassName(GeneratorStrategyWrapper.java:
> 219)
>        ...
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <configuration>
>  <!-- Configure the database connection here -->
>  <jdbc>
>    <driver>org.postgresql.Driver</driver>
>    <url>jdbc:postgresql://localhost:5432/sample?protocolVersion=2</
> url>
>    <user>dbuser</user>
>    <password></password>
>  </jdbc>
>
>  <generator>
>    <database>
>     <name>org.jooq.util.postgres.PostgresDatabase</name>
>     <includes>.*</includes>
>     <excludes></excludes>
>     <inputSchema></inputSchema>
>     <outputSchema>MySchema</outputSchema>
> ...
> </configuration>

Reply via email to