Emagent 100% (urgent)

Hi,
I have installed Oracle 10g R2 on linux 64-bit OS. It was working fine several months, but one day I saw agent unreachable warning. I tried to restart EM, but when I did that emagent uses 100% CPU for a few days now.
I found forums with similar problems , but I did not find the solution yes:(
I have these lines in my emagent.trc:
2007-02-13 10:38:38 Thread-1457506496 WARN command: Job Subsystem Timeout set at 600 seconds
2007-02-13 10:38:38 Thread-1457506496 WARN upload: Upload manager has no Failure script: disabled
2007-02-13 10:38:38 Thread-1457506496 WARN upload: Recovering left over xml files in upload directory
2007-02-13 10:38:38 Thread-1457506496 WARN upload: Recovered 20 left over xml files in upload directory
2007-02-13 10:38:38 Thread-1457506496 WARN metadata: Metric Disk_Path does not have any data columns
2007-02-13 10:38:38 Thread-1457506496 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
2007-02-13 10:39:08 Thread-1457506496 ERROR TargetManager: TIMEOUT when compute dynamic properties for target parama
2007-02-13 10:39:08 Thread-1457506496 ERROR TargetManager: target {parama, oracle_database} is broken: cannot compute dynamic properties in time.
2007-02-13 10:39:08 Thread-1457506496 WARN collector: the column name DiskActivityavwait in this condition does not exist
2007-02-13 10:39:08 Thread-1476856752 ERROR upload: Error in uploadXMLFiles. Trying again in 60.00 seconds.
ang these lines in emagent.log
2007-02-13 10:38:37 Thread-1457506496 Starting Agent 10.1.0.4.1 from /opt/oracle/product/10.2.0/db (00701)
2007-02-13 10:39:08 Thread-1457506496 target {parama, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
2007-02-13 10:39:08 Thread-1457506496 EMAgent started successfully (00702)

I did not make any changes to linux OS.
My agent stopped on the 09 Jan 2007.
I found that I have these errors repeating in emagentfetchlet.trc since the installation day:
2007-01-08 11:14:52,047 [main] WARN track.OracleInventory collectInventory.439 - ECM: The inventory location file for the special Windows NT case does not exist or is unreadable.
2007-01-09 11:14:50,853 [main] ERROR track.SnapshotFactory collectSnapshot.240 - ECM: Error occurred while collecting Operating System: java.lang.NullPointerException
     at oracle.sysman.comm.ecm.trk.hc.BaseCommonUtility.getSubComponents(BaseCommonUtility.java:184)
     at oracle.sysman.comm.ecm.trk.hc.BaseOS.<init>(BaseOS.java:41)
     at oracle.sysman.comm.ecm.trk.hc.BaseOSComponentType.createOSObject(BaseOSComponentType.java:51)
     at oracle.sysman.comm.ecm.trk.hc.BaseOSComponentType.getComponentFromXML(BaseOSComponentType.java:88)
     at oracle.sysman.emd.ecm.track.hc.OSComponentType.createLiveSnapshotComponent(OSComponentType.java:91)
     at oracle.sysman.emd.ecm.track.SnapshotFactory.collectSnapshot(SnapshotFactory.java:203)
     at oracle.sysman.emd.ecm.track.SnapshotFactory.main(SnapshotFactory.java:358)
Could this be connected with my problem?
also there are lots of these messages in emagent.trc, but they started after 3 months of the Oracle installation.
2007-01-09 14:00:26 Thread-1480993712 ERROR engine: [oracle_database,parama,Response] : nmeegd_GetMetricData failed : Metric execution timed out in 600 seconds
2007-01-09 14:15:24 Thread-1480993712 ERROR fetchlets.oslinetok: Metric execution timed out in 600 seconds
2007-01-09 14:15:26 Thread-1480993712 ERROR engine: [oracle_database,parama,Response] : nmeegd_GetMetricData failed : Metric execution timed out in 600 seconds
2007-01-09 14:30:24 Thread-1480993712 ERROR fetchlets.oslinetok: Metric execution timed out in 600 seconds
2007-01-09 14:30:26 Thread-1480993712 ERROR engine: [oracle_database,parama,Response] : nmeegd_GetMetricData failed : Metric execution timed out in 600 seconds
2007-01-09 14:45:24 Thread-1488980912 ERROR fetchlets.oslinetok: Metric execution timed out in 600 seconds
2007-01-09 14:45:26 Thread-1488980912 ERROR engine: [oracle_database,parama,Response] : nmeegd_GetMetricData failed : Metric execution timed out in 600 seconds

Similar Messages

  • How to Make the Payment Across the OUs

    Dear Experts,
    Our Client use to Purchase from one supplier called "X" and He has two OUs called "A" and "B" as per his business he is procuring Material from Supplier X for OU-A and OU-B since supplier is same he wants to Issues one consolidated check for the Invoices of OU-A and OU-B.
    My Client is asking for this requirement, I am not sure about it whether I can be possible or not so I told him as I will get back.
    Please let me know is it possible or not, If possible let me know what configuration is required in system
    Awaiting for your precious reply. It's 100% Urgent Please help me
    Thanks
    Bharath

    Hi,
    The note says we can not make a single check payment to two different operating units.
    If you want current requirement please raise the SR to oracle support.
    Regards,
    Raju.

  • I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    If you have a rescue email address on your account then you can use that - follow steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699

  • HT201317 I had 250 photos stored in photo stream but i restore them now they are just 150. I m missing about 100 photos those were very urgent please please help

    I had 250 photos stored in photo stream but i restore them now they are just 150. I m missing about 100 photos those were very urgent please please help

    Photo stream only keeps photos in iCloud for 30 days, even though up to 1000 photos will remain on your device until you delete them (such as by restoring your phone).  When you turned on photo stream again you only got back the photos added in the last 30 days as the others have already been removed.
    If the missing photos were still in your camera roll when you last backed up, restoring the backup should recover them.  (The backup includes camera roll photos but not photo stream photos.)

  • Emagent runs at 100% cpu after update to CPU #5225798

    good day all ...
    we updated to patch 5225798 today on our 10g2 system and now emagent runs at 100% cpu:
    top
    top - 16:30:39 up 50 days, 2:56, 6 users, load average: 1.00, 1.00, 1.00
    Tasks: 174 total, 2 running, 172 sleeping, 0 stopped, 0 zombie
    Cpu(s): 25.5% us, 24.5% sy, 0.0% ni, 49.9% id, 0.0% wa, 0.0% hi, 0.0% si
    Mem: 8143004k total, 2928336k used, 5214668k free, 250212k buffers
    Swap: 8514440k total, 3848k used, 8510592k free, 1948680k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    4144 oracle 25 0 73052 10m 5420 R 99.6 0.1 49:58.40 emagent
    the database is 10.2.0.1.0. any idea what is up with this? the emagent.log file has very little in it:
    cat emagent.log
    2006-08-31 15:40:29 Thread-16384 Starting Agent 10.1.0.4.1 from /opt/oracle/product/10gR2 (00701)
    2006-08-31 15:41:30 Thread-16384 target {prod, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2006-08-31 15:41:30 Thread-16384 EMAgent started successfully (00702)

    hmmm ... apparently no way to attache a file with oracle's forum software. anyway, here is the emagent.trc.
    cat emagent.trc
    2006-08-31 15:40:29 Thread-16384 WARN command: Job Subsystem Timeout set at 600 seconds
    2006-08-31 15:40:29 Thread-16384 WARN upload: Upload manager has no Failure script: disabled
    2006-08-31 15:40:29 Thread-16384 WARN upload: Recovering left over xml files in upload directory
    2006-08-31 15:40:29 Thread-16384 WARN upload: Recovered 57 left over xml files in upload directory
    2006-08-31 15:40:30 Thread-16384 WARN metadata: Metric Disk_Path does not have any data columns
    2006-08-31 15:40:30 Thread-16384 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2006-08-31 15:41:30 Thread-16384 ERROR TargetManager: TIMEOUT when compute dynamic properties for target prod
    2006-08-31 15:41:30 Thread-16384 ERROR TargetManager: target {prod, oracle_database} is broken: cannot compute dynamic properties in time.
    2006-08-31 15:41:30 Thread-16384 WARN collector: the column name DiskActivityavwait in this condition does not exist
    2006-08-31 15:41:30 Thread-180231 ERROR upload: Error in uploadXMLFiles. Trying again in 60.00 seconds.
    2006-09-01 03:42:38 Thread-29982743 ERROR scheduler: Collection oracle_emd:chinstrap.ornl.gov:3938:Response has not finished in 721 minutes (allowed: 720).
    Exiting agent.
    2006-09-01 03:42:38 Thread-29982743 ERROR : Signalled to Exit with status 3
    2006-09-01 03:42:38 Thread-16384 ERROR main: EMAgent abnormal terminating
    2006-09-01 03:42:59 Thread-16384 WARN command: Job Subsystem Timeout set at 600 seconds
    2006-09-01 03:42:59 Thread-16384 WARN upload: Upload manager has no Failure script: disabled
    2006-09-01 03:42:59 Thread-16384 WARN upload: Recovering left over xml files in upload directory
    2006-09-01 03:42:59 Thread-16384 WARN upload: Recovered 60 left over xml files in upload directory
    2006-09-01 03:42:59 Thread-16384 WARN metadata: Metric Disk_Path does not have any data columns
    2006-09-01 03:42:59 Thread-16384 WARN metadata: Metric osm_diskGroupPolicies does not have any data columns
    2006-09-01 03:44:00 Thread-16384 ERROR TargetManager: TIMEOUT when compute dynamic properties for target prod
    2006-09-01 03:44:00 Thread-16384 ERROR TargetManager: target {prod, oracle_database} is broken: cannot compute dynamic properties in time.
    2006-09-01 03:44:00 Thread-16384 WARN collector: the column name DiskActivityavwait in this condition does not exist
    2006-09-01 03:44:00 Thread-163845 ERROR upload: Error in uploadXMLFiles. Trying again in 60.00 seconds.

  • URGENT I just purchased like 100 new songs on itunes and it bought it and downloaded it onto my itunes but instead of syncing onto my phone(even after it had went through a full sync) it didnt show up on my phone. it showed up greyed out in my library?!

    Please help im desperate. i recently purchased like 100 new songs and it purchased downloaded and synced them to my library and phone, (or so it said), but when i checked my phone they had not been downloaded onto my phone. So i then checked my library and on it every song had been greyed out and had a tiny dotted circle next to each of them. i have tried everything and dont know what else to do. please help asap.

    Hi Kmoulton,
    Give this a try:
    1.     Hook your device up to the computer you sync with and open iTunes
    2.     Select the Music tab on your Device Profile screen and de-select all of the songs that should have sync'd but did not. If you have the Sync Entire Music Library option selected, deselect that.
    3.     Sync
    4.     Go back to the Music tab and re-select the items you want to have sync'd to your device
    5.     Sync again
    6.     See if that clears up the dotted circle issue and also syncs the songs to your device
    Cheers,
    GB

  • Urgent 100 days selective deletion & loading

    Hi All,
    we have some issues regarding our architecture, now we are going to stabilize our project can any one through light how to solve these issues.
    Changes done for Service ticket, 100 days after the Creation date is not reflected in BW
    If service ticket is changed after 100days from created date, the updated values is not available in BW at Report level for that particular service ticket.
    It will be applicable for following subject areas.
         1. Service Tickets ( 100 days )
         2. Complaints ( 100 days )
         3. Document flow analysis ( 45 days )
         4. SOM Analysis ( 100 days )
    Reasons for 100 days selective loading
    1. Volatile characteristics
    We have characteristics that will change to multiple values and many times in CRM side. E.g. Status , Accessory & category etc…..
    Why no delta load to cube
    If we do the delta load from ODS to cube we will get multiple records in cube level as characteristics have multiple values. ( which is the Out of the box functionality )
    Business requirement is to see only latest change to transaction, and not to have the history of transaction.
    Why do we do full load with deletion     
    To get only latest record in report we need to have full load of cube from ODS  after deletion of cube. If we run full load from ODS to cube, the load will happen from active data table where we will be having one record per transaction which is latest one.
    The old record in cube has to be deleted to avoid duplicate records in cube.
    Why 100 days
    If we do full load of all data from ODS to cube, it will take more time to load due to huge volume of records. Hence we load for a particular period ( ie life cycle time ).
    The life cycle of service ticket normally will be with in 100 days. If its in INPORCESS it gets to CLOSED status in 10 days and then the auto close program will set the status to COMPLETED after 90 days.
    Edited by: pavan kumar on Mar 25, 2008 12:19 PM
    Edited by: pavan kumar on Mar 25, 2008 12:28 PM
    Edited by: pavan kumar on Mar 27, 2008 3:07 PM

    Hi Pavan,
    This can be handled by a Design Change.
    All you need to do is make a copies of the InfoCube that you are using currently and make them as
    1. Cube 1 to hold Fiscal Year data for 2006.
    2. Cube 2 to hold Fiscal Year data for 2007.
    3. Cube 3 to hold Fiscal Year data for 2008.
    (If you want to hold 3 years data and can change it as per your requirement)
    Depending on your requirement you can also do this kind of physical partitioning for Calmonth or Calquarter also.
    When you are loading data, you have to load only 2006 data to Cube 1 and 2007 data to Cube 2 and 2008 data to Cube 3 by controlling the load in the InfoPackage selections.
    You can build a MultiProvider on top, if Business wants to report on the complete Data Set.
    You can do this kind of Physical Partitioning of data like the above example and use it as the case may be.
    Regards,
    Tom.

  • IWS 6.0 100% CPU utilization hanging- very urgent

    Hi,
    We are using Iplanet Web server 6.0 on windows-2000 SP2.The problem we are facing is after 10 concurrent users have logged in the CPU utilization shoots up to 100% and we have to reboot the systesm
    Our billing Application is affected very much due to this.
    Can anybody throw some light on this?
    Thanks in advance.

    Hi,
    Are you using any plugin with iWS. Please let me know your config file. Mean while please check tunning parameters of solaris for Performance bench mark.
    http://docs.iplanet.com/docs/manuals/enterprise/50/tuning/perf6.htm#17580
    Regards,
    Dakshin.

  • URGENT : "max no of 100 conversations exceeded".

    Hi.
    We developed RFC Java iView for SAP R/3.
    This iview connect SAP R/3 and call RFC FM in SAP R/3.
    We got connection error during high load.
    Error is
    "max no of 100 conversations exceeded".
    So, I checked SAPFactory properties using Visual Admin but I think we got enough conenction.
    Here is parameter.
    Expiration : Checked
    Connection Lifetime : 2
    Maximum Connections : 1000
    Cleanup Thread : 10
    Maximum Time to wait for connection : 4
    JEE System has below error :
    #1.5#000F203CC23C002000007C33000050550004145E2C7DAE0A#1148294628636#/System/Server#sap.com/irj#com.sap.portal.connectors.R3#rtst018#54224##hhie01_E01_4224450#rtst018#d888e6e0e97f11da9210000f203cc23c#SAPEngine_Application_Thread[impl:3]_7##0#0#Error#1#com.sap.portal.connectors.R3#Plain###(R3/BW) Failed to get connection. Please contact your admin. #
    #1.5#000F203CC23C00110000883F000050550004145E2C7DB625#1148294628638#/System/Server#sap.com/irj#com.sap.portal.connectors.R3#rtst417#54127####d9c05570e97f11dab72a000f203cc23c#SAPEngine_Application_Thread[impl:3]_16##0#0#Error#1#com.sap.portal.connectors.R3#Plain###(R3/BW) Failed to get connection. Please contact your admin. #
    How can fix this problem ?
    Regards, Arnold.

    Hi Arnold
    When The external RFC/CPIC server cannot open any additioanl connections than u get
    "ERROR max no of 100 conversations exceeded"
    By setting the environment variables CPIC_MAX_CONV the library can manage more parallel connections
    If an RFC server program registers with, for example, 100 threads at the R/3 gateway, 100 connections are initially kept in the server program. Every RFC running on this type of connection creates an additional entry in the connection list of the RFC server program. This means that, under full load, a maximum of 200 entries are possible.
    I have not sure idea about "Maximum Connections" properties for SAPFactory in Connect Service
    regards,
    kaushal

  • Urgent Need for creating 100 tables in Oracle.

    Hello All,
    I need to create 100 tables in oracle using a loop.
    Please suggest . Advance thanks for your efforts.
    ANto

    I am getting the foll error at run time when executing the procedure ..
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "ORAUSER.CREATE_100_TABLE", line 9
    ORA-06512: at line 1
    The script goes here ...
    create or replace procedure create_100_table
    is
    v_sql_string varchar2(200);
    begin
    for i in 1..100
    loop
    v_sql_string := 'create table ajames' || i || ' as select * from emp';
    execute immediate v_sql_string;
    end loop;
    end;
    ------------------------

  • URGENT - 100% CPU used after Upgrade

    Hi,
    I am posting again, as I am in urgent need or help.  My earlier post was not replied to, by anyone, so please check the post again for the details :-
    http://supportforums.blackberry.com/t5/BlackBerry-Torch/Battery-drain-with-High-CPU-v6-0-Bundle-3049...
    My phone does not last more than 2-3 hours, and is really warm near the battery due to the high CPU and battery drain.
    PLEASE HELP ASAP.

    Hello scindia, 
    Sorry to hear about your issue. 
    Have a look at this article regarding your BlackBerry® smartphone feeling warm. http://bbry.lv/LHujXX
    Have a look at this blog post which will provide you with some helpful hints on extending your battery life. 
    Extending BlackBerry 6 and BlackBerry 7 battery life
    Hope this helps. Have a good day. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • 100% cpu load on emagent.exe process

    i'm testing latest Oracle 10g (10.2.0.1) database on virtual machine (through vmware on winxp). i've got dualcore cpu, one core is dedicated for virtual OS. when i installed oracle database with default settings on it, everything worked fine. i tried to import my tablespaces, schemas and data into it and after a while, I noticed strange behavior. system was very very slow. i run sysinternals process explorer (something like extended task manager) and discovered, that there are 3 processes named "perl.exe" that are consuming all the cpu time constantly !! each one consumes cca 33% of cpu. all these procesess were created by process "emagent.exe" even if it wasn't accessed via explorer... can anybody give me a hand with this?

    i needed to get it working, so i installed it on another virtual machine, and it seems to work now...
    but back to this problem>
    i turned it on and the problem is still here, BUT now the database instance doesn't even start :< when i want to start it manualy through web em, it needs to provide host OS user name and password. when i enter it, it will say "wrong password" (the user account is in administrator and dba group and have right password). i also tried to create new user account (winxp) with roles administrator and dba, but it doesn't help.
    maybe it's newbie question, because i'm newbie as you could imagine ;>
    i uploaded emagent log files here:
    http://www.samopal.eu/emagent.log
    http://www.samopal.eu/emagent.trc
    if someone is interested.
    these are old ones. i wanted to to clear logs and try to reproduce this overload and see clearly what exactly is the cause, but because i don't know how to start this db up, i can't...
    i will try to do something with it tomorow and i will put there what am i discovered then...

  • Java consuming 100% cpu  urgent

    hi
    Users are complaining about application slowness to login when i check the top process in linux it shows java process consuming 99.9% of cpu.how can i check which process is consuming and what its doing exactly and how to prevent it
    with rgds
    shyam

    The recommended setting for JVM is as follows:
    - No more than 100 active users per JVM
    - No more than 1 active JVM per CPU (Ideally 1 JVM per 2 CPUs)
    - Make sure you have enough memory so your JVMs will be running without swapping
    For the max.heap memory, Oracle recommends:
    -ms128m -mx256m if you have 512 MB memory
    -ms256m -mx512m if you have more than 512 MB memory
    In addition, verify that you do the following in jserv.properties:
    - Make sure you have 'wrapper.bin.parameters=-DLONG_RUNNING_JVM=true'
    - Make sure you comment out 'wrapper.bin.parameters=-DCACHEMODE=LOCAL'

  • FUNCTION IS NOT WORKING WHEN RUN IN SRW.RUN_REPORT, URGENT

    Hi,
    I have a report. it has got 1 Query and 2 groups.
    Q1
    |
    |
    __G1__
    |F1 |
    |F2 |
    |F3 |
    |
    |
    |
    __G2__
    |Items|
    |Sales|
    | Qty|
    |Store|
    |Func4|
    |Func5|
    |Func6|
    The Query looks like above. Now In the report I have a 3 User parameters . For Each record in G2 the functions Func4,Func5 and Func6 adds the value to the user parameters at the report level.
    Now the Func1,Func2,Func3 takes the value of last 4 record for each item at each G1 Level and devides it by 4 and prints . As an example given below
    ITEMS-----SALES-------QTY-----------STORE
    10001-----10000-------200-------------100
    10001-----20000-------500-------------200
    10001-----15000-------350-------------175
    10001-----45000-------650-------------225
    10001-----50000-------700-------------300
    AVERAGE==>32500-------550-------------225 ==> Calculated by F1,F2,F3
    20001-----70000-------900-------------400
    20001-----30000-------600-------------350
    20001-----20000-------500-------------300
    20001-----25000-------450-------------275
    20001-----35000-------550-------------225
    20001-----65000-------800-------------400
    AVERAGE==>36250-------650-------------300 ==> Avg of last 4 records
    This report takes an parameter which is part of the Where condition of the Query Q1. If I run this report from the report builder and provide the value for the parameter then the report runs fine printing the exact values. If I run the report from another report(which I have to do, due to circumstances) using SRW.Run_Report and pass the parameter in the same command. The the function FUNC4, FUNC5, FUNC6 does not do the addition, as a result the Func1,Func2,Func3 returns 0. I dont know why this is happenning .
    This is very very URGENT, My project manager is on my head to finish it ASAP. Please help.
    Thanks
    Feroz

    Hi Toby and Danny,
    Thanks for the quick reply. I dont think I am having an interdependancy of the functions. Here is an sample what two functions do at each level
    Func6 =========> This function at group level G2
    begin
    -- To initialize the user parameter for each new item.
         If :CNT = 1 Then
              :Wk4_Pos_Qty := 0;
         End If;          
    -- to add the qty value to the user parameter for last 4 records. Uchange is the no of records for each item     
    If :CNT >= :UCHANGE - 3 Then
         :Wk4_Pos_Qty := :Wk4_Pos_Qty + :Qty;
    End If;     
    return 0;
    end;
    Func3 ======> this function at group level G1
    Begin
    -- if no of records are less than 4 then devide by the no of records or devide by 4.
         If :UChange < 4 Then
                   return((:Wk4_Pos_Qty + :Qty) / :UChange);
         Else
                   return((:Wk4_Pos_Qty + :Qty)/ 4);     
         End If;     
    end;
    Here Wk4_Pos_Qty is the User parameter created to hold the calue for the Um of last 4 records Qty.
    I tried to modify the Func3 so that it looks like this
    Func3
    begin
    srw.reference(:Wk4_Pos_Qty);
         If :UChange < 4 Then
                   return((:Wk4_Pos_Qty + :Qty) / :UChange);
         Else
                   return((:Wk4_Pos_Qty + :Qty)/ 4);     
         End If;     
    end;
    But it does not effect anything. I mean its the same. The Wk4_Pos_Qty returns 0 and Func3 returns 0.
    Any Suggestions .
    Thanks
    Feroz

  • Urgent help needed: how to display a list of records on the screen

    Hello,
    This is very urgent. Can anyone help me. I have posted this query of mine before also but still no reply came. My whole application is dependent on this problem. Actually I am developing an application for mobile phone using MIDP. I have a record store which contains personal details for users. I am able to add records to the record store. Now I want that these records can be edited. For this I want to display a list of firstname field on the screen (and not console) so that i can select a user to edit its details. I have written the code to read the records and individual fields and display it on the console but i want to display that list on screen. I tried list and array but it s giving some error.
    I am giving the code to read the records below. Please tell me how can I display it in a list on the screen.
    public void readStream(){
    try
    byte[] recData=new byte[50];
    String varname;
    ByteArrayInputStream strmBytes = new ByteArrayInputStream(recData);
    DataInputStream strmData=new DataInputStream(strmBytes);
    if (rsperdt.getNumRecords() > 0){
    ComparatorString comp=new ComparatorString();
    int i=1;
    RecordEnumeration re=rsperdt.enumerateRecords(null, comp, false);
    while(re.hasNextElement()){
    rsperdt.getRecord(re.nextRecordId(), recData,0);
    System.out.println("Record #" + i );
    varname = strmData.readUTF();
    System.out.println("Name #"+varname);
    System.out.println("---------------------------");
    i=i+1;
    strmBytes.reset();
    comp.compareStringClose();
    re.destroy();
    strmBytes.close();
    catch(Exception e){
    System.err.println("read Records class:read");
    }

    I could not understand ur point "post the code in tags". I am pasting the code below. Please help as my whole application is stuck due to this problem and I have a deadline of 7th oct.
    This midlet is getting called from some other midlet.
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.microedition.rms.*;
    import java.io.*;
    import java.util.*;
    public class frmread extends Form implements CommandListener
    static final String rec_store="db_per";
    private RecordStore rsperdt=null;
    private Vector vecname;
    private ChoiceGroup chname;
    private boolean flagSortByPriority = false, flagShowPriority = true;
    private Form fmmain;
    private Command cmdBack;
    private teledoc midlet;
    public frmread(String title, teledoc midlet)
    super(title);
    this.midlet = midlet;
    openRecStore();
    this.setCommandListener(this);
         chname = new ChoiceGroup("new", Choice.EXCLUSIVE);
         vecname = new Vector();
         cmdBack = new Command("Back", Command.BACK, 1);
    fmmain = new Form("Record Search");
         addCommand(cmdBack);
    setCommandListener(this);
    readStream();
         rebuildTodoList();
         closeRecStore();
    * Process events for this form only
    protected void rebuildTodoList()
    for(int j=chname.size(); j>0; j--)
         chname.delete(j-1);
         int priority;
         todoitem item;
         String text;
         StringBuffer sb;
         for (int j=0; j<vecname.size(); j++)
              item=(todoitem) vecname.elementAt(j);
              priority = item.getPriority();
              text = item.getText();
              sb = new StringBuffer((flagShowPriority ? (Integer.toString(priority) + "-"): ""));
              sb.append(text);
              chname.append(sb.toString(), null);
    public void commandAction(Command c, Displayable s)
    if (c == cmdBack){
    midlet.displayteledoc();
    public void readStream(){
    try
    byte[] recData=new byte[100];
    String varname;
    int varname1=0;
         ByteArrayInputStream strmBytes = new ByteArrayInputStream(recData);
         DataInputStream strmData=new DataInputStream(strmBytes);
         if (rsperdt.getNumRecords() > 0){
    ComparatorString comp=new ComparatorString();
    int i=1;
              int id = 1;
              vecname.removeAllElements();
              RecordEnumeration re=rsperdt.enumerateRecords(null, comp, false);
    while(re.hasNextElement()){
         rsperdt.getRecord(re.nextRecordId(), recData,0);
    System.out.println("Record #" + i );
    varname = strmData.readUTF();
                   varname1 = strmData.readInt();
                   id = re.nextRecordId();
                   System.out.println("Name #"+varname);
                   todoitem item = new todoitem(varname1, varname, id);
                   vecname.addElement(item);
                   System.out.println("---------------------------");
                   i=i+1;
    strmBytes.reset();
              comp.compareStringClose();
              re.destroy();
    strmBytes.close();
    catch(Exception e){
    System.err.println("read Records class:read");
    public void openRecStore(){
    try{
    rsperdt=RecordStore.openRecordStore("db_per",true);
    catch(RecordStoreException e){
    db(e.toString());
    public void closeRecStore(){
    try{
    rsperdt.closeRecordStore();
    catch(Exception e){
    db(e.toString());
    public void db(String str){
    System.err.println("Msg:" + str);
    class ComparatorString implements RecordComparator{
    private byte[] recData = new byte[20];
    private ByteArrayInputStream strmBytes = null;
    private DataInputStream strmDataType = null;
    public void compareStringClose(){
    try{
    if(strmBytes != null)
         strmBytes.close();
    if(strmDataType != null)
         strmDataType.close();
         catch (Exception e)
    public int compare(byte[] rec1, byte[] rec2)
         String str1, str2;
         try {
              int maxsize = Math.max(rec1.length, rec2.length);
              if (maxsize > recData.length)
              recData = new byte[maxsize];
                   strmBytes = new ByteArrayInputStream(rec1);
                   strmDataType = new DataInputStream(strmBytes);
                   str1=strmDataType.readUTF();
                   strmBytes = new ByteArrayInputStream(rec2);
                   strmDataType = new DataInputStream(strmBytes);
                   str2=strmDataType.readUTF();
                   int result=str1.compareTo(str2);
                   if (result == 0)
                   return RecordComparator.EQUIVALENT;
                   else if (result < 0)
                   return RecordComparator.PRECEDES;
                   else
                   return RecordComparator.FOLLOWS;
                   catch (Exception e)
                   return RecordComparator.EQUIVALENT;

Maybe you are looking for