Please initialize the log4j system properly

Hai to all wm users,

        When i have started My IS i am getting an error like this that is to initialize the  log4j properly, Waht is this log4j,what is it going to do and how we can initialize it...???  please rply me....

My server log is as follows…

Nov 17, 2010 10:33:54 AM com.webmethods.sc.config.ConfigurationLogger log
INFO: Out-of-band file changes will be monitored every ‘60000’ milliseconds

Tangosol Coherence Version 3.2.2/371

2010-11-17 10:33:55.398 Tangosol Coherence 3.2.2/371 (thread=webMethods Integration Server, member=n/a): Loaded operation
2010-11-17 10:33:55.429 Tangosol Coherence 3.2.2/371 (thread=webMethods Integration Server, member=n/a): Loaded license d


  • Tangosol Coherence is licensed by Tangosol, Inc.
  • Licensed for OEM production use to webMethods, Inc. in accordance with
  • the terms of the Tangosol Software License and Distribution Agreement:
  • Tangosol Coherence: Caching Edition
  • 30A800D50000010EF867CCAD62DD1026  Unlimited use in application
    
  •                                   "webMethods Fabric"
    
  • Copyright (c) 2000-2006 Tangosol, Inc.

2010-11-17 10:33:55.554 Tangosol Coherence CE 3.2.2/371 (thread=webMethods Integration Server, member=n/a): Loaded operat
2010-11-17 10:33:55.554 Tangosol Coherence CE 3.2.2/371 (thread=webMethods Integration Server, member=n/a): Loaded operat
2010-11-17 10:33:55.601 Tangosol Coherence CE 3.2.2/371 (thread=webMethods Integration Server, member=n/a): Loaded cache
log4j:WARN No appenders could be found for logger (org.apache.catalina.loader.WebappClassLoader).
log4j:WARN Please initialize the log4j system properly.
Error in recoverJoinTimers: java.lang.NullPointerException

log4j is pretty much industry standard by apache org, webmethods used the same for different audit logs say server logs, deployer logs, installer log, jdbc etc…

from the error it seems that log4j.jar file is missing from your installation image… which should be available in \softwareAG\Common\lib\ext directory…please check!

Hai dev thanks for your reply,

      But i find the log4j jar file in the directory,it is not missing.

hmmm error says log4j.jar was not initialised, did you have multiple versions of this jar in system… also cross check the log4j property file in config\caching directory…

Hai Dev,

      What do you mean by multiple versions of log4j , according to my knowledge i think there are no multiple versions of this file in my sytem, how can i fix this and i am getting another error as [COLOR="DarkOrange"]Error in recoverJoinTimers: java.lang.NullPointerException[/color]

I am using 7.1.1 version

Hi Dev/Rajesh,

I am facing the similar problem. Can you pls tell me the reason for this error and the solution to resolve this.

Thanks,
Venkat

hey…

did you checked the log4j.jar in IS/common/lib/ext/jars there… make sure you that you have the jar file there and your classpath is properly set in environment variable (through setenvironment.bat) …

Hey… I could see log4j.jar in the path C:\webMethods7\common\lib\ext.
Also I ran serEnv.bat located at C:\webMethods7\common\db\bin.
I got the following.

log after running the setEnv.bat initially

C:\webMethods7\common\db\bin>set CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext
QTJava.zip;C:\webMethods7\common\db;C:\webMethods7\common\db\lib\dbinstall.jar;C
:\webMethods7\common\db\lib\dbinstallBundle.jar;C:\webMethods7\common\db\lib\dbi
nstallBundle_ja.jar;C:\webMethods7\common\db\lib\dbinstallBundle_zh.jar;C:\webMe
thods7\common\db…\lib\ext\jargs.jar;C:\webMethods7\common\db…\lib\ext\log4j.
jar;C:\webMethods7\common\db…\lib\wm-g11nutils.jar;C:\webMethods7\common\db…
\lib\wm-caf-common.jar;C:\webMethods7\common\db…\lib\ext\sl53_cj36.jar;C:\webM
ethods7\common\db…\lib\ext\xercesImpl.jar;C:\webMethods7\jvm\win150\lib\tools.
jar;C:\webMethods7\jvm\win150\jre\lib\charsets.jar


After that I gave the command

C:\webMethods7\IntegrationServer\bin>set CLASSPATH = C:\webMethods7\common\lib\ext\log4j.jar

After that when i start the server I am getting the following error.

Error occurred during initialization of VM
Could not reserve enough space for object heap

Could you please advice if i am in the right direction.

Increase the heap size (minimum and maximum value for memory allocated by JVM to allocated to the process) in the setEnv.bat …

Hi,

My setEnv.bat looks like this.


:setStartHeap
if not “%DCI_START_HEAP%” == “” goto setMaxHeap
set DCI_START_HEAP=10M

:setMaxHeap
if not “%DCI_MAX_HEAP%” == “” goto setJavaOpts
set DCI_MAX_HEAP=512M

and my server.bat looks like this.


set JAVA_MIN_MEM=512M
set JAVA_MAX_MEM=1G
set JAVA_MAX_PERM_SIZE=128M

when I start the IS I am getting the below error.

Error occurred during initialization of VM
Could not reserve enough space for object heap

Could you please advise.

Hi Venkat,

Can you try the below settings in the server.bat file.

set JAVA_MIN_MEM=512M
set JAVA_MAX_MEM=512M

Regards,
Jeevan

Hey Jeevan,

The problem is resolved after restarting my system with the below settings in server.bat file.


set JAVA_MIN_MEM=512M
set JAVA_MAX_MEM=1G
set JAVA_MAX_PERM_SIZE=128M

Probably, a Max_mem of 512M also might work. will ty and let u know.
I think setting the class path is the key, and restarting the system after that would suffice.

Thanks,
Venkat

I experienced the same problem ages ago (though, I don’t recall seeing any NullPointerException in my logs), but I didn’t have to do anything in the end to resolve it. All I needed to do, was to wait until the server start up process is fully completed. I had to wait for about 5 minutes in the end… The issue may be memory-related?? Did you get any useful solution in the end??

Thanks,

Ibou

Try setting the MIN and MAX to the same size. This will avoid some issues I have seen.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.