VMware-vim-cmd: waiting for orders to be completed?
Hi all, I adapt a backup script I made for VMware Server 1.x to VMware Server 2.x and I'm having trouble doing ordinary things like 'suspend' or "create a snapshot" "a VM from starting.
There are several ways to do the same thing in a certain way does not require any authentication, others indeed require authentication, for example, to create a snapshot, you can:
VMware-vim-cmd vmsvc/snapshot.create 'id of the virtual machine.
or
vmrun-h https://127.0.0.1:8333 / sdk u user-p password of snapshot "[datastore] /vm_path/vmx_name.vmx '
The problem with vmware-vim-cmd approach is that it does not wait for the command to complete, and is not a welcome feature in a script.
Instead, the vmrun command wait until the end, but to use it in a script, you must also include the identification of the user and password information in the script, and it is not welcome.
So the question (as shown in the topic) is: is it possible to make orders of vim-vmware-cmd to wait until the end?
If someone knows how to do that I would be very grateful
Thank you for reading,
10nico
The vimsh and the vimsh wrapper vmware-vim-cmd is not officially supported by VMware, that being said, I agree that it should allow you to check the situation, etc. It can be a pro/con and depending on how the call command, the wrappers actually communicate to the VI API server, and if you look at the VI API there are all both blocking and non call.
Vmware-vim-cmd, the command is executed and returns to the shell for most. You might be able to monitor the tasks that is created and ensure that it is completed, but I have not played too much with it.
[root@himalaya scripts]# vmware-vim-cmd vimsvc Commands available under vimsvc/: auth/ login task_cancel task_list connect logout task_description license property_dump task_info
Again, these are undocumented, unsupported and the behavior will vary =)
I advise to use the VI API (Powershell or VI Perl Toolkit) to accomplish your tasks, and you can even take a look at some of the utilities that are available with the VI Perl Toolkit Utilities: http://www.vmware.com/support/developer/viperltoolkit/viperl15/doc/perl_toolkit_utilities_idx.html
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
If you find this information useful, please give points to "correct" or "useful".
Tags: VMware
Similar Questions
-
Update boot entry automatic using vmware-vim-cmd (or vmware-vimsh)
Hello
Is there an example of how update the automatic start-up using vmware-vim-cmd input.
The problem that I am running is
1. when I type
VMware-vim-cmd hostsvc/autostartmanager/update_autostartentry 16 powerOn-1 1-1 systemDefault systemDefault
When 16 is one of my VMIds, I get the following
Invalid option '1'
Use: update_autostartentry VMId StartAction StartDelay StopAction StopDelay WaitForHeartbeat Strafpkt
I can't understand what the invalid option '1'.
Here's what I've done so now
1. research in the communities for examples. There are a few messages, but none seem to provide real-world examples of work (beyond the use of message)
2. I found this link http://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.host.AutoStartManager.AutoPowerInfo.html who talks about what type of entry it is pregnant. I tried double quoting and only citing the parameters of xsd: String, but that did not work either
3. I tried the particular settings (including the xsd: int) doublequoting, which did not work either
Anyone successful with this? If so could you please post a real example.
Here's what I'm trying to accomplish
1 activate Autostart - I did that using
/ usr/bin/VMware-vim-cmd hostsvc/autostartmanager/enableautostart true
2. get all VMIds in the system
I did it with the following command and awk script
/ * Awk script * /.
BEGIN {}
FS = ""
NR 1 >
}
{
If (NR == 1) {}
#ignore header
}
else {}
$1 has VMIds
Print $1
}
}
/ * End awk script * /.
Then run/bin/awk f /root/autostart.awk
3. instead of printing on $1, I would like to add the virtual machines to the list using the following
a. start-up delay = systemdefault
start-up (b) action = poweron
c. start order = 1, 2, 3, 4 (do not need help with AWK script), I can post once I have that.
d. stopaction, stopdelay etc. - leave at the default system (or - 1 as the pubs suggested link)
I'm sure that there are more effective and these ways to do this, I need to follow this approach for a specific reason. I was wondering if someone can help me with the syntax correct for vmware-vim-cmd hostsvc/autostartmanager/enable_autostart please?
Thanks for your help!
-Vermorel
It seems that the problem is with you using -1 as input for StartDelay and StopDelay,-1 is not a valid entry that I tested, and you must specify either systemDefault or a time interval.
I created 4 VMS dummy on ESXi 4.0 host and did the following and it worked:
Enable auto-start through vimsh (vim - cmd)
~ # vim-cmd hostsvc/autostartmanager/enable_autostart 1 Enabled AutoStart
Adjustment of the 1st virtual machine:
~ # vim-cmd hostsvc/autostartmanager/update_autostartentry 1264 "PowerOn" "15" "1" "systemDefault" "systemDefault" "systemDefault" 1Updated AutoStart order.
Definition of the 2nd VM:
~ # vim-cmd hostsvc/autostartmanager/update_autostartentry 1232 "PowerOn" "15" "2" "systemDefault" "systemDefault" "systemDefault" 2Updated AutoStart order.
Definition of the 3rd VM:
~ # vim-cmd hostsvc/autostartmanager/update_autostartentry 1280 "PowerOn" "15" "3" "systemDefault" "systemDefault" "systemDefault" 3Updated AutoStart order.
Definition of the 4th VM:
~ # vim-cmd hostsvc/autostartmanager/update_autostartentry 1264 "PowerOn" "15" "4" "systemDefault" "systemDefault" "systemDefault" 4Updated AutoStart order.
You can manually set the automatic start/stop by using the vSphere Client and using the following command to retrieve the config:
vim-cmd hostsvc/autostartmanager/get_autostartseq
which can then be used as a basis to set the configuration.
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
Introduction to the vMA (tips/tricks)
Getting started with vSphere SDK for Perl
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
Hello
Could you tell me what that the syntax of the vmCfgPath of the following command:
VMware-vim-cmd rsrc/hostsvc/vm_config_get & lt; vmCfgPath & gt;.
I tried /vmfs/volumes/xxx/xxx/xxx.vmx of vmware-cmd - l and /xxx/xxx/xxx.vmx but nothing works.
Any ideas?
Thank you
Dominic
As mentioned, you will need to provide the virtual machine VmId.
Here is an example of a virtual machine, lifting say Quentin
In ESX (i) 3.5 you'd:
[root@himalaya ~]# vmware-vim-cmd vmsvc/getallvms | grep Quentin 4288 Quentin [http://himalaya-local-SAS.Savvio|http://himalaya-local-SAS.Savvio] Quentin/Quentin.vmx winXPProGuest vmx-04
4288 would be the value you would use in the command:
[root@himalaya ~]# vmware-vim-cmd hostsvc/rsrc/vm_config_get 4288 (vim.ResourceConfigSpec) { dynamicType =
, entity = 'vim.VirtualMachine:4288', changeVersion = , lastModified = , cpuAllocation = (vim.ResourceAllocationInfo) { dynamicType = , reservation = 0, expandableReservation = false, limit = -1, shares = (vim.SharesInfo) { dynamicType = , shares = 1000, level = "normal", }, overheadLimit = , }, memoryAllocation = (vim.ResourceAllocationInfo) { dynamicType = , reservation = 0, expandableReservation = false, limit = 2048, shares = (vim.SharesInfo) { dynamicType = , shares = 5120, level = "normal", }, overheadLimit = , }, } On ESX 4.0, you also have the option to use vmware-cmd to extract value. You first need to get the path to your virtual machine, and then use the getidoption:
[root@himalaya ~]# vmware-cmd /vmfs/volumes/4aa95d52-c297af51-90e2-003048d9586a/Quentin/Quentin.vmx getid getid() = 4288
Either one will work, but do not forget the majority of entry to the vimsh when dealing with a machine virtual will be it's VmId.
=========================================================================
William Lam
VMware vExpert 2009
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
VMware Code Central - Scripts/code samples for developers and administrators
If you find this information useful, please give points to "correct" or "useful".
-
Rename a "Service Console" portgroup using vmware-vim-cmd
Hey all
Just going through the forums concerning the "vim-vmware-cmd" command and was wondering if there was a way we could rename the portgroup console Service. Have a script that I prepare and one of its stages is to rename its SC which I don't really know how to do it using 'vim-Vmware-cmd ".
Any help would be great?
Munster
(PS - thanks in advance)
As far as I know, there is no way to rename a portgroup. With vswif/esxcfg-vswitch or with vmware-vim-cmd. However the deletion and add it with the new name should do the trick for you.
The option addvmportgroup in kickstart can be 0 or 1. He tells the configuration to add a GRPE on default ports for virtual machines, called "VM Network" on the first vSwitch or not. It has nothing to do with the designation of portgroup Console of service.
-
VMware-vim-cmd check vmwaretools available
Hello!
I want to make a script (with bash) to stop my VMs.
with vmware-vim-cmd vmsvc/power.shutdown ID, I can stop my VM.
But if vmware-Tools are noticed running I want to turn off the coast of the VM hard.
How can I check if vmware-tools are available and how can disable VM without vmware-tools?
THX.
Hansi
The vim - cmd, you can use the vmsvc/get.guest allows to check if the tools are running:
# vim - cmd vmsvc/get.guest 28 | grep toolsRunningStatus
toolsRunningStatus = "guestToolsRunning"
# vim - cmd vmsvc/get.guest 18 | grep toolsRunningStatus
toolsRunningStatus = "guestToolsNotRunning".You can also include a vim - cmd vmsvc/power.getstate in your script to see if the VM is actually powered-on, since the status of tools will be guestToolsNotRunning on a virtual computer off of course.
Hard power off mV, use vmsvc/power.off.
-
Information on vmware-vim-cmd, please
Hello
Where can I find detailed information about VMWARE-VIM-CMD please?
Thank you.
I've not seen an "official" document of all the features of vmware. In this case, I think that google is your friend. A lot of people have documented pieces that they understood.
http://www.vServer-online.de/blog/MRU/vimsh?lang=en#more-348 this link is good to help you get started.
-
SHUTDOWN: waiting for active calls to complete.
Hello
environment is HP - UX 11.23, Version Oracle 9.2.0.5
We had an ORA-600 error yesterday. We reported this error to support and suggested to install patch 9.2. 0.8
However, I have a question. As you can see from the output to the alert log file it took a long time to stop the instance using the immediate option:
Sun Nov 9 17:33:58 2008
Closure of proceedings: in addition to logons disabled
Closure of proceedings (immediate)
License of the high waters = 454
Sun Nov 9 17:39:07 2008
Ongoing call for the program process 3991 user 'oracle' "oracle@xyz (TNS V1 - V3)"
SHUTDOWN: waiting for active calls to complete.
Sun Nov 9 17:50:36 2008
ALTER DATABASE CLOSE NORMAL
Is there anything, can be done in such a situation to accelerate the closure of the proceeding?Oracle database has an ease of use and a center of streams queues / advanced.
These installations are possible by putting in place some auxiliary processes.
These settings govern the number of processes.
Their definition to 0 turns completely off the installation.
You change the setting in memory, like you, that you have rebounded from the database, it will return to the value in the spfile and facilities will work again.
Deactivation is especially useful when you that facilities are frequently used, that is to say you have a job running every 30 seconds.
In the past, several databases, it was the only way to allow an immediate stop.Hope this helps,
--
Sybrand Bakker
Senior Oracle DBA -
Script to wait for Clone task is completed
Good day, as part of the post, I run a command that enables the NIC and sets the right Port-Group of cloning process. I put a sleep command in each environment is diferrent, so I find myself always change this duration of sleep because the cloning process does not end in the time of sleep and the rest of the script fails. So in order to get rid of the sleep control that I want to capture the CloneVM_Task and pass this parameter to wait-task that will force the completion of the ClonVM_Task. I could just make sure no other tasks are running but this task, but as we all know that alays can't be the case. So that's what I did.
I begin a deployment of FVO to have an another long running task. Then I run the script.
If ((Get - PSSnapin - name Vmware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null) {Add-PSSnapin "Vmware.VimAutomation.Core"}
# Virtual Center details
$server_address = "MYvCenter name" or IPSE connect-VIServer-Server $server_Address - user username-pass password - WarningAction SilentlyContinue
#Create Master VM Templates
#
# Here we import the CSV file with the account information and he piped in a Foreach-object
# Creating a Variable that imports the csv file that contains all data of the virtual machineCD "e:\Scripts.
$InputFile = import-Csv "E:\scripts\mycloneinput.csv".
$InputFile | {ForEach-Object$ip = $_. VM_IPAddress
$GName = $_. VM_Guestname
$TName = $_. Template_name
$HName = get-VMHost "myhostname" # 1 first Select
$Desc = $_. Description
$Dstore = $_. Datastore_Name
$Spec = $_. Customization
$Folder = $_. Folder
$Sfolder = $_. Subfolder
$NIC = $_. NIC
$NIC_Lable = $_. NIC_Label
$Gateway = $_. NIC_Gateway
$SubnetMask = "255.255.255.0".
$DNS1 = $_. DNS1
$DNS2 = $_. DNS2
Write-host "creation: ' $GName
Write-host "template name is: ' $TName# This takes variables and creates the virtual machine
Get-OSCustomizationSpec $Spec | Get-OSCustomizationNicMapping | »
Game-OSCustomizationNicMapping - IpMode UseStaticIP - $ip - $SubnetMask subnet mask - DNS IpAddress $DNS1, $DNS2 - DefaultGateway $Gateway
New-VM-name $GName - location $Folder - model $TName - host $HName - $Dstore - $Desc Description data store - OSCustomizationSpec $Spec - RunAsync-confirm: $false
#######################################
#Waiting for cloning process to finish.
#######################################$$$ Under notes show a little history of how I got to this point.
$$ Note1: the first attempt, I just captured running tasks and their past to the task pending. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."
$$ Note2: so I added the If Else loop below that failed, because $RTask never equaled only CloneVM_Task, but was a table of two.
$$ Note3: I tried to us below to separate the two tasks to help
# $RTask = get-task-status running (who captured the two tasks running)
# $Array = $Rtask.Split("") (Errored with the method call failed because [System.Object []] contains a method named 'Split'.)
# So I tried to divide the table like this. ForEach ($Task in $Rtask.Name - Split("")) {Write-Host "my tasks are:" $Task}
Get-task-status Running | Export-CSV "E:\scripts\Current_Tasks.csv".
$InputFile2 = import-CSV "E:\scripts\mmca\mmca_Current_Tasks.csv".
$InputFile2 | {ForEach-Object
$RTask = $_. Name
Write-Host "current task is: ' $RTask
IF ($RTask - eq "CloneVM_Task") {}
Write-Host "current task of Clonning is: ' $RTask
Write-Host "in the meantime the cloning process finish.
Waiting-task-task $MyTask
}
Else {}
Write-Host "no cloning process is executed.
}
}
# This allows the NIC and set the correct Port Group
Get-VM-name $GName | Get-NetworkAdapter-name $NIC | Together-NetworkAdapter - NetworkName $NIC_Lable-confirm: $false - StartConnected $true
}When I run the present, I get the following:
# #This shows the task start Clonning #.
erverId: /[email protected]:443 /
Status: running
IsCancelable: true
PercentComplete: 5
StartTime: 03/05/2013 00:52:13
FinishTime:
ObjectId: VirtualMachine-vm-382
Result:
Description: Clone virtual machine
ExtensionData: VMware.Vim.Task
ID: Work-task-2070
Name: CloneVM_Task
UID: /[email protected]:443 / task = work-work-2070 /#########################################################
# #Runs through the tasks running.
Current task: deploy the model to the FVO
No cloning process is executed# Ignore deploy it task #.
# #Matches the If statement and continues to process #.
Current task is: CloneVM_Task
Task current Clonning is: CloneVM_Task
Wait for the cloning process to complete# #Error #.
Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
E:\scripts\Working_Create_Master_Templates.ps1:71 tank: 24
+ Wait-task-task < < < < $RTask
+ CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask$$$ Under notes show a little history of how I got to this point.
Note1: The first attempt, I have just captured tasks currently running and pending their past to the task. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."
NOTE2: So I added the If Else loop below which failed because $RTask never equaled only CloneVM_Task, but was a picture of two tasks.
Note3: I tried to use the following to divide the two tasks:
$RTask = get-task-status running (who captured the two tasks running)
foreach ($Task in $Rtask - Split(""))
{
{Write-Host "my tasks are:" $Task}
IF ($Task - eq "CloneVM_Task") {}
Write-Host "current task of Clonning is: ' $Task
Write-Host "in the meantime the cloning process finish.
Waiting-task-task $Task
}
Else {}
Write-Host "no cloning process is executed.
}
}# #Output the little script above #.
Current task: deploy OVF model CloneVM_Task
My tasks are: deploy
My tasks are: OVF
My tasks are: model
My tasks are: CloneVM_Task
Task current Clonning is: CloneVM_Task
Wait for the cloning process to complete
Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
Online: 11 char: 24
+ Wait-task-task < < < < $Task
+ CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTaskI'm new to Powercli and I've scoured Google for a possible answer. I thought I might have a solution that has been published on the VMware PowerCLI Forum, but I couldn't get this to work. Any help would be greatly appreciated.
#########################################
I wasn't worried about how to tasks where splits, unless I was trying to follow the import fo the OVF, so that the script went into the loop If and as one of the names for CloneVM_Task then he Treaty. But I got the same error I did in the last version of the above script. That's why I have the version curent thinking that if I exported and then imported the tasks it might make a difference.
I'm new to Powercli and would like a little help. I am either very close or by a mile off. :-)
Thank you
Mitch
Why don't you store the the task object that is returned when you use the RunAsync switch?
You can create a loop around the State and wait until the clone job is done.
$task = New-VM -Name MyVM ... -RunAsync while($task.ExtensionData.Info.State -eq "running"){ sleep 1 $task.ExtensionData.UpdateViewData('Info.State') }
The big difference with the Wait-job cmdlet, it is that this will allow you to perform additional work in the While loop.
Waiting-task the cmdlet waits just until the task is finisned and you can not do anything else.
-
waited for the parent session complete
Hello
I have a situation, where I have to put scenarios of execution in a package of ODI
Let me explain
package1 - scen1-> scen2-> scen3
Package2 - scen4-> scen5-> scen6
Package3 - scen7-> scen8-> scen9
now I have to build a main package, where I call especially packages
as
PACKAGE FOR THE MAIN:
package1_scen-> package2_scen-> package3_scen
now I have to wait for lot 1 and all scenarios within package1 is completed before package2 started and same for package3
I tried with odiwaitforchild session and running packag21_scen, package2_scen, package3_scen in synchronous mode
but when I started the main package of all the scenarios running concurrently.
can anyone suggest how to achieve this.
Published by: 916710 on March 1, 2012 01:30Then exactly what problem faced while executions of pkg, are you generate script for internship (pkg) or not.
scenario for each package to generate and put all the scenarios in a new package.
See you soon,.
Surya. -
waiting for a task to complete
During the planning of a work like this:
() dbms_scheduler.create_job
job_name = > a_prog_name | "_JOB."
job_type = > 'executable. "
job_action = > a_local_dir | '\' || File1 | ' > null',.
enabled = > true,
auto_drop = > true
);
Is it possible to wait for the work to be done before treatment can continue?
Thank you
ThomasHello
You can do this by leaving enabled-false online during the creation of employment and then by doing a run_job on the job. The run_job (with use_current_session-online true) will execute the task and wait for it to finish. If you do this, you will also need to manually deposit work using drop_job.
Hope this helps,
Ravi. -
The wait for the customization of the vm finish
Hi, I am trying to find a way to wait for customization of vm finish before moving on to the next script. That's only 1 vm. I've seen a screenplay written by Lan Renouf, according to me, but I don't know how to change the script to look at the State of only 1 vm instead of several. Any help would be appreciated! Here is the link to Alan if anyone is interested:
http://blogs.VMware.com/vipowershell/2012/08/waiting-for-OS-customization-to-complete.html '
Thanks in advance
Remove the RunAsync parameter
-
VMware-toolbox-cmd: command Missing
I have 5.8 CentOS x86_64 installed as a guest in VMware Workstation 8.0.2. I nto each of the pre-existing configurations selected during installation I wanted a minimal installation. After installing I start and run yum update to update the packages of the existing system. One of these updates is to the core that brings him up to 2.6.18 - 308.1.1.el5. Because the kernel is updated, I think that it is better to restart the guest operating system. After restarting, I try to install vmware tools. Before I do this I install the following packages via yum as dependencies for the vmware-tools.
kernel-headers-$(uname-r) kernel-devel-$(uname-r) gcc44 gcc44-make c ++
Now that I've done, I chose VM-> install VMware Tools in my computer. I clicked the button help in the pop-up message at the bottom of the screen of the comments, and I followed these instructions include, East, mountign tools such as a virtual CD-ROM, unzip them to your hard drive (I unzip them to tmp /) and cd in vmware-tools-distrib and run. / vmware - install.pl. I just choose the default for questions. He then asks:
Before you run VMware Tools for the first time, you must configure it by
calling the following command: "/ usr/bin/vmware-config-tools.pl". Do you want
This program to invoke the command for you now? [Yes]Again, I choose the value by default, and as a follow-up to choose the default options for the rest of the questions cofnig. Then when it's done it says:
You can now run VMware Tools under "/ usr/bin/vmware-toolbox-cmd" of the
or by invoking command line ' / usr/bin/vmware-toolbox "command line
during a session to Server X.Then I tried/usr/bin/vmware-toolbox-cmd and got an error (see excerpt below). I try to reboot, and rerun/usr/bin/vmware-toolbox-cmd. Still it gives me this error:
/ usr/bin/VMware-Toolbox-cmd: command missing
Try "/ usr/bin/vmware-toolbox-cmd help ' for more information.Can someone tell me why vmware tools do not work?
> Try/usr/bin/vmware-toolbox-cmd and I got an error (see excerpt below).
This isn't an error - it tells you just that you must add a command.
Have you tried the parameter help as shows it the message? -
Waiting for a transition to be completed?
I use Tweener.AddTween () to apply some transitions to my sprites who say quarter of a second. Once the transition is complete, I need to do something else. The problem is the line immediately after the transition is executed immediately (it does not wait for the transition to complete) and all that mess up. Is it possible in a synchronous way expect the transition ends without taking CPU in a loop, etc.?
Hey p3pp3r,
There is a setting for the tweener Oregon 'onComplete' call that performs a function is completed. It goes right into the addTween method.
Here are more details on the onComplete parameter (along with several other more useful):
http://hosted.Zeh.com.br/Tweener/docs/en-us/parameters/index.html
example:
Tweener.addTween(myobj, {x: 45, onComplete: myFunction});
hope that helps. Good luck!
-
JDeveloper installed and configured for the 21662342 Patch. For EBS R12.2.5
Try to run test_fwktutorial.jsp. IE will start, but he's white with spinning cursor. No other answer... until that don't get server error internal 500 after 10 minutes.
Here is the log of JDeveloper:
[Departure OC4J uses the following ports: HTTP = 8988, RMI = 23891, JMS = 9227]
C:\JDev1225\jdevhome\jdev\system\oracle. J2EE.10.1.3.43.6\embedded-oc4j\config >
C:\JDev1225\jdevbin\jdk\bin\javaw.exe-client - classpath C:\JDev1225\jdevbin\j2ee\home\oc4j.jar; C:\JDev1225\jdevbin\jdev\lib\jdev-OC4J-embedded.jar-DFND_JDBC_STMT_CACHE_SIZE = 200 - DCACHENODBINIT = true - DRUN_FROM_JDEV = true - mx256m - XX: MaxPermSize = 512M - Doracle.j2ee.dont.use.memory.archive = false - Xverify: none - DcheckForUpdates = adminClientOnly - Doracle.application.environment = development - Doracle.j2ee.dont.use.memory.archive = true - Doracle.j2ee.http.socket.timeout = 500 - Doc4j.jms.usePersistenceLockFiles = false oracle.oc4j.loader.boot.BootStrap - config C:\JDev1225\jdevhome\jdev\system\oracle.j2ee.10.1.3.43.6\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Journal of the com.evermind.server.jms.JMSMessages January 8, 2016 16:17:46
INFO: JMSServer []: Server OC4J JMS recovery of transactions (commit 0) (0 rollback) (prepared 0).
Journal of the com.evermind.server.jms.JMSMessages January 8, 2016 16:17:46
INFO: JMSServer []: Server OC4J JMS recovering local transactions queue [jms/Oc4jJmsExceptionQueue].
16-01-08 16:17:47 WARNING: source Code C:\JDev1225\jdevbin\jdev\appslibrt\xml.jar (< draws > in C:/JDev1225/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename, but is not identical to /C:/JDev1225/jdevbin/lib/xml.jar (< source code > (ignore obvious Class-Path) in META-INF/boot.xml to C:\JDev1225\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be hidden because it is already visible in the search path for the default.root:0.0.0 charger.
16-01-08 16:17:47 WARNING: source Code C:\JDev1225\jdevbin\jdev\appslibrt\jazn.jar (< draws > in C:/JDev1225/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename, but is not identical to the /C:/JDev1225/jdevbin/j2ee/home/jazn.jar (< source code > in META-INF/boot.xml to C:\JDev1225\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be hidden because it is already visible in the search path for the default.root:0.0.0 charger.
16-01-08 16:17:47 WARNING: source Code C:\JDev1225\jdevbin\jdev\appslibrt\jazncore.jar (from manifesto of C:/JDev1225/jdevbin/jdev/appslibrt/jazn.jar) has the same filename, but is not identical to the /C:/JDev1225/jdevbin/j2ee/home/jazncore.jar (< source code > in META-INF/boot.xml to C:\JDev1225\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be hidden because it is already visible in the search path for the default.root:0.0.0 charger.
Ready message received from Oc4jNotifier.
Incorporated the OC4J startup time: 6331 ms.URL - target http://172.18.10.43:8988/OA_HTML/test_fwktutorial.jsp
16-01-08 16:17:49 containers for J2EE 10 g (10.1.3.5.0) initialized OracleANY THOUGHTS?
Hello
1. Please check your last file DBC with DBA and accountability provided by your system administrator.
2 recheck your Jdeveloper setup steps.
3 remove the jdeveloper House system folder & restart Jdeveloper.
Kind regards
Dilip
-
Hi all
I need to create a custom entry dialog box and the problem I encountered is that I can't figure out how to make my request to wait for the user to complete the entries in the framework. When you use a JDialog or JOptionPane application will stop running and wait for the dialog box to close. My question is how to do something similar without using a JOptionPane or JDialog. I just can't figure out how to get the same effect by using a JFrame or other component. I know I could just use a JDialog or JOptionPane to get input from the user, but I'm just curious to know how I can stop running and wait for the entry as the JOptionPane allows you to do, but without using a JOptionPane or JDialog.
Thank you for your help :)
Nathan D.
-----
: Edit:
I forgot to mention that the reason main I avoids JDialogs is I need the entry dialog box to be internal not external application I use mode exclusive fullscreen. And a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. I just need a way to get input from a component or internal window and wait for the entry as a JOptionPane or JDialog.
-----
A NBS are:
Published by: neptune692 on January 3, 2011 13:25import java.awt.event.*; import java.awt.*; import javax.swing.*; public class Main extends JFrame implements ActionListener { /** * @param args the command line arguments */ public static void main(String[] args) { new Main(); } JButton go = new JButton("Show custom input dialog"); public Main() { setSize(300,150); setLocationRelativeTo(null); setLayout(new FlowLayout()); go.addActionListener(this); add(go); setVisible(true); } public void actionPerformed(ActionEvent e) { InputDialog d = new InputDialog(); /* * Here is the problem it is necessary that I create a * custom input dialog to allow further modifications however * i'm not sure how to wait for the user to enter text and press * continue in that input dialog. Unlike JOptionPane the code executes * before the user presses continue. My question is how do I wait for the user * to press continue in the InputDialog before I call d.getString(); without making the main * application unresponsive. */ String returnValue = d.getString(); System.out.println("return value "+returnValue); //will be null or empty because application doesn't wait for input. } class InputDialog extends JFrame implements ActionListener { JTextField f = new JTextField(); JButton go = new JButton("Continue"); public InputDialog() { setTitle("Custom Input Dialog"); setSize(300,150); setLocationRelativeTo(null); setLayout(new FlowLayout()); f.setPreferredSize(new Dimension(100,25)); go.addActionListener(this); add(f); add(go); setVisible(true); } public void actionPerformed(ActionEvent e) { } public String getString() { return f.getText(); } } }
neptune692 wrote:
.. a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. ..Of course, it does!
import java.awt.event.*; import java.awt.*; import javax.swing.*; public class DumbNameMain extends JFrame implements ActionListener { /** * @param args the command line arguments */ public static void main(String[] args) { new DumbNameMain(); } JButton go = new JButton("Show custom input dialog"); public DumbNameMain() { setSize(300,150); setLocationRelativeTo(null); setLayout(new FlowLayout()); go.addActionListener(this); add(go); setVisible(true); } public void actionPerformed(ActionEvent e) { JTextField f = new JTextField(10); JButton go = new JButton("Continue"); JPanel p = new JPanel(new FlowLayout()); p.add(f); p.add(go); JOptionPane.showMessageDialog( this, p ); String returnValue = f.getText(); System.out.println("return value "+returnValue); } }
Maybe you are looking for
-
4 GB of RAM, but 2, 99 GB usable on NB510-117
Hello world I bought the netbook NB510-117 one a few months ago and I recently upgraded the memory to 4 GB. So, in order to exploit all the RAM, I installed windows 7 ultimate which recognizes the memory up to 4 GB. The problem is that in the propert
-
Satellite L670 - adjust the color of my screen
Hello people, I just bought the satellite L670 and I'm very happy with it but I still have a problem.It seems that the colors are not defined as it should and I can not set as I want that there.I tried to calibrate them, but some steps that I can't b
-
need help connecting HP envy 4520 with new router
I have a new router. Cannot find where to change the settings of the printer. Cannot print.
-
iTunes won't sync contacts outlook 2010
iTunes won't sync contacts outlook 2010 because microsoft add Skype. iTunes syncs only Skype contacts. I don't use Skype don't have contacts in the Skype contacts folder. Cannot add contacts. Don't care about Skype. I want Apple to fix this synchroni
-
Windows Mail attachment problem
In Windows Mail, my attachments do not appear when I opened the e-mail. I can only see if I hit 'forward' or right click on the attachment icon. I have Windows Vista and this problem appeared only a couple of weeks.