Hi Megan,

Thanks for your message.

I think that's JooqExceptionTranslator from Spring Boot? I'm not aware of
any such NullPointerException. I'd need some help to reproduce this. Do you
have a minimal test case showing how a NullPointerException can be
reproduced?

Alternatively, what's the stack trace of the NPE? Does it lead to jOOQ
code, Spring Boot code, or your own?

Thanks,
Lukas

On Thu, Oct 15, 2020 at 9:44 PM Megan A <[email protected]> wrote:

> Thanks Lukas,
>
> I'm facing a new issue. Sometimes when SQL Server has a problem and an
> exception is throw I see an NPE.
>
> In JooqExceptionTranslator around line 80:
>
> private void handle(ExecuteContext context, SQLExceptionTranslator
> translator, SQLException exception) {
>      DataAccessException translated = translate(context, translator,
> exception);
>      if (exception.getNextException() == null) {
>          context.exception(translated);
>      }
>      else {
>          logger.error("Execution of SQL statement failed.", translated);
>      }
> }
>
>
> Translated = null and triggers an NPE, but exception is not and has a
> message. In this one case it's "Column names in each table must be unique.
> Column name 'last_modified_date' in table 'THE_TABLE_NAME' is specified
> more than once."
>
> Is this a known issue or something that I haven't configured?
>
> Thanks,
>
> Megan
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/CAB4ELO6upZ%2B83S5rb1J0nCAiYcjQoQVYyQA6UV5RMOG7%3D%2B493Q%40mail.gmail.com.

Reply via email to