java.lang.reflect.invocationtargetexception during the intellij build

Answered

Hi,

I pulled up a Groovy app from 2015. It generates a CSV file, from an Oracle query that's specified in an external file and fed to the app.

 

The imports are

import com.opencsv.CSVWriter
import groovy.sql.Sql
import org.apache.commons.io.FilenameUtils
import org.codehaus.groovy.runtime.StackTraceUtils

import java.sql.ResultSet
import java.sql.SQLException

It's currently at JDK 11, but I've already tried 7 and 8.  I think the original was built with 7.

It uses groovy-3.0.9.  When trying to build - not run the app - it halts the build with the exception

 

java.lang.reflect.invocationtargetexception

 

Where should I look first?  Should I upgrade the Groovy version?

 

 

 

 

 

 

0
2 comments

Please share a sample project to reproduce the issue: https://uploads.jetbrains.com.

0

Ok, thanks Serge.  Give me a day or two.  The folders contain my agency name, so I'll need to create a new project with the same code.  Maybe that will resolve the problem without even trying.

 

 

0

Please sign in to leave a comment.