Skip to content
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

it.unimi.dsi.Util.getLogger was removed and unable to call #3

Open
titsuki opened this issue Jun 9, 2019 · 1 comment · May be fixed by #5
Open

it.unimi.dsi.Util.getLogger was removed and unable to call #3

titsuki opened this issue Jun 9, 2019 · 1 comment · May be fixed by #5

Comments

@titsuki
Copy link

titsuki commented Jun 9, 2019

Hi,

I found that ca.ualberta.entitylinking.graph.DirectedGraph depends on es.yrbcn.graph.weighted.WeightedBVGraph and WeightedBVGraph has trouble with initializing a logger:

$ java -cp $CP ca.ualberta.entitylinking.graph.DirectedGraph el.config tmp/pageLinkGraph.aggregated 
Exception in thread "main" java.lang.NoSuchMethodError: it.unimi.dsi.Util.getLogger(Ljava/lang/Class;)Lorg/apache/log4j/Logger;
	at es.yrbcn.graph.weighted.WeightedBVGraph.<clinit>(WeightedBVGraph.java:71)
	at ca.ualberta.entitylinking.graph.WeightedGraph.writeGraph(WeightedGraph.java:62)
	at ca.ualberta.entitylinking.graph.DirectedGraph.storeGraph(DirectedGraph.java:92)
	at ca.ualberta.entitylinking.graph.DirectedGraph.main(DirectedGraph.java:243)

Cheers,

@titsuki
Copy link
Author

titsuki commented Jun 9, 2019

I also found that it.unimi.dsi.dsiutils 2.0.10 has Util.getLogger and DirectedGraph works.

So, write pom.xml as:

            <groupId>it.unimi.dsi</groupId>
            <artifactId>dsiutils</artifactId>
            <version>2.0.10</version>

is one of the possible workarounds for this issue.
However, IMHO, it seems better to bundle a Util.getLogger-replaced weightedPR.jar.

@titsuki titsuki linked a pull request Jun 16, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant