• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

update the values in xml is tightly coupled with record number in each xml.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic