Error - & & operator is not defined for the java, type arugument lagn.string

Hi all

I am new to this forum and also java.
Here is my program
Please let me know the fix for this error

Thank you
Guna

The logic is, I want to check the customer first, last and middle name.

Senario 1: I want to check the name of the customer, if he gives only the NAME
Senario 2: I want to check the name of the customer, if he gives the last NAME only
Senario 3: I want to check the name of the customer, if he gives only the NAME
Senario 4: I want to check the name of the customer, if he gives the first name and last name - this wher I get my error






My coding

self-learning package;
Import Java.util;
public class CustomerUtil {}

Boolean SearchCustomer (List < Customer > listObj, customer cust)
{

Iterator listOfCustomerObj = listObj.iterator ();
Customer cust1 = null;
While (listOfCustomerObj.hasNext ())
{
cust1 = listOfCustomerObj.next ((customer));
}

If (cust1.getFirstName (.equalsIgnoreCase (cust.getFirstName ())))
{
System.out.println ("found customer");

}
If (cust1.getLastName (.equalsIgnoreCase (cust.getLastName ())))
{
System.out.println ("found customer");

}

I get the error message here, how to fix this error. Please let me know is there any other want to rewrite this condition.

If (cust1.getFirstName () & & cust1.getLastName () .equalsIgnoreCase (cust.getFirstName () & & cust.getLastName ()))
{

System.out.println ("found customer");
}

Returns true;
}


}

Matt wrote:
People
I'm new to this forum and also in java.

I'll post any coding.
I tried to put the code tag but his does not work. Sorry
I saw the link, but I can't do it.

Here is my code

private static final int FIRST_NAME_MATCH = 1,
                         LAST_NAME_MATCH = 10,
                         WHOLE_NAME_MATCH = 11;
int SearchCustomer( List listObj , Customer cust ) {
  Iterator listOfCustomerObj = listObj.iterator();
  Customer cust1 = null;
  int matchCount = 0;
  while(listOfCustomerObj.hasNext()) {
    matchCount = 0;
    cust1 = listOfCustomerObj.next();
    if ( cust1.getFirstName().equalsIgnoreCase( cust.getFirstName() ) )
      matchCount += FIRST_NAME_MATCH;
    if ( cust1.getLastName().equalsIgnoreCase(cust.getLastName() ) )
      matchCount += LAST_NAME_MATCH;
    if (matchCount == WHOLE_NAME_MATCH) break;
  }
  return matchCount;
}

The light of the foregoing, it is my best guess at what you describe you want. But it is not really make sense unless you think that you want the first person who is on the first and last names; what you could do to help eliminate the duplicates. But if this is the case you should consider a set instead of a list as they are not duplicates is added in the first place.

Maybe you can take some ideas from this property. But if you want to match each person with the immediately previous person, then you must edit the item of the loop by removing of this method and put it in the method that calls this method, passing the two customers only and comparing them, or something like that.

Tags: Java

Similar Questions

  • VixDiskLib_Cleanup always returns vixError (6) - the operation is not supported for the specified parameters

    Any ideas how we can determine what parameters it dislikes?  I am the appellant after VixDiskLib_Disconnect as recomment docs and using the same connection params struct I used with VixDiskLib_ConnectEx.

    Thank you

    -Ron

    UInt32 numCleanedUp = 0, numRemaining = 0;

    /= VDDK 1.1 header says connection spec should be null =/.

    connectParamsP - & gt; vmxSpec = (char *) NULL;

    vixError = VixDiskLib_Cleanup (connectParamsP, & numCleanedUp, & numRemaining);

    vixError (6) - the operation is not supported for the specified parameters

    Ron,

    I think that your connection is probably not use all transport advanced, in which case _Cleanup does nothing. If you connect without using advanced transport, cleaning returns 6 - there is nothing to clean up.

    Thank you

    Annick

  • Storage VMotion - a general error occurred: could not wait for the data.  Error bad0007.

    People,

    I searched through this forum and have not found an answer that works in many positions out there, I say to myself that I would ask him once again.

    Here's the context:

    We have 12 identical Dell M600 blades in 2 chassis with 16 GB of Ram, 2 x Xeon E5430, they are all connected to an Equallogic PS 5000XV iSCSI SAN on a separate iSCSI (vswitch1) with 2 cards network dedicated network and dedicated switch, console svc iscsi dedicated, dedicated VMkernel port for iscsi access. Net access (vswitch0) contains port groups VM for our various networks and a console port and vmkernel svc for VMotion with 2 separate NETWORK cards as well.

    We are running ESX 3.5 U3 and VCenter 2.5 U3 on Win2k3 R2

    VMotion works between all servers, Storage Vmotion works for most machines, HA works and the value 2 host failurs with no monitoring of vm, DRS is set to manual for now I have a few machines on the local stores that I complete my rebuilt LUN, there is no set of rules for DRS and VMware EVC is enabled for guests of the Intel. However, I'll just describe one machine to do svmotion below.

    Here's the problem:

    I'm trying to Svmotion via svmotion.pl - interactive, a Machine to Windows 2000 with a virtual disk and a virtual RDM. I am aware of the requirements for the RDM and required parameters for svmotion, independent is not selected for the RDM, and I also have svmotioned several machines linux and win2k3 with the same configuration without problem. In the interactive session, I choose to individually place the disks and I chose the virtual disk to only the virtual machine to be moved, essentially, as I saw it move vdisk virtual machine and then copy to the pointer of the RDM.

    The use of the processor in this machine is about 25% average. but I try to run migrations at the time the lowest. and The Host it itself shows only about 5.5 GB of the 16 GB of RAM used. so I think we're good on the RAM. the volume/datastore that I'm migrating from has 485 GB free and the volume/datastore I migration towards a 145 GB free. the VM virtual disk is only about 33 GB.

    I run the script the windows version of the RCLI svmotion. and when to begin the process, I get the following error at around 2 percent of the progress:

    "Since the server has encountered an error: a general error occurred: could not wait for the data."  Error bad0007. Invalid parameter. »

    After searching around, I found the following hotfixes to the U2 release notes

    • Migrate.PageInTimeoutResetOnProgress: Set the value to 1.

    • Migrate.PageInProgress: The value 30, if you get an error even after the setting of the Migrate.PageInTimeoutResetOnProgress variable.

    I've made these changes, and I still get the same error.

    When I dig in the newspaper, I see these entries in the journal of vmkwarning:

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: bunch: 1397: migHeap0 already at its maximumSize bunch. Cannot extend.

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: bunch: 1522: Heap_Align (migHeap0, 1030120338/1030120338 bytes, 4 align) failed.  calling: 0x988f61

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: migrate: 1243: 1235452646235015: failure: out of memory (0xbad0014) @0x98da8b

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu2:1395) WARNING: MigrateNet: 309: 1235452646235015: 5 - 0xa023818: sent only 4096 bytes of data in message 0: Broken pipe

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu6:1396) WARNING: migrate: 1243: 1235452646235015: failed: Migration protocol error (0xbad003e) @0x98da8b

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu2:1395) WARNING: migrate: 6776: 1235452646235015: could not send data for 56486: Broken pipe

    At this point, I'm stuck... What is Windows RCLI? the vcenter Server? or the service console with not enough of RAM? We have already increased all our consoles service 512 MB...

    Any help would be greatly appreciated...

    Thanks in advance.

    Alvin

    The vmkernel on out of memory error, I had that before. And vmware support recommends setting 800M Max service console memory. And I did it and have no problems after that.

    See if that helps the issue.

    Mike

  • Error "operations is not supported on the object." when importing .ovf in the vCloud Director 5.5 machine

    I am trying to import a virtual machine (composed of three .mf, hard, .ovf files), when I try to download the VM, it gets downloaded 100% in the catalogs, but gives an error "Cannot create" as condition to the end and when I check the error in detail, it gives me that "operations is not supported on the object.". Checked the Virtaul Center, I get the same error that 'operations is not supported on the object."in the taskbar. Google it a lot but could not find a relevant solution.

    Just for the record I have DRS activated in full auto mode and only in the aggressive State.

    Can someone help me what I can do to remedy the problem.

    There are two parts to the upload.

    5.5 download dialog box represents the progression to the record of transfer vCloud Director of the FVO.  The download method is via the integration of Client plug-in (which uses the OVF tool).

    If the pop-up window can 100% success, I think that the element of the catalogue shows 50% and tries to download files to vCenter/ESXi as an import job.  If the import job fails, then you need to investigate the newspapers of vCenter/ESXi side for more details.

  • Get the error not defined for the current document in the script

    I get a "error number: 2" "error string: myDoc is not defined" in my script.

    I modified a few scripts so that they cross my entire book and open each section (document) in my book, and run the code for each section.ext

    The code runs great and opens and closes the sections where it does not add links to text, but once, it opens a document and view text that you CAN add links, it generates this error.  Here is my code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle,
                myCount = 0;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list"); 
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find 
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! " + myCount + " hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
            myCount++
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    

    Any help is greatly appreciated!

    That ends up being my fixed/final code:

    main();
    exit();
    
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle;
    
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
    
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            }
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
    
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
    
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
    
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument, myDoc, myHyperlinkStyle);
    
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            }
            alert("Done! Hyperlinks have been added.");
    
            myDoc.close();
        }
    }
    
    function doSearchAndReplace(stringfind, urlstring, searchin, myDoc, myHyperlinkStyle) {
        app.findTextPreferences.findWhat = stringfind;
    
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
    
        var myFoundItems = searchin.findText();
    
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring, myDoc);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination, myDoc);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
        }
    }
    
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination, myDoc){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        }
        catch(myError){
        }
    }
    
    function myMakeURLHyperlinkDestination(myURL, myDoc){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        }
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        }
        myHyperlinkDestination.name = myURL;
    
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    }
    
  • operating system not found for the guest computer.

    Hi all

    I hope that all do you well...

    . I installed VM workstaiton on my laptop (Vista home edition, HOST).

    during the installation of the OS the display error invited

    PXE - E51: no boot file received

    PXE - M0F: Exit Intel PXE ROM

    Operating system not found

    I tried both way of installing from ISO image and physical Cd /dvd. But same error.

    I have a bud, the boot sequence, but not luck

    Help, please

    Kind regards... MB

    I belive that your boot order is not preparing to your boot from the CD/DVD option.

    In the setting VM Edit tab there is an option to go to the bios directly before trying to start. box to check that option and power on the virtual machine, it will go to the bios now set your first boot on CD/DVD device and apply to restart this will make the option set. Now your virtual machine starts automatically from CD/DVD.

    Because this will not your VM to power & power on it will continue after your start option setting is applied.

    You can try it once this option helped me...

  • ReferenceError: vm is not defined for the wait for the DNS name?

    Has anyone seen this message before? I just started to receive when I try to build our vCenter our Dallas vCAC California machines. This happens during the commissioning and is taken on an Action of "vim3WaitToolsStarted". Is - it may expire due to the latency? He manages to pass the stage of construction and the name is defined very well.

    Edit: I can build local machines very well. It is only during the construction of machines in California I get this error.

    Edit2: I notice that VC:VirtualMachine wants to say "Undefined" while others such as the vCAC:VirtualMachine show the name of the virtual machine. The action of the vim3Waittoolsstarted requires VC:VirtualMachine. I have no idea why vCAC would not pass this info to a set of machines over another?

    While you wait, I recommend this change (this is the new default and VMware has recommended to several people in the 6-9 months): check /etc/vco/app-server/vmo.properties (or find the file if don't use only not the vCO device) and add the following line (if not present): com.vmware.o11n.vim.useInventoryService = false

    Then you can re - try and see if it works... The inventory service is bad juju with some calls in more recent versions of the vSphere plugin, and that will be the value default value moving forward (I think starting with 5.5.2? Don't remember).

    That could put you straight.

    -Steve

  • Method is not defined for the type

    What I'm doing wrong here?
    public void testArray(Test2[] tarray){
              for(Test2 t : tarray){
                   System.out.println(t);
              }
    
    //...//
    
    Test2[] passArray = new Test2[4];
    testArray(passArray);  // error: Method testArray(Test2[]) is undefined for type Test.
    Also, for future use, how I format the code for this forum so that it was indented appropriate and easier to read? Thank you.

    Published by: 837443 on February 26, 2011 11:43

    837443 wrote:
    testArray() is a public method. So why should I specify the class that she comes?

    Because it is "static". Static methods belong to the class, not in an instance. And even if it wasn't, you'd still have to provide an instance name.

    Winston

  • 0x6B2 error code is not updated for the Microsoft Search Enhancement Pack

    Automatic updates has tried to install this update, but it continues to fail on every attempt since several days.

    It is an option, not the security update. Feel free to hide it.

  • I am running Windows 7 and noticed that Windows updates did not work. The parameters are defined for the update every day. When I went to update manually returned an error WindowsUpdate_80070017. MSFT site was no help. Any recommendations?

    I am running Windows 7 and noticed that Windows updates did not work. The parameters are defined for the update every day. When I went to update manually returned an error WindowsUpdate_80070017.  MSFT site was no help. Any recommendations?

    Since neither updates Jan - 10 have installed, I'm going to hand you Support MS in the hope that they can resolve the problem. See below.

    That being said, is an interpretation of the 80070017 - cyclic redundancy check error "a device attached to the system does not work," which suggests that a hardware problem might be the cause of the error (although I must say that it is a very low possibility in this case).

    Good luck!

    =======================

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Error: Could not find the WSDL port defined for the Service

    Hello

    I am facing error below when calling the partner WSDL:

    Oracle.Fabric.Common.FabricInvocationException: Cannot find the WSDL port defined for the service.

    Can someone guide me what could be the exact problem?

    * I can't ping this host.

    Thank you

    Richa

    Puneet salvation,

    I am able to access from the WSDL browser and value of the location in composite.xml is correct.

    Kind regards.

  • vCO WebView error - parameter value is not defined in the list of the Webview attribute

    Hello

    I tried to create a simple web view for Orchestrator (5.5.1 1617127), who will present a link to launch a single workflow. I followed the instructions in the Guide of VMware and the VCO Team Blog, but both find themselves with similar errors, which seem to have a common root: it seems that the display of web pages can not read the attributes.

    On the web page, I'll see something similar to the following:

    WebView - an exception has occurred.

    Reason: WorkflowLink component error: value of the parameter "attribute" (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    You may continue by restarting the session.

    In the server.log, I see the following: -.

    11:46:04.717 2014-10-02 + 0100 [http-bio-xxx.xxx.xxx.xxx-8281-exec-2] {} [WebviewExceptionPage] Exception Webview INFO - message:

    org.apache.hivemind.ApplicationRuntimeException: component error WorkflowLink: "attribute" parameter value (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    The createVM attribute is set in the correct web view as an attribute with a Type of Workflow and value to create simple virtual machine. I get a similar error any attribute type I try to get out of the workflow (the example of getVirtualMachineList does not create an error on the page, but is not fill the window and creates a similar message appears in the log).

    Can someone give me directions on what to watch next? I can't find anyone else with this error, which makes me think it might be something specific to this medium, but I can't work on what it could be.

    Thanks in advance,

    Ben

    I had the time this by restarting the service after each new attribute has been added, which was far from perfect, but looking around the forums, I have seen that WebViews were being obsolete, so I'll have to look at alternatives in any case.

  • Error creating - snapshot operation is not allowed in the current state

    Hi all

    Using Veeam Backup & Recovery 6 software to replicate a LIVE VM (virtual MACHINE, 1). But I can't and I got the following error:

    Error creating - snapshot operation is not allowed in the current state

    The above virtual machine can only be copied when it is STOPPED the VM is running on ESXi 4.0.

    I have a more LIVE VM (virtual MACHINE, 2) on the ESXi Host which I was able to replicate successfully to another ESXi host.

    I contacted the Veeam Support before posting here.

    Things to note about VM 1: I can't take a snapshot manually from the vSphere client. This option is greyed (disabled) on VM1... While its OK on VM2.

    Veeam support told me that since its software uses the snapshot function of ESXi and this feature is disabled, replication cannot continue.

    Thanks for helping me on this.

    Exactly what I thought. When you delte this PCI passtrough your Backup Exec tape will not longer work.
    You will not be able to do replication when you use this passtrough.

    Only solution for replication (which is what I think you want for purposes of disaster) is to install a 3rd VM (or as physical) as "Backup Server" where you install Backup Exec and enable PCI-Passtrough to your tape drive. Then this new virtual machine with Backup Exec backup.

    After that you can delete the passtrough of your SBS and your replication will work.

    Sorry

    Concerning

    Simon

  • Error creating Absence as "APP-COMPENSATION-51271: the assignment is not eligible for the element.

    Hello

    "APP-COMPENSATION-51271: the assignment is not eligible for the item."

    Hi Nelly,

    You can see below the two things that can be the cause of this error:

    1. the definition of the non-recurring item link which is tagged with such an absence, as a best practice that should be an open link. If the definition of link and the eligibility of the assignment does not match then you may receive this error.

    2. If you have defined a regulation for this type of absence plan, then check if the recurring element of the regime of accumulation is was tagged to the assignment for which you receive this error.

    Thank you

    Sanjay

  • customization error "Sysprep is not installed on the server of virtual center for the model you have selected.

    Hi all

    Need your help with customization of the script here is the steps I've done so far

    1.I have created a virtual machine with Windows XP Professional as the operating system installed VMware Tools / VMware view agent then I added the virtual machine to the domain and created a template called (winXPtemp)

    2. According to article http://www.VMware.com/support/VC/doc/c12prepcustomize.html#1030366 I downloaded the Q257813_w2k_spl_x86_en.exe and the same extract. I force my VC server find the path as mentioned in article

    C:\ [VirtualCenter_installation_directory]\resources\windows\sysprep\1.1 so copied the files extracted to the location C:\Program Files\VMware\Infrastructure\VirtualCenter Server\resources\windows

    3 then I copied and extracted the file \support\tools\deploy.cab on the windows 2003 CD and copied the sysprep files extracted to the following location on the VC Server

    C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\sysprep\xp

    4. After you have done that, I've created a script under customization script called "testsript".

    5 Note until now I have not created a pool of resources as requires it the deployment of only 4 VM on an ESX Server with script customization. The data store for the virtual machine is a 100 GB LUN from a 2050 of FAS of NetApp iSCSI

    6. now when I create an automatic pool when I select the script that I created in step 4, and then click then it gives me an error "Sysprep is not installed on the server of virtual center for the model you have selected. Sysprep on the server installation.

    Troubleshooting done by me:

    I have readded the VC Server Manager to view but it force worked

    Thanks in advance for your help

    Kind regards

    v

    If I remember correctly the location for XP should go to: C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\sysprep\xp

    For XP SP2 Sysprep files can be downloaded from the Microsoft site and are called

    Windows XP SP2 deployment tools

    The article you linked was VirtualCenter 1.x. Since you have given a version number of VirtualCenter I assumed it was 2.x or later.

    ----

Maybe you are looking for