PowerShell: Cannot index into a null array

I am trying to put together a script that will upload documents into a document library. Here is what my script looks like currently...
$fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
$FileName = $File.Name
$NewName = [IO.Path]::GetFileNameWithoutExtension($FileName)
$FileNameArray = $NewName.split("_")
$check = $FileNameArray.Length
Write-Host "My Array:" $FileNameArray
Write-Host "Array Length:" $check
#Add file
$folder = $web.getfolder($docLibrary.rootFolder.URL)
write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
$spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)
$spItem = $spFile.Item
#populate columns
$spItem["First Column"] = $FileNameArray[0].ToString()
$spItem["Second Column"] = $FileNameArray[1].ToString()
$spItem.Update()
$fileStream.Close();
Currently when my script tries to update the columns with the elements from the array, I am getting this error message
Cannot index into a null array.
At C:\powershellscripts\Upload-FilesIntoSharePoint.ps1:164 char:6
+                     $spItem["First Column"] = $FileNameArray[0].ToString()
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray
...earlier in the script, I placed checks to see what my array is like, and it hold data. When I ran it, I had 2 elements in my array, those values where printed to the console. However, the script stalls when am trying to get the values into the respective
columns. Does anyone have an idea why this is happening? Thanks.

Hi,
first of all ensure that NewName has at least one underscore and then debug the code to see the value of $FileNameArray[0].
Regards.
If a post answers your question, please click Mark As Answer on that post and
Vote as Helpful

