log4j:WARN No appenders could be found for logger / Script termination

2,130 views
Skip to first unread message

Randy

unread,
Nov 28, 2012, 12:56:20 PM11/28/12
to jw...@googlegroups.com
Hi,

I try to build a database on an Ubuntu system using the data machine.

Unfortunately, the script throws the following error during the execution:

log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.

But the "real" problem is not only the error message, but the terminated script  :-(

An text file was created, an an empty "output" folder.....

The text file contains:

"Date/Time","Total Memory","Free Memory","Message"
"2012.11.28 18:53:23","378535936","366679296","Not all necessary source files could be found in ./"


sudo java -Xmx5g -jar datamachine.jar english Contents Disambiguation_pages ./

The folder contains:

datamachine.jar (de.tudarmstadt.ukp.wikipedia.datamachine-0.9.2-jar-with-dependencies)

enwiki-latest-category.sql.gz
enwiki-latest-pagelinks.sql.gz
enwiki-latest-pages-articles.xml.bz2

Could anyone help please?

Thanks in advance :-)

Oliver Ferschke

unread,
Nov 29, 2012, 4:56:59 AM11/29/12
to jw...@googlegroups.com
Hi,
you can ignore the log4j warnings.
We really have to get rid of them soon.They seem to confuse JWPL users.
They just indicate that you haven't configured log4j and consequently won't get debug output.

The other error message indicates that you are missing one of the mandatory files.
As the JWPL website states, you need the xml dump, the categorylinks.sql and the pagelinks.sql.
They should all be in the source directory.

Regards,
Oliver

--
-------------------------------------------------------------------
Oliver Ferschke, M.A.
Doctoral Researcher
Ubiquitous Knowledge Processing Lab (UKP-TU DA)
FB 20 Computer Science Department
Technische Universität Darmstadt
Hochschulstr. 10, D-64289 Darmstadt, Germany
phone [+49] (0)6151 16-6227, fax -5455, room S2/02/B111
fers...@cs.tu-darmstadt.de
www.ukp.tu-darmstadt.de
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
-------------------------------------------------------------------

Von: jw...@googlegroups.com [jw...@googlegroups.com]" im Auftrag von "Randy [rwe...@uni-freiburg.de]
Gesendet: Mittwoch, 28. November 2012 18:56
An: jw...@googlegroups.com
Betreff: [jwpl-users] log4j:WARN No appenders could be found for logger / Script termination

Oliver Ferschke

unread,
Nov 29, 2012, 4:59:53 AM11/29/12
to jw...@googlegroups.com
I just saw that you have all the necessary files. Sorry, I overlooked that first.
Try using an absolute path to the source folder instead of a relative one. 
Also, check the integrity of the source files. If any of them are corrupted, they will likely cause problems at that point.

Regards,
Oliver

--
-------------------------------------------------------------------
Oliver Ferschke, M.A.
Doctoral Researcher
Ubiquitous Knowledge Processing Lab (UKP-TU DA)
FB 20 Computer Science Department
Technische Universität Darmstadt
Hochschulstr. 10, D-64289 Darmstadt, Germany
phone [+49] (0)6151 16-6227, fax -5455, room S2/02/B111
fers...@cs.tu-darmstadt.de
www.ukp.tu-darmstadt.de
Web Research at TU Darmstadt (WeRC) www.werc.tu-darmstadt.de
-------------------------------------------------------------------
Von: jw...@googlegroups.com [jw...@googlegroups.com]" im Auftrag von "Randy [rwe...@uni-freiburg.de]
Gesendet: Mittwoch, 28. November 2012 18:56
An: jw...@googlegroups.com
Betreff: [jwpl-users] log4j:WARN No appenders could be found for logger / Script termination

Randy

unread,
Nov 29, 2012, 8:25:56 AM11/29/12
to jw...@googlegroups.com
Just tried it again (also with the same set of files in German, with gz-compression and without) , but the "datamachine" seems still having some problems in finding some files…


