[JS][CS3] Method failing in palette

Hi,
Although I experience the problem in Illustrator CS/Win, I suspect someone might have been through a similar problem in InD, and it might expose some sort of bug. I seek to either have such a bug confirmed or grasp a solution. That's why I'm posting also on this forum.
I wrote a method to check whether the active document's selection is exactly two vertical guides, and it works well when isolated, run from either Scripts menu or from ESTK. But once attached this method to a button in ScriptUI palette, it continuously fails to do its job. Again, it works OK from a modal dialog (which however is not a solution to me, since it does not allow interaction).
It claims that "there is no document", although it is there and has the expected selection. I tried a whole bunch of try/catch, if'fing tests, referring to activeDocument as well as documents[x], passing a ready-to-use docref, repeating the #target directive, restarting Ai/ESTK, but it stubbornly claims there is no document.
Anyone having a workaround? It's a showstopper :( I have to stick with palette type of window. :(

Yes, Dave, I do this kind of debug all the time, writing either to console or showing alerts, but what good does it when you see that there IS a document but an alert shows that you fell into if(!app.activeDocument) ?
Try to attach to a button any function referring to a selection, for instance: returning width of the selected object. Try both types of window frame: 'dialog' and 'palette'. I'd be curious what results you'd get.
Unless I'm doing something wrong, I think there might be some problem with window layering.
Art

Similar Messages

  • The servlet weblogic.servlet.AsyncInitServlet init method failed

    I installed WLS 9.2.2 recently with my app being on 8.1.5 for a long time.
    I chose to create a new domain instead of upgrading my existing one.
    I use the eclipse 3.2.2 with the WL plugin.
    When I start the server and login to the console not using eclipse it works fine.
    Trying to start the server and login to the console gives a internal server error.
    Any idea what could be wrong? I bolded the parts where I have looked into.
    Here is the console output:
    <Nov 19, 2008 3:13:02 PM CST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\bea92\weblogic92\platform\lib\p13n\p13n-schemas.jar;C:\bea92\weblogic92\platform\lib\p13n\p13n_common.jar;*C:\bea92\weblogic92\platform\lib\p13n\p13n_system.jar*;C:\bea92\weblogic92\platform\lib\wlp\netuix_common.jar;C:\bea92\weblogic92\platform\lib\wlp\netuix_schemas.jar;C:\bea92\weblogic92\platform\lib\wlp\netuix_system.jar;C:\bea92\weblogic92\platform\lib\wlp\wsrp-common.jar>
    <Nov 19, 2008 3:13:03 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_10-b03 from Sun Microsystems Inc.>
    <Nov 19, 2008 3:13:05 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP2 Mon Jun 25 01:32:01 EDT 2007 952826 >
    <Nov 19, 2008 3:13:10 PM CST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : C:\bea92\license.bea>
    <Nov 19, 2008 3:13:10 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 19, 2008 3:13:10 PM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Nov 19, 2008 3:13:11 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea92\user_projects\domains\domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <Nov 19, 2008 3:13:15 PM CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Nov 19, 2008 3:13:22 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Nov 19, 2008 3:13:22 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 19, 2008 3:13:30 PM CST> <Error> <HTTP> <BEA-101359> <The servlet weblogic.servlet.AsyncInitServlet init method failed while it was run in the background. The exception was: java.lang.NoClassDefFoundError: com/bea/p13n/management/ApplicationFilePoller$Handler.
    java.lang.NoClassDefFoundError: com/bea/p13n/management/ApplicationFilePoller$Handler
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         Truncated. see log file for complete stacktrace
    >
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.>
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Nov 19, 2008 3:13:39 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7005 for protocols iiop, t3, ldap, http.>
    <Nov 19, 2008 3:13:39 PM CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "domain" running in Development Mode>
    <Nov 19, 2008 3:13:40 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Nov 19, 2008 3:13:40 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <Nov 19, 2008 3:22:04 PM CST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@d6c6a0 - appName: 'consoleapp', name: 'console', context-path: '/console'] Servlet failed with Exception
    java.lang.NullPointerException
         at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:124)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         Truncated. see log file for complete stacktrace
    Edited by: user5384782 on Nov 19, 2008 1:42 PM
    Edited by: user5384782 on Nov 19, 2008 3:59 PM

    Thanks for your replies adrian and david.
    The only thing I see different is that eclipse has different arguments when calling the jvm at the top.
    startWebLogic.cmd:
    C:\bea92\JDK150~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000
    -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=C:\b
    ea92\WEBLOG~1 -Dwls.home=C:\bea92\WEBLOG~1\server -Dwli.home=C:\bea92\WEBLOG~1\i
    ntegration -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testC
    onsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\bea92\patch_weblogic922
    \profiles\default\sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.s
    ecurity.policy=C:\bea92\WEBLOG~1\server\lib\weblogic.policy weblogic.Server
    eclipse:
    -hotspot -Xms32m -Xmx200m -Dweblogic.ProductionModeEnabled=
    Eclipse may be calling the cmd I dont know.
    I will try upgrading my eclipse like adrian said, but in the meantime I appreciate any further advice/tips.

  • PS CS3 Extended fails to install. XP Pro

    PS CS3 Extended fails to install. Windows XP Pro.
    Computer info: Pentium 4
    CPU 2.8GHz
    1.50GB Ram
    29GB Free Space
    I seem to have the same problem as dixieppc. http://www.adobeforums.com/webx?224@@[email protected]
    I have tried to install PS CS3 from the original CD. It "Extracts Setup Files" then says "Loading" then nothing and back to desktop.
    In add and remove programs the PS icon is there, but no size. When I click on change/remove it starts loading and then windows throws out a setup.exe error.
    I purchased the product in January 2008 and have still not been able to load it.
    Any help would be most appreciated.
    Thanks

    Dave I tried that it did not work. Reloaded windows XP and that did not work. I am getting someone to help me wipe the c drive clean and then reload XP. If that doesn't work, then I don't know what to do.
    Thanks for your help. It is nice to know that there are so many people out that there that will take the time to help.
    Thanks again
    Helen

  • Dwr method fails

    when i execute my application in the eclipse ide it works fine but when it comes to browser dwr method fails to execute an im getting the following error
    [Error]
    Mar 15, 2011 6:29:19 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: FeeManagementSystemDWR.getCollegeList()
    Mar 15, 2011 6:29:19 PM org.directwebremoting.util.CommonsLoggingOutput warn
    WARNING: Method execution failed:
    java.lang.NumberFormatException: null
         at java.lang.Integer.parseInt(Integer.java:415)
         at java.lang.Integer.<init>(Integer.java:620)
         at com.mf.cms.fms.services.fmsservices.FeeManagementSystemDWR.getCollegeList(FeeManagementSystemDWR.java:23)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
         at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
         at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
         at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
         at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
         at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
         at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:595)
    Mar 15, 2011 6:29:19 PM org.directwebremoting.util.CommonsLoggingOutput warn
    WARNING: --Erroring: batchId[0] message[java.lang.NumberFormatException: null]
    [Error]
    Please help me out in that aspect
    it's urgent ...........
    Thanks in advance
    Thimmappa Narala

    844526 wrote:
    when i execute my application in the eclipse ide it works fine You are running in an 'environment'. That does not only consist of your code but also includes other things such as but not limited to configuration files, environment variables etc.
    but when it comes to browser dwr method fails to execute an im getting the following error The 'environment' is different.
    Please help me out in that aspect Most likely reason is that there is a configuration source (a file or value in a file), which exists in the IDE and doesn't exist when you run it outside the IDE.

  • My CS3 installation failed on my new iMac with Mavericks. Why?

    Anybody have an answer for why the CS3 installation failed on my new iMac with Mavericks? I bought CS3 for my old MacPro which recently died. I still have the installation CD, with serial number and PN number. Help!

    check your installation logs, Troubleshoot with install logs | CS5, CS5.5, CS6, CC

  • ERROR - the ProtectKeyWithTPMAndPIN Method failed with the exit code: 8031005B

    Hello
    I am using the EnableBitlocker.vbs script to automatically assign the TPM and start the encryption. I am running it from an elevated command prompt. Here is are the arguments I am running with
    cscript EnableBitLocker.vbs /on:tp
    /l:c:\bitlockerlog.log /promptuser /ro:"MBAM" on
    All is well and it prompts the user for a PIN but then it fails.
    Here is the full log file. I haven't been able to find any info on the error code in the subject.
    Script processing started  02/07/2014       14:43:27
    Proper number of command line arguments passed to the script
    ---------------Executing with the following arguments------------------
    Enable parameters: tp
    Logging location: c:\bitlockerlog.log
    Create recovery key: No recovery key use specified
    Encryption method: 3
    Create SMS status MIF's: No SMS status MIF's will be created
    Reset TPM ownership: 1
    User prompting: 1
    Connection succeeded to MicrosoftTPM
    Successfully retrieved a TPM instance from the Win32_TPM provider class
    TPM found in the following state:
    Enabled - True
    Activated - True
    Owned - True
    Connection succeeded to MicrosoftVolumeEncryption
    TPM is in a ready state to enable BitLocker.
    Change TPM owner password specified on the command line.
    Random TPM owner password is: ;&K:)BU65|c7_v2n
    Completed converting old owner password to owner authorization:  0
    Completed converting owner password to owner authorization:  0
    Starting to change owner authorization process on the TPM
    ERROR - Failed to change owner authorization on the TPM with the following exit code:  80280001
    Successfully connected to WMI StdRegProv
    Checking if Group Policy encryption method is set...
    Found EncryptionMethod with value: 4
    Found EncryptionMethod policy registry key ignoring any /em options on command line
    Found ActiveDirectoryBackup with value: 1
    Found RequireActiveDirectoryBackup with value: 1
    Determined client Group Policy configured to require AD escrow of recovery password
    EncryptableVolumes count is: 1
    The EncryptableVolume(s) found: \\?\Volume{ad6db324-01dd-11e4-8272-806e6f6e6963}\
    EncryptableVolume used for encryption is: C:
    The volume has a protection status of: 0
    BitLocker Protection is Off
    Get conversion status is: 0
    The volume has a status of fully decrypted
    The following user is logged on: MGMT\80151318-sys
    Attempting to enable BitLocker TPM + Pin
    ERROR - the ProtectKeyWithTPMAndPIN Method failed with the exit code:  8031005B
    Script ended  02/07/2014       14:43:51
    Any and all help would be appreciated. This has worked before on a different laptop.
    Thanks

    Hi,
    This error indicates that the group policy isn't set correctly, when configure the group policy at teh server side, you should notice that only one of the additional authentication can be required at start up , otherwise a policy occurs, the notice can be
    found just like below:
    and after test, the error indeed occurs, just like the screen below:
    So, I suggest to check the group policy for bitlocker settings, you can only choose one start up authentication method.
    Regards
    Wade Liu
    TechNet Community Support

  • [JS] Method failing in ScriptUI/CS3

    I wrote a method to check whether the active document's selection is exactly two vertical guides, and it works well when isolated, run from either Scripts menu or from ESTK. But when I attached this method to a button in ScriptUI palette, it continuously fails to do its job.
    It claims that "there is no document", although it is there and has the expected selection. I tried a whole bunch of try/catch, if'fing tests, referring to activeDocument as well as documents[x], passing a ready-to-use docref, repeating the #target directive, restarting Ai/ESTK, but it stubbornly claims there is no document.
    The situation is really sick: for a moment I have even had an if/else clause which was supposed to $.writeln() in both cases, which it didn't even though script went on down and performed other stuff. Arghhh!
    I'm really puzzled. Has anyone been through such a maze?
    Art

    Addendum: this strange problem occurs only when method is called from a palette - when invoked from a modal dialog - runs just fine. This does not bring me any further since I have to maintain interaction between Ai doc and the window...

  • [CS3] Method Generate for the object Index fails

    Hello,
    I will create an index in my VB script with InDesign CS3:
    Set objIndex = docindex.Generate(indIndexDoc.Pages.Item(1),p)
    The index is longer than one page.
    I think this is the reason, when I get this error:
    Runtime error -2147417851 (80010105)
    Method "Generate" for the object "Index" fails
    Thank you in advance!
    Harald

    I got this hint from Martin Fischer:
    The problem is a special character in the topics.
    Harald

  • AE CS3 install failing

    I'm using the deployment method of installing After Effects CS3 on multiple Macs.  Copy the install files to the machines using ARD, then initiate the install via ARD with a unix command to run the installer in silent mode.  This install method works on all but three machines.  These three end up with the installed files in the right places and such but the app will not launch and gives an error...
    "You can't open the application 'Adobe After Effects CS3.app' because it is not supported on this architecture."
    These are PPC Macs but the install completes just fine on all the rest and the app runs as expected.  These same three machines also return errors when I attempt to run the install from a mounted image of the install disk (from server) it gets part way through and asks to insert the install disk to continue.
    Anybody experienced anything like this?

    The three non-working ones are in a group of 28 machines that are not only the same hardware-wise, but are manufacture siblings... coming from the same production run with nearly identical MAC addresses.  They all have the same nvidia geforce 7800gt video and no peripherals apart from the same Apple 20" displays.
    I had thought maybe something about the install files got messed up in the ARD copying so I deleted and recopied those files, but the install failed with the same error.
    I'm just about ready to zero the drives on these three and reimage them.  But, not one to easily admit defeat I'm willing to experiment a little on these.

  • Cannot install Adobe CS3, Installer fails

    Hi, everybody,
    I hope somebody can help me here, as for almost 3 weeks now I am trying to install Adobe's CS3 Design Premium and I can't get it to work. Adobe's tech support is very friendly and comes with solutions and things to try now and then but first response time is really slow (48h) and secondly they haven't found a solution yet, though being escalated up in Tech Support levels already.
    Problem:
    Can't install CS3 (English version), Design Premium
    Platform:
    WinXP Professional SP2 2002 (all patches) US
    Intel Pentium M 1.7 GHz
    1.5 GB RAM
    C:, D: Partition
    On C: still 25 GB available
    Computer is in domain.
    Have tried to install it as local Admin and Domain-User (who is also in local Admin group with all rights).
    Furthermore CS2 is installed, Macromedia, Office products etc.
    Details:
    1. Can start installer, all screens are accessible, can make entries everywhere.
    2. Installation starts and progress bar appears.
    3. Installers runs to the end (without any problem), summary screen comes.
    4. Summary says that some products could not be installed.
    5. Installer installed the "smaller" apps, like Acrobat, Device Central, Bridge etc. BUT NOT Flash, Photoshop, Illustrator etc.
    Side effect is that, as Acrobat and Distiller cannot be activated by itself, I cannot use them anymore and the CS3 installer does remove these two CS2 products. Well, working with Reader currently :-(
    Also, the numerous uninstallations (45 min!) remove also PDF plug-ins and Flash plug-ins, so a terrible situation to be in.
    What I have tried so far (and which hasn't worked):
    1. Ran CHKDSK over the hard disks, no issues.
    2. Installed from hard disk (instead DVD).
    3. Disabled all services and startups, as well as firewalls, virus scanners etc.
    4. Let the cs3clean script run (provided by Adobe, which resolves problems if you had CS3 beta installed, which I didn't), with level 1 and 2.
    5. Tried to install only specific applications (not all).
    6. Ran MSCLeanup app.
    7. Analyzed CS3 Install log for FAILED, Error Code 3 etc., no dramatic entries. Only thing that sometimes appears:
    - Error 1303, not enough privileges for CONFIG.MSI, which seems to be a known MS issue when the hard disk responds too late. Of course privileges for CONFIG.MSI are there, also tried reapplying them, deleting folder etc.
    8. Applied privileges new to all folders.
    9. Ran a registry cleaner
    10. Deinstalled Bridge 1.0
    11. Tried it in Safe Mode, not possible (Installer says cannot be run in sfae mode).
    More:
    Adobe tech support also suggested to uninstall Bonjour, but I cannot find any entry and therefore have no idea how to uninstall. Add/Remove programs doesn't list it.
    As the Installer runs about one hour, it is not only time-consuming, it also kills my productivity, as no Browser, Adobe or MS product can run when the installer is running.
    Googled for error 1303 and CONFIG.MSI similar problems. Found numerous entries with CS3 installation issues, with some the CS3 Beta clean script helped, others had success with copying installation folder to hard disk, everybody something else (or no solution). And nothing that helped me.
    As I know haven't heard from Adobe Tech Support for four working days, does anybody have any idea what else I could try?
    Thanks
    Matthias

    There are log files that record the process of installation. If errors occur, they will be recorded in those log-files.
    You should open up the log file in C:\Program Files\Common Files\Adobe\Installers. The file is called something like Adobe Creative Suite 3 Design Premium 1.0.log.gz (depending on your install type).
    Pay attention to the file extension: it should be .log.gz and not just .log
    To open it you should have a program like Winzip or Winrar, because it's an archive file containing a text file.
    Search in the text file for the error message. Search for "Error ".
    In my case it was "Error 1401.Could not create key \Software\Classes\.svg\OpenWithList\Illustrator.exe. Verify that you have sufficient access to that key, or contact your support personnel."
    Now follow these steps:
    1. Make sure you are logged in as an Administrator in Windows XP.
    2. On the Windows TaskBar, choose Start, Run, type "regedit" (without quotes), and click OK.
    3. Navigate to the following key that was of your error message (in my case it is: HKEY_LOCAL_MACHINE\Software\Classes\.svg\OpenWithList)
    4. Right-click "OpenWithList" and choose Permissions.
    5. Make sure your user name displays under "Group or user names."
    NOTE: In the Windows XP Pro edition, the user name displays next to the word, Administrators.
    In the Windows XP Home edition. the user name may display without the word, Administrator.
    If you are not sure whether or not you are logged in as an Administrator, you can verify user rights in the Control Panel, User Accounts.
    6. Verify that "System" also displays under "Group and User Names."
    If the System name is not there, add it as follows:
    7. In the Permissions for OpenWithList dialog box, click Add.
    8. Type "System" (without quotes) in "Enter the object names to select" and click OK.
    9. In "Permissions for System," make sure "Full control" and "Read" are set to "Allow."
    10. Click OK, exit the Registry, and proceed with the install.
    Read the tech note as well: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402035&sliceId=1
    My problem was solved this way. Good luck!

  • OpenDocuments.ViewDocument Method fails if document is an InfoPath Filler form (xsn)

    Hi,
    I have a custom webpart with links to different documents.
    When the link is clicked I run the following JavaScript to open the document in the users client application:
    function ViewDoc(docpath) {
    NewDocumentButton = new ActiveXObject("SharePoint.OpenDocuments.3");
    if (!NewDocumentButton.ViewDocument(docpath)) {
    alert('Opening document failed.\n' + docpath);
    This is working for Word files and Excel files but not if the document is an xsn file.
    Any ideas why it don't work with InfoPath forms and have a solution?
    Environment is SharePoint Server Standard.

    Hi,
    According to your post, my understanding is that you had an issue about opening the xsn file.
    To open the InfoPath form, we should use the SharePoint.OpenXMLDocuments
    method.
    You can refer to the following code snippets, it worked well in my environment.
    function openDoc(){
    var NewDocumentButton = new ActiveXObject("SharePoint.OpenXMLDocuments");
    var docpath="http://sp/LIbA/Form.xsn";
    if (!NewDocumentButton.EditDocument2(window , docpath , "InfoPath.Document")) {
    alert('Opening document failed.\n' + docpath);
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • OpenInWindowEx Method fails to open password protected file.

    Hi,
    I am getting issue while opening password protected file thru OpenInWindowEx Method. It rerurn 0. So please let me know how to open paasword protected file thru code ?
    Regards,
    Arvind

    Hi,
    It just returns 0 which means failed to open file. And I am using Adobe Acrobat 8.1.3 on window XP.
    You can test this in the sample application named ActiveViewVC.
    So I want to know whether we can open password-protected file using the OpenInWindowEx method or not?.
    Please let me know your response
    Regards,
    Arvind

  • CMP bean : 'create' method fails - SQL Syntax error

    I'm using SilverStream 3.7.3 server on Win 2K.
    In a CMP entity bean, call to any create method ( default using primary key or with any other list of parameters ) fails , giving this error :
    javax.ejb.CreateException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
    <<no stack trace available>>
    I've doubly checked for mismatch between types of database columns & parameters passed, but there is no difference. ( Another BMP bean uses same types and it's working perfectly )
    Interestingly, the 'finder' & other business methods are working without any problem.
    Any idea about cause of this error / options to solve / get around the prob?
    TIA,
    Subodh

    Hi,
    See if you can get SilverStream to give you the JDBC statements it is sending to Access. If SilverStream can't do that, try using P6Spy to get hold of the JDBC. Once you have the SQL, you should be able to figure out where the prolbem is... and if you can do anything about it.
    Does access actually accept any form of Standard SQL?
    Daniel.

  • PrintOut method Fails

    We have a remote system that uses Crystal Reports XI.  Lately, our application has been crashing apparently due to Crystal.  The most recent change is that we put a laser printer at another remote site that connects to this site.  The connection currently is over dial-up (soon to be back on site-to-site VPN).  The issue I am seeing is that the report will try to print but fail on the printOut method.  It only has a throwable, so I am unable to get any kind of message out of that to see why it failed.  Should that be available in a log somewhere?
    Also - it sometimes will fail when trying to export it.  After printing, we run it again, but this time it creates a PDF file locally on the remote system and then emails that to our document storage application to be handled there.  It seems to fail now and then on the export method.
    Our application is in VJ++ 6.0.  It's old but it does work for us and there are no current plans to move it off of this.  All of other sites (3 more total) have no issues with the same application.  The only difference at the site that has issues is that there are 2 remote sites on different subnets.  Are there any known issues with this?  The printer we added is also a different HP model than we had used before.  It is a LJ P4015.  Are there known issues with this and Crystal?
    I know this post was long, but everything I have makes me think it should be working ok.  Any insight would be greatly appreciated.

    I just had another crash occur, but this time it looks like it was trying to open the report to run but did not get any further, as it hung, didn't throw any exception and then crashed my application.  Anyone ever seen this behavior before?

  • _root level methods failing when using movieClipLoader

    man wouldn't have a clue why, using onloadInit BELOW, doesn't
    listen to simple button methods addressed to the _root movieClip,
    the script for this frame on the root mc is below, any help please
    It works fine offline, but when on server the button response
    just doesn't work
    www.kevindauth.com and go to port Folio/ then top right
    graphic to load animation, try pressing the right buttons as it
    loads, it just fails, maybe best to check code below first thanks
    kD:-)
    stop();
    var heartPlacer = this.createEmptyMovieClip("container2",
    "101");
    var heart_mc:MovieClipLoader = new MovieClipLoader();
    var preload2 = new Object();
    heart_mc.addListener(preload2);
    preload2.onLoadStart = function(targetMC) {
    heartPlacer._x=95;
    trace("started loading "+targetMC);
    container2._visible = false;
    bar_mc._visible = true;
    preload2.onLoadProgress = function(targetMC, lBytes, tBytes)
    bar_mc._width = (lBytes/tBytes)*100;
    preload2.onLoadComplete = function(targetMC) {
    text._visible = false;
    bar_mc._visible = false;
    container2._visible = true;
    loadingNow._visible = false;
    oneToUnload._visible=false;
    trace(targetMC+" finished");
    heart_mc.loadClip("heartSpinning.swf", "container2");
    _root.arrow_btn.onRelease=function(){
    trace("tjisjao");
    //preload2.onLoadInit = function(target:MovieClip) {
    _root.sun2_btn.onRelease=function(){ //fails
    heart_mc.unloadClip(target); //fails
    var newVar:MovieClipLoader = new MovieClipLoader(); //fails
    newVar.loadClip("workExNew.swf","targetMC"); //FAILS
    //_root.med_btn.onRelease=function(){
    //getURL("
    http://66.7.197.27/~kevindau/meditation.htm","_blank");

    Just answered that one:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1192673&enterthread=y
    But in your case: you need an object to listen for the
    MovieClipLoader events. So, use the current object as a listener...
    in the constructor:
    myloader = new MovieClipLoader();
    myloader.addListener(this);
    Then use private methods to capture the events:
    private method onLoadInit(target:MovieClip){
    and so on.

Maybe you are looking for