Similar Messages

  • Powershell script returns the exception "Cannot index into a null array"

    Hi,
    $userName = $item["Editor"];
    $DocID = $item["_dlc_DocId"];
    Above lines on execution returns the below error.
    Cannot index into a null array.
    At C:\GetAllInvoices.PS1:23 char:26
    +           $userName = $item[ <<<< "Editor"];
        + CategoryInfo          : InvalidOperation: (Editor:String) [], RuntimeExc
       eption
        + FullyQualifiedErrorId : NullArray
    Cannot index into a null array.
    At C:\GetAllInvoices.PS1:24 char:30
    +               $DocID = $item[ <<<< "_dlc_DocId"];
        + CategoryInfo          : InvalidOperation: (_dlc_DocId:String) [], Runtim
       eException
        + FullyQualifiedErrorId : NullArray
    Any solution ?
    Thanks in advance,
    Dhileep

    The error indicates $item is either not an array or an empty array.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Cannot index into a null array

    Hi there,
    I am getting Cannot index into a null array error. I run the script below.
    Function check-even ($num) {[bool]!($num%2)}
    foreach ($file in (Get-ChildItem -Path c:\Users\rsimmers\desktop\*.ini)) {
        "Processing file {0}" -f $file
        $newfilename = $file.fullname -replace ".ini", ".txt"
        $newContent = foreach ($line in (Get-Content $file.fullname)){
            $printer = $line -match '\| (.*?)"'
            $printerName = $Matches[1]
            $printerNum = $printerName.Split("-")[2]   
            if((check-even $printerNum) -eq $true) {
                #even
                $line.Replace('Host="ACFILE01"','Host="VJJJRT02"').Replace('Host="effile01"','Host="VJJJRT02"')
            else {
                #odd
                $line.Replace('Host="ACFILE01"','Host="VSHHPRT01"').Replace('Host="ACFILE01"','Host="VSHHPRT01"')
    $newContent
    $newContent | Out-File $newfilename
    Processing file \\vfs04\Users$\kaendm\Desktop\Test00E8E627F9C.ini
    Cannot index into a null array.
    At C:\Powershell\TReplaceIniValues.ps1:12 char:9
    + $printerName = $Matches[1]
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray
    You cannot call a method on a null-valued expression.
    At C:\Powershell\TReplaceIniValues.ps1:13 char:9
    + $printerNum = $printerName.Split("-")[2]
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

    Hi
    In the script above, what is the best way to create an statement. I also want replace some values which do not have to pass equal to or add test.
    ***For the following Host names (ZFILE01, WPRINT01) replace the values regardless.
    .Replace('Host="ZFILE01"','Host="BKBprt01"').Replace('Host="WPRINT01"','Host="BHHprt01"')
    *** For the rest of the Host names perform the (Odd/Even check)
    if((check-even
    $printerNum)-eq
    $true){
    #even
    $content[$i]=$content[$i].Replace('Host="ACFILE01"','Host="VJJJRT02"').Replace('Host="effile01"','Host="VJJJRT02"')
    else{
    #odd
    $content[$i]=$content[$i].Replace('Host="ACFILE01"','Host="VSHHPRT01"').Replace('Host="ACFILE01"','Host="VSHHPRT01"')

  • SharePoint List Form using InfoPath 2010 "Cannot insert the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls"

    I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
    level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
    Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
    level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
    0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
    the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
    08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
    Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
    command, CommandBehavior behavior,

    Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Cannot Load Index Into Keep Pool

    I've sucessfully loaded my ctxsys.context index into the keep pool (works great) using the web page: http://www.oracle.com/technology/products/text/htdocs/mem_load.html .
    I'm now trying the techniques to load a regular index (that joins to my text index).
    I've executed:
    alter index PROD_SVC_NDX storage (buffer_pool keep);
    Then I tried the hint INDEX_FFS on the base table:
    select /*+ INDEX_FFS ( INDEXDATA , PROD_SVC_NDX ) */ count(svc_code) FROM INDEXDATA ;
    The optimizer shows a ffs in the algorithm:
    INDEX FAST FULL SCAN| PROD_SVC_NDX |524K| 2047K|251 (2)| 0:00:04
    WHEN I QUERY THE BUFFER CACHE, only 9% of the index is in the keep pool..
    Owner............. Name...........................Type...........Cache....... %BLOCKS........POOL........BSize
    SYSTEM.......PROD_SVC_NDX...........INDEX..........1,248.................9..............KEEP.........8,192.
    How do you load regular index blocks into keep pool?
    What would be the best Oracle forum for this question?
    Joe

    I think the optimizer will always use a full scan for such a query, regardless of hints. What you need to do is fetch all rows individually. This can be done in a PL/SQL block with an outer loop which fetches all the indexed values, and an inner select that performs an indexed lookup with each value. For example:
    Given a table with a primary key index:
    create table foo (pk number primary key, bar varchar2);
    Populated:
    insert into foo values (1, 'aa');
    insert into foo values (2, 'ab');
    insert into foo values (3, 'ac');
    We could do this:
    declare
    v_bar varchar2(2);
    begin
    for q in (select pk from foo) loop
    select bar into v_bar from foo where pk = q.pk;
    end loop;
    end;
    It may well not be necessary to fetch every row - you should experiment and see whether maybe fetching every 10th row - or even every 100th row - is sufficient to fetch all index blocks into the SGA.
    - Roger

  • How to add elements into java string array?

    I open a file and want to put the contents in a string array. I tried as below.
    String[] names;
    s = new Scanner(new BufferedReader(new FileReader("outfile.txt")));
    while (s.hasNext()) {
                    String item = s.next();
                    item.trim();
                    email = item;
                    names = email;
                }But I know that this is a wrong way of adding elements into my string array names []. How do I do it? Thanks.

    Actually you cannot increase the size of a String array. But you can create a temp array with the lengt = lengthofarray+1 and use arraycopy method to copy all elements to new array, then you can assign the value of string at the end of the temp array
    I would use this one:
    String [] sArray = null;
    s = new Scanner(new BufferedReader(new FileReader("outfile.txt")));
    while (s.hasNext()) {
        String item = s.next();
        item.trim();
        email = item;
        sArray = addToStringArray(sArray, email);
    * Method for increasing the size of a String Array with the given string.
    * Given string will be added at the end of the String array.
    * @param sArray String array to be increased. If null, an array will be returned with one element: String s
    * @param s String to be added to the end of the array. If null, sArray will be returned.(No change)
    * @return sArray increased with String s
    public String[] addToStringArray (String[] sArray, String s){
         if (sArray == null){
              if (s!= null){
                   String[] temp = {s};
                   return temp;
              }else{
                   return null;
         }else{
              if (s!= null){
                   String[] temp = new String[sArray.length+1];
                   System.arraycopy(sArray,0,temp,0,sArray.length);
                   temp[temp.length-1] = s;
                   return temp;
              }else{
                   return sArray;
    }Edited by: mimdalli on May 4, 2009 8:22 AM
    Edited by: mimdalli on May 4, 2009 8:26 AM
    Edited by: mimdalli on May 4, 2009 8:27 AM

  • Reading content of a file into an int array

    How do i use FileReader rd = new FileReader(filename) to read the contents into an int array?

    public static int[] parse_file(String filename)
         Vector vec = new Vector();
         int num[];
         num = new num[vec.size()];
         try {
              BufferedReader br = new BufferedReader(new FileReader(filename));
              String line;
              while((line = br.readLine()) != null) {
              vec.add(line);
              for (int i = 0; i < vec.size(); i++) {
              num[i] = (int) vec.get(i);
              System.out.println("Number=" + num);
         catch(IOException e) {
              System.out.println("error");
         return num;
    Maxsum.java:22: cannot resolve symbol
    symbol : class num
    location: class Maxsum
         num = new num[vec.size()];
    ^
    Maxsum.java:30: inconvertible types
    found : java.lang.Object
    required: int
              num[i] = (int) vec.get(i);
    How do i initialize the array?if i do not initialize it, there'll be array not initialized error also..How do i convert the String to int?

  • Cannot log into AD on Mountain Lion. Please help! I got the logs

    My company has been experiencing this problem ever since Mountain Lion released.
    The problem is, we cannot log into AD on all of our MAC who currently runs Mountain Lion. We, however, can log into AD fine with Lion and Snow Leopard just fine. We only use AD, we don't use Open Directory or have any Apple server.
    I have gather some logs using the SSH. Please help me view the logs and let me know what's going on if possible.
    Here are the steps that I performed before capture these logs.
    I format the hard drive and installed a new OS X 10.8.2 on the hard drive using the Recovery Mode (Hold down option Key while boot).
    I created a new computer name call ittest-mac3 in AD and assigned to proper OU. I changed the computer name under System Preferences ==> Sharing to "ittest-mac3".
       3.  I bind this Macbook Pro to our Active Directory via xyz.com. The bind was successful. I enabled "Create mobile account at login", "Required confirmation before creating a mobile account", " Force local home directory on start up disk", " Use UNC path from active directory to derive network home location", "Default user shell: /bin/bash/. Network protocol to be used: smb:
    After I reboot the Mac client, I was unable to log into it using our regular AD user account (consider all of our employees has regular account).
    I created 2 test accounts for Mac on Active Directory, they are "mac test" and "mac test 2".
    With "mac test" account, I configured everything the same as our regular account in AD. Which I was not able to log into the Mac client using this account.
    With “mac test 2” account, I configured everything the same as our regular account in AD EXCEPT for UNIX Attributes. I was successfully logged into the Mac client using this user account.
    So the problem is ... set the Unix Attributes for NIS domain on the AD account prevent everyone of us in our company to log into AD on any client that have Mountain Lion OSX installed.
    Here are the logs:
    Log1. This logs showed successful when log into AD on a Mountain Lion OSX using an AD account that don't have UNIX attributes setting configure.
    login as: administrator
    Using keyboard-interactive authentication.
    Password:
    Last login: Mon Dec 17 08:43:38 2012
    ittest-mac3:~ administrator$ sudo su -
    WARNING: Improper use of the sudo command could lead to data loss
    or the deletion of important system files. Please double-check your
    typing when using sudo. Type "man sudo" for more information.
    To proceed, enter your password, or type Ctrl-C to abort.
    Password:
    ittest-mac3:~ root# cd /var/log
    ittest-mac3:log root# tail -f system.log
    Dec 17 09:02:19 ittest-mac3.local SecurityAgent[650]: *** WARNING: -[NSImage com                                                                            
    positeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later. Pleas                                                                             
    e use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:02:50 ittest-mac3.local sshd[659]: Accepted keyboard-interactive/pam f                                                                            
    or administrator from 10.10.202.63 port 50738 ssh2
    Dec 17 09:02:50 ittest-mac3.local sshd[659]: USER_PROCESS: 665 ttys000
    Dec 17 09:04:59 ittest-mac3.local sudo[673]: administrator : TTY=ttys000 ; PWD=/                                                                             
    Users/administrator ; USER=root ; COMMAND=/usr/bin/su -
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_authenticate(): authenticat                                                                             
    ion succeeded
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_acct_mgmt(): The group chec                                                                             
    k succeeded.
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_acct_mgmt(): OpenDirectory                                                                              
    - Membership cache TTL set to 1800.
    Dec 17 09:04:59 ittest-mac3.local su[674]: in od_record_check_pwpolicy(): retval                                                                             
    : 0
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_open_session(): No session                                                                              
    type specified.
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_open_session(): Going to sw                                                                            
    itch to (root) 0's Background session
    Dec 17 09:07:19 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'config.modify.com.apple.familycontrols.override' by client
    '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resources /parentalcontrolsd' [679] for authorization created by
    '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resources /parentalcontrolsd' [679] (3,0)
    Dec 17 09:07:19 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'config.modify.com.apple.familycontrols.loginwindow.override' by
    client '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resource s/parentalcontrolsd' [679] for authorization created by
    '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resources /parentalcontrolsd' [679] (3,0)
    Dec 17 09:07:19 ittest-mac3.local SecurityAgent[650]: User info context values set for mtest2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Got user: mtest2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Got ruser: (null)
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Got service: authorization
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Context initialised
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Stashing kcm credentials in enviroment for kcminit: [email protected]
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): pam_sm_authenticate: ntlm
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_acct_mgmt(): OpenDirectory - Membership cache TTL set to 1800.
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in od_record_check_pwpolicy(): retval: 0
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in od_record_attribute_create_cfstring(): returned 2 attributes for
    dsAttrTypeStandard:AuthenticationAuthority
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Establishing credentials
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Got user: mtest2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Context initialised
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Got euid, egid: 0 0
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done getpwnam()
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done setegid() & seteuid()
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: init credential cache
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: storing credential for: [email protected]
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Got cache_name: API:164370296:1
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Environment done: KRB5CCNAME=164370296:1
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Cache closed
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done cleanup2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done cleanup3
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done seteuid() & setegid()
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done cleanup4
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: ntlm
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in ac_complete(): ac_complete returned: 0 for 164370296
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: ntlm done, used domain: PROS1
    Dec 17 09:07:19 ittest-mac3.local SecurityAgent[650]: Login Window login proceeding
    Dec 17 09:07:19 ittest-mac3.local ManagedClient[644]: ODUGetMCXRecordWithCache(): [ODRecord setNodeCredentialsWithRecordType:"dsRecTypeStandard:Users"
    authenticationType:kDSStdAuthNodeNativeRetainCredential authenticationItems:["mtest2", password]]) == 2100 (Connection failed to the directory server.) [This
    error is ignored and is only being flagged for notification]
    Dec 17 09:07:20 ittest-mac3 kernel[0]: Sandbox: kcm(681) deny mach-lookup com.apple.networkd
    Dec 17 09:07:20 ittest-mac3.local MCXCompositor[690]: CFPreferences: user home directory for user kCFPreferencesCurrentUser at  is unavailable. User domains
    will be volatile.
    Dec 17 09:07:20 ittest-mac3.local UserNotificationCenter[696]: *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It
    should not be used in new applications. Use convertRectToBacking: instead.
    Dec 17 09:07:24 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/CoreServices/ManagedClient.app' [644] for authorization created by '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:24 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/writecon fig' [697] for authorization created by
    '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:24 ittest-mac3.local ManagedClient[644]: ODUMakeMobileMCXRecord: updating record from kDSNAttrOriginalHomeDirectory =
    <home_dir><url>smb://pros-fsvr2/home/mtest2</url><path>/</path></home_dir>
    Dec 17 09:07:24 ittest-mac3.local ManagedClient[644]: ODUMakeMobileMCXRecord: updating record to   kDSNAttrOriginalHomeDirectory =
    <home_dir><url>smb://pros-fsvr2/home/</url><path>mtest2/</path></home_dir>
    Dec 17 09:07:25 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/writecon fig' [697] for authorization created by
    '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:26 --- last message repeated 1 time ---
    Dec 17 09:07:26 ittest-mac3 com.apple.launchd[1] (com.apple.launchd.peruser.164370296): Throttling respawn: Will start in 4 seconds
    Dec 17 09:07:26 ittest-mac3.local writeconfig[697]: Unable to talk to lsboxd
    Dec 17 09:07:26 ittest-mac3.local writeconfig[697]: SFL(697): AddNewItemWithProperties_rpc returned 5
    Dec 17 09:07:26 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/writecon fig' [697] for authorization created by
    '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:30 ittest-mac3.local distnoted[721]: # distnote server agent  absolute time: 3817.482079135   civil time: Mon Dec 17 09:07:30 2012   pid: 721
    uid: 164370296  root: no
    Dec 17 09:07:30 ittest-mac3.local distnoted[721]: Bug: 12C60: liblaunch.dylib + 23849 [2F71CAF8-6524-329E-AC56-C506658B4C0C]: 0x25
    Dec 17 09:07:30 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.login.console' by client
    '/System/Library/CoreServices/loginwindow.app' [641] for authorization created by '/System/Library/CoreServices/loginwindow.app' [641] (100003,0)
    Dec 17 09:07:30 ittest-mac3.local loginwindow[641]: Login Window - Returned from Security Agent
    Dec 17 09:07:31 ittest-mac3.local loginwindow[641]: ERROR | ScreensharingLoginNotification | Failed sending message to screen sharing GetScreensharingPort,
    err: 1102
    Dec 17 09:07:31 ittest-mac3.local loginwindow[641]: USER_PROCESS: 641 console
    Dec 17 09:07:31 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.gamed): Ignored this key: UserName
    Dec 17 09:07:31 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.gamed): Ignored this key: GroupName
    Dec 17 09:07:31 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.ReportCrash): Falling back to default Mach exception handler. Could not find:
    com.apple.ReportCrash.Self
    Dec 17 09:07:31 ittest-mac3.local loginwindow[641]: Connection with distnoted server was invalidated
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/System/Library/CoreServices/UserAccountUpdater' [727] for authorization created by '/System/Library/CoreServices/UserAccountUpdater' [727] (2,0)
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/usr/libexec/launchdadd' [730] for authorization created by '/System/Library/CoreServices/UserAccountUpdater' [727] (100002,0)
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Session 100015 created
    Dec 17 09:07:31 ittest-mac3.local MRT[731]: MRT finished scan. Malware files were not found.
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/usr/libexec/MRT' [731] for authorization created by '/usr/libexec/MRT' [731] (2,0)
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/usr/libexec/launchdadd' [730] for authorization created by '/usr/libexec/MRT' [731] (100002,0)
    Dec 17 09:07:31 --- last message repeated 1 time ---
    Dec 17 09:07:31 ittest-mac3.local blued[68]: kBTXPCUpdateUserPreferences gConsoleUserUID = 164370296
    Dec 17 09:07:31 ittest-mac3.local locationd[738]: Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this
    compatiblity mapping behavior in the near future.
    Dec 17 09:07:31 ittest-mac3.local locationd[738]: NOTICE,Location icon should now be in state 0
    Dec 17 09:07:31 ittest-mac3.local UserEventAgent[725]: cannot find fw daemon port 1102
    Dec 17 09:07:34 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.login.done' by client
    '/System/Library/CoreServices/loginwindow.app' [641] for authorization created by '/System/Library/CoreServices/loginwindow.app' [641] (100002,0)
    Dec 17 09:07:36 ittest-mac3.local CalendarAgent[753]: Could not find Meta Data for persistent Store
    Dec 17 09:07:37 ittest-mac3.local WindowServer[76]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:07:37 ittest-mac3.local WindowServer[76]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:07:37 ittest-mac3.local genatsdb[764]: ########## genatsdb Sandboxed. ##########
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: CGSCopyWindowShape: pid (763) passed NULL window
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: could not update menu bar region, 1000
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: *** WARNING: Method convertRectToBase: in class NSView is deprecated on 10.7 and later. It should not
    be used in new applications.
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: *** WARNING: Method convertRectFromBase: in class NSView is deprecated on 10.7 and later. It should
    not be used in new applications.
    Dec 17 09:07:38 ittest-mac3.local SystemUIServer[763]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:07:38 ittest-mac3.local SystemUIServer[763]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:07:39 ittest-mac3.local genatsdb[764]: *GENATSDB* FontObjects generated = 392
    Dec 17 09:07:53 ittest-mac3 kernel[0]: (default pager): [KERNEL]: default_pager_backing_store_monitor - send LO_WAT_ALERT
    Dec 17 09:07:53 ittest-mac3 kernel[0]: macx_swapoff SUCCESS
    Dec 17 09:07:59 ittest-mac3.local Setup Assistant[751]: INFO: MMAccountMgr_Private: finishedSetup called.
    Dec 17 09:07:59 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 39931
    Dec 17 09:07:59 --- last message repeated 4 times ---
    Dec 17 09:07:59 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.afpstat-qfa[793]): Job failed to exec(3). Setting up event to tell us when to
    try again: 2: No such file or directory
    Dec 17 09:07:59 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.afpstat-qfa[793]): Job failed to exec(3) for weird reason: 2
    Dec 17 09:07:59 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 39931
    Dec 17 09:07:59 --- last message repeated 4 times ---
    Dec 17 09:07:59 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.mrt.uiagent[783]): Exited with code: 255
    Dec 17 09:07:59 ittest-mac3.local NetworkBrowserAgent[796]: Starting NetworkBrowserAgent
    Dec 17 09:07:59 ittest-mac3.local imagent[786]: [Warning] Setting up a new messages database.
    Dec 17 09:07:59 ittest-mac3.local Finder[775]: *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be
    used in new applications. Use convertRectToBacking: instead.
    Dec 17 09:07:59 ittest-mac3.local Finder[775]: *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be
    used in new applications. Use convertRectToBacking: instead.
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: dict count after removing entry for window 0xfe is 0
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=243
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Could not terminate job: 3: No
    such process
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Using fallback option to
    terminate job...
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] ([0x0-0x44044].com.apple.AppleSpell[767]): Exited: Terminated: 15
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.quicklook[803]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification
    kLSNotifyApplicationDeath to notificationID=272
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[813]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: DEAD_PROCESS: 641 console
    Dec 17 09:09:09 ittest-mac3.local migCacheCleanup[736]: Cache cleanup: cleanup for user 164370296 took 0.07 seconds
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=260
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXRestartSessionWorkspace: session workspace exited for session 257 (on console)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (0 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: loginwindow connection closed; closing server.
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: CGSFlushWindowContentRegion: Invalid connection
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSGetNextEventRecord (Inline) connection 0x201b, 16384 bytes
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[11]: Captive: [UserAgentDied:139] User Agent @port=15883 Died
    Dec 17 09:09:09 ittest-mac3.local loginwindow[826]: Login Window Application Started
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Server is starting up
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: init_page_flip: page flip mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: mux_initialize: Mode is dynamic
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor enabled for tile size [256 x 256]
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXGLInitMipMap: mip map mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: WSMachineUsesNewStyleMirroring: true
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x4 for display 0x042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x5 for display 0x003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x6 for display 0x003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x7 for display 0x003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (2464, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (2465, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (2466, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXPerformInitialDisplayConfiguration
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x042803c0: MappedDisplay Unit 0; Alias(4, 0x11); Vendor 0x610 Model 0xa00f S/N 0 Dimensions
    13.03 x 8.15; online enabled built-in, Bounds (0,0)[1440 x 900], Rotation 0, Resolution 2
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003f: MappedDisplay Unit 3; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2464,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003e: MappedDisplay Unit 2; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2465,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003d: MappedDisplay Unit 1; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2466,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXMuxBoot: Boot normal
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, accelerator 0x0000494b, unit 0, caps QEX|
    QGL|MIPMAP, vram 1024 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, accelerator 0x00004833, unit 4, caps QEX|
    QGL|MIPMAP, vram 580 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Created shield window 0x8 for display 0x042803c0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:10 ittest-mac3.local launchctl[829]: com.apple.findmymacmessenger: Already loaded
    Dec 17 09:09:10 ittest-mac3.local com.apple.SecurityServer[15]: Session 100018 created
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: Login Window Started Security Agent
    Dec 17 09:09:10 ittest-mac3.local UserEventAgent[831]: cannot find useragent 1102
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: MacBuddy was run = 0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x042803c0 device: 0x1072ab320 
    isBackBuffered: 1 numComp: 3 numDisp: 3
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use
    -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: dict count after removing entry for window 0xfe is 0
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=243
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Could not terminate job: 3: No
    such process
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Using fallback option to
    terminate job...
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] ([0x0-0x44044].com.apple.AppleSpell[767]): Exited: Terminated: 15
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.quicklook[803]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification
    kLSNotifyApplicationDeath to notificationID=272
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[813]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: DEAD_PROCESS: 641 console
    Dec 17 09:09:09 ittest-mac3.local migCacheCleanup[736]: Cache cleanup: cleanup for user 164370296 took 0.07 seconds
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=260
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXRestartSessionWorkspace: session workspace exited for session 257 (on console)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (0 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: loginwindow connection closed; closing server.
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: CGSFlushWindowContentRegion: Invalid connection
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSGetNextEventRecord (Inline) connection 0x201b, 16384 bytes
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[11]: Captive: [UserAgentDied:139] User Agent @port=15883 Died
    Dec 17 09:09:09 ittest-mac3.local loginwindow[826]: Login Window Application Started
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Server is starting up
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: init_page_flip: page flip mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: mux_initialize: Mode is dynamic
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor enabled for tile size [256 x 256]
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXGLInitMipMap: mip map mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: WSMachineUsesNewStyleMirroring: true
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x4 for display 0x042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x5 for display 0x003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x6 for display 0x003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x7 for display 0x003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (2464, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (2465, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (2466, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXPerformInitialDisplayConfiguration
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x042803c0: MappedDisplay Unit 0; Alias(4, 0x11); Vendor 0x610 Model 0xa00f S/N 0 Dimensions
    13.03 x 8.15; online enabled built-in, Bounds (0,0)[1440 x 900], Rotation 0, Resolution 2
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003f: MappedDisplay Unit 3; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2464,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003e: MappedDisplay Unit 2; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2465,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003d: MappedDisplay Unit 1; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2466,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXMuxBoot: Boot normal
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, accelerator 0x0000494b, unit 0, caps QEX|
    QGL|MIPMAP, vram 1024 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, accelerator 0x00004833, unit 4, caps QEX|
    QGL|MIPMAP, vram 580 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Created shield window 0x8 for display 0x042803c0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:10 ittest-mac3.local launchctl[829]: com.apple.findmymacmessenger: Already loaded
    Dec 17 09:09:10 ittest-mac3.local com.apple.SecurityServer[15]: Session 100018 created
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: Login Window Started Security Agent
    Dec 17 09:09:10 ittest-mac3.local UserEventAgent[831]: cannot find useragent 1102
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: MacBuddy was run = 0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x042803c0 device: 0x1072ab320 
    isBackBuffered: 1 numComp: 3 numDisp: 3
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use
    -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Log2: This log showed was captured when we logged into a test account that have Unix Attributes configure just like our regular user's account.
    ^C
    ittest-mac3:log root# tail -f system.log
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: Login Window Started Security Agent
    Dec 17 09:09:10 ittest-mac3.local UserEventAgent[831]: cannot find useragent 1102
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: MacBuddy was run = 0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x042803c0 device: 0x1072ab320 
    isBackBuffered: 1 numComp: 3 numDisp: 3
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use
    -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:41 --- last message repeated 1 time ---
    Dec 17 09:10:13 ittest-mac3.local SecurityAgent[836]: User info context values set for tle
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Got user: mtest
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Got ruser: (null)
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Got service: authorization
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Context initialised
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Stashing kcm credentials in enviroment for kcminit: [email protected]
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): pam_sm_authenticate: ntlm
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_acct_mgmt(): OpenDirectory - Membership cache TTL set to 1800.
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in od_record_check_pwpolicy(): retval: 0
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in od_record_attribute_create_cfstring(): returned 2 attributes for
    dsAttrTypeStandard:AuthenticationAuthority
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Establishing credentials
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Got user: mtest
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Context initialised
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Got euid, egid: 0 0
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done getpwnam()
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done setegid() & seteuid()
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: init credential cache
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: storing credential for: [email protected]
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Got cache_name: API:2137600189:2
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Environment done: KRB5CCNAME=2137600189:2
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Cache closed
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done cleanup2
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done cleanup3
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done seteuid() & setegid()
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done cleanup4
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: ntlm
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in ac_complete(): ac_complete returned: 0 for 2137600189
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: ntlm done, used domain: PROS1
    Dec 17 09:10:13 ittest-mac3.local SecurityAgent[836]: Login Window login proceeding
    Dec 17 09:10:13 ittest-mac3.local ManagedClient[830]: ODUGetMCXRecordWithCache(): [ODRecord setNodeCredentialsWithRecordType:"dsRecTypeStandard:Users"
    authenticationType:kDSStdAuthNodeNativeRetainCredential authenticationItems:["mtest", password]]) == 2100 (Connection failed to the directory server.) [This
    error is ignored and is only being flagged for notification]
    Dec 17 09:10:13 ittest-mac3 com.apple.launchd[1] (com.apple.launchd.peruser.4294967295[846]): getpwuid("4294967295") failed
    Dec 17 09:10:13 ittest-mac3 com.apple.launch

    -Reece,
    We only have 1 single domain, 1 domain forest, no subdomains, only alias. I had replied to the other post as well. But I am happy to paste it here in case anyone want to read it.
    So, after a few months of testing, capture and sending logs back and forth to Apple Engineers, we found out there is a setting in AD, under User Account that prevent us to log into AD from Mountain Lion. If you would go to your AD server, open up a user account properties, then go to Account tab, the "Do not require Kerberos preauthentication" option is checked. As soon as I uncheck that option, immediately I was able to log into AD on the Mac client. Apple engineers copied all my AD settings and setup a test environment on their end and match exact mine AD environment. They was able to reproduce this issue.
    The bad part about this is... our environment required the "Do not require Kerberos preauthentication" is checked in AD, in order for our users to login into some of our Unix and Linux services. Which mean that it is impossible for us to remove that check mark because most, if not all of them some way or another require to login into applications that run on Unix and Linux. Apple is working to see if they can come up with a fix. Apparently, no one has report this issue except us. I believe most of you out there don't have that check mark checked in your environment... Anyone out there have any suggestion to by pass or have a work around for this?

  • Importing text file into 2D char array

    Hey folks. I've aged a few years trying to figure this project out. Im trying to make a crossword puzzle and am having problems importing the answer letters into a 2D array of 15*15. The text file would look something like this:
    LAPSE TAP RAH
    AVAIL OLE ODE
    BARGE PARADOX
    etc
    I have JTextFields that the user will answer and a button the user can press to see if the answers are right by comparing the 2D array answer with what the user inputted.-the user input would be scanned and put into a 2D array also.
    How should i go about inserting each letter into an array? The spaces i would later need to make code to grey out the text field. This is what i have so far. Forgive me if its sloppy.
         class gridPanel extends JPanel
              //----Setting Grid variables
              private static final int ROWS = 15;
              private static final int COLS = 15;
              String[] letters = { "A", "B", "C", "D", "E" };// To test entering strings into array
               gridPanel()
                 this.setBackground(Color.BLUE);
                 //.......Making my JTextField grid for user input
                 JTextField[][] grid = new JTextField[ROWS][COLS];
                 for(int ROWS = 0; ROWS<grid.length; ROWS++)
                     for(int COLS = 0; COLS<grid.length; COLS++)
                         grid[ROWS][COLS] = new JTextField(1);
                         add(grid[ROWS][COLS]);
                     //grid[ROWS][COLS].setText("" + letters[0]);
                 String an = null;
                 StringTokenizer tokenizer = null;
                 Character[][] answer = new Character[ROWS][COLS];
              try{
                 BufferedReader bufAns = new BufferedReader( new FileReader("C:\\xwordanswers.txt"));
                 for (int rowCurrent = 0; rowCurrent < ROWS; rowCurrent++)
              an = bufAns.readLine();
              tokenizer = new StringTokenizer(an);
              for (int colCurrent = 0; colCurrent < COLS; colCurrent++) {
              char currentValue = tokenizer.nextToken().charAt(0);//Needs to be changed to reflect each letter
                        answer[rowCurrent][colCurrent] = currentValue;
                    System.out.println(currentValue);
              }catch (IOException ioex)           
                        System.err.println(ioex);
                        System.exit(1);
            }//xword graphics end
          This obviously prints the first char of each word, it also gives me an "Exception in thread "main" java.util.NoSuchElementException" error for some reason.
    Any help is greatly appreciated.
    John

    If the file format is stored as follows:
    APPLE
    L A
    PARSE
    N E
    PEAR then we can parse this into a 2D char array:
    char[][] readMap(String fileName) {
        char[][] ret = new char[ROWS][COLS];
        FileInputStream FIS = new FIleInputStream(fileName);
        int i, j;
        for(i = 0; i < ROWS; i++)
            for(j = 0; j < COLS; j++)
                ret[i][j] = FIS.read();
        FIS.close();
        return ret;
    }Then you can use the resulting 2D char array in your answer checking mechanism.
    Hope this helps~
    Alex Lam S.L.

  • How to copy data in text file into two-dimensional arrays?

    Greeting. Can somebody teach me how to copy the input file into two-dimensional arrays? I'm stuck in making a matrix with number ROWS and COLUMNS according to the data in "input.txt"
    import java.io.*;
    import java.util.*;
    public class array
        public static void main (String[] args) throws FileNotFoundException
        { Scanner sc = new Scanner (new FileReader("input.txt"));
            PrintWriter outfile = new PrintWriter("output.txt");
        int[][]matrix = new int[ROWS][COLUMNS];
    }my input.txt :
    a,b,c
    2,2,1
    1,1,1
    2,2,1
    3,3,1
    4,4,1
    5,5,1
    1,6,2
    2,7,2
    3,8,2
    4,9,2
    5,10,2

    import java.io.*;
    import java.util.*;
    public class array {
        public static void main(String[] args) throws IOException {
            FileInputStream in = null;
            FileOutputStream out = null;
    try {
        in = new FileInputStream("input.txt");
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String line = null;
        while ((line = reader.readLine()) != null) {
            String split[]=line.split(",");
    catch (IOException x) {
        System.err.println(x);
    } finally {
        if (in != null) in.close();
    }}}What after this?

  • I cannot log into the game center as I forgot my password and am not able to reset it.

    I cannot log into the game center as I forgot my password and am not able to reset it because I keep getting the error that the info I submitted is incorrect.  If I ask for an email message, it doesn't come thru but friend requests are received on that same email.  If I use my second account, I can't use the same nickname and all my info is lost.  Any suggestions?

    here
    http://support.apple.com/kb/index?page=search&src=support_site.home.search_sugge sted.search&locale=en_US&q=game%20center%20support

  • Cannot paste into a discussion window.

    Obviously, I can TYPE into this discussion window and I can even copy/paste into the subject/title window but I cannot PASTE into the discussion window.
    The only browser we can use here is IE 8 (8.0.7601.17514) so I cannot test with another browser.
    I can copy/paste to other editors and into other browser tabs but I cannot paste here.
    I seem only one other comment about thsi froma few days ago, so I suppose it's my machine / setup.  But what?
    Thanks,
    Howard

    FWIW, http://docs.jivesoftware.com/jive_sbs/5.0/index.jsp when looking up supported browsers outlines the following:
    Jive works with most current web browsers.
    Note that if you need to use Content Editor features such as cut and paste, script access to the Clipboard should not be disabled.
    Minimum screen resolution: 1024 x 768. Results may vary if you use zoom to adjust your view to levels other than 100%.
    Microsoft Internet Explorer 7, 8, and 9 Note: For Internet Explorer 8 and higher, compatibility mode with earlier versions is not supported
    Apple Safari 4 and 5 (on Macs only)
    Mobile Safari (for iPad with Jive v4.5.4 and higher)
    Mozilla Firefox*
    Google Chrome*
    * The Google Chrome and Mozilla Firefox browsers are released frequently. Jive Software makes every effort to test and support the latest version.

  • Read words from a text file into an undefined array

    Dear all,
    Does anyone know how to read words in text file, seperated by all types of spaces ("_", "\n", "\t","\r","\f") and put them into a string array to be used later?
    So far I can read the words using the Tokenizer but can't assign to array:
    public class reader
    StringTokenizer tokenizer = new StringTokenizer(input);
    String[ ] array= null;  //unknown size of array
    int i=0;
                   while(tokenizer.hasMoreTokens())
                             array[i] = tokenizer.nextToken();
                             i++;
    Any suggestions welcome!
    thanks in advance!

    Hi
    sorry wrote in a hurry ;) din c the problem clearly
    there are two approaches
    1) best approach for your problem is Vector or ArrayList, these would make life easy for you.
    Always collections are better approach over arrays when the size is dynamic. However in your case the size cant be said to be DYNAMIC. coz the number of words will not grow / shrink during the runtime.. i know that number of words are not fixed but dynamic is something which will grow/shrink during runtime. but still collection is better approach.
    2)dirty approach
    use double dimensional array
    String arr[][] = null;
    then use one tokenizer for StringTokenizer(str,"\n");
    using countTokens on this will give you number of lines.
    use this to initialize array
    arr = new String[lineCount][];
    then iterate from 1 to lineCount and use 1 more tokenizer to get number of words for that line. use this number to initialize the column size for arr[i] like
    arr[i] = new String[wordCount];
    then store the token using nested for loops in this array
    go for the 1st one ;) 2nd one is hedious n time consuming but both will work ;)
    cheers
    amey

  • Grub error 28: selected item cannot fit into memory

    I installed arch, systemrescuecd, and trinity rescue kit on a usb stick. I used the mbr arch installed, grub 0.97, and edited the menu.lst to boot all os'es on the usb.
    SystemRescueCD provides an os with all kinds of "rescue" tools, but also other tools like GAG(gag.sourceforge.net/index.html), Memtest86, FreeDos etc, which can be booted from the bootloader.
    But, when I try to boot GAG, Memtest86, or FreeDos, grub gives me an error saying "error 28: selected item cannot fit into memory". According to grub, my lower memory is 630K, and my upper memory is about 3.4GiB. The GAG "kernel", is 24.7 kb, and the GAG initrd is 267.8 kb.
    This is not really arch related, I know, but still, if you can help me, I'd be very thankful. Google doesn't seem to help me on this one.

    Hello again,
    i tried with Solaris 10 5/08 on VMware ESX 3.5 and VMware Server 2, both failed. I tried several ISO images, mounted as ISO or DVD, altered BIOS parameters in VMware ESX, but nothing works for me.
    VMs where created with 1024mb RAM and 8GB disk space, more than recommended.VMware seems to be more successful with installing Solaris10:
    http://pubs.vmware.com/guestnotes/wwhelp/wwhimpl/common/html/wwhelp.htm?context=guestnotes&file=choose_install_guest_os.html#3888649
    It seems to be a problem of GRUB in Solaris 10 5/08, but i don't know how to solve it. Every idea might be a great help for me.

  • Getting index of a string array based on user selection in a comboBox

    I'm not really sure how to phrase my questions, but here goes.
    I have created a string array that holds the values of a ComboBox. Based on which selection the user makes in the comboBox, I need the program to then perform particular calcualtions (based on their selection). I have tried using an ItemListener, but that doesn't seem to work. I've also tried using the ActionListener connected to the ComboBox, again...without results. I'm not sure what I'm looking for exactly, but I know what I want it to do, I'm just not finding the right way to do it. Can anyone help me figure this out?

    Here is my entire code. I'm completely confused at where to put the ActionListener or how to make it do what I want. Right now I just have it set up to display a simple message in the displayArea, just so that I could see if it was working. I think once I figure out how to get the right index from the ComboBox array, then I'll be able to add the code I need to perform the calcualtions...it's just getting to that step that's not going so well! Any help is appreciated.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.text.DecimalFormat;
    import java.lang.String;
    public class MortCalcSR5 extends JFrame implements ActionListener
         int term = 0;
         double principal = 0;
         double rate = 0;
         double monthlyPyment = 0;
         double interest = 0;
         String[] loanChoices = {" ", "7 years @ 5.35%", "15 years @ 5.5%", "30 years @ 5.75%"};
         //create panel for input
         JPanel inputPanel = new JPanel();
              JLabel mortAmtLabel = new JLabel("Mortgage Amount $");
              JTextField mortAmtField = new JTextField(15);
              JLabel loanSelectionLabel = new JLabel("Loan Selection");
              JComboBox loanSelection = new JComboBox(loanChoices);
              JTextField loanSelected = new JTextField(15);
         //create button panel
         JPanel buttonPanel = new JPanel();
              JButton calcButton = new JButton("Calculate");
              JButton clearButton = new JButton("Clear");
              JButton exitButton = new JButton("Exit");
         //create panel for payment information
         JPanel paymentPanel = new JPanel();
              JLabel paymentLabel = new JLabel("Monthly Payment $");
              JTextField paymentField = new JTextField(15);
         //create panel for text box information
         JPanel textPanel = new JPanel();
              JLabel numPaymentLabel = new JLabel("Payment #");
              JLabel balLabel = new JLabel("Balance");
              JLabel ytdPrincLabel = new JLabel("Principal");
              JLabel ytdIntLabel = new JLabel("Interest");
         //create payment for display area
         JPanel displayPanel = new JPanel(new FlowLayout());
              JTextArea displayArea = new JTextArea(10,30);
              JScrollPane scroll = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
         public MortCalcSR5()
              //set size of GUI display
              setSize(400,450);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Container pane = getContentPane();
              JScrollPane scroll = new JScrollPane (displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
              FlowLayout layout = new FlowLayout(FlowLayout.LEFT);
              pane.setLayout(layout);
              //add components to the inputPanel
              GridLayout layout2 = new GridLayout(4,1);
              inputPanel.setLayout(layout2);
              inputPanel.add(mortAmtLabel);
              inputPanel.add(mortAmtField);
              mortAmtField.setText(" ");
              inputPanel.add(loanSelectionLabel);
              inputPanel.add(loanSelection);
              loanSelection.addActionListener(this);
              pane.add(inputPanel);
              //add components to buttonPanel
              FlowLayout layout3 = new FlowLayout(FlowLayout.CENTER, 10, 10);
              buttonPanel.setLayout(layout3);
              buttonPanel.add(calcButton);
              buttonPanel.add(clearButton);
              buttonPanel.add(exitButton);
              pane.add(buttonPanel);
              //add listeners to buttons
              calcButton.addActionListener(this);
              clearButton.addActionListener(this);
              exitButton.addActionListener(this);
              //add components to outputPanel
              FlowLayout layout4 = new FlowLayout(FlowLayout.LEFT, 10,10);
              paymentPanel.setLayout(layout4);
              paymentPanel.add(paymentLabel);
              paymentPanel.add(paymentField);
              pane.add(paymentPanel);
              //add components to textPanel
              FlowLayout layout5 = new FlowLayout(FlowLayout.LEFT, 10,10);
              textPanel.setLayout(layout5);
              textPanel.add(balLabel);
              textPanel.add(ytdPrincLabel);
              textPanel.add(ytdIntLabel);
              pane.add(textPanel);
              //add components to displayPanel
              FlowLayout layout6 = new FlowLayout(FlowLayout.CENTER,10,10);
              displayPanel.setLayout(layout6);
              displayPanel.add(scroll);
              pane.add(displayPanel);
              setContentPane(pane);
              setVisible(true);
         public void actionPerformed(ActionEvent event)
              String fs = (String)loanSelection.getSelectedItem();
              if (fs.equals("7 years @ 5.35%"))          {
                   displayArea.setText("yay");
              else
                   displayArea.setText("blah");
              JButton command = (JButton)event.getSource();
              if(command==calcButton)  //calculate button clicked - run payment event
                   Payment();
              if(command==clearButton) //clear button clicked - clear all fields
                   mortAmtField.setText(null);
                   paymentField.setText(null);
                   displayArea.setText(null);
                   loanSelected.setText(null);  //hidden text field still needs to be cleared
                   //loanChoices = null;
              if(command==exitButton)  //exit button clicked - exit program
                   System.exit(0);
         public void Payment()
              //perform the calculations
    //          int mortAmt = Integer.parseInt(mortAmtField.getText());
         //     double loanSelect = Double.parseDouble((String)loanSelected.getText());
              displayArea.append("Calcualations performed!");
         public static void main(String[] args)
              new MortCalcSR5();
    /*/calculations
         int mortAmt = Integer.parseInt(mortAmtField.getText());  //get text user entered in mortAmt field - parse it from a string to integer
         int loanTerm = Integer.parseInt(loanTermField.getText());  //get text user entered in loanTerm field - parse it from a string to integer
         double interestRate = Double.parseDouble(interestRateField.getText());  //get text user entered in interestRate field - parse it from a string to double
         int moTerm = (loanTerm*12);  //calculate monthly loan term
         double moInterest = ((interestRate/100)/12);  //calculate monthly interest rate
         double payment = mortAmt*(moInterest/(1-Math.pow(1/(1+moInterest), moTerm)));  //calculate monthly payment amount
         valid = true;  //number format is accepted
         paymentField.setText(Double.toString(payment));  //display output
    */

Maybe you are looking for

  • How to load a .class file dynamically?

    Hello World ;) Does anyone know, how I can create an object of a class, that was compiled during the runtime? The facts: - The user puts a grammar in. Saved to file. ANTLR generates Scanner and Parser (Java Code .java) - I compile these file, so XYSc

  • FORK is Not happening Parallel processing- It's working sequential

    Hi,    we are into PI 7.O and SP 13.    I am trying to test Parallel processing using Fork step. (With Two branches) My problem is sxm_moni both branches are not executed simultenously and it's executing one after the other. Did any body done in XI p

  • Cannot back up to time machine after restore

    I've been using Time Machine successfully on my 2009 27" iMac 3.06 ghx Core2Duo (Mountain Lion 10.8.2). Recently I started having drive issues, so as usual, I ran Disk warrior 4.4 and it came up with some errors that could not be fixed and it suggest

  • What is the best way to get rid of troyan virus and safari virus?

    what is the best way to get rid of viruses on my macbook?  the viruses are causing popups and saying that the device is infected.

  • Runtime error when burning blu ray disc

    I am attempting to burn a 1080i/29.97 blu ray disc and when it gets to something like 99% finished, i get a runtime error, and then encore crashes. Could it be there there is not enough space on the disc? The video and audio combine to somthing like