Rangini Ramchander

Greenhorn
+ Follow
since Dec 22, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rangini Ramchander

how do display the total salary(down xyz goup, lmn group) in jsp?
eg: cash noncash
xyz 12 15
13 17
15 10
------------------
total: 40 42

lmn 10 20
21 30
5 7
----------------------
total: 35 57

for total i written the query select sum(cash)as cash sum(noncash) as noncash from table, it retuned the total list of values in action class, i am able to get the values in action class but in jsp i am not able to print the total values.
i am using struts, i am able to print the list of people in jsp, but how to disply the total value after the xyz group, lmn group.

the code i am using jsp page is;
bean:write name="payment" property="totalcashamt" /></td>
<bean:write name="payment" property="totalnoncashamt" />

Action class:

ArrayList totalcash=new ArrayList();
totalcash=paylist.getTotalcash(con, fname,lname,city);

DAO:
SELECT SUM(CASH_AMT) AS TOTALCASHAMT, SUM(NON_CASH_AMT) AS TOTALNONCASHAMT FROM DM_HD where firstname='' or lastname=''' city="" group by Entity_paid_src_id ORDER BY FRST_NM ASC
10 years ago
JSP
Please if any body have idea about design pattern in java
please provide me with examples i.e Factory Design pattern
what is the difference between HTMLAdaptors and HTTPConnectors?which is the best way to use?
15 years ago
java.lang.NullPointerException
at com.realsoftinc.admc.modules.osmonmodule.SunSolStub.GetPCpuTime(Unknown Source)
at com.realsoftinc.admc.modules.osmonmodule.OsMonModuleSunSol$ProcessMonitor.run(Unknown Source)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
**********testof admcprocxmllogfillvector******** com.realsoftinc.admc.lib.admin


I am facing the Nullpointer exception, pls give me solution exactly where it is throwing this exception.

public final class ProcessMonitor extends TimerTask{
//double CpuTime;
double CfgCpuTime;
String PrComd;
String x_Priority ="";
private static final double CpuTime = 0;

public void run(){

if (runMonitor) {

if(fname ==null)
fname="";
if(line==-1)
line =0;

String msgTrap;
String date = dateObj.getDateTimeString();
//For each Process in Cfg file, Test it
for (int i = 1; i < cfgVect.getProcessVectSize(); i++) {
//Get Process Command Cfg file
PrComd = gcf.solProcCfg.getCommand(i);

// Get the Maximum number of process
String process = gcf.solProcCfg.getProcess(i);

String x_cfgPriority = gcf.solProcCfg.getPriority(i);
if(x_cfgPriority.endsWith("1"))
x_Priority = AdmcTrapDestInfo.ADMC_INFO_ALARM;
else if(x_cfgPriority.endsWith("2"))
x_Priority = AdmcTrapDestInfo.ADMC_MINOR_ALARM;
else if(x_cfgPriority.endsWith("3"))
x_Priority = AdmcTrapDestInfo.ADMC_MAJOR_ALARM;
else if(x_cfgPriority.endsWith("4"))
x_Priority = AdmcTrapDestInfo.ADMC_CRITICAL_ALARM;

//Get the Percentage of the Cpu time from Configs
CfgCpuTime = gcf.solProcCfg.getCpuTime(i);

try {
//Get the Percentage of the Cpu time from System..
double CpuTime = SunSolStub.GetPCpuTime(process);
} catch (IOException e) {
// TODO Auto-generated catch block
System.out.println("Exception from CpuTime:");
e.printStackTrace();
}
15 years ago
i am facing the problem.

java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at com.realsoftinc.admc.adminagent.AdminAgent$Trapper.run(Unknown
Source)

we used the code:

public class Trapper extends Thread {

public void run() {
int i = 0;
AdmcTrapStruct trapObj;

while (true) {
System.out.println("****the Size of the Trap is:*****" +trapList.size());
synchronized (trapList) {
try {
trapList.wait(000);
if (trapList.isEmpty()) {
continue;
} else {
for (int j = 0; j < (trapList.size()); ++j) {
//Remove the Object from Vector, will get the
// reference
trapObj = (AdmcTrapStruct) trapList.remove(j);
//Call the SendDestination Thread class which
// will process the trapObj
SendDestination destins = new SendDestination(trapObj);
destins.start();
}
}
} catch (InterruptedException ie) {


modules add trap object to this list. Trapper class processes these
traps one by one. Since processing traps requires to go through complex filter
rules and send to destination, it takes time. Trapper vector may grow based on
number of traps originating. If it is continously growing


please give me solution for this problem.
15 years ago
Hello all,

i'm in a bit of hurry,

<Finfo>
<rec>1</rec>
<filterId>01</filterId>
<msgid>ADMCERR001</msgid>
<startTime>00</startTime>
<endTime>2359</endTime>
<filtDays>All</filtDays>
<notFiltCnt>10</notFiltCnt>
<filtCnt>30</filtCnt>
<custMesg>ADMCERR is not Filtered</custMesg>
<status>3</status>
</Finfo>
<Finfo>
<rec>2</rec>
<filterId>02</filterId>
<msgid>ADMCMSG001</msgid>
<startTime>0000</startTime>
<endTime>2359</endTime>
<filtDays>All</filtDays>
<notFiltCnt>10</notFiltCnt>
<filtCnt>30</filtCnt>
<custMesg>ADMCMSG is Filtered</custMesg>
<status>3</status>
</Finfo>
<!-- ***************************** -->
<!-- OS Module : File System Messages -->
<!-- ***************************** -->
<Finfo>
<rec>3</rec>
<filterId>03</filterId>
<msgid>ADMCFS001</msgid>
<startTime>0000</startTime>
<endTime>2359</endTime>
<filtDays>All</filtDays>
<notFiltCnt>10</notFiltCnt>
<filtCnt>30</filtCnt>
<custMesg>ADMCAVAYA is Filtered</custMesg>
<status>1</status>
</Finfo>
<Finfo>
<rec>4</rec>
<filterId>04</filterId>
<msgid>ADMCFS002</msgid>
<startTime>0000</startTime>
<endTime>2359</endTime>
<filtDays>All</filtDays>
<notFiltCnt>10</notFiltCnt>
<filtCnt>30</filtCnt>
<custMesg>ADMCAVAYA is Filtered</custMesg>
<status>1</status>
</Finfo>
<!-- ***************************** -->
<!-- OS Module : Performance Messages -->
<!-- ***************************** -->
<Finfo>
<rec>5</rec>
<filterId>05</filterId>
<msgid>ADMCPER001</msgid>
<startTime>0000</startTime>
<endTime>2359</endTime>
<filtDays>All</filtDays>
<notFiltCnt>10</notFiltCnt>
<filtCnt>30</filtCnt>
<custMesg>ADMCAVAYA is Filtered</custMesg>
<status>1</status>
</Finfo>
<Finfo>
<rec>6</rec>
<filterId>06</filterId>
<msgid>ADMCPER002</msgid>
<startTime>0000</startTime>
<endTime>2359</endTime>
<filtDays>All</filtDays>
<notFiltCnt>10</notFiltCnt>
<filtCnt>30</filtCnt>
<custMesg>ADMCAVAYA is Filtered</custMesg>
<status>1</status>
</Finfo>

I have 6 records

problem is:

The functionality to update the values in xml is tightly coupled with record number in each xml. If we comment one record it gives exception.

java.lang.ArrayIndexOutOfBoundsException: 6 >= 6
at java.util.Vector.elementAt(Vector.java:431)
at com.realsoftinc.admc.lib.commonlib.configStructures.GetCfgField$SolPerfCfg.getCritical(Unknown Source)
at com.realsoftinc.admc.modules.osmonmodule.OsMonModuleSunSol$PerfMonitor.run(Unknown Source)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)

please send me a code or solution for this issue.
please send a code to communication with javaapplication to servlets r_ramchander@yahoo.com [CODE]
15 years ago
please send a code to communication with javaapplication to servlets r_ramchander@yahoo.com [CODE]
15 years ago