root@Ubuntu-1204-precise-64-minimal ~/sandbox # pwd
/root/sandbox
root@Ubuntu-1204-precise-64-minimal ~/sandbox # ls -la
total 68218320
drwxr-xr-x  3 root root        4096 Nov 29 14:16 .
drwx------ 24 root root        4096 Nov 27 16:54 ..
-rwxrwxrwx  1 root root    10518523 Nov 27 15:10 datamachine.jar
-rwxrwxrwx  1 root root     3641124 Nov 17 08:41 dewiki-latest-category.sql.gz
-rwxrwxrwx  1 root root   751145663 Nov 17 08:28 dewiki-latest-pagelinks.sql.gz
-rwxrwxrwx  1 root root  3007061162 Nov 18 04:54 dewiki-latest-pages-articles.xml.bz2
-rwxrwxrwx  1 root root    80204107 Nov  1 18:03 enwiki-latest-category.sql
-rwxrwxrwx  1 root root 24254057137 Nov  1 15:01 enwiki-latest-pagelinks.sql
-rwxrwxrwx  1 root root 41748886641 Nov  2 12:02 enwiki-latest-pages-articles.xml
drwxrwxrwx  2 root root        4096 Nov 28 18:53 output
root@Ubuntu-1204-precise-64-minimal ~/sandbox # sudo java -Xmx5g -jar datamachine.jar english Contents Disambiguation_pages /root/sandbox/


Command: sudo java -Xmx5g -jar datamachine.jar english Contents Disambiguation_pages /root/sandbox/

Result (in a textfile):

"Date/Time","Total Memory","Free Memory","Message"
"2012.11.29 14:22:54","378535936","366679200","Not all necessary source files could be found in /root/sandbox/"


Thanks :-)

Torsten Zesch

unread,
Nov 29, 2012, 10:11:57 AM11/29/12
to jw...@googlegroups.com
You need the source file called PREFIX_categorylinks instead of PREFIX_category

-Torsten


2012/11/29 Randy <rwe...@uni-freiburg.de>

Randy

unread,
Nov 29, 2012, 2:29:18 PM11/29/12
to jw...@googlegroups.com
:-))

Thanks a lot, I overlooked this :-((

Guilherme Vieira C.

unread,
Jun 22, 2014, 1:07:23 PM6/22/14
to jw...@googlegroups.com
Hi, I'm getting the same warning.

About:


We really have to get rid of them soon.They seem to confuse JWPL users.
They just indicate that you haven't configured log4j and consequently won't get debug output.

I still get this warning today (2014). Maybe I did something wrong, what can I do to hide this messages?

Torsten Zesch

unread,
Jun 22, 2014, 4:34:12 PM6/22/14
to jw...@googlegroups.com
We just didn't found time to remove (the uncritical) warning.
Everything is fine.

If the warning bothers you enough that you want to invest time in
that, you need to play around with the logging properties.

-Torsten
> --
> You received this message because you are subscribed to the Google Groups
> "jwpl-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jwpl+uns...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Guilherme Vieira C.

unread,
Jun 24, 2014, 8:17:08 AM6/24/14
to jw...@googlegroups.com
I solved the problem just creating a file named "log4j.properties" with the content "log4j.rootLogger=OFF".

Thanks for your response and keep working on the project!

Shiri Dori-Hacohen

unread,
Jun 27, 2014, 3:11:51 PM6/27/14
to jw...@googlegroups.com
Guilherme, thanks for sharing this simple fix to the (noncritical) warning. Where did you place this file?
Thanks--Shiri

Guilherme Vieira C.

unread,
Jul 20, 2014, 4:08:35 PM7/20/14
to jw...@googlegroups.com
I apologize for being late. If you use maven you can put this file under the directory "/src/main/resources/". There are other places/methods that you can prefer, see here: http://stackoverflow.com/q/5081316 .

Shiri Dori-Hacohen

unread,
Aug 4, 2014, 10:28:28 AM8/4/14
to jw...@googlegroups.com
Thanks Guilherme! Simple & sweet, and it works. Appreciate it.

Oliver Ferschke

unread,
Aug 5, 2014, 10:54:02 AM8/5/14
to jw...@googlegroups.com
Hi all,
I just moved log4j properties to the src/main/resources folder in the current snapshot.
Along with some fixes I will probably deploy a new release some time soon.
This issue should be solved then.

-Oliver
Reply all
Reply to author
Forward
0 new messages