Command issue
What command do I use in a JFrame to make the program stop?
That should work too. I suggested System.exit(), because, the OP did not mention when the app is to be stopped (is it when the JFrame is closed or when some event inside JFrame occurs).
If it is in an event, invoking dispose() on JFrame object will work but it does not guarantee termination of application if there is any other non-daemon thread is running.
Another advantage of using System.exit() is it allows us to specify the exit code for the program.
Similar Messages
-
Before I go into a lengthy explanation of the problem: Can anyone help with Double Command issues. This a specific keyboard question and they do not seem to know.
Thanks much.
EmileChoose Force Quit from the Apple menu and close Mail from there.
(103661) -
Oracle9i Host and Text_IO Command Issues
We are currently attempting to migrate from Forms6i to Oracle9i Forms. I understand that the current Host and Text_IO commands execute on the application server tier and NOT on the client. To counter the Host command issue the migration documentation suggests using the 'Client Host Command PJC' demo which can be incorporated into a form. However, the only Host command that seems to respond is the 'Notepad' command. I need to use other Host commands. Has anyone actually used the aforementioned 'Client Host PJC' in an Oracle9i form?
Also, I am aware of a utility being developed by Oracle called 'WebUtil' which is suppose to simplify this process. Any idea when this utility will be launched and made available to developers? Thanks in advance for your help.Hello:
Robin Zimmermann, [email protected] g feng and every one:
I want to integrate a third party report (it is brio's sqr), so i must run sqr from form with host command.
first i install 9i as on window 2000,sqr .manually run sqr on 2000,then call sqr from form
with host command ,it is just work well.then i use web.showdocument push the report to end-user,my goal has get
But when i do the same on aix 5l,host command seems not response .i can only run this command:
echo hello > /tmp/hello.log.
other system command ,such as " chmod 777 /tmp/hello.log " can't execute ,who can help me or some other ideas?
lixz -
How to Identify Last Command Issued by user??
Hi Everybody,
I need to create a form in which the current state of the form depends upon the last command issued by the user.
Suppose if user clicks 'delete record' or 'insert record' or 'enter-query' or something else.
So, how to identify the last event executed by the user.
Any suggestions...
Thx in advance,
RajYou can write something into a Form parameter in the POST-INSERT/UPDATE/Query triggers.
Then you can check the value of this parameter when needed. -
ACS 5 and IOS command issued records
on ACS Ver5.2.0.26.11, where can i find the records of IOS command issued from a router?
thanks,
HanWell, it depends.
If you're sending accounting messages for commands from your router, it would either be in the report with Radius Accounting or TACACS+ Accounting.
If you're performing command authorization it would be in the report for TACACS+ Authorization.
If you provide a 'show run | inc aaa' it should be enough detail to determine what report you need to look at. -
Database in noarchivelog mode, truncate command issued
Database in noarchivelog mode, truncate command has been issued how to restore the table?
FACTS:-
1. DB In noarchivelog Mode
2. Cannot enable flash back mode because of 1. above
3. No exports available
4. No backup's Available.
Any thoughts ?Oracle Support/ Professional Services has a Data Unloader (DUL) and ORA-00600 has DUDE, both of which may be able to extract information from data files that are corrupted, where the control files are lost, etc.
These are not, however, cheap utilities. Unless the data itself is really valuable, it is generally not a viable option.
Justin -
Admin Commands issue on Windows Web Server 2008 R2 - 64Bit
Hi,
I have tried exactly same process on FMS3.5 Installed on Centos and it worked perfectly.
But not working in case of Windows Web Server 2008 R2 - 64Bit.
Here is what i am trying to do -
Basically i want to extract live streams list and display them in HTML as ordered list on another server them FMS.
What i did in the case of FMS on Centos server -
I installed Apache and PHP on this server and created a PHP file with following text in it. -
abc.php
$xml = simplexml_load_file('http://<fms-server-ip>:1111/admin/getLiveStreams?auser=admin&apswd=password&appInst=live','Simple XMLElement', LIBXML_NOCDATA);
foreach($xml->children() as $child)
foreach($child->children() as $child2)
echo $child2 . ",";
and in hosting server where i want to display the list i entered following code in PHP file -
$homepage = file_get_contents('http://<fms-server-ip>/abc.php');
echo $homepage;
i got comma seperated values easily and everything is loading fast without any issue.
Now problem occured with Windows Web Server 2008 R2 - 64Bit.
I installed FMS, Apache and PHP in this server also, did evrything in the same way like in centos.
FMS, APache and PHP files are working fine in this.
But only problem occured when in abc.php i use
$xml = simplexml_load_file('http://<fms-server-ip>:1111/admin/getLiveStreams?auser=admin&apswd=password&appInst=live','Simple XMLElement', LIBXML_NOCDATA);
After this file do not loads and takes longer time to load and after some time a blank page appears. It works fine with a local XML file.
i am able to see the XML file by opening it directly in browser, but somehow this is not working with simplexml_load_file. I dont think this is PHP issue because with local XML file it works fine. May be some port issue or something else. But i am able to view XML file directly in browser from another computers as well.
Kindly help, is there some other configurations should be changed in case of windows version. I have allowed admin commands as usual before doing all this. Ports 1111,80,1935 are also opened.
Please guideHi,
Yes in Browser, the response is perfect. The only issue is in Calling inside in any file, i even tried Javascript's XML dom to load it, but same result, the file is just loading and never loads completely. I also tried using an SWF file with AS3 code to load XML inside as3 and send the result to any JS function.
The output comes using trace in as3, but when it comes to browser, the same loading happends and result never loads. -
Hi Experts,
This is a query regarding OS command used in receiver communication channel.
I have used OS command to copy a file.when I run the command on rsbdcos0,in this program its showing sucess
But its showing an error at communication channel.
Is there any authorization issue with that, or some rights needs to be provide to PIuser?
Thanks
ShivanjaliGuess you are aware that OS Command wont work if your are using FTP.
It work for NFS.
In case of any error in OS command, the normal behaviour is that no error is thrown and the executing continues skipping the error.
Thanks
Prasanna
Edited by: Prasanna Shanmugasundaram on May 12, 2010 6:26 PM -
Stored Procedure Command issues in CS3
I've been having a problem using some stored procedures in
CS3 which had previously worked with no issue in 8.0.2. I'm running
CS3 on a Mac for ASP & SQL Server 2000.
The input parameters for the stored procedure are...
Fieldname: CategoryID (int) length: 4
Fieldname: Men (bit) length: 1
Fieldname: Women(bit) length:1
I have no problem using the Command function to call this
stored procedure in DW 8.0.2, but in CS3, while I am able to TEST
the recordset successfully within the Command dialog, when I press
OK and then attempt to view the field list in the Bindings panel, I
get this error...
[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure
'spCategoryProduct' expects parameter '@Men', which was not
supplied.
When I open up the command settings dialog again, Default
Values and the Runtime Values I entered for the Men and Women bit
parameter are blank. The only Default Value and Runtime Value
retained is for the field CategoryID.
CS3 is able to call other stored procedures which do not
contain a Bit field type without issue, so I'm curious if this is
the culprit.
I have DW8.0.2 still installed on the same system, and have
been able to call this stored procedure in this older version,
without any problems.
Please help!Holy thread-resurrection Batman!
Please open a new dicussion after reading the bi4.0 data access guide: http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp5_data_acs_en.pdf
Also, please specify which SP and Patch you are using.
Regards,
H -
hi,
i am using forms 6i and OS is windows XP. i have generated a file using text_io and file is generated successfully. the file is then processed and needs to be deleted. i am trying to use host command to delete it by using the file name which was genrated earlier but the file deletion does not take place.
file_name := 'abc.txt';
host('del C:\'||file_name);
but when hardcoding and running the following command it deletes
host('del C:\abc.txt');
kindly suggest what can be done.
thanks in advance
Regards,
RBLhi,
@francis: i have checked the output and tested it and there seems no issue. i did think of the same possiblity but it is having an issue somewhere.
@ahmmad : i did check that out too. same output.
weird issue and sure that that the name of the file must be getting corruptted or disotred during the process.
regards,
RBL -
i have a table temp1 and temp both at different database.both have same structure.
if i fire sqlplus d/e@f then i connect to one database
and sqlplus a/b@c then i connect to other database.
now i connected to sqlplus a/b@c.
i fired the command :
copy from d/e@f to a/b@c insert temp1 using select * from temp;
this is giving me error:
Array fetch/bind size is 15. (arraysize is 15)
Will commit when done. (copycommit is 0)
Maximum long size is 80. (long is 80)
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
ThanksI don't see any issue with your statement. Please check the tns configuration.
Hope this link will help you: http://ora-12154.ora-code.com/ -
Command issue in smartform main window table footer
Hello Experts ,
I got an issue , that really puzzled me ! hope you could help .
In my smart form main window I have a loop node inside loop node is a table , and there is a footer in this table node.
in footer event , I only set check box 'at page Break' , and in footer , I created a command to goto another page, but when I preview the layout , there comes an error : 'Page break is allowed only in the main window' . I didn't create any command outside the mainwindow.
anyone know how this happened ? how should I correct it ?
or you can tell me antother method to goto a new page when page break .
Thank you in advance!
Kevin
Edited by: kevin wang on Mar 13, 2010 12:46 PMHi,
The problem may due to not Selecting at the "End of Table" in the footer node.
My Assumption: According to my understanding since you have selected with at "Page break" only, this night be triggering at every page break and since you have mentioned Goto Next page using command node without printing on the current page.
You can try by selecting the "At the End of Table" for Footer node, then it should work correctly.
If you want a Page break after the Footer, then place it after Footer Node, then it should work.
Thanks & Regards,
Vamsi.
Edited by: Vamsi Krishna on Mar 13, 2010 1:42 PM -
Mdls command: issue with attribute "kMDItemTotalBitRate" output
All,
I 'm using mdls command to fetch the Total bit-rate for all media files(mp3,mov,m4v etc.). I want to compare the output with a set threshold (XY Kbps) and raise a flag if the bit-rate exceeds XY for a media file. The issue is that the output doesn't denote if it's in Kbps or bits per second. For example I ran the mdls command on 2 files test1.m4a and test2.mp3 :
mdls -name kMDItemTotalBitRate test1.m4a
Output -> kMDItemTotalBitRate = 249
mdls -name kMDItemTotalBitRate test2.mp3
Output -> kMDItemTotalBitRate = 192000
On checking in iTunes , I saw that the number was 249 Kbps for the former and 192 Kbps for the latter. How can I force the mdls command to output kMDItemTotalBitRate in bits per second only so that the output is uniform for all files and removes confusion?Hi,
test1.m4a is a song I purchased from iTunes Store. Its not just this file. I have many other files(m4v,m4a etc.) where the kMDItemTotalBitRate output is similar to test1.m4a above. As a result of this, I can't compare the bitrate reliably against my threshold XY. I'm using the command afinfo now to get the bit rate in bits per second for audio files. I need to find a similar command for video files -
Strange Key Commands Issue - Please Help
I understand how to make/delete and export key commands.
I made a key command preference that I like that doesn't involve the screen set key commands ... herein lies the issue.
I delete the commands (1,2,3,4,5,6,7,8,9) that are assigned to screen sets because I want to use them for other things. I save the preset. If I keep logic open everything is hunky dory, but if I close logic and re-open it the screen set key commands are suddenly part of my preset again.
I'm running Logic 8 btw.
I thought Logic might automatically be initializing it's key commands from their provided key commands list, but after removing them I found that was not the case.
I also tried deleting my com.apple.logic.pro.plist file but still the screen set key commands keep showing up.
Does anyone know a way to keep Logic from adding them back into the key commands everytime I start it up?
-Stephanswunderboy wrote:
WAIT!!!
I found a way around it:
instead of using "learn by key label" I used "learn by key position" and then the numbers on the number pad can be whatever I want!
YESSSSSS.
thanks again for your help!
LOL, OK, you never mentioned the keypad... I just assumed you were after the top row number keys... but those on the numpad are indeed available (or set in limestone). Good persistance! And thanks for reporting your solution.
regards, Erik. -
I am new to tf command and facing issues using it. I am getting the following error when i executing
tf get /recursive /all /noprompt
from a unix server
Error Message :
An argument error occurred: Unable to determine the workspace. You may be able to correct this by running 'tf workspaces -collection:TeamProjectCollectionUrl'
I have already created a workspace and mapped a folder with the workspace. I am able to see the workspace, workfolder details when i executed tf workspaces command
Also the mapping by executing
tf workfold -workspace:<my workspace name>
please let me know what should i do to run the get command correctly.
-SrRemNone of them are.....Only the following are:
@ COPY PAUSE SHUTDOWN
@@ DEFINE PRINT SPOOL
/ DEL PROMPT SQLPLUS
ACCEPT DESCRIBE QUIT START
APPEND DISCONNECT RECOVER STARTUP
ARCHIVE LOG EDIT REMARK STORE
ATTRIBUTE EXECUTE REPFOOTER TIMING
BREAK EXIT REPHEADER TTITLE
BTITLE GET RESERVED WORDS (SQL) UNDEFINE
CHANGE HELP RESERVED WORDS (PL/SQL) VARIABLE
CLEAR HOST RUN WHENEVER OSERROR
COLUMN INPUT SAVE WHENEVER SQLERROR
COMPUTE LIST SET
CONNECT PASSWORD SHOW -
FXO/FXS IOS COMMAND ISSUES
Hello,
I've got 2 1760 routers with each a VIC2-4FX0 and VIC-FXS/DID cards. I've got 128mb of system RAM in them, running IOS c1700-advsecurityk9-mz.124-3.bin, which is supposed to be a voice ios with advanced feat. pack according to Cisco's website. I've also got 2x of the needed dsp's (can't remember model number, but its only 1 dsp chip on it - again cisco said 1 dsp would handle 4 channels, unless we're using the high-end codecs. My issue is that I cannot issue any of the voice-port commands. I don't think the hardware is somehow installed correctly. When I issue a "show hardware", they are not listed, however, when I capture a boot, they are listed as "card in slot 2/ card in slot 3" where the router allocates memory to devices.
Can anyone please help? And by the way, these are default no config, all I have done on the one is give a hostname, fastethernet ip and some basic password sec. and that's it.
HERE'S THE BOOT:
System Bootstrap, Version 12.2(7r)XM2, RELEASE SOFTWARE (fc1) TAC Support: http://www.cisco.com/tac Copyright (c) 2003 by cisco Systems, Inc.
C1700 platform with 131072 Kbytes of main memory
program load complete, entry point: 0x80008000, size: 0xcbd968 Self decompressing the image : #################################################
# [OK]
Smart Init is enabled
smart init is sizing iomem
ID MEMORY_REQ TYPE
MainBoard 0X00027A80 1760
0X000F3BB0 public buffer pools
0X00211000 public particle pools
0X0003B100 DSP Buffers
0X004C 0X00000000 Card in slot 2
0X003A 0X00000000 Card in slot 3
TOTAL: 0X00367730
If any of the above Memory Requirements are "UNKNOWN", you may be using an unsupported configuration or there is a software problem and system operation may be compromised.
AND HERE'S SHOW HARDWARE:
Simmering#sh hardware
Cisco IOS Software, C1700 Software (C1700-ADVSECURITYK9-M), Version 12.4(3), REL EASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Fri 22-Jul-05 12:04 by hqluong
ROM: System Bootstrap, Version 12.2(7r)XM2, RELEASE SOFTWARE (fc1)
Simmering uptime is 4 days, 16 hours, 17 minutes System returned to ROM by reload System image file is "flash:c1700-advsecurityk9-mz.124-3.bin"
This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to [email protected].
Cisco 1760 (MPC860P) processor (revision 0x500) with 114688K/16384K bytes of mem ory.
Processor board ID FOC08252LAR (617609820), with hardware revision 0000 MPC860P processor: part number 5, mask 2
1 FastEthernet interface
32K bytes of NVRAM.
32768K bytes of processor board System flash (Read/Write)
Configuration register is 0x2102
Simmering#
Thank you,
MarkI'm not that of an in-depth cisco programmer yet, I'm still working on my ccna - 1/2 way there, but this is what show diag gave me:
Simmering#show diag
Slot 0:
C1760 1FE VE 4SLOT DV Mainboard Port adapter, 1 port
Port adapter is analyzed
Port adapter insertion time unknown
EEPROM contents at hardware discovery:
Hardware Revision : 5.0
PCB Serial Number : FOC08252LAR
Part Number : 73-7167-05
Board Revision : B0
Fab Version : 04
Product (FRU) Number : CISCO1760
EEPROM format version 4
EEPROM contents (hex):
0x00: 04 FF 40 03 16 41 05 00 C1 8B 46 4F 43 30 38 32
0x10: 35 32 4C 41 52 82 49 1B FF 05 42 42 30 02 04 FF
0x20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Simmering#
I don't understand that because there is nothing in slot 0, and there are cards in slots 2 and 3. According to the cisco ios selector or whatever their cross-reference is said this ios has the voice/voip features, but if you have another ios version you think I should be using, please by all means let me know.
Thanks,
Mark
Maybe you are looking for
-
To update this application, sign in to the account you used to purchase it. - I get this message for a couple of the apps that were installed from original
-
How to underline with a different color than red (in Preview, with Mountain Lion)
Hi, I'm using Preview to study and I would like to figure out how to underline with a different color please... Also, Is there a better app to read PDF document and highlight/annote/underline... to study... Thanks!
-
Can anyone advise me on how to get a Dell 2405FPW display to work with a Mac Mini? It works fine with 1600 x 1050 resolution, but I cannot up to the native 1920 x 1200 resolution without getting vertical lines across the display. I thought it may hav
-
Problem with Physical Inventory
Dear Expert Im getting following error with Transaction code LI11N ( Enter Physical Count) Default values for this storage type are not maintained Message no. L4036 Please help in this regards with best regards Suman
-
Computer running slow, etrecheck results plus annoying ip address pop up
new here, tried searching for similar issues, but couldn't find anything that helped (network preferences) Any help would be greatly appreciated! below are the etrecheck results. also the IP popup pop-up: Another device on the network is using your