Applescript 'Contacts' code error with Maverick

After upgrading from MacOSX 10.6.8 to Maverick my applescripts are creating errors. One example is the following script which works fine if you run it from within the 'Applescript Editor.app' (v 2.6.1) under Maverick but creates a "Data paste section" error -1743 from the 'Contacts' app if you run the script indpendently. Any hints anyone on how I might return this script to full indpendent functionality?
Script to load a raw address for conversion and inserting into Address Book
Wish list
1.    Check if 'New Address' Group already exists and if it doesn't then create one.
2.    Provide a dialog that enables the user to specify which group to attach the new address to.
3.    Find the new address and show it in Address Book.
4.    Create a list of existing Groups to chose from to reduce keyboard error. --> done but the resultant window is not complete - no scroll bar becomes active.
Problem code:
set theFiles to (every file of folder addressesFolder) as alias list
global ABactive, aExists
property testText : "http://address-parser.com"
property newGroup : "New Addresses" --> Default group for new address additions
property aPrefix : ""
property aFirstName : ""
property aMiddleName : ""
property aLastName : ""
property aSuffix : ""
property aPosition : ""
property aDepartment : ""
property aCompany : ""
property aCompany2 : ""
property aStreet : ""
property aStreet2 : ""
property aPostbox : ""
property aPlace : ""
property aPostPlace : ""
property aState : ""
property aZip : ""
property aPostboxCode : ""
property aCountry : ""
property aPhone : ""
property aPhone2 : ""
property aMobile : ""
property aFax : ""
property aEmail : ""
property aWebsite : ""
property aNote : ""
set newline to ASCII character 10
-- Select the desired file
try
    set addressFile to (choose file with prompt "Choose an address file:" of type {"public.text"} without invisibles) as text
    --    set addressFile to (choose file with prompt "Choose an address file:" of type {"public.text"} default location addressesFolder without invisibles) as text
    -- note the data type set for 'addressFile' is 'text'
on error number -128
    -- User pressed 'Cancel' button
    return
end try
set AppleScript's text item delimiters to {":"}
set fileName to last text item of addressFile
set AppleScript's text item delimiters to {""}
(* If there is an error while processing the address file, delay it just long enough to close the file access. Otherwise continue. *)
set addressFileReference to open for access addressFile
-- 'addressFileReference' is the 'returned access number'
-- Check first to see whether the file was created with output from the expected source
try
    set wholeFile to read addressFileReference as text
    if (offset of testText in wholeFile) is equal to 0 then
        display dialog "File chosen is:" & return & fileName & return & return & "This file does not appear to contain output from the 'http://www.address-parser.com' demo page." buttons {"Cancel"} default button 1 with title "Error!" with icon stop
    end if
on error number -128
    -- User pressed 'Cancel' button
    close access addressFileReference
    set wholeFile to ""
    return
end try
close access addressFileReference
set wholeFile to ""
-- Reopen file (need to clarify why EOF error if two read calls made with file open).
set addressFileReference to open for access addressFile
try
    set AppleScript's text item delimiters to {""}
    -- Read address file contents in 'addressFileContents' as a list delimited by paragraph and tab.
    set x to paragraphs of (read addressFileReference as text)
    set addressFileContents to {}
    set AppleScript's text item delimiters to tab
    repeat with i from 1 to count x
        set addressFileContents's end to x's item i's text items
    end repeat
    set AppleScript's text item delimiters to {""}
    repeat with i from 1 to count of addressFileContents
        if (item i of addressFileContents) is not {} then
            --Every line must be checked as there is no set order
            if text item 1 of (item i of addressFileContents) is "Prefix= " then ¬
                set aPrefix to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "First name= " then ¬
                set aFirstName to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Middle name= " then ¬
                set aMiddleName to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Last name= " then ¬
                set aLastName to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Suffix= " then ¬
                set aSuffix to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Position= " then ¬
                set aPosition to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Department= " then ¬
                set aDepartment to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Company= " then ¬
                set aCompany to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Company - line 2= " then ¬
                set aCompany2 to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Street address= " then ¬
                set aStreet to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Street address - line 2= " then ¬
                set aStreet2 to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Postbox address= " then ¬
                set aPostbox to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Place name= " then ¬
                set aPlace to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Post place name= " then ¬
                set aPostPlace to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "State/Region/Province= " then ¬
                set aState to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "ZIP/Postal code= " then ¬
                set aZip to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Postal code of postbox= " then ¬
                set aPostboxCode to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Country= " then ¬
                set aCountry to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Phone= " then ¬
                set aPhone to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Phone 2= " then ¬
                set aPhone2 to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Mobile phone= " then ¬
                set aMobile to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Fax= " then ¬
                set aFax to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Email= " then ¬
                set aEmail to text item 2 of (item i of addressFileContents)
            if text item 1 of (item i of addressFileContents) is "Web site= " then ¬
                set aWebsite to text item 2 of (item i of addressFileContents)
            --Collect unrecognised elements and place them in the 'Note' field
            if text item 1 of (item i of addressFileContents) contains "Unrecognized values:" then
                set i to i + 1
                set aNote to "Additional address bits:"
                repeat with i from i to count of addressFileContents
                    --display dialog "Note text reads:" & return & "aNote:" & tab & "'" & aNote & "'" & return & "Line #:" & tab & i & return & (item i of addressFileContents) as text default button 1 with title "Debug Dialog"
                    if (item i of addressFileContents) is not {} then
                        if item 1 of (item i of addressFileContents) is "" and ¬
                            item 2 of (item i of addressFileContents) is not "" then
                            set aNote to aNote & newline & text item 2 of (item i of addressFileContents)
                        end if
                    end if
                end repeat
            end if
        end if
    end repeat
on error errMsg number errNum
    close access addressFileReference
    -- do some sort of error processing here
    display dialog "An error occurred with the following number and description: " & return & errNum & return & errMsg & return & return & "Item " & (i as string) & tab & "'" & (item i of addressFileContents) & "'" with title "Data load section."
    error errMsg number errNum
end try
close access addressFileReference
--Debug dialogs
--display dialog (item 1 of addressFileContents as text) & return & return & (item 2 of addressFileContents as text) & return & return & (item 3 of addressFileContents as text) & return & return & (item 4 of addressFileContents as text)
--display dialog "title:" & tab & tab & tab & aPrefix & return & "first name:" & tab & tab & aFirstName & return & "middle name:" & tab & tab & aMiddleName & return & "last name:" & tab & tab & aLastName & return & "suffix:" & tab & tab & tab & aSuffix & return & "job title:" & tab & tab & tab & aPosition & return & "department:" & tab & aDepartment & return & "organization:" & tab & aCompany with title "Just prior to new record insertion:" with icon note
--check if Contacts application is active
tell application "System Events"
    if exists application process "Contacts" then
        set ABactive to true
    else
        set ABactive to false
    end if
end tell
--display dialog "title:" & tab & tab & tab & aPrefix & return & "first name:" & tab & tab & aFirstName & return & "middle name:" & tab & tab & aMiddleName & return & "last name:" & tab & tab & aLastName & return & "suffix:" & tab & tab & tab & aSuffix & return & "job title:" & tab & tab & tab & aPosition & return & "department:" & tab & aDepartment & return & "organization:" & tab & aCompany with title "Just prior to create new entry:" with icon note
--create new address entry
tell application "Contacts"
    try
        --if the aCompany2 variable is filled append its contents to the aCompany variable
        if aCompany2 is equal to "" then
            set thePerson to make new person with properties ¬
                {title:aPrefix, first name:aFirstName, middle name:aMiddleName, last name:aLastName, suffix:aSuffix, job title:aPosition, department:aDepartment, organization:aCompany}
        else
            set aCompany to aCompany & newline & aCompany2
            set thePerson to make new person with properties ¬
                {title:aPrefix, first name:aFirstName, middle name:aMiddleName, last name:aLastName, suffix:aSuffix, job title:aPosition, department:aDepartment, organization:aCompany}
        end if
        --set the Company view binary if no First and Last name
        if (first name of thePerson is equal to "") and (last name of thePerson is equal to "") then ¬
            set the company of thePerson to true
        tell thePerson
            if aPhone is not equal to "" then ¬
                make new phone at end of phones with properties ¬
                    {label:"work", value:aPhone}
            if aPhone2 is not equal to "" then ¬
                make new phone at end of phones with properties ¬
                    {label:"other", value:aPhone2}
            if aMobile is not equal to "" then ¬
                make new phone at end of phones with properties ¬
                    {label:"mobile", value:aMobile}
            if aFax is not equal to "" then ¬
                make new phone at end of phones with properties ¬
                    {label:"fax", value:aFax}
            if aEmail is not equal to "" then ¬
                make new email at end of emails with properties ¬
                    {label:"Work", value:aEmail}
            if aWebsite is not equal to "" then ¬
                make new url at end of urls with properties ¬
                    {label:"Work", value:aWebsite}
            if aStreet is not equal to "" then
                if aStreet2 is equal to "" then
                    make new address at end of addresses with properties ¬
                        {label:"work", street:aStreet, city:aPlace, state:aState, zip:aZip, country:aCountry}
                else
                    make new address at end of addresses with properties ¬
                        {label:"work", street:aStreet & ", " & aStreet2, city:aPlace, state:aState, zip:aZip, country:aCountry}
                end if
            end if
            if aPostPlace is equal to "" then set aPostPlace to aPlace
            if aPostbox is not equal to "" then
                if aPostboxCode is not equal to "" then
                    make new address at end of addresses with properties ¬
                        {label:"postal", street:aPostbox, city:aPostPlace, state:aState, zip:aPostboxCode, country:aCountry}
                else
                    make new address at end of addresses with properties ¬
                        {label:"postal", street:aPostbox, city:aPlace, state:aState, zip:aZip, country:aCountry}
                end if
            end if
            if aNote is not equal to "" then set note to aNote
        end tell
        -- place the new entry into a group
        set myGroups to name of every group
        set theGroup to (choose from list myGroups with prompt "Attach to which group?" without multiple selections allowed and empty selection allowed) as text
        --If user selects 'Cancel' button the value of the result variable is 'false'
        if theGroup is not "false" then
            add thePerson to group theGroup
        else
            -- create a default group and place the entry in there; first testing to see whether the default group already exists
            try
                if group newGroup exists then ¬
                    display dialog "newGroup exists" with icon 1
                add thePerson to group newGroup
            on error number -1728
                -- newGroup does not exist so create it
                display dialog "newGroup does not exist. Make new group with newGroup" with icon 1
                set theGroup to make new group with properties {name:newGroup}
                add thePerson to group newGroup
            end try
        end if
        save application "Contacts"
        set selection to (thePerson)
        activate
--set flag that new address entry was successful by seeking
        if the selection is equal to properties ¬
            {title:aPrefix, first name:aFirstName, ¬
            middle name:aMiddleName, last name:aLastName, ¬
            suffix:aSuffix, job title:aPosition, ¬
            department:aDepartment, organization:aCompany} then ¬
        set aExists to true
    on error errMsg number errNum
        -- do some sort of error processing here
        display dialog "An error occurred with the following number and description: " & return & errNum & return & errMsg with title "Data paste section."
        error errMsg number errNum
    end try
    --if we opened the AB, we'll close it
    if not ABactive then quit
end tell
--clear address variables content in case of repeat use
set aPrefix to ""
set aFirstName to ""
set aMiddleName to ""
set aLastName to ""
set aSuffix to ""
set aPosition to ""
set aDepartment to ""
set aCompany to ""
set aCompany2 to ""
set aStreet to ""
set aStreet2 to ""
set aPostbox to ""
set aPlace to ""
set aState to ""
set aZip to ""
set aPostboxCode to ""
set aCountry to ""
set aPhone to ""
set aPhone2 to ""
set aMobile to ""
set aFax to ""
set aEmail to ""
set aWebsite to ""
set aNote to ""
-- Delete original file if contents have been successfully added
if aExists then
    try
        tell application "Finder"
            if exists file addressFile then
                delete file addressFile --moves it to the trash
            end if
        end tell
    on error errMsg number errNum
        display dialog "Inserting new address was successfiul, however an error occurred while deleting the original file:" & return & addressFile buttons {"Cancel"} default button 1 with title "Error!" with icon stop
        display dialog ""
    end try
end if
-- End of 'add address' script

Well, after a few days of restoring my cellphone (The C6-01 I mentioned before), I came to this:
- After Hard resetting, the Lock Code is still erroneous;
- After firmware reinstalling, Lock Code is erroneous;
- Pulling out the battery, leaving the cellphone with no power for several hours, give the same result;
- Downgrading firmware (previous version) did not fix the problem;
Interesting thing is, after power on, the cellphone asks for the code lock: entering ANY number, returns "Code Error", and simply goes back to normal operation.
Everything is working, except I can no use de Lock Code, or any function related to it.
Of course, is pretty annoying to enter the lock code every time I power-on the cell.

