Originally posted by Rangini Ramchander:
Hello all,
i'm in a bit of hurry,
[snip]
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.
Well, sorry about the late reply, but to me this Exception seems to be in your (or RealSoftInc's? custom code).
To say the least, this code seems to expect six records, which it then converts to an Array/Vector. When you comment out one record, you now have five records but the 'custom' code is expecting six records.
So maybe you shouldn't try to commect the record. Without knowing the business logic (possibly company confidential) sorrounding the 'six record requirement' I can't comment anything more, much less provide you with source code or a solution.
Thanks.
- m