-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error because of using Log4J 1.X dependencies without adding them as direct dependency #334
Comments
Thanks for the find. Would it be viable for you to try the recent 2.3.0 release? |
Actually, I waited so long for |
I already know this is fixed now in your code, but unfortunately this private void initialize() {
if (exists()) {
return;
}
List<String> sql = new ArrayList<String>();
sql.add("CREATE TABLE IF NOT EXISTS " + METADATA_TABLENAME + " (");
sql.add(" namespace VARCHAR(255),");
sql.add(" keytype VARCHAR(255),");
sql.add(" keyvalue VARCHAR(255),");
sql.add(" value VARCHAR(255),"); // <-- HERE
sql.add(" PRIMARY KEY(namespace, keytype, keyvalue)");
sql.add(")");
try (
Connection connection = dataStore.getConnection();
PreparedStatement statement = connection.prepareStatement(ListUtils.join(System.lineSeparator(), sql));
) {
statement.execute();
} catch (SQLException ex) {
throw new RuntimeException("Error creating metadata table.", ex);
}
} So, I think you should reconsider applying hotfixes on |
Unfortunately, the original developers of PSL-VMI have moved on to other projects, so we have no plans to merge it in. I'm still curious if you have tried/considered version 2.3.0. If you can't use 2.3.0, then you may have to just build locally. |
Oh, dear! I was thinking any
Actually, I am planning to fork the repo and avoid the generation of the Thanks |
Yeah, we treat canaries similar to release candidates where the major/minor number indicate the release it is a candidate for and the patch number indicates the number of the release candidate. 2.3.0 is the most resent release and was put out about a month ago.
I can provide feedback, but probably won't provide any implementation for a while. |
Ok then, that will fix my issue.
I think I misled you by the word |
Hi,
My project uses Log4j 2 as logging implementation and this causes some Log4j 1.X dependencies to be overridden by Log4j2. But some classes in the
psl-core
module use these old dependencies. You should consider them as a direct dependency if you are using them directly in your code. Here is what I found on maven built jar:'org.linqs:psl-core:CANARY-2.3.1'
(not the current version of repo!):class:
org.linqs.psl.config.Config
:I noticed that these usages are removed from the repository. Could you consider merging a hotfix?
The text was updated successfully, but these errors were encountered: