Error: missing } in xml expression. I cant solve this!

<script type="text/javascript">
var myObject = new ActiveXObject("Scripting.FileSystemObject");
var pasta = "C:\Users\Catatau\Desktop\BROTHER\Medcurso\oukey\";
var folder = myObject.GetFolder(pasta);
var jpg = ".jpg"
var pdf = ".pdf"
var barra = "\";
</script>
for(var pastas in folder)
        <script type="text/javascript">
          var newDoc = app.newDoc();
        var pt1 = pastas.name;
        var pasta2 = pasta + pt1 + barra;
          var folder2 = myObject.GetFolder(pasta2);
          var x = 1;
          for(var files in folder2){x = x+1}
          var k = 0;
        </script>
        while(x>k) {
                <script type="text/javascript">
                k = k+1;
                    var arquivo = pasta2 + k + jpg;
                    newDoc.insertPages({nPage: k, cPath: arquivo,});
          var destino = pasta + pt1 + pdf;
          newDoc.saveAs({cPath: destino,});
          newDoc.closeDoc(true);
</script>
That`s the script.
     Error1: SyntaxError: missing } in xml expression                                                     Ln 25. Col 3.
                24: line 25.
               First text in red is selected / first text in green (where i think the error refers to).
     Error2: SyntaxError: missing } in xml expression                                                     Ln 28. Col 24.
                27: line 28.
               Second text in red is selected / Second text in green (where i think the error refers to).

Why not? Sorry if im stupid in javascript... the sentence <script type="text/javascript"> helped me to jump through errors from jscript editor on acrobat.
What im trying to do: i have a folder with several subfolders. Each subfolder has .jpg files. I want to combine each subfolders .jpg files into one .pdf. Others subfolders should be combined into different pdfs. I`m trying to see if this could be done by thie script i wrote. But i can`t even put it to work so i can see it.

Similar Messages

  • HTTP PUBSUB not initializing giving  [ Error: missing } in XML expression ]

    Hi
    I am using WEBLOGIC 10.3 pusub sever and dojo-release1.1.1
    **I have created a channel with the following config as below**
    <wlps:channel-constraint>
    <wlps:channel-resource-collection>
    <wlps:channel-resource-name>subscribe</wlps:channel-resource-name>
    <wlps:description>subscribe channel constraint</wlps:description>
    <wlps:channel-pattern>/DispatchView/**</wlps:channel-pattern>
    <wlps:channel-operation>subscribe</wlps:channel-operation>
    <wlps:channel-operation>create</wlps:channel-operation>
    <wlps:channel-operation>publish</wlps:channel-operation>
    </wlps:channel-resource-collection>
    In my client side I have the following code in a page.
    dojo.require("dojox.cometd");
    var DEFAULT_CHANNEL = "/DispatchView/PubSub";          
    cometInit = function(){
                   dojox.cometd.init("cometd");
                   log( 'cometd initialized' );
    onMessage = function(msg) {
         log( 'onMessage() ' + msg.data.test );
    //alert(msg.data.test);
    //handles subscribe onclick
    onSubscribe = function(){
         dojox.cometd.subscribe( DEFAULT_CHANNEL, 'onMessage');
         log( 'subscribed to ' + DEFAULT_CHANNEL );
    cometInit();
    onSubscribe();
    Whenever I am opening the page its giving me the following error.
    [ Error: missing } in XML expression ]
    handshake error!: [ Error: missing } in XML expression ]
    cometd init failed
    Retry in interval+backoff=0+4000=4000ms
    [ Error: missing } in XML expression ]
    handshake error!: [ Error: missing } in XML expression ]
    cometd init failed
    Retry in interval+backoff=0+5000=5000ms
    Am I missing something. Can any body help me with this.

    Hi,
    The problem in your code is you haven't mentioned the server URL which is needed to subscribe.
    dojox.cometd.init("cometd"); this is a wrong intitialization instead you have to use
    dojox.cometd.init("http://localhost:9002/pubsub"); or something like this with an appropriate URL. In this URL /pubsub is context path and not the default channel you subscribe. This was the reason for your error (cometd init failed)
    Please let me know if the problem get solved or still u have any queries regarding the same.

  • Group Tree: Error in Ajax response - message: missing } in XML expression

    Hi,
    We were using a previous version of Crystal libs and viewer. I wanted to get up to date with the latest jars and viewer so I downloaded and installed the version with Eclipse 3.4.1 and crystal development bundled together.
    I've copied the new jars from there into my existing project. I've also copied the folder cyrstalreportviewers into the project. We're using Tomcat 6.
    I've now got a problem with the Group Tree at the moment since I started using the latest libraries and crystal report viewers.
    My web.xml looks like this.
            <context-param>
              <param-name>crystal_image_uri</param-name>
              <param-value>/crystalreportviewers</param-value>
         </context-param>
         <context-param>
              <param-name>crystal_image_use_relative</param-name>
              <param-value>webapp</param-value>
         </context-param>
            <servlet id="CrystalReportViewerServlet">
              <servlet-name>CrystalReportViewerServlet</servlet-name>
              <display-name>CrystalReportViewerServlet</display-name>
              <servlet-class>
                   web.servlet.ReportingViewerServlet
              </servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
           <servlet-mapping id="CrystalReportViewerServletMapping">
              <servlet-name>CrystalReportViewerServlet</servlet-name>
              <url-pattern>/CrystalReportViewerHandler</url-pattern>
         </servlet-mapping>
    A request to the uri https://......../WebApp/CrystalReportViewerHandler?id=3
    The servlet doesn't do anything that seems to be uncommon. I can post more precisely what it does if needed.
    The report will load correctly, I don't get an error page asking if my crystalreportviewers/ path is accessable to the server.
    I get a parameter page asking for a value. I enter that and click OK.
    The viewer sends a POST request to my Servlet and is handled correctly.
    The report is then loaded.
    On the click of an item in the Group Tree it sends an Ajax POST request and I then get the following error:
    message: missing } in XML expression
    fileName: https://localhost:8080/WebApp/crystalreportviewers/allInOne.js
    lineNumber: 10
    stack: ()@:0
    eval("(\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n)")@:0
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object Object],[object Object],[object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:12
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ()@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object Object],[object Event])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object Event])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    name: SyntaxError
    Clicking on the Groups headers on the right hand pane work as expected. Although I notice they are not Ajax requests.
    I've spent a few days at this now and I feel like I'm running out of options but to revert back to the previous version we were using. I presume this works elsewhere so I've got to be doing something incorrectly with my setup.
    If anyone needs more info then please ask.
    Thanks,
    Patrick

    Hi Ted,
    Thanks for your reply.
    That's our own Servlet. It extends javax.servlet.http.HttpServlet
    doGet does the following stuff:
    Creates a ReportClientDocument.
    Sets the ReportAppServer to "inproc:jrc".
    Opens the report as read only.
    Gets the DBController and calls logon on it.
    Then calls replaceConnection.
    Adds some discrete param values.
    Creates a CrystalReportViewer.
    gets the report source from the report client document.
    sets the report source on the crystal report viewer.
    set own page to true.
    sets the report source in the session.
    The crystal Report Viewer then processes the Http Request.
    doPost:
    gets the report source from the session.
    creates a CrystalReportViewer.
    sets the report source on the crystal report viewer.
    set own page to true.
    The crystal Report Viewer then processes the Http Request.
    One thing I changed in there was the way the data source was changed. It used to loop through tables.
    Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
    newTable.setQualifiedName(qualifiedName);
    clientDoc.getDatabaseController().setTableLocation(origTable, newTable);
    Now it does this:
    DatabaseController dbController = clientDoc.getDatabaseController();
    dbController.logon(username, password);
    dbController.replaceConnection(new ConnectionInfo(), connectionInfo, null, DBOptions._useDefault);
    If you need more info please do let me know. Thanks for your help.
    Patrick

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • ýesterday  my iphone 5c screen  suddendly  shows connect to itune and i try to restore it using itune but halfway i got a message error occured (14). please help me in solving this problem.

    ýesterday  my iphone 5c screen  suddendly  shows connect to itune and i try to restore it using itune but halfway i got a message error occured (14). please help me in solving this problem.

    what did you learn when you search the internet for iPhone error 14?

  • Adobe error and we could not able to solve this

    If we select a single item in the comment field, multiple edits were selected in the page. Please refer the attached screenshot. Number 1 and 2 indicates the edits that highlights when we select 1 item in the comment field which is indicated by number 3. It seems Adobe error and we could not able to solve this.
    Could you please kindly do the needful and let us know your comments?
    - Mohamed Sathakathllah
    Message was edited by: uamsathak

    Read this:
    http://forums.adobe.com/thread/931829

  • I cant open my iphone 3g ,,,, needs restore and itunes cant make restore has an error... How can I solve this problem?

    I cant open my iphone 3g .... needs restore and itunes cant make restore has an error on phone .... how can I solve this problem?

    Are there any error numbers given by iTunes? If yes, solutions for those numbers can be fund in this article: http://support.apple.com/kb/TS1275 or this one http://support.apple.com/kb/TS3694

  • Bet you cant solve this ONE!!! Connecting my Samsung HDTV to my Macbook

    I have looked for hours upon hours of all the forums. So here goes...
    I have a Black Macbook running Snow Leaopard with a mini DVI to VGA adapter.
    I have the VGA running to the back of my Samsung LCD 37" HDTV.
    But when i press the source button on the tv, it says "no input device are connected".
    I have tried multiple things such as picking a couple random displays (800x600 etc.)
    I have also tried mirroring displays.
    The crazy thing is that when i cascade my desktop or show my spaces, it shows the external monitor next to my main screen.
    I read somewhere that if you get the refresh rate below 60hz that it would work, but thats not an option.
    My mouse even acts like it goes to the next screen when i drag it all the way to the right.
    I have called Samsung to no avail, even AppleCare couldnt really help.
    If you solve this, you should put your application into AppleCare Support.
    This is urgent that i get this fixed by Sunday Morning, Thanks for your help!!!
    Message was edited by: MacOnly03

    MacOnly03 wrote:
    I have a Black Macbook running Snow Leaopard with a mini DVI to VGA adapter.
    I have the VGA running to the back of my Samsung LCD 37" HDTV.
    Is it an Apple brand mini DVI to VGA adapter? I've heard of incompatibilities with off brands. Have you tested the VGA to VGA cable to make sure it works? The reason I'm offering these suggestions is your MacBook knows something is plugged in but your TV isn't getting it. You might also check your tv's manual for a clue.

  • When transfering domain file to new computer, error "missing index.xml"

    I've been making a podcast using iWeb on my home computer, and I wanted to transfer my site over to a school computer.
    I did what the iWeb help said and transfered the Domain file to the exact same folder on the school computer.
    When I opened iWeb, it said it is missing the index.xml file.
    Any help is greatly appreciated.

    i'm having a similar problem.
    after transferring the domain and the images involved, it can't put them back together, and won't publish

  • After upgrading iTunes, I get the error, missing msvcr80.dll, How do I resolve this issue?

    I am using Vista 32 bit on an older dell laptop and have been using iTunes for a long time, downloading songs, syncing with my iPhone, and etc, with no problems.  After upgrading to the newest version of iTunes 11, I received an error message of "missing MSVCR80.dll, please reinstall the software" when trying to start the iTunes application.  I removed the iTunes software and associated apps from my laptop and reinstalled the iTunes software.  While the software was installing it indicated that I did not have permission to install the application.  Although I started the installation with the option of "Run as Admistrator".  Since I could not reinstall the iTunes software, I choose a restore point where my iTunes was working before, and changed to that point.  I am still getting "MSVCR80.dll missing".  Does anyone know how I can restore the missing MSVCR80.dll?  I have found articles on the web of how to do this, but none seem to work.
    Thanks

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • HT1923 Downloaded iTunes but it won't open beause I seem to have an error, missing MSVCR80.dll, how do I fix this?

    I had iTunes on my computer, and when I went to do the upgrade it messed it up and now I get an error that states I am  missing the applicaton MSVCR80.dll    How do I fix this? I am missing my iTunes!!

    Check the user tip below.
    https://discussions.apple.com/docs/DOC-6562

  • This is the error I always get. How to solve this? "Exc in ev handl: Error: Bad NPObject as private data!"

    This error occurs 50% of the time I use Firefox. It comes up in a small window saying and when I click ok the window will close and another one will open. I thought updating will solve but no. Kindly help me solve.

    That issue can be caused by the McAfee Site Advisor extension
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in Safe Mode to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode

  • My iPhone will not restore via iTunes as it keeps cancelling and coming up with Error 9. Can you help me solve this?

    Earlier today my iPhone4s shut down unexpectedly. It kept on showing the opening process (of the Apple logo coming and going) however it wasn't taking me to my home screen, instead was repeating this process. I pressed the home and lock button together for 30 seconds (from advice from the internet), which brought me to a screen of a picture of the USB cord and iTunes logo. I followed this instruction and plugged my iPhone into my laptop and opened iTunes. Immeadiatley, iTunes popped up to me that my iPhone was in recovery mode (I had never put my iPhone on recovery mode before so this was all new to me) and needed to go through with the restoring process. I clicked the Restore button to see this process go ahead. I tried so many times it lead to me to cry as my phone is only a few months old. All these times I tried the process was always cancelled by this message which showed it was an 'Unknown Error' and shown in brackets 'Error 9'. I tried this process so many times and I simply do not know what to do. Please can somebody give me advide/help and this is causing me stress as I have been working this out for hours. Thanks so much!

    Hi there Holly N,
    You may find the troubleshooting steps in the article below helpful.
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    Configure your security software
    Related errors: 2, 4, 6, 9, 1000, 1611, 9006, 9807, or 9844. Sometimes as a result of this issue, a device might stop responding during the restore process.
    Check your security software and settings, which can block ports and prevent connection to Apple servers during update and restore.
    -Griff W. 

  • Error on deployment (plz help me to solve this very urgent.....)

    Result
    => deployment aborted : file:/C:/DOCUME1/E371011/LOCALS~1/Temp/temp20811ApplicationTest.ear
    Aborted: development component 'ApplicationTest'/'local'/'LOKAL'/'0.2007.06.22.16.36.17':Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [epmft] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)

    Hi Shanto,
    Either your admin password is expired or you have changed the administrator password.
    Do the following Steps,
    Use the Config Tool to change the entry in secure storage as follows:
    1. Start the Config Tool.
    (Execute <SAPj2eeEngine_install_dir> configtoolconfigtool.bat.)
    2. Select the secure store node.
    The configuration for the secure storage in the file system appears.
    3. Select the admin/password/<SID> entry.
    4. Enter the administrator user's new password in the "Value" field and choose "Add".
    5. Choose "File" --> "Apply" to save the data.
    Note: Contrary to the message that appears, you do not need to restart the server or cluster for this change to take effect.
    6. Finally restart SDM server.
    Then deploy.
    refer SAP note : <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_jas/~form/handler">701654</a>
    Regards,
    Mithu

  • HT3798 Itunes not syncing my ipod classic 160gb due to error code -50. How do I solve this problem?

    I have over 5000 songs in my ipod classic 160gb. My ipod software version is 1.1.2. The itunes version is 10.6.1.7
    Itunes cannot sync my music to my ipod. It only syncs about 301 songs and gives the error message -50, and cannot sync ipod. I have tried changing itunes version, restoring and even de-selecting some songs to no avail. I am so fraustrated; please help me.
    benaggreyfynn

    Doublechecking. Have you tried the iTunes Store loads partially or returns "Error 306" or "Error 10054" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document?
    iTunes: Advanced iTunes Store troubleshooting

Maybe you are looking for

  • Cfpdf extractimage issues in CF 9.01 (not in 9.0)

    CF 9.01 appears to have a problem with extracting images from a PDF using the <cfpdf action="extractimage"> tag. CF 9 works well. The same code against the same PDF file on different server/versions (both Windows) produces different results, with the

  • GTX670 need updated BIOS please.

    Hi, I was wondering if there's an updated vbios for my 670GTX's. Reason being is I have ran Sisoft Sandra and ALLBENCHMARK and they are saying there should be. Here's a link to my vbios on all 3 cards. Its the same for the 3 video cards I have. I was

  • Help with moving between custom screens in a Standard Transaction

    All, I'm working with a standard transaction, but in this transaction, the I'm having 2 tabs of customized screens. In each of the screen, I have 1 mandatory fields to be filled. If the user only fill in the mandatory field of the first screen and cl

  • How to embed BARCODE into smartform ?

    Hi All,      I have a requirement to embed an EAN-128 barcode for handling unit(EXIDV) and other fields in a shipping label(smart form).please let me know how should I send the value for these ·       start code ·       FNC1 ·       application ident

  • Can I get a Read Receipt with Mail, like in Outlook?

    Can I get a Read Receipt with Mail, like in Outlook? W.W.