Help to clear error in my script

Hi
Here is my code to find cmyk values for selected object,I get the answers in alert window perhaps i want to get the values in rectangle filled with selected value inseted of alert window
i want to draw a rectangle, rect = myDocument.pathItems.rectangle( 20, 20, 20, 20 ); rectangle must be some where outside artboard and fill first selected color in below code and followed by next
can anyone help me to modify below code and bring exact output i required
var docRef = app.activeDocument;
var iL=docRef.pageItems.length;
var mytext=docRef.textFrames.add();
for (i=0;i<iL;i++)
     myItem=docRef.pathItems[i];
          if (myItem.fillColor=="[CMYKColor]" && myItem.selected)
            var c=myItem.fillColor.cyan;
            var m=myItem.fillColor.magenta;
            var y=myItem.fillColor.yellow;
            var k=myItem.fillColor.black;
            //alert ("pathItem number:"+i+" \n cyan: "+c+" \n magenta: "+m+" \n yellow: "+y+" \n black: "+k);
            rec();
i have an idea but i don't know how to come out with code, my idea is
function rec()
var rect = docRef.pathItems.rectangle(100,-100,26,26) ;
var col= new CMYKColor();
col.cyan = c;
col.magenta = m;
col.yellow = y;
col.black = k;
rect.fillColor=col;
but i don't know its right
please help me i'm trying this for last 2 days i couldn't get this
i would be thankful for you
Thank you
Appu

