[CS5.5/CS6] what causes a kImportAndPlaceCmdBoss to throw an exception with broken links?

I have a problem in both CS5.5 and CS6 on MacOS X.
During a drag operation onto an InDesign document, I import and place some images onto a page. This normally works without issue except in one case. The problem case is when I'm trying to import an image that is the same file path as a broken link on the document. This will crash InDesign everytime.
Let me provide some details.
First, I create an InDesign document, drag some images from the Finder and place them on the page and save the InDesign document to file. Now I go to the Finder and delete the images (or just move them to a different Folder). I then go back to InDesign and look at the Links panel where the red stop signs now appear near the images to show that the links are broken.
Next I go to a panel that I'm working on where I can drag an item from the panel and onto the InDesign document page. In this I have a ProcessDragDropCommand method that over rides the method in the CDragDropTargetFlavorHelper class, and during that method it copies the images that I just deleted back into their original locations on the file system.
After copying the files, the process then tries to import one of the images into a new frame using the PlaceFileInFrame method from the InDesign SDK file SDKLayoutHelper.cpp. This method creates a kImportAndPlaceCmdBoss and when executing the line:
if (CmdUtils::ProcessCommand(importAndPlaceCmd) != kSuccess) {
causes an exception that appears in the crash report as:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILUE at 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
with a stack trace that points to the CmdUtils::ProcessCommand() line mentioned above.
I've tried relinking the images before the import and place, but that still doesn't work. If I break the process up so that in one drag event I copy the missing files back into place and relink them, then in a second drag event I then do an import and place it all works okay. It's just when I try the full task of copy images into place in the file system, relink the images on the InDesign document and then import and place an image in a new frame on the InDesign page that the exception is appearing.
Instead of the kImportAndPlaceCmdBoss I've also tried the kImportAndLoadPlaceGunCmdBoss with the same problem.
Interestingly, in the SDKLayoutHelper method PlaceFileInFrame that I'm using, there's a pragma message:
#pragma message("LINKREWORK: Temporary, fix this up later!")
// TODO: LINKREWORK fix.
From the wording I'm wondering if this is related to the problem that I'm seeing. In which case does anyone know what this fix might entail?
I've tried tried relinking using ReinitResource and UpdateLinks methods that are a part of the ILkniFacade but that doesn't seem to help stop the crash.
Oddly, I can generate a strange and maybe related error (that doesn't use my plugins and just the raw InDesign functionality) if I do something like:
In InDesign, create an InDesign document.
From the Finder, drag some images onto the InDesign document page.
In InDesign, save the document.
In the Finder, rename the folder containing the images.
In InDesign, check that the links really are broken with the red stop signs appearing.
In the Finder, rename the folder containing the images back to what it was before.
(Extra Step)
In the Finder, redrag the same images that you did before onto the InDesign page.
This will cause InDesign to throw up the following error message:
Either the file does not exist, you do not have permission, or the file may be in use by another application
Of course, if in the above you introduce an Extra Step where you just go back to InDesign and do nothing. InDesign will relink the once missing images, so that when you go back to the Finder to drag the images there's now no problem.
This is almost like InDesign needs a few IdleTasks in order to sort out its perception of the file system. If that's the case then I'm a bit stuck as I'm trying to do everything during a single drag operation and there's no chance of any IdleTasks occuring.
Any ideas?

I have checked the Tomcat log, which does not give
much information:
----- Root Cause -----
org.apache.artimus.message.exceptions.MessageDAOSysExce
tion: Error executing SQL in
ThreadHandler.createThread.
at
org.apache.artimus.message.dao.MySQLMessageDAO.createT
read(MySQLMessageDAO.java:54)
at
org.apache.artimus.message.ThreadHandler.insertThread(
hreadHandler.java:42)
at
org.apache.artimus.message.StoreMessage.execute(StoreM
ssage.java:61)
at
org.apache.struts.action.RequestProcessor.processActio
Perform(RequestProcessor.java:484)Tomcat has more than one log file. The servlet's System.out messages must be going to a different file if this is all you are seeing. Either look in the other log files or change the lines
         se.printStackTrace();
         throw new MessageDAOSysException("Error executing SQL in ThreadHandler.createThread.");  // line 54 where the problem occurredto simply read:
        throw se;and the actual Exception you want to investigate will go in to the file where you found the above. This will be less useful in the long run as you'll have the same problem when you want to query the SQLException further with System.out.println(se.getSQLState()); etc.
You could add a logging configuration to your servlets context in server.xml so you can define where such messages get logged.
Alternatively you could use a logging API like log4j.

Similar Messages

  • I would like to make an upgrade from creative suite cs5 to cs6 what is the price for student edition and what i have to do, i do not found in your website price

    i would like to make an upgrade from creative suite cs5 to cs6 what is the price for student edition and what i have to do, i do not found in your website price

    There are no upgrades for student editions. You simply buy a fresh license at the discounted price.
    Mylenium

  • What causes the 4055 (Resource in Conflict) exception?

    While trying out a example in JMS P2P domain
    I get a exception
    javax.jms.JMSException: [C4055]: Resource in conflict
    while trying to run multiple instances of Consumer class
    <<AsynchConsumer.java>> <<Producer.java>>
    What's wrong here ?

    If you are running multiple instances of your consumer class
    with same queue name, you would get the "Resource in conflict"
    exception. Because by default a queue can only have one
    consumer at a time. For more information on iMQ destination
    management, please see iMQ administration guide.
    Set the queue delivery policy to round robin. E.g.
    jmqcmd create dst -n myQueue -t q -o "queueDeliveryPolicy=r"

  • What causes The Report Application Server failed exception?

    My environment:
    Windows Server 2008 R2  8 cores 6 gig of ram.
    A Windows Service running:
    Oracle 11g
    Oracle 11.2 64 bit client
    C# 4.0 Framwork
    Crystal Reports Visual Studio 2010 13.0.2000
    This window service needs to create 1100 pdf documents generated by crystal reports per hour for a minimum of 8 hours straight.
    These pdf files are written on the local file system.
    The Windows Service runs 3 threads per core.  Each thread can run up to 5 individual CR .rpt files in a sequential order.
    After 4000 pdf documents created, I get the following errors.
    1) The Report Application Server failed
    2) Server is out of memory.
    3)  Not enough memory for operation.
    4) Invalid report file path.
    Using Windows Task Manager Resource Monitor I noticed the following:
    After running 3000 pdf report requests, I stopped the processing pdf reports and noticed hundreds of
    \BaseNamedObjects\CrystalReportXalanInitizeMutex(Pid of my process)
    Why are they there after a close and dispose of the ReportDocument object?
    I ran Reggate ANTS Memory Profiler 7.2 to check for memory leaks in my code and my code that I have control over is clean.
    Why am I getting the exceptions above?
    My code calls ExportReportToSream.  After persisting the stream to disk, I call Close and Dispose on the stream.
    My Code
    ==========================================================================================        public MemoryStream ExportReportToStream(String reportName, LogOnInfo logOnInfo, string reportParams, CrystalExportFormatType formatType)
                ReportDocument reportDoc = new ReportDocument();
                if (!System.IO.File.Exists(reportName))
                    throw new InvalidArgumentException("reportName '" + reportName + "' does not exist", EngineExceptionErrorID.InvalidArgument);
                try
                    lock (lockThis)
                        reportDoc.Load(reportName, OpenReportMethod.OpenReportByTempCopy);
                    ApplyLogOnInfo(reportDoc, logOnInfo);
                    //apply params if any
                    if (!String.IsNullOrEmpty(reportParams))
                        ApplyStringParams(reportDoc, reportParams);
                    return (MemoryStream)reportDoc.ExportToStream((ExportFormatType)formatType);
                //we need to use the try catch, finally so the report can be disposed properly
                catch (Exception)
                    throw;
                finally
                    DistroyReportDocument(reportDoc);
                    reportDoc = null;
            private void ApplyStringParams(ReportDocument reportDoc, string reportParams)
                if (reportDoc == null)
                    return;
                if (String.IsNullOrEmpty(reportParams))
                    return;
                string[] paramsArray = reportParams.Split('|');
                string[] subParamsArray = null;
                //apply report params
                ParameterValueKind type;
                string paramValue = string.Empty;
                ParameterField paramField = null;
                ParameterDiscreteValue discreteValue;
                int x = 0;
                int paramCount = 0;
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    // The ParameterFields object contains all parameters including the subreports.
                    // Subreport params have the name of the subreport.
                    if (reportDoc.Name.Trim().ToUpper() == reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        paramCount++;
    Edited by: Ludek Uher on Dec 15, 2011 7:57 AM
    Edited by: Ludek Uher on Dec 15, 2011 7:58 AM

    if (paramsArray.Length < paramCount)
                    throw new InvalidArgumentException("invalid number of arguments passed to report '" + reportDoc.Name + "' expected " + reportDoc.ParameterFields.Count + " received " + paramsArray.Length, EngineExceptionErrorID.InvalidArgument);
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    if (reportDoc.Name.Trim().ToUpper() != reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        continue;
                    paramValue = paramsArray[x];
                    paramField = reportDoc.ParameterFields[x];
                    type = paramField.ParameterValueType;
                    if (paramField.EnableAllowMultipleValue && paramValue.IndexOf(',') > -1)
                        subParamsArray = paramValue.Split(',');
                        ParameterValues currentParameterValues = new ParameterValues();
                        foreach (string subParamValue in subParamsArray)
                            discreteValue = new ParameterDiscreteValue();
                            discreteValue.Value = subParamValue;
                            currentParameterValues.Add(discreteValue);
                        paramField.CurrentValues = currentParameterValues;
                    else
                        discreteValue = new ParameterDiscreteValue();
                        discreteValue.Value = paramValue;
                        paramField.CurrentValues.Add(discreteValue);
            private bool ApplyLogOnInfo(ReportDocument document, LogOnInfo logOnInfo)
                TableLogOnInfo info = null;
                // Define credentials
                info = new TableLogOnInfo();
                info.ConnectionInfo.AllowCustomConnection = true;
                info.ConnectionInfo.ServerName = logOnInfo.ServerName;
                info.ConnectionInfo.DatabaseName = logOnInfo.DatabaseName;
                // Set the userid/password for the report if we are not using integrated security
                if (logOnInfo.IntegratedSecurity)
                    info.ConnectionInfo.IntegratedSecurity = true;
                else
                    info.ConnectionInfo.Password = logOnInfo.Password;
                    info.ConnectionInfo.UserID = logOnInfo.UserID;
      // Main connection?
                document.SetDatabaseLogon(info.ConnectionInfo.UserID,
                                            info.ConnectionInfo.Password,
                                            info.ConnectionInfo.ServerName,
                                            info.ConnectionInfo.DatabaseName,
                                            true);
                // Other connections?
                foreach (CrystalDecisions.Shared.IConnectionInfo connection in document.DataSourceConnections)
                    connection.SetConnection(logOnInfo.ServerName, logOnInfo.DatabaseName, logOnInfo.IntegratedSecurity);
                    connection.SetLogon(logOnInfo.UserID, logOnInfo.Password);
                    connection.LogonProperties.Set("Data Source", logOnInfo.ServerName);
                    connection.LogonProperties.Set("Initial Catalog", logOnInfo.DatabaseName);
                // Only do this to the main report (can't do it to sub reports)
                if (!document.IsSubreport)
                    // Apply to subreports
                    foreach (ReportDocument rd in document.Subreports)
                        ApplyLogOnInfo(rd, logOnInfo);
                // Apply to tables
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in document.Database.Tables)
                    TableLogOnInfo tableLogOnInfo = table.LogOnInfo;
                    tableLogOnInfo.ConnectionInfo = info.ConnectionInfo;
                    table.ApplyLogOnInfo(tableLogOnInfo);
                    if (!table.TestConnectivity())
                        string strMsg = "ApplyLoginInfo failed to apply log in info for table " + table.Name + ",  Crystal Report: " + document.FileName + " DB: " + logOnInfo.DatabaseName + " UserID: " + logOnInfo.UserID;
                        throw new InvalidOperationException(strMsg);
                //verify logon info
                document.VerifyDatabase();
                return true;
            private void DistroyReportDocument(ReportDocument document)
                if (document == null)
                    return;
                 document.Close();
    Edited by: Ludek Uher on Dec 15, 2011 7:59 AM

  • What is the Use of throws in Exception Handling

    I have clear idea about try,catch,finally, but i do not have clear idea about throws
    Can u anyone explain about throws with example program?
    Thanks

    >
    I have clear idea about try,catch,finally, but i do not have clear idea about throws
    Can u anyone explain about throws with example program?
    >
    Yes - the Java Tutorial can explain it and has examples
    http://docs.oracle.com/javase/tutorial/essential/exceptions/
    And all of the Java Language constructs, including 'throws' are defined in the Java Language Specification
    http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4.6
    >
    8.4.6. Method Throws
    A throws clause is used to declare any checked exception classes (§11.1.1) that the statements in a method or constructor body can throw (§11.2.2).

  • Migrating settings, actions, plug-ins etc. from CS5 to CS6 (Creative Cloud)

    Hi,
    I wondered if someone could help me with the transition from CS5 to CS6 (Creative Cloud). I'm on a Mac with Mountain Lion.
    I would like to migrate as many settings (i.e. workspaces where relevant), personal Photoshop actions, plug-ins (i.e. Type DNA, FontShop [Photoshop], Scriptographer [Illustrator] and Blurb Template Creator [InDesign]) as possible from CS5 to CS6. What is the easiest and smoothest way to do this?
    Some settings, actions and plug-ins might not work with CS6, I don't know. I can't find where my Photoshop actions are archived atm.
    Can I import extensions from Adobe Extension Manager CS5 to Adobe Extension Manager CS6?
    Should I uninstall all CS5 apps? I'd like to keep InDesign CS5 for backwards compatibility at least.
    Does Audition completely replace Soundbooth? What about Flash Catalyst, Device Central and OnLocation?
    Edit: I have already installed all the Creative Cloud applications btw. But I haven't uninstalled any CS5 apps yet.
    Thanks,
    Eivind

    Hi Elvind,
    I would suggest keeping both CS5 and CS6 versions on the system until you are fully transitioned, longer if you want. When you launch Photoshop CS6 it will ask you if you want to import settings from the prior version. Third party plug-ins may or may not be compatible between versions so you might need to check with the manufacturer to find out. You would most likely need to reinstall any third party plug-ins that integrate into existing Adobe product installations though.
    I found this document for Photoshop CS6
    http://helpx.adobe.com/photoshop/kb/preset-migration-photoshop-cs6.htm l
    For the PS actions, I normally open the actions panel, highlight the actions set (folder) I wanted to migrate, from the flyout menu of the panel choose the option to save the set, this creates the .atm file. There is another option for importing actions in the same menu.
    I can't speak to migrating in relation to the other products. I would recommend posting in the respective product forums.
    -Dave

  • What causes the music to stop playing?

    My music stops playing music on my iphone 4. What causes this and how to solve this problem.

    Broken tracks? Or does it only play one track and then stop?
    tt2

  • ATI Radeon 7000 series and Photoshop CS5 and CS6

    Interesting to note, Running windows 7 64bit I have bought a new graphics card, it is an ATI Radeon HD7900 bought to run Photoshop CS5 and 6 unfortunately the graphics card is not displayed in the photoshop prefrences, I checked the list of cards supported by Adobe and the Radeon 7000 series was listed.....I rang Adobe who states that the HD7000 is not supported, so until (if ever ) it is I cannot use the full functionality of Photoshop CS5 extended. I'm not sure if all the Radeon HD cards are supported or not, but maybe check before you invest in a new card.

    The Radeon 7000 series cards should work fine with both CS5 and CS6, but as Steve noted there is a problem with the current drivers for the card.  Until the 12.7 driver is released next month, I'd suggest using the following driver:
    http://support.amd.com/us/kbarticles/Pages/AMDCatalyst126beta.aspx
    Use the control panel on your system to completely uninstall your current driver before installing the 12.6 beta driver.  Please let us know if the beta driver resolves the issues you're seeing.
    Thanks,
    Adam

  • I already have Photoshop CS5 and want the CS6 what should I do?

    I have Photoshop CS5and want the CS6. what should I do?

    thai you very much!
    Marianna Cury
    www.mariannacury.com.br
    [email protected]
    Tel. (11) 5044-0632
    Em 29/01/2015, à(s) 18:58, John Waller <[email protected]> escreveu:
    I already have Photoshop CS5 and want the CS6 what should I do?
    created by John Waller in Photoshop General Discussion - View the full discussion
    Creative Suite 6
    Click Buy (a pop up window will appear)
    Ignore the Cloud offer (white box, RHS)
    In the grey box on the LHS ("With CS6"), from the dropdown box select Upgrade (not Full) then click Select
    Complete your purchase
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7144926#7144926 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7144926#7144926
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • What causes this message "Photoshop 13.1.2 for Creative Cloud Installation failed. Error Code: U44M1P7"?

    What causes error code: U44M1P7? I have rebooted my machine multiple times and continue to get the same results.

    Photoshop: Basic Troubleshooting steps to fix most issues
    ISSUE: Installation failed. Error Code: U44M1P7, U44M2P7, U44M1P6
    SOLUTION: Run the installer. Reinstall Photoshop CS6 to repair/replace the missing/modified file. Select Help>Updates… to run the updater again. http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-updates-ccm.html

  • Adobe Premiere CS5 and CS6 freeze my computer

    Hello,
    I recently built myself a new computer and installed Windows 7 Professional 64-bit on it:
    COOLER MASTER HAF 932 case
    Core i7-3930K 3.2GHz CPU
    Noctua NH-D14 CPU Fan
    32GB of DDR3 G.Skill 12800 RAM
    128GB Crucial M4 SSD HDD (as the C drive)
    3 2TB Seagate HDD's RAID 5 (software is up to date)
    Antec HCG-900 900 watt PSU
    EVGA nVidia GeForce GTX 480 video card
    Bluray/DVD drive
    All of the parts are brand new. The problem is that I installed the Adobe CS6 Master Collection and every time I try to use Premiere (on any new or old projects) and make any video edits - the entire computer freezes. Sometimes it takes a few minutes, sometimes it takes nearly an hour of video playback and/or editing to freeze. I am going crazy trying to figure out what is going wrong. I do not get any bluescreen errors or anything in the Event Viewer (other than a notice saying the computer shut down improperly due to the fact that I had to hold in the power button). The odd thing is that it seems to work in Safe Mode every time, thus making me think it's a software issue. The other strange thing is that I've left Premiere open all day and night and the computer would not freeze - it only seems to happen when I'm making edits or playing back video.
    What I have tried thus far:
    Reinstalling Windows (with no antivirus or extra programs)
    Updated Adobe Premiere CS6 (I also tried CS5)
    Installing Windows Updates
    Windows Memory Diagnostic (no errors found)
    Updating all drivers
    Alternate video card (GTX 460)
    Installed a PCI sound card and disabled onboard sound
    I tried maxing out the CPU (very difficult to do) with other programs besides Premiere - no freezing
    Installed Core Temp to monitor CPU temperature - it never got above 65 degrees and was generally in the 45-50 degree range, so I'm sure it's not overheating
    Tried only one 8GB stick of RAM to see if maybe it was memory - it still froze
    I may have tried a couple other things, but that's all I can remember for now. Needless to say, this is a problem I've never even heard of. My only other thought is to try a different hard drive and/or PSU. Any ideas?
    Your time and expertise is very much appreciated.
    Also, please let me know if there's a more appropriate place to post this.
    Thanks!
    PS
    I noticed one other member had the same problem (still unresolved as of April) and they had the same video card and SSD drive I do. However, they, like me, changed their video card and it made no difference...

    Safe Mode disables a lot of drivers and services, like networking.  That would seem to indicate that something is running on your system that interferes somehow.
    I'm just not sure how you'd go about tracking that down.

  • Long-time Elements user who had planned for CS4, CS5 or CS6 on disk

    As a long-time Elements user who had planned to purchase Photoshop CS4, CS5 or CS6 right before the Cloud changed everything, why can't I get the cloud subscription for $9.99? This makes me want to just buy an older disk on EBay or elsewhere.

    why can't I get the cloud subscription for $9.99?
    Are you trying to subscribe to the Photoshop Photography Program (PS+LR)?
    That deal is available to anyone, regardless of whether you've purchased Adobe software in the past or not.
    What is preventing you from subscribing?

  • Cs5 or cs6 , can i use 2 monitors?

    Hi
    i'm under windows 7 and sometime xp
    i have 2 monitors
    can i use them with photoshop cs5 or cs6?
    for example have the image in the bigger monitor or camera raw in the bigger monitor
    and the tools in the smaller?
    or viveversa?
    thanks
    cheers

    Speaking of viewing a 'Vast expanse of horizon', reminds me of some of the Gamer's monitor setups I've seen on sites Tom's hardware. Six 30 inch Ultrasharps lined up side by side in portrait orientation.
      In fact I have just had a quick look round, and there some insane monitor ‘solutions’ out there!
    48 inch 2880 x 900 pixels from Alienware.
    Flight sim anyone?
    What amazes me is that software companies are actually investing serious money into coding games that make full use of OTT screen realestate, which suggests that there are enough people using such setups to make it worth their while.

  • Photoshop CS5 and CS6 does not start. Windows 7

    I am using Photoshop CS5 as well as CS6, 64-bit on Windows 7. Since the last few days, I noticed that Photoshop would take a very long time to start (earlier it used to start within few seconds). Today, I found that both the Photoshop versions do not start at all. Nothing happens when I click the short-cut on the Task Bar. Neither do they start through the Start Menu. Why does this happen and what is the solution?

    Have you tried using the task manager to see if Photoshop is hung and look at your windows reliability history to see if Photoshop CS5 an CS6 are crashing?

  • Can you export a SWF in photoshop CS5 or CS6?

    I have a client that has provided me SWF files that swear were exported from Photoshop, I know that this could be done in earlier versions. if so then how can this be done in CS5 or CS6. I have access to both.

    To my knowledge, the ability to export as .swf was removed after CS3. Do you know what version of Photoshop your client was using?
    Here are some past threads regarding this topic:
    http://forums.adobe.com/message/2986280?tstart=0
    http://forums.adobe.com/message/4897912#4897912
    http://forums.adobe.com/message/3239504#3239504
    http://forums.adobe.com/message/2512325#2512325
    You might also find some additional information by asking around the Photoshop General Discussion.
    Cheers!
    Kendall

Maybe you are looking for

  • Facebook Notificati​ons

    Okay, when I first got my BB I installed Facebook and everything was working perfectly.  The last three days I have not been receiving notifications.  I checked my Facebook settings and all my notifications are set to "on", my email address is correc

  • Possible to embed video with controls in FM PDF?

    I have a very specific end in mind, and I'd like to know from you folks who might have done this before if it's even possible, and if so, the steps to follow to achieve it. Here goes... I'd like to take an ordinary AVI file, convert it FLV in Media E

  • Problem with database schema objects in the entity object wizard

    Hi All, When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to s

  • Can you watch a texted video sent to your i-phone, on your mac computer?

    can you watch a texted video sent to your i-phone, on your mac computer?

  • Microsoft Office for MacBook Pro

    What is the earliest version of Microsoft Office for Mac that is compatable with Power PC. My old version (2004) is not compatable with my new MacBook Pro