fix log4j config , add some code for debug in java side