Retrieving Job Status from the AS/400 using JTOpen

Hi ,
I am using a program to retrieve job status (i.e. whether a job is in delay wait or message wait using the
if (job.getStatus.equalsIgnoreCase(job.ACTIVE_JOB_STATUS_WAIT_DELAY)
But however , even when the Job is in DLYW (Delay Wait) status on the AS400 , while retrieving it by System.out.println(job.getStatus()) , it says that the job is in OUTQ. or the job is ACTIVE, this is not the case , what could have possibly gone wrong ??
serverJobList.setUser("TDBCHP");
serverJobList.setName("TDC2OPRC);
Enumeration jobEnum=serverJobList.getJobs();
for (int j=0;jobEnum.hasMoreElements();j++){
currentJob = (Job) jobEnum.nextElement();
System.out.println(currentJob.getStatus());
} // for loop
This returns *OUTQ even when the Job is in DLYW status.
Any ideas ??

Hi Matt,
I replied to your question there:
[http://blogs.sun.com/jmxetc/entry/how_to_retrieve_remote_jvm#comments|http://blogs.sun.com/jmxetc/entry/how_to_retrieve_remote_jvm#comments]
Let me know if it doesn't answer your question.
Cheers,
-- daniel
[http://blogs.sun.com/jmxetc|http://blogs.sun.com/jmxetc]

Similar Messages

  • XML Report completes with error due to REP-271504897:  Unable to retrieve a string from the Report Builder message file.

    We are in the middle of testing our R12 Upgrade.  I am getting this error from the invoice XML-based report that we are using in R12. (based on log).  Only for a specific invoice number that this error is appearing.  The trace is not showing me anything.  I don't know how to proceed on how to debug where the error is coming from and how to fix this.  I found a patch 8339196 that shows exactly the same error number but however, I have to reproduce the error in another test instance before we apply the patch.  I created exactly the same order and interface to AR and it doesnt generate an error.  I even copied the order and interface to AR and it doesn't complete with error.  It is only for this particular invoice that is having an issue and I need to get the root cause as to why.  Please help.  I appreciate what you all can contribute to identify and fix our issue.  We have not faced this issue in R11i that we are maintaining right now for the same program which has been running for sometime.  However, after the upgrade for this particular data that the user has created, it is throwing this error REP-271504897.
    MSG-00100: DEBUG:  Get_Country_Description Return value:
    MSG-00100: DEBUG:  Get_Country_Description Return value:
    REP-0002: Unable to retrieve a string from the Report Builder message file.
    REP-271504897:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-271504897: MSG-00100: DEBUG:  BeforeReport_Trigger +
    MSG-00100: DEBUG:  AfterParam_Procs.Populate_Printing_Option
    MSG-00100: DEBUG:  AfterParam_Procs.Populate_Tax_Printing_Option
    MSG-00100: DEBUG:  BeforeReport_Trigger.Get_Message_Details
    MSG-00100: DEBUG:  BeforeReport_Trigger.Get_Org_Profile.
    MSG-00100: DEBUG:  Organization Id:  117
    MSG-00100: DEBUG:  BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG:  P_Choi
    Report Builder: Release 10.1.2.3.0 - Production on Tue Jul 23 09:56:46 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    Hi,
    Check on this note also : Purchasing Reports Fail When Changing Output To XML REP-0002 REP-271504897 REP-57054 (Doc ID 1452608.1)
    If you cant reproduce the issue on other instance, apply the patch on the test instance and verify all the funcionality related to the patch works OK. Then move the patch to production. Or you can clone the prod environment to test the patch.
    Regards,

  • REP-0002: Unable to retrieve a string from the Report Builder message file;

    Hi,
    I've a custom report in which i need to display a large string, of more than 4000 characters. To cater to this requirement i've written a formula column which displays string upto 4k characters and for a string of size beyond 4k i am calling a procedure which uses a temp table having a clob field.
    For a small string the report runs fine but whenever a large string requirement comes into the picture, said procedure gets triggered and i get REP-0002: Unable to retrieve a string from the Report Builder message file.
    OPP log for the same gives an output as under:
    Output type: PDF
    [9/21/10 2:17:12 PM] [UNEXPECTED] [388056:RT14415347] java.io.FileNotFoundException: /app/soft/test1udp/appsoft/inst/apps/e180r_erptest01/logs/appl/conc/out/o14415347.out (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    Report Builder 10g
    BI Publisher's version : 4.5.0
    RDBMS Version : 10.2.0.4.0
    Oracle Applications Version : 12.0.6
    Searched for the same on metalink and found Article ID 862644.1, other than applying patch and upgrading version of BI Publisher is there any other workaround to display a comma seperated string as long as 60k characters, If any please suggest.
    Thanks,
    Bhoomika

    Metalink <Note:1076529.6> extracts
    Problem Description
    When running a *.REP generated report file you get errors:
    REP-00002 Unable to retrieve string from message file
    REP-01439 Cannot compile program since this is a runtime report
    Running the same report using the *.RDF file is successful.
    You are running the report with a stored procedure,
    OR you are running against an Oracle instance other than the one developed on,
    Or, you recently upgraded your Oracle Server.
    Solution Description
    1) Check that the user running the report has execute permissions on any stored
    SQL procedures called. <Note:1049458.6>
    2) Run the report as an .RDF not an .REP , that is remove or rename the .REP
    version of the report. <Note:1012546.7>
    3) Compile the report against the same instance it is being run against.
    <Note:1071209.6> and <Note:1049620.6>

  • LabVIEW DSC: How to get alarm status from the area?

    Colleagues,
    I have, lets say, 50 Shared Variables where alarming enabled. Some of these variables assigned to area, so I can get status of the entire area or acknowledge an entire area of alarms (prior to version 8.x there was groups of the tags).
    Now I would like to get alarm status from the entire area. How can I do it?
    In version 6 I was able to wire tag group to Get Alarm Summary Status. Now, in version 8, Alarm Status.vi can be wired to the array of the variables, but not to area. Is it possible to get all variables from the area?
    regards,
    Andrey.

    I am not sure if I should be posting my problem under this particular topic. I am having trouble understanding acknowledge alarm vi and what this vi is supposed to do is not clear to me yet.
    I have around 300 shared variables in my project and I have created a particular vi just to view the alarms that may pop up during runs. I created a main menu and this alarm vi can be accessed upon a button click in the main menu. Users get alarm alert based on sound configuration. Then he can navigate to the alarm vi and acknowledge the alarm. The alarm vi only contains alarm and event display found under DSC module.
    The problem is everytime I click the alarm button in the main menu, it takes around 2 minutes for the alarm vi to update which is very annoying and unsatisfactory in the middle of run. I am not sure why it happens and I haven't got any response from support yet. These shared variables are managed under 10 different library files that are set up based on different loops of the process (flow, pressure and so on).
    Then I looked into three alarm examples that ship with DSC module. None of these examples use acknowledge alarm vi. I implemented another vi similar to alarm demo vi in that example - containing multicolumn listbox. I created acknowledge event containing acknowledge button and used the acknowledge alarm vi under this event. Read vi alarm is under timeout event.
    When I click the acknowledge button  as soon as I see the alarm in multicolumn listbox, nothing happens - the color of font does not get changed to purple neither any alarms get acknowledged. I tried to aknowledge alarm by variable name or  alarms or alarm area, it does not give me anything. What is this acknowledge alarm supposed to do? I tried to find examples everywhere in the web that uses this particular vi and haven't found one yet. 

  • Is it possible to retrieve deleted items from the Pages App please?

    IIs it possible to retrieve deleted items from the Pages App? Thanks

    From within the Pages app, no. If you have an iTunes or iCloud backup that would have contained the file, and you are backing up Pages, it could be received via a restore using that backup (this would wipe out any newer data however).

  • How to check my job name from the database...

    I have written one job scheduler which is as follows :
    SQL> ED
    Wrote file afiedt.buf
    1 DECLARE
    2 X NUMBER;
    3 JobNumber NUMBER;
    4 BEGIN
    5 SYS.DBMS_JOB.SUBMIT
    6 (
    7 job => X
    8 ,what => 'scott.SPLITSMS;'
    9 ,next_date => SYSDATE+1/1440
    10 ,interval => 'SYSDATE+1/1440 '
    11 ,no_parse => FALSE
    12 );
    13 JobNumber := to_char(X);
    14* END;
    15 /
    PL/SQL procedure successfully completed.
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not exist
    how to check my job name from the database...
    what is the command used to check the job_name ????
    and how can i ensure that my job scheduler is running properly...???
    please help ........my dear friends.....!

    957029 wrote:
    Now I want to check whether the job has been really created or not?
    so for that I have used the following command line:
    SQL> SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS';
    SELECT JOB_NAME FROM DBA_SCHEDULER_JOBS WHERE JOB_NAME = 'SCOTT.SPLITSMS'
    ERROR at line 1:
    ORA-00942: table or view does not existYou can use DBA_* views only if the User has been Granted a DBA Privilege.
    how to check my job name from the database...
    what is the command used to check the job_name ????You can use USER_JOBS view to check. But, is it not that you have just created the Job, so you must be knowing it?
    and how can i ensure that my job scheduler is running properly...???If USER_JOBS.FAILURES is Non Zero, that means the Job has encountered a problem that needs to be Investigated. Similarly, the LAST_DATE, LAST_SEC, NEXT_DAY, NEXT_SEC can be used to determine if the Job has been running successfully.
    if you are on 11g, you should consider using DBMS_SCHEDULER.

  • Conflict Resolver Sync Error - Unable to retrieve conflict information from the sync server

    So I have been using iTunes with my iPhone 3GS and now my iPhone 4 to sync with my Outlook for many years now  and it has been flawless.
    I recently bought a new iPad and started syncing it as well.
    Now as of late, after every 2 or 3 syncs, I get an error from iTunes displaying the Conflict Resolver and it says there are 42 sync conflicts.
    When I try use the Review Now button it shows up and the issues are between my iPhone and Outlook and are only related to contacts.
    As soon as I try to choose which record to resolve, the window immediately disappears without giving me a chance to finish and I get another dialog window with the error:
    Unable to retrieve conflict information from the sync server.
    Please try again the next time the conflict resolver window is presented.
    When I try to sync again it seems to be fine.  But then after I sync my iPad and theny iPhone again it shows up and it still won't let me resolve the conflicts.
    I have tried the following:
    1) Rest Sync History on all devices
    2) I have had iTunes replace all the contacts on the iPad from iTunes
    3) I have changed the conflict resolver to only notify when 50% of the data will be changed
    I have had no such luck.
    If I add a contact to Outlook or to my iPhone and then sync it seems to be syncing the new addtions correctly.  However, I cannot get this issue with this 42 conflicts resolved for some reason.  This has been going on for a month now.

    Here is the solution. 
    Rationale: You want to be able to have the dates on your items (notes, contacts) on your iphone to be the same as on outlook.  This will eliminate any sync conflicts.  You will also notice that if you modify something on the iphone and sync, you will lose the modification you made.
    Steps:
    1) In outlook, export the data (contacts, notes) to a CSV file
    2) Delete you notes/contacts in outlook
    3) Sync your iphone and select replace information on this iPhone (in iTunes)
    4) Now your contacts and notes will be empty on both your iPhone and Outlook
    5) Now import your contacts and notes from the CSV files back into outlook.  What this does is put the current date and time on every individual item
    6) Sync your iPhone to iTunes normally
    7) everything will work correctly now with no sync issues and no conflicts.
    Sherali

  • Retrieving bought music from the apple store to iTunes

    Does anybody know how to retrieve bought music from the apple store into your iTunes? I reinstalled iTunes and I can't seem to retrieve my music I bought from the store. Can anyone help?

    When you reinstalled, did you erase the entire drive? If not, your music should still be in the iTunes folder in your Documents -> Music folder. Take a look there. If it's there, you can get it back into the iTunes library listing by using the Add to Library command and selecting the iTunes Music folder.
    Hope this helps.

  • DPM encountered an error while reading from the recovery point used for recovery.

    Hi Guys I'm getting this error:
    DPM encountered an error while reading from the recovery point used for recovery. Either the recovery point no longer exists or, if you
    selected a share for recovery, the path to its contents is missing from the recovery point.  (265)
    The DPM Server is on Windows 2012 DPM is 2012R2 4.2.1273.0
    The Server being backed up is 2012 R2 with DPM Agent 4.2.1273.0
    The Server has 3 Data Volumes (C: Drive) and D and E its the D and E drive that i get this error if i try and recover data from DPM.  the C Drive is fine.  the D and E Drive are different
    in that 1 De-dupe is enabled and 2 the Shadow Copies for these Volumes are stored on separate Disks F and G respectively.
    I've removed the Protection from drives D and E and reinstated it but every recovery point created
    brings up the same error message. I'm not sure where to go next do I need to Protect the Disks that have the Shadow copies on also? Many thanks in advance Gordon.

    Hi,
    It seems you are in a configuration where the Windows 2012 based DPM server does not understand how to read Windows 2012 R2 Dedup data structure which is what the DPM replica volume is.
    See the DPM supported and unsupported scenarios
    here under the deduplication issues section. 
    We have a fix in DPM2012 R2 UR5 that will protect the Windows 2012 R2 dedup volume in a non-dedup state on the DPM Server, but unfortunately that will not allow previous recovery points to be read.
    KB3021791-Description of Update Rollup 5 for System Center 2012 R2 Data Protection Manager
    Backup job for dedupe-enabled volume on Windows 2012 R2 fails. For example, Data Protection Manager backup might fail for following setup:
    Data Protection Manager2012 R2 is installed on Windows Server 2012.
    Data Protection Manager is protecting a dedupe-enabled volume on Windows Server 2012 R2.
    This also applied to restores as the above was for D2D2T backup that may fail as it needs to read the recovery point to back it up to tape.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.

  • I am unable to login to my Apple ID for facetime even though I was able to make a download from the apple store using the same ID?

    I am unable to log in to my Apple ID for using facetime. However, I used the same ID and password for downloading an app from the app store.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • I can't retrieve my contacts from the cloud.  I don't have options listed on the instructions to "download"

    My phone died and I am trying to retrieve my contacts from the cloud. I can see them in my Cloud app on my new phone, but I don't have the option to download or "start" as the instructions indicate.  I don't have a phone to transfer to, so somehow need to retrieve them.

       Your post is kind of confusing. You have a new phone and don't have a phone to transfer to?? With the phone that died. If that phone was using Verizon Cloud to back up. Then when you activating Verizon Cloud on the new phone, one of the steps would ask, do you want to transfer from old phone to new phone?
    If you had nothing backed up with Verizon Cloud on the old phone there would be nothing to restore to the new phone.
    When activating Verizon Cloud on the new phone, only what is currently showing on the new phone will be able to be backed up, along with what is added in the future.

  • Cannot access conflicts unable to retrieve contact information from the sync server.

    ITunes error message Cannot access conflicts unable to retrieve contact information from the sync server.

    I got this advice from Gator5000e on Apple Supposrt Communities:
    I use Windows 7 so the path to find this file
    might be different under a different OS.
    Close iTunes. Search on the words "conflicts.synconflicts".
    I renamed it  to conflictsold.synconflicts the .synconflicts is the extension so you can't
    rename that.
    Then restarted Windows. As a test I made changes to a note in NOTES on each device. Then connected them one at a time to my computer which has iTunes 10 and Runs Windows 7, it worked !

  • Status sequence: exclude status from the middle of the min/max range

    Dear Experts!
    I have customized status schema and determined the status sequence. Etherything works well, but I need to exclude status from the range of statuses that user can set from the current status. For example, I have statuses:
    10 status1 min-20 max-40
    20 status2 min-10 max-30
    30 status3 min-20 max-40
    40 status4 min-40 max-40
    And I need to let user set from "status1" only statuses "status2" and "status4", but not "status3". How can I do it without changing positions of statuses? Hope for your help.
    Regards,
    Vladimir

    Thank you for your reply, Robert!
    But how exactly can I do this? Should I use an exception NOT_ALLOWED of the method BEFORE_CHANGE? When I was trying to debug this method, I could operate only with one status (from importing parameters) defined by the filter of BADi CRM_ORDER_STATUS. Hope for your reply.
    Regards,
    Vladimir

  • I have had a series of Macs.  They have been backed up with Time Machine. I am trying to restore TM backup files from the older Macs using my new MacBook Pro.  No go.  What do I do ?

    I have had a series of Macs.  They have been backed up with Time Machine. I am trying to restore TM backup files from the older Macs using my new MacBook Pro.  No go.  What do I do ?

    I am trying to restore TM backup files from the older Macs using my new MacBook Pro.  No go.
    Migration Assistant (Finder > Applications > Utilities > Migration Assistant) is the tool that you would use to restore backups from older Macs to another Mac.
    Details are here:   http://pondini.org/OSX/MigrateLion.html   The same info applies for Mavericks and Yosemite.   If you are saying that this is a "no go".....where are you getting stuck?  What error messages do you see?

  • Regarding reading the data from the files without using Stremas

    hai to all of u...
    here i have a problem where i have to read the data from the files without using any streams.
    please guide me how to do this one,if possible by giving with an example
    Thanks & Regard
    M.Ramakrishna

    Simply put, you can't.
    By why do you need to?

Maybe you are looking for

  • Photoshop Adobe 3.2 starter edition stopped working

    A couple of days ago my Adobe 3.2 starter edition quit working.  It asked me to re register then when I did I got an email reply saying that: The Adobe Starter edition is no longer available....What's up with that?

  • What is lightroom doing behind the scenes? Can't figure it out

    Hi, Not sure if this is a stupid question or not... I've prowled through some FAQ's and can't find an answer so I'll just post this and see if any of you have an answer. This might be because I'm using the trial version, but I can't see how Lightroom

  • Trim() function in C?

    quick question: I'm looking for a way to remove the leading spaces from a character array. I know I could right my own algorithm to do this, but I was just curious if there is a pre-defined function or something for this purpose. I know other languag

  • Can I format without my Snow Leopard disc?

    I live in Miami an I left my Snow Leopard discs at my apartment. I'm visiting my family in Boston, and my sister is considering buying a Mac. So I'm lending her my MacBook for two months. I'm only here for 2 more days, and I would like to format the

  • Boris Title roll problem!!!!

    Ja have the 1080i 50 8 bit sequence. I try to put the boris title roll on the timeline. Rolling title looks like the interlace problem. I've tried the video filters such as de interlace, shift fields, flicker filter.I;ve changed the sequence setting