Similar Messages

  • VBA Code error with Adobe Acrobat 10 Type Library

    Hi,
    I have some code I created in Word VBA to combine several separate PDFs into a single PDF.  The code works fine with the Adobe Acrobat 9.0 Type Library and Adobe Reader 9.0 installed.
    But, with the Adobe Acrobat 10 Type Library and Adobe Reader 10 installed, the code fails at the marked code below.  Any suggestions??
        Dim acrobatApp As Acrobat.acroApp
        Set acrobatApp = CreateObject("AcroExch.App")
        Dim mainPDF As Acrobat.AcroPDDoc
        Set mainPDF = CreateObject("AcroExch.PDDoc")  ****THIS IS WHERE THE CODE STOPS WITH A "TYPE MISMATCH" ERROR****
        Dim nextPage As Acrobat.AcroPDDoc
        Set nextPage = CreateObject("AcroExch.PDDoc")
        Dim numPages As Integer
        'Loop through all selected VLS, and add each one to the end of the main PDF
        For i = 0 To lstSelected.ListCount - 1
            mainPDF.Open CurDir & "\" & Replace(ThisDocument.Name, ".doc", "") & ".pdf"
            numPages = mainPDF.GetNumPages
            nextPage.Open lstSelected.List(i)
            If mainPDF.InsertPages(numPages - 1, nextPage, 0, nextPage.GetNumPages, True) = False Then
                MsgBox "Cannot insert pages"
            End If
            If mainPDF.Save(PDSaveFull, CurDir & "\" & Replace(ThisDocument.Name, ".doc", "") & ".pdf") = False Then
                MsgBox "Cannot save"
            End If
            'MsgBox lstSelected.List(i)
            nextPage.Close
        Next i

    What if you start with a really simple VBA example? Take a look at this:
    Private Sub CommandButton1_Click()
        Dim AcroApp As Acrobat.CAcroApp
        Dim theDocument As Acrobat.CAcroPDDoc
        Dim bm As Acrobat.AcroPDBookmark
        Dim thePath As String
        thePath = "c:\temp\test.pdf"
        Set AcroApp = CreateObject("AcroExch.App")
        Set theDocument = CreateObject("AcroExch.PDDoc")
        theDocument.Open (thePath)
        MsgBox "Number of pages: " & theDocument.GetNumPages
        theDocument.Close
        AcroApp.Exit
        Set AcroApp = Nothing
        Set theDocument = Nothing
        Set bm = Nothing
        MsgBox "Done"
    End Sub
    If this still does not work, I would reinstall Acrobat to make sure that
    the TLB is not corrupt.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com

  • Can I sync contacts via iTunes with Mavericks?

    I would like to sync contacts and calendars via iTunes (wifi or not) to/from my iMac and not use iCloud.  Can I do this?  If so, how? 
    Thanks in advance,
    C.

    Courcoul wrote:
    Make sure neither the phone nor the Mac have the Contacts/Calendars options enabled in their respective iCloud configurations, have the Mac's iTunes set to sync contacts/calendars up with the device (look in the respective tabs of the device's window),
    except this option is currently not available with Mavericks (as the OP asked).

  • Ejb 2.0 deployment code error with WAS 6.1

    Hi we have recently migrated to WAS 6.1 from 5.1.
    Since then we are facing the below problem.We use ant task to call ejbDeploy.sh to generate deployment code for one of our ejb module.All i did in the ant script was changing the path to ejbdeploy tool from WAS 6.1.However the application is built finally but showing this error in the middle of running the tool.
    If i replace the ejb-jar.xml to version 2.1 it is working fine with no error but as originally the application is coded on ejb 2.0 and here it is showing error.
    I am afraid of changing the dtd version just to avoid this error,also running with the error in the older version would cause any problem in the production later?
    Your help is needed
    Exception:
    {color:#0000ff}o0825.02EJB Deploy configuration directory: /users/users-2/t504625/.eclipse/configurationframework search path: /auto/prod/ver/WAS/610_21/deploytool/itp/plugins
    [exec] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ejb-jar.xml" in archive "/vobs/glbtrs01/gmm/build/src/java/temp/AppMessaging.jar"
    [exec] Stack trace of nested exception:
    [exec] org.eclipse.emf.common.util.WrappedException: java.net.ConnectException: Connection timed out
    [exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:97)
    [exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
    [exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
    [exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
    [exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:388)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
    [exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java:347)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.getMofResource(ArchiveImpl.java:731)
    [exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:61)
    [exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.preprocessArchives(BatchExtension.java:3681)
    [exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:340)
    [exec] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    [exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [exec] at java.lang.reflect.Method.invoke(Method.java:585)
    [exec] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
    [exec] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:101)
    [exec] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:106)
    [exec] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:336)
    [exec] Caused by: java.net.ConnectException: Connection timed out
    [exec] at java.net.PlainSocketImpl.socketConnect(Native Method)
    [exec] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    [exec] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    [exec] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    [exec] at java.net.Socket.connect(Socket.java:507)
    [exec] at java.net.Socket.connect(Socket.java:457)
    [exec] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    [exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
    [exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
    [exec] at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
    [exec] at sun.net.www.http.HttpClient.New(HttpClient.java:287)
    [exec] at sun.net.www.http.HttpClient.New(HttpClient.java:299)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
    [exec] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
    [exec] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
    [exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    [exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:93)
    [exec] ... 26 more {color}

    I am sure all the setup is coorect.
    i even tried the same script with WAS 5.1 ejbDeploy.sh tool and did not face this problem.
    This is what i tried again in WAS 6.1 but with the same result.
    We had two ejb module.
    I replaced dtd to version 2.1 in one module and left the other one with the 2.0
    Then when the ant scripts execute the task ejbDeploy.sh
    for module 1 with dtd 2.1 it shows WAS/deploytool/ipt/ejbdeploy.options not found error and stays for a second and then started building tha module 1 no exception is thrown and then shows the same not found error for module 2 with dtd 2.0 and stays forever until the connection timeout exception is thrown and then started building the module.
    I don't know the cause for the timeout exception when only DTD 2.0 is used.
    Please help.

  • Code Error with Case Statement

    Hi everyone,
    I'm new to PL/SQL and APEX and I'm trying to get this code to work. It is supposed to insert an sysdate if the named fields are changed and then update the fields.
    This is the code:
    BEGIN
    SELECT ATS_CLS_NAME, ATS_CEL_NAME, ATS_END_DATE,
    CASE
    WHEN
    ATS_CLS_NAME <> :P6_ATS_CLS_NAME
    AND ATS_CLS_NAME <> :P6_ATS_CEL_NAME
    AND ATS_END_DATE is Null
    THEN
    UPDATE ATS_ALLOCATION
    SET
    ATS_ALLOCATION_ID = :P6_ATS_ALLOCATION_ID,
    ATS_START_DATE = :P6_ATS_START_DATE,
    ATS_END_DATE = SYSDATE,
    ATS_CLS_NAME = :P6_ATS_CLS_NAME,
    ATS_CEL_NAME = :P6_ATS_CEL_NAME,
    ATS_EMP_ID = :P6_EMP_EMP_ID
    ELSE
    UPDATE ATS_ALLOCATION
    SET
    ATS_ATS_ALLOCATION = :P6_ATS_ALLOCATION,
    ATS_START_DATE = :P6_ATS_START_DATE,
    ATS_END_DATE = :P6_ATS_END_DATE,
    ATS_CLS_NAME = :P6_ATS_CLS_NAME,
    ATS_CEL_NAME = :P6_ATS_CEL_NAME,
    ATS_EMP_ID = :P6_EMP_EMP_ID
    FROM ATS_ALLOCATION
    END CASE;
    END;
    And I get this error:
    1 error has occurred
    ORA-06550: line 12, column 7: PL/SQL: ORA-00936: missing expression ORA-06550: line 5, column 1: PL/SQL: SQL Statement ignored

    BEGIN
    UPDATE ATS_ALLOCATION
    SET
    ATS_ATS_ALLOCATION = :P6_ATS_ALLOCATION,
    ATS_START_DATE = :P6_ATS_START_DATE,
    ATS_END_DATE = CASE
         WHEN ATS_CLS_NAME <> :P6_ATS_CLS_NAME
         AND ATS_CLS_NAME <> :P6_ATS_CEL_NAME
         AND ATS_END_DATE is Null
         THEN SYSDATE
         ELSE :P6_ATS_END_DATE
    END,
    ATS_CLS_NAME = :P6_ATS_CLS_NAME,
    ATS_CEL_NAME = :P6_ATS_CEL_NAME,
    ATS_EMP_ID = :P6_EMP_EMP_ID
    END;
    1 error has occurred
    ORA-06550: line 18, column 3: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored ORA-06550: line 21, column 21: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with

  • Contacts sync error with Gmail

    Hi, 
    Contacts do not sync with Gmail. I always get ""Sync is currently experiencing problems. It will be back shortly".
    Initially sync is working, but as soon as I change something in the contacts data on my phone, sync stops working and i have the above message. I tried to stop/clear data in Contacts and Contacts storage, and really, sync magically works again, BUT i loose all changes i did in contacts on a phone and i get initial unchanged contacts from Gmail.
    Any ideas?

    Did you try with a different Google account? Well in that case i would suggest that you repair the phone software using PC Companion: 
    http://www.sonymobile.com/update
    In PC Companion, press start on Support Zone > Start on Update the phone/tablet software > Press the blue link that says "Repair phone/tablet".
    Before repairing the software in your device you may want to backup your information first. Check out this topic for more information on how to:
    http://talk.sonymobile.com/t5/FAQ/Backup-amp-Transfer/m-p/407253#U407253
    What are your thoughts about this forum? Let us know by doing this short survey.

  • JSwing code errors with mouse over

    Basically this code is set up to change the background of Jtextfield when the Jtextfield contains the cursor. But, it seems that i have issues because it only works if the cursor is in the upper corner of my window frame. I think it has something to do with my hiearchy, but am unsure how to fix.. help will greatly be apreciated.
    its in two seperate class files by the way.
    import javax.swing.*;
    public class yahtzeeTest
          public static void main(String[] args)
         tes menu=new yahtzee();
         JFrame appFrame=new JFrame();
         appFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         appFrame.setContentPane(menu);
         appFrame.pack();
         appFrame.show();     
    // seperate file
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    public class testeld extends JPanel implements ActionListener, MouseMotionListener
         private static int      panelW = 400,
                                  panelH=350;
         JTextField tf[]=new JTextField[2];
           Point cursor;
         public testeld()
         setPreferredSize(new Dimension(panelW, panelH));
         setLayout(null);
         addMouseMotionListener(this);
         setBackground(Color.red);
              for(int i=0; i<2;i++)
              tf=new JTextField( "",i);
              tf[i].setBounds(200, (30+(26*i)), 30,20);
              tf[i].setEnabled(false);
              add(tf[i]);
              tf[i].addActionListener(this);     
         public void actionPerformed(ActionEvent ae)
              Object src = ae.getSource();
         public void paintComponent(Graphics g)
              super.paintComponent(g);
              Graphics2D g2=(Graphics2D)g;
         public void mouseMoved(MouseEvent me)
         int x=me.getX();
         int y=me.getY();
         this.cursor =new Point(x, y);     
         for(int i=0; i<tf.length; i++)
              if(tf[i].contains(cursor))
                   tf[i].setBackground(Color.yellow);
              else
                   tf[i].setBackground(Color.white);
         public void mouseDragged(MouseEvent me){}

    1) Swing related questions should be posted in the Swing forum.
    2) I would use the mouseEntered, mouseExited events to set/reset the background.
    3) Why did you overried paintComponent()

  • Applescript Issue with Mavericks: Security?

    Hi - I'm having an Applescript Problem with Mavericks:
    For years, I've been running EyeTV on my mac. After recording a TV show, EyeTV calls a script called "RecordingDone.scpt".
    I've modified this script to do what I need it to do. It's automatically run by EyeTV (using a process called "TriggeredScriptBridge", which I can observe via Activity Monitor). I can also execute the script directly from the Finder, as an Applescript app, and also by running the script via Applescript Editor.
    Prior to Mavericks, both EyeTV and manual execution of the script ran correctly.
    With Mavericks, running the script executes correctly when run manually. But whenever EyeTV executes the script, it fails. The failure occurs when the script tries to create a new folder or copy a file.
    For example, this code runs correctly when initiated manually but fails when initiated by EyeTV:
      if (exists folder fileLocation) is false then
      try
          make new folder at alias ExportLocationTV with properties {name:ParsTitle}
                my log_event("DEBUG:  Folder successfully created")
      on error
            my log_event("DEBUG:  couldn't make folder!")
      end try
      end if
    Same thing with this code (manual execution works, not so when called by EyeTV):
    try
          do shell script shellCommand -- do the copy
      my log_event("DEBUG:  copied successfully")
      on error
           my log_event("DEBUG:  failed to copy!")
      end try
    My guess is that Mavericks isn't letting EyeTV call a script that writes to disk. Is that what's happening? If so, how do I make things work again? Or if I'm wrong with my guess, anybody have any idea what might be screwing up here?
    Thanks much....

    If this application is from the App Store, it is running in a sandbox and needs to have the proper entitlements. 
    No, the app is not from the App Store. But perhaps the developers have incorporated sandboxed operation in a recent update? (I don't know much about sandboxing and its effects yet...)
    I am guessing that since scripts are supported by the application that the developers have set the appropriate entitlement for that, but the user running the application will still need to authorize writing to a location outside of the sandbox.
    Your script is not using a security-scoped bookmark or putting up a file dialog - how are you selecting the destination folder?
    OK, some of this is new to me (e.g. security-scoped bookmark), so please bear with me if my responses don't make immediate sense.
    The EyeTV app developers have put a few calls to external scripts that can be run when certain events occur within the app (for example, "RecordingStarted.scpt" and "RecordingDone.scpt"). The EyeTV app initiates a process named "TriggeredScriptBridge" that calls the scripts. These scripts are intended to be modified by users to perform tasks upon the TV recording created by EyeTV. They have always worked fine before Mavericks.
    Under Mavericks, when the script is run via a call from the EyeTV app, the destination folder(s) are selected by hard-coded links I placed within the script. When I run the script manually, I present a Choose Folder dialog for more flexibility.
    So, under Mavericks, do I need to do something different in my scripts to allow access to the disk to create folders, etc.? Or is this something that I can't do because it's the responsibility of the app itself (EyeTV)? Or am I not understanding what's going on here (the most likely scenario... )

  • ContaCT SUPPORT ERROR CODE 0X0EOEFOOOE

    ecovery manager could not restore your computer using the factory image please contaCT SUPPORT ERROR CODE 0X0EOEFOOOE what does that mean?    IBlack screen   error  BOOTMGR MISSING   then I tried a factory restore with cds I had burned for back up thats when get message about recovery manager error 0xe0e f000e

    Recovery manager could not restore your computer using the factory image please contact SUPPORT ERROR CODE 0X0EOEFOOOE what does that mean?    IBlack screen   error  BOOTMGR MISSING   then I tried a factory restore with factory restore cds I received with the laptop HP G62-355DX thats when get message about recovery manager error 0xe0e f000e
     Can anyone help with what I need to do now, as this error message appeared after asking me to insert the disk 2, and the hard disk has been wiped clean when starting the the restore so I am not left with a dead laptop, and I am now living in the UK so cannot new disks sent to me, but then I dont think the problem is with the disks but the laptop. The OS is Windows 7.
    I would be thankful for any help is getting my laptop working again.

  • Hello apple guys, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    hello apple guys, after installing OS X Mavericks, i can't open app store, reminders, contacts, mail(crash), maps, Image Capture, and other apps that comes with Mavericks OS, how i can solve this problem?

    So is this the way Apple works now? Not solving customers problems? I'm sure so many users have had this problem. I've had, and I reinstalled Mavericks 3 times. Works fine for some days and then several Apple Apps stop working. Is that a way to force us ti update to Yosemite? (I don't want to) and then pay to update some third party programs (i.e. Pro Tools). Also, there are so many 15" MacBooks Pro with graphic problems and of course the guys at the Apple Service Centers always say: "It's the logic board, you can have it replaced, but it's so expensive I would recommend a new Mac".  I really, really miss Steve Jobs!

  • "ink system failure" error with code oxc19e0023 on a HP Photosmart Premium All-in-One Printer - C309

    "ink system failure" error with code oxc19e0023 on have a HP Photosmart Premium All-in-One Printer - C309g  - Have done all the resets and reseated the ink also tried replacing ink with new HP carts..getting frustrated please help
    This question was solved.
    View Solution.

    Have you tried the steps outlined in this article:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03081973&cc=us&dlc=en&lc=en
    If not give the steps a try and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • I cannot transfer my Ical on my Imac with Mavericks 10.9.2 to my iphone 4 with the latest operating system.  I get error message "403" when it attempts to upload to the cloud before transfering to the iphone.  Any advice would be greatly appreciated.

    I cannot transfer my Ical on my Imac with Mavericks 10.9.2 to my iphone 4 with the latest operating system.  I get error message "403" when it attempts to upload to the cloud before transfering to the iphone.  I've tried shutting down the computer and iphone but it has not been successful.  There is plenty of data available on the icloud as I've not used it for anything else.   Any advice would be greatly appreciated.  Thank you.
       Kevin

    Hello kmcnern3,
    Thank you for providing the details of the calendar issue you are experiencing with your iMac and iPhone.  I recommend following the steps in the section titled "Troubleshooting on OS X" in the following article to assist with syncing your calendar events between your devices:
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • "empty file" error with CS5, linux server and mavericks

    hello to the community,
    i'm the owner of a small online marketing agency.
    we have been using different macs here since 10.6. until mavericks with adobe CS 5 and a linux server for years.
    today i got a new MBP retina with mavericks and since now i have the following problem:
    - when i try to open a photoshop file on the server i get a "file is empty" error, when i open an illustrator file on the server illustrator crashes und when i open a pdf on the server with acrobat pro there comes a message that the file is corrupt. with acrobat reader i can open it.
    - i can open the exact files with all apps when they are on a local storage not an the server
    - i can open all files on the server with another mac with os x 10.6.
    so there must be a problem with the combination cs5-files, server and os 10.9. it's weird because with my old MBP i with also using mavericks and there was no problem.
    can anyone help me? it's really a problem!

    i found a workaround that seems to work!
    instead of connecting to the server with "smb" i connect with "cifs". so i force mavericks to connect using the old smb 1 instead of the buggy smb 2.

  • All my contacts are stored with country code for eg   233 244 123456. Contact names do not appear during incoming calls. Once the country code is removed , names appear. Please help

    All my contacts are stored with country code for eg   +233 244 123456. Contact names do not appear during incoming calls.
    Please help

    http://discussions.apple.com/thread.jspa?threadID=2280669&tstart=0

  • Error with rendering of CSS code

    I may of found an unknown error with ADE. I did a gogole search and didn't see the same error.
    I was having issues with ADE rendering my backround image in a table. It show up find in sigil but not ADE. And my other EPub I create did show up correctly I try everything I new (I'm just learnng CSS).
    I had a thought, what if my file name was to long. But I dismiss that idea. As a last temp effort, I try renaming it to a shorting name and it work. However, it was not the lenth of file name, but that I had parentheses  " () " in my file name. As soon as I took them out it render correctly. My backround image show up as it should.
    Not sure if this is known, but I couldn't find the issue with a google search or searching these forums. I know that some programes rename dupicate files with parentheses.

    hi
    go to CUNI
    select ISO codes  give new entry for CAR
    then save and come back in CUNI select the UOM then double click onur unit at right u will get field of ISO code give iso code here and save
    regards
    kunal

Maybe you are looking for

  • How can I change the default time zone in ICloud?

    I'm in the UK but the only ICloud time zone I'm offered is the Pacific.  I'd be grateful for suggestions on how to sync my calendar in the week view with BST. At present the nearest I can get is the Azores. Thanks.

  • Trying to add a movie to an iPod makes the computer shutdown?

    This is my first time posting here, so please bear with me if I do something incorrectly. One of my new movies refuses to be added to my iPod. When I try to add it, the progress bar gets most of the way there before freezing. Then my computer complet

  • 11.1.0 OEM On Windows

    In oracle note 412431.1 it says that it can be run on: Platform Windows x86 OS versions      Windows Server 2008, Windows Server 2003 R2; Windows 2003 (32 bit) with SP2/R2+, Windows7 But when I look at oracle.com (http://www.oracle.com/technetwork/oe

  • Req for new features in nest asha 311 update

    Nokia must add several features of asha 311 next upcoming update . They should include max. features of their nokia 501 asha platform

  • Workspace not up-to-date

    Hi, I have an issue in one of our environments, maybe you can help me. The environment is a cluster environment, meaning we have two workspaces in a workspace cluster and two engines in an engine cluster. Unfortunately I have some problems in seeing


HashFlare