I have a java process that I am started by Linux HA.

I have create an OCF script called "BillingProcessor".

That script calls an outside script (pm.pl) which starts the process.

The JAVA command is shown here.   Note, I am including the
"-Dsun.jnu.encoding=UTF-8" directive.

java -Dsun.jnu.encoding=UTF-8 -cp
../lib/RSCBillingProcessor.jar:../lib/RSCBillingCollector.jar:../lib/fw_
alarms.jar:../lib/fw_app.jar:../lib/fw_base.jar:../lib/fw_comm.jar:../li
b/fw_config.jar:../lib/fw_dom4j.jar:../lib/fw_file.jar:../lib/fw_jdom.ja
r:../lib/fw_metaobject.jar:../lib/fw_staged.jar:../lib/fw_stats.jar:../l
ib/fw_util.jar:../lib/fw_xmpp.jar:../lib/3rdPartyLib/log4j.jar:../lib/3r
dPartyLib/jdom.jar:../lib/3rdPartyLib/jcore.jar:../lib/3rdPartyLib/commo
ns-cli-1.0.jar:../lib/3rdPartyLib/snmp.jar:../config
com.prodeasystems.rsc.bc.processor.BillingProcApp BP ../config/BP.xml

When I start the process using my script alone, I see:
sun.jnu.encoding = UTF-8

When it is started from Heartbeat, I see:
sun.jnu.encoding = ANSI_X3.4-1968


I can't for the life of me figure out HOW heartbeat can be causing this,
but it is 100% consistent over 4 installations on 3 OS's (Redhat 5.4,
Centos 5.4 and Centos 6.0).  The process started from the command line
has encoding of UTF-8.  The process started from heartbeat has
ANSI_X3.4-1968.

Has anyone ever seen anything like this??

Michael Toler
(214) 278-1834 (Office)
(972) 816-7790 (mobile)
Senior Systems Integration Engineer
Prodea Systems.





This message is confidential to Prodea Systems, Inc unless otherwise indicated 
or apparent from its nature. This message is directed to the intended recipient 
only, who may be readily determined by the sender of this message and its 
contents. If the reader of this message is not the intended recipient, or an 
employee or agent responsible for delivering this message to the intended 
recipient:(a)any dissemination or copying of this message is strictly 
prohibited; and(b)immediately notify the sender by return message and destroy 
any copies of this message in any form(electronic, paper or otherwise) that you 
have.The delivery of this message and its information is neither intended to be 
nor constitutes a disclosure or waiver of any trade secrets, intellectual 
property, attorney work product, or attorney-client communications. The 
authority of the individual sending this message to legally bind Prodea Systems 
 
is neither apparent nor implied,and must be independently verified.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to