ORA,
please mention your jdev version and a use case.
Problem is that you copied code (part of it shown here) without telling us in which context this code runs.
I bet the code should run as a servlet. There you don't need getServletResponse() because it passed as parameter to the doGet() or doPost() method.
Next thing is that you imported oracle.adfinternal.view.faces.bi.util.JsfUtils which is an internal class you should not use (it's not even documented).
There exists an class JSFUtils, which is part of the FOD sample. Is guess you intend to use this.
What excatly do you mean by 'can't find flush() and close() in outputStream?
Both methods are part of the class OutputStream. Select Outputstream in your code and hit F1.
Timo

Similar Messages

  • Error 1048 Matlab Script depends on string length

    Using: Labview 8.2, Matlab 2007a, Windows XP (AMD X2 4200+ 3GB RAM).
    I'm having an issue with MATLAB script server, Error 1048 failed to get variable from script server.  I've read the forums, but most posts are years old and don't address variable size issues.  I have no problem with these strings inside the MATLAB command window.  I'm somewhat inexperienced with LabView, so maybe this VI could have been simplified.
    I'm writing data files with a tab header, using MATLAB to perform some operations on data (I have a library written to do certain things and can't really spend the time to recode in Labview).  When I try to pass out the new header string, I get error 1048 only when the string length goes above a certain size range.  I have iterations because I want to process hundreds of files in a similar fashion to this VI.
    Header length ~ 1300 chars has always been fine, regardless of number of iterations within the VI.
    Header length ~ 2600 chars presents some errors; not deterministic.
    Header length ~ 5200 chars has many errors; not deterministic.
    Header length ~ 7800 chars has many errors, fails almost all the time.
    Also, timing delay after reading in the file seemed to do nothing to help.  Pausing at the end of the MATLAB script did not seem to help. Clearing MATLAB/restarting LabView did not seem to help.  Is there a way to catch variable-specific errors from the script window?  Notice that the output variable is not cleared when it fails to be obtained from the MATLAB window.  I could wrap the whole thing in a while loop until there are no errors, but that doesn't help when the length is so large none of them succeed.   I can split the string inside matlab, but I'd have to create n strings and then concatenate them outside, which still gives me a lack of scalability.  Is there any better way to handle this kind of non-deterministic error?
    Thanks very much for reading.
    Attachments:
    header6001.txt ‏8 KB
    Matlab Script Server Test1.vi ‏38 KB
    header1001.txt ‏2 KB

    Does NI monitor these forums for bug reports to fix?  Here's a non-scalable hack solution I mentioned earlier, creating n string outputs and concatenating them in Labview.  I've checked this in Matlab using the code below.  I've included the VI if anyone has the same issue and wants it.
    Note that I chose to throw the size error if the string is too large for the n you choose.  I prefer this to trying to check the string output to see if it was truncated.
    hcols = size(hstring,2);
    for k = 1:8
        hvar = strcat('h', sprintf('%d',k));
        if( hcols >  k*1000 & k < 8 )
            hcom = sprintf('%s = ''%s'';', hvar, hstring(1, ((k-1)*1000+1):k*1000 ));
        %if size < k*1000, or we're at the end with leftovers, copy what's left
        elseif( hcols >= (k-1)*1000+1  &  (hcols <= k*1000 | k == 8 ))
            hcom = sprintf('%s = ''%s'';', hvar, hstring(1, ((k-1)*1000+1):end));
        else
            hcom = sprintf('%s = '''';', hvar);
        end  
        eval(hcom);
    end
    %Matlab validation code.  Do not use strcat, as it will chop tabs at the endpoints.
    newh = sprintf('%s%s%s%s%s%s%s%s', h1, h2, h3, h4, h5, h6, h7, h8);
    strcmp(hstring, newh)
    Attachments:
    Matlab Script Server Test2.vi ‏40 KB

  • Unable to Print From from Web-Based Sites, Error Occurred in script.

    When I try to print, I keep getting an error from a script running too long when I try to print anything web-based. I can print documents on my computer wirelessly, but not web-based (i.e.., financial statements). What is causing these errors from web sites? It is frustrating continually getting an error message. I have an HP 65000A Plus wireless CN557A#B1H, all in one printer and using Windows Vista Home edition operating system.
    When I hit print, an error message comes up saying;
    "An error has occurred in the script on this page"
    Line:2053
    Error: Invalid procedure call or argument
    At the bottom, it asks " do you want to continue running scripts on this page?".
    Any help would be appreciated. As mentioned, it is very frustrating.

    I have the same exact problem as SandyStill. It tries to print, ejects plain paper and nothing pending in the printer. I am running a Dell XP Pro, Adobe Reader 8.1.2, RAM-1G, and an HPDJ 6940 printer. Tried tech support with HP to no avail because everything else prints fine.
    I've even tried some of the suggestions of another thread using the Microsoft Utility to remove Adobe and then download it again with no success.
    Does anyone have a solution?

  • Error while copying Script form

    Hi all,
    working in a project to demerge a live SAP system into another client.
    while i copy a script from one client(100 DEV) to another(200  DEV), system doesnt allow me to copy.
    says that a user is already modifying the script under request. (USER1 in 100 client)
    If the user releases the request, i am able to change the form in 200 (user2 in 200 client).
    and this error is vice versa on both ends.
    How can this issue be solved?
    Thank you form your help in advance.
    Regards,
    BALVIJ

    Hi,
    Script once copied to another client will still hav dependancy in previous client?
    Means while i am copying the script into new client and saving,
    its directly asking for a TR and saving it in the package which belongs to previous client.
    does it happen that way? if no please explain.
    Regards,
    BALVIJ

  • 'JS Callback error while executing script' in 4.7

    hello everyone,
    When I was installing SAP 4.7 after the Database load jobs I am getting an error like ' JS Callback error while ecevuting script'.... Jobs are loading but after thatI was having this error... I tried several times but the error is the same... Can anyone plz help me out in this regard ?? If anyuone having scrreenshots of 4.7 installation plz help me...
    Byee

    m

  • Help and support error message

    when I try and use the help and support icon on my HP pavillion windows vista computer, I get the following error message:Microsoft script host Script: C:\Windows\Help\OEM\scripts\openOEMACW.jse line: 2 Char:1 error: Automation server can't Create Object  Code: 800A01AD Source: Microsoft JScript runtime error

    Hello sportsfan888,
    Here is another thread with a similar issue that banhien was able to find a solution.
    G71-340US HP Help and Support Problems
    It would appear that the Help and Support application needs to be reinstalled.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Error 1073 (on Clear Errors.vi) When Building Applicatio​n in LV 8.2

    I have seen numerous posts about this problem when building an application without a block diagram in LV 7.x, however, I am recieving this error on LV 8.2.  Whats most disturbing about it, is that it always hangs when processing Clear Errors.vi.  I have tried my source on two different machines, to no avail.  Also I tried to do a mass recompile of the entire vi.lib again no help.  It is very important that this program compiles, however I cannot get past this error.  Any suggestions?
    My specific error message is here:
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 1073 occurred at ABAPI Dist disconnect td-poly.vi -> ABAPI Dist Chg and Save VIs.vi -> ABAPI Dist Build LLB Image.vi -> ABAPI Copy Files and Apply Settings.vi -> EBEP_Invoke_Build_Engine.vi -> EBUIP_Build_Invoke.vi -> EBUIP_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.
    -Paul

    Hello Paul,
    I am sorry for not elaborating previously.  This issue has been documented previously for further investigation to our R&D group (# 3ZK9LGP2).  In the report I found that this error, though vague in the description, is fixed by enabling MathScript Support. 
    To enable MathScript support, check the checkbox in the application properties for the 'Enable MathScript support' option.
    -Bob
    -Bob

  • Error: Warning Unresponsive script, dom.max_script_run_time : not found

    The fix for error: Warning Unresponsive script says goto config page
    about:config page, search for the preference dom.max_script_run_time
    - this parameter not found on the config page
    Please advise
    == This happened ==
    A few times a week
    == always

    I have pretty much the same problem -- I run three different types of Browsers (Firefox 3.6; Internet Explorer 6; Chrome) and I've found that they are all affected by this ... thing.
    I suspect that there is some kind of war going on, or a very aggressive move by Yahoo onto the Browsers and Search Engine scene. With Yahoo trying to be an 800 lb (Pound weight) Gorilla - again, Yawn!
    I this because I've recently installed an AntiVirus application (which is a really good one -- but, unfortunately for the AntiVirus maker they did not look closely enough at who they were getting into bed with -- The 800 Pound Gorilla, Yahoo.
    This AntiVirus's installer had a default setting to make Yahoo Search my default search engine -- it was a tiny notice about this and I happened to look otherwise Yahoo would have installed openly onto my computer (and I don't want them. I've been using computers since before the Internet was publicly and generally available and I know only too well Yahoo's Huge Ego and Navel gazing behaviour.
    Basically, Mozilla are on Yahoo's side, because -- in the minds of the anarchists of Mozilla -- Google had no right to make a Browser.
    This is Mozilla getting its own back on Google and Google Chrome. Mozilla are culpable in this assault on our own property -- our own computers. By two organizations who are bitter at Google. Actually, they are jealous of Google because Google succeeded on the quality and purity of Google products and their terrific business sense and strategy.
    Now, Mozilla and Yahoo have got in cahoots (and chumps like the supplier of my AntiVirus have been sucked into this) to "Do something about Google" as Mozilla proclaimed they would do (should they get the chance) some few years ago.
    Now, I have in my computer: Yahoo software and a Mozilla Browser which are both acting truly as Malware. Now that AntiVirus company which loaded Yahoo software onto my computer can understand why I wrote to them pointing all this out (and they, a multi-million or billion pound organization missed what tiny little me could see) that they have helped Malware get onto my system -- now their up-to-that-moment very well thought of AntiVirus and organization ... Well, their name is now mud (but I shall not say their name here. Let them suffer their stupidity and shame, that should be enough for them. They are going to have a time of it cleaning this little ol' mess up.)

  • FJS-00012  Error when executing script.

    Folks, please i need help, i'm installing sap on oracle 9.2
    SYSID CBT, this is SAP 4.71. It stops on the "creating or registering SAP Services (post processing)" phase, and inside the file  SAPSTARTSRV.EXE.log it's just the word SERVICE NOT STARTED.
    here is the error message
    ==========
    Creating file K:\usr\sap\trans\bin\tpparam_instCBT.
    PHASE 2011-03-14 18:41:36
    Deal with services
    PHASE 2011-03-14 18:41:36
    Prepare dealing with SAP System services
    INFO 2011-03-14 18:41:36
    Creating file S:\SAPinst ORACLE SAPINST\SAPSTARTSRV.EXE.log.
    INFO 2011-03-14 18:41:48
    See 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS10_SNGCBT1 -s CBT -n 10 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' output in 'S:\SAPinst ORACLE SAPINST\SAPSTARTSRV.EXE.log'.
    ERROR 2011-03-14 18:41:48
    MOS-01012  PROBLEM: 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS10_SNGCBT1 -s CBT -n 10 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' returned with '-1' which is not a defined as a success code.
    ERROR 2011-03-14 18:41:48
    FJS-00012  Error when executing script.
    INFO 2011-03-14 18:42:05
    Creating file S:\SAPinst ORACLE SAPINST\SAPSTARTSRV.EXE.log.
    INFO 2011-03-14 18:42:52
    See 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS10_SNGCBT1 -s CBT -n 10 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' output in 'S:\SAPinst ORACLE SAPINST\SAPSTARTSRV.EXE.log'.
    ERROR 2011-03-14 18:42:52
    MOS-01012  PROBLEM: 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS10_SNGCBT1 -s CBT -n 10 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' returned with '-1' which is not a defined as a success code.
    ERROR 2011-03-14 18:42:52
    FJS-00012  Error when executing script.
    INFO 2011-03-14 18:48:37
    Creating file S:\SAPinst ORACLE SAPINST\SAPSTARTSRV.EXE.log.
    INFO 2011-03-14 18:48:44
    See 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS10_SNGCBT1 -s CBT -n 10 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' output in 'S:\SAPinst ORACLE SAPINST\SAPSTARTSRV.EXE.log'.
    ERROR 2011-03-14 18:48:44
    MOS-01012  PROBLEM: 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS10_SNGCBT1 -s CBT -n 10 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' returned with '-1' which is not a defined as a success code.
    ERROR 2011-03-14 18:48:44
    FJS-00012  Error when executing script.
    =============
    what can i do?
    cheers.

    Hi, i installed the vcredist_x86 patch but nothing happened. I'm running a windows 2000 advanced server on a virtual machine with 3 GB of RAM and a lot of space.
    When i tried to start the services manually from service.exe it shows me the on windows eventviewer:
    Initialization failed. Service not started. [ntservmain.cpp 1002]
    and then
    The dynamic link library librfc32.dll could not be loaded
    And here is the message from the sapinst
    ***** Transaction begin ********************************************************
    TRACE
    Processing Row[0] WapsSystemName="CBT" WapsInstanceName="DVEBMGS00" WapsInstanceHost="SNGCBT1" Key="WAPS_SAPsidInstNum_Service" Program="K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE" ProgramArguments="-r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS00_SNGCBT1 -s CBT -n 00 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm" ArgumentSeparator=" " ProgramReturnCode="255"
    TRACE<i>
    Copying file S:/SAPinst_ORACLE_SAPINST/SAPSTARTSRV.EXE.log to: S:/SAPinst_ORACLE_SAPINST/SAPSTARTSRV.EXE.12.log.
    TRACE<i>
    Creating file S:\SAPinst_ORACLE_SAPINST\SAPSTARTSRV.EXE.12.log.
    TRACE<i>
    Removing file S:/SAPinst_ORACLE_SAPINST/SAPSTARTSRV.EXE.log.
    INFO 2011-03-15 14:47:21
    Creating file S:\SAPinst_ORACLE_SAPINST\SAPSTARTSRV.EXE.log.
    INFO 2011-03-15 14:47:29
    See 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS00_SNGCBT1 -s CBT -n 00 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' output in 'S:\SAPinst_ORACLE_SAPINST\SAPSTARTSRV.EXE.log'.
    TRACE
    ProgramReturnCode='-1' means error.
    ERROR 2011-03-15 14:47:29
    MOS-01012  PROBLEM: 'K:\usr\sap\CBT\SYS\exe\run\SAPSTARTSRV.EXE -r -q -p K:\usr\sap\CBT\SYS\profile\START_DVEBMGS00_SNGCBT1 -s CBT -n 00 -U HCB\SAPServiceCBT -P sap4life -e HCB\cbtadm' returned with '-1' which is not a defined as a success code.
    ***** Transaction end **********************************************************
    So Please can someone help me.
    regards

  • TS1424 how do I clear error download. tap to retry?

    How do I clear error download in Itunes downloads on my iphone?
    My phone will download other music but keeps leaving 2 particular albums in my down load que.
    Yet the music is shown in my libary as purchased and downloaded.

    I am also having this same problem.    I have no videos in the video app as they have already exceeded their rental period.  In ITunes, I show the "More" button has two waiting to be downloaded with an error "download error, tap to retry".  I retry but I get the same error message.  They remain on my phone taking up memory too.  HELP?

  • I am getting script errors on startup - Script: chrome://global/content/bindings/browser.xml:194 WHY?

    The last couple of days I have been getting script errors on startup - Script: chrome://global/content/bindings/browser.xml:194 ,
    I am also getting shutdown errors when I power down "end program" types including sgtray.exe, hkcmd.exe, directcd.exe, msascui.exe, d3d9window.exe,
    Some of these are associated with programs I use but have not caused problems previously.

    This post can help you with your problem : https://support.mozilla.org/en-US/kb/warning-unresponsive-script
    Hope it helps :)

  • Help to resolve error in sending database email from SQL Server 2012.

    Please help to resolve error in sending email from SQL Server 2012.
    SQL Instance Version:
    Microsoft SQL Server 2012 (SP1) - 11.0.3449.0 (X64) 
    Jun 29 2014 23:15:18 
    Copyright (c) Microsoft Corporation
    Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
    Error Message: Error MeThe mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-01-15T19:48:25). Exception Message:
    Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated).)

    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1
    Client was not authenticated).
    I think the error message is pretty clear, you have to setup authentication for the SMTP connection in Database Mail, see
    Database Mail Configuration Objects
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Installation error 1607: InstallSheet Scripting Runtime cannot be insalled

    I was installing the upgrade 6.0.5 and it got stuck when installing the quicktime part so that I had to terminate the process. When I try to install again I get the error message: Installation error 1607: InstallSheet Scripting Runtime cannot be insalled. What can I do ?

    Thanks for your suggestions; they helped me get further along in the resolution of my problem, but did not get me completely there.
    I, too, have experienced the same problem tonight the OP had. Earlier tonight (before viewing this thread), I tried installing the latest update to Quick Time and was unable to complete it due to a problem, apparently, with InstallShield. The error message read "1607: Unable to install InstallShield scripting runtime." I found this thread and did as you suggested. I de-activated my firewall (Zone Alarm) and anti-virus (AVG) programs and installed the update, through the address you posted, to my desktop. When I opened the install, the install progressed somewhat further than earlier installs tonight, but then got hung up and the same message appeared. I would greatly appreciate any other suggestions or advice you or anyone else may have so I can resolve this problem. Thanks!
    HP   Windows XP  

  • Help me fix error : cisco aironet 1200

    plz help me fix error:

    are we able t oaccess the AP using console access?? if yes, try assigning the ip address to the BVI interface..
    conf t
    int bvi 1
    ip address
    no shut
    try accessing the AP using browser and see if we could access the GUI..
    If the radio interfaces doesnt come up then.. we are hitting the below bug..
    the AP is hitting the software bug.. to resolve the issue we need to..
    http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCsc79121
    1-       to upgrade to version 12.3(8)JEA
    2-       or to downgrade to version 12.3(7)JA2
    Upgrade process
    ===============
    >> Get the console access to the AP and then connect the ethernet cable between the AP and the laptop.
    >> Both the AP and the laptop should be in the same subnet..
    >> Donwload the latest image from cisco.com and point the image in the TFTPd32 server
    >> in the console access, issue the command.
    archive download-sw /force-reload /overwrite tftp:///
    Example..
    AP# archive download-sw /overwrite /force-reload tftp://10.X.X.X/c1200-k9w7-tar.123-7.JA1.tar
    if the above is not clear.. then i request you to open up a TAC case..
    Regards
    Surendra

  • Error while executing script for sharepoint online (office 365) - the remote server returned an error: (503) server unavailable

    error while executing script for sharepoint online (office 365) - the remote server returned an error: (503) server unavailable.
    I am creating many site collections reading records from sharepoint list using powershell in sharepoint online tenant (office 365).
    Few site collections are created and then getting above error so this error record will be skipped then few succeeding record processed then again getting error.
    pattern is like:
    success
    success
    success
    success
    Error
    success
    success
    success
    success
    success
    success
    error
    success

    Hi,
    As it is an online environment, to troubleshoot this issue in an easier way, I suggest you contact Office 365 Support to see if there is any useful information in
    the log files in the server side:
    https://support.office.com/en-us/article/Contact-Office-365-for-business-support-32a17ca7-6fa0-4870-8a8d-e25ba4ccfd4b?ui=en-US&rs=en-US&ad=US
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for