not having much luck with tools.build just been diagnosing another issue, basically I can't connect to a database when using my built uberjar, depstar and even jibbit seems to work, so not sure what is different specifically in tools.build for reference I am using postgres and metabase connection pool, I have traced it down to DataSources/pooledDataSource from javax.sql.DataSource, I have dumped a prn to check that the config between the jar and running locally match which they do, in case it was state related anyone have any pointers or ideas on what could be happening ? If it was an actual can't connect issue usually I would see a failed to initialize pool error, but the system just sits there waiting for something that never happens 😞
Perhaps it is possible to create a minimal public repro so the person looking at this has something to work with?
I will see may just have to jump back to depstar for the moment spent a bit to much time on this already, I know its likely my end perhaps if I go back to depstar I can build that repo another day
if you are seeing something hang, take a thread dump to see what's hanging
ctrl-\ if in proc, or kill -3 pid or jstack pid if out of proc
possible things to consider: • are the same set of classes compiled • are the same set of classes from dependent libs included
for both: jar tf the.jar | grep class | sort and compare working/non-working
are the approx sizes of working and non-working uberjar the same? if they are drastically different, probably not good
possibly also worth comparing the META-INF/MANIFEST.MF contents or other files in META-INF
okay great info @alexmiller got a path to explore now
Thanks for the help I got there in the end no more freezing, I think it was actually deps related got new issues now, where one jar file works and establishes the db connection a second one fails with void "com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>(java.lang.String[], java.util.List)" which is rather odd as the startup to each application is almost identical
slowly commenting out stuff in hope something shows up