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"

Similar Messages

  • 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 are the database resources when collecting stats using dbms_stats

    Hello,
    We have tables that contain stale stats and would want to collect stats using dbms_stats with estiamte of 30%. What are the database resources that would be consummed when dbms_stats is used on a table? Also, would the table be locked during dbms_stats? Thank you.

    1) I'm not sure what resources you're talking about. Obviously, gathering statistics requires I/O since you've got to read lots of data from the table. It requires CPU particularly if you are gathering histograms. It requires RAM to the extent that you'll be doing sorts in PGA and to the extent that you'll be putting blocks in the buffer cache (and thus causing other blocks to age out), etc. Depending on whether you immediately invalidate query plans, you may force other sessions to start doing a lot more hard parsing as well.
    2) You cannot do DDL on a table while you are gathering statistics, but you can do DML. You would generally not want to gather statistics while an application is active.
    Justin

  • What is the solution of  non-oracle exception erro 100501

    what is the solution of non-oracle exception erro 100501

    I'm guessing that the TRUE parameter in My_Alert causes the procedure to raise a form_trigger_failure. In that case you could do this:
    Declare
      A number(10);
    Begin
      SELECT Sif_Code
      INTO A
      FROM Pro_Stp_Rcp_Item
      WHERE Sif_Code = :Pro_Stp_Rcp_Item.Sif_Code
      AND Rou_Code = :Routes.Rou_Code;
      My_Alert('Item Code Already Registered',1,TRUE);
    Exception
      When form_trigger_failure then
        raise;
      When No_Data_Found Then null;
      When Too_Many_Rows
        Then My_Alert('Item Code Already Registered',1,TRUE);
      When Others
        Then My_Alert(Sqlerrm||' - '||sqlcode,1,TRUE);
    End;As Steve says, the problem is really caused by When Others here. I've got no problem with trapping "Others" but in forms you might be better off having a generic catch-all in the on-error trigger.

  • What causes the Missing or invalid version of SQL library PSORA (200,0)?

    What causes the Missing or invalid version of SQL library PSORA (200,0) in PeopleTools 8.51 Application Designer?

    Could be several things. Bad path, bad version, etc. give us details on your client install. What Oracle client do you have installed. App Designer is 32 bit. If you installed the 64 bit client you might get this error. What OS are you using. PeopleTools version? guessing 8.51 from your other post.

  • After sending a picture or message in "Message", what causes the "send" button to grey out?

    After sending a picture or message in "Message", what causes the "send" button to grey out?

    Restore your iPad to the factory settings.

  • What is the best resource for Discoverer novice.

    I need direction in this tool. what is the best resource for me to use.

    Hi Ade
    You could do a lot worse than get hold of a copy of the Oracle Discoverer 10g Handbook that I wrote. It will walk you through much of what you need to know. You can find it on amazon.com or via a link from my website: http://learndiscoverer.com/books/books.htm
    Another good resource would be a training class in either the Admin tool or End User tool or both. Oracle Corporation offer excellent training as do many other companies, including mine. Just google Discoverer Training.
    Further resources are the Oracle By Example series on the OTN forum. These are free. You will find the Discoverer lessons here: http://www.oracle.com/technology/obe/obe_bi/discoverer/discoverer_1012/index.html
    Other resources, such as blogs, abound on the web too. Here are some:
    Oracle BI Blog: http://oraclebi.blogspot.com/
    Mark Rittman: http://www.rittmanmead.com/blog/
    My Blog: http://learndiscoverer.blogspot.com/
    Best wishes
    Michael

  • What causes the picture to download on my device

    what causes the picture to download on my device? such as I have 1000k pictures sync at icloud.com and I am just viewing them on my phone. What prompts it to download to my phone?

    Download what?

  • The bookmark tab went from the right side to the left side. I did not change that. what cause the change from the right side to the left side?

    The bookmark tab went from the right side to the left side. I did not change that. what cause the change from the right side to the left side? Also the the Mozilla Firefox tab on the upper left hand corner changed.
    Its was a red colored tab and now its blue in color. I did not change any thing!

    Hey jimmiet,
    There were some recent ui changes around the downloads manager. What version where you on before? Anyway, you can customize things in Firefox really easily. Take a look at [[Customize Firefox controls, buttons and toolbars|this article on customizing Firefox]] for details. Should be a piece of cake to move the bookmarks button.
    As for the color of the button, you might be in [[Private Browsing - Browse the web without saving information about the sites you visit|Private Browsing]] mode. That changes the color of the button from orange to a purplish color.
    Matt

  • What causes the display to develop darkened areas?

    What causes the display to develop darkened areas?

    Have you dropped the iPad?
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom
    BTW - You don't need to double post.

  • What is the v$resource in 10g??

    Hi, all.
    What is the v$resource in 10g??
    The folloing link is not sufficient to understand.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2049.htm#sthref3892
    Is there anyone who could provide me with a little more details??
    Thanks and Regards.
    Message was edited by:
    user507290

    This is somewhat internal view, which means you don't need to know in detail.
    Anyway, see following:
    SQL> SELECT view_definition FROM v$fixed_view_definition
    where view_name = 'GV$RESOURCE';
    ==>
    select inst_id,addr,ksqrsidt,ksqrsid1,ksqrsid2 from x$ksqrs where bitand(ksqrsflg,2)!=0
    The base x$ table is x$ksqrs, which means "enqueue resource".
    To understand this, you need to be familiar with some terminologies.
    - enqueue lock: special type of lock. sometimes called just "enqueue".
    - enqueue resources: resources which are protected by enqueue lock.
    Enqueue resource is identifed by following info:
    resource type(2) + resource identifer1 + resource identifier2
    For instance, a table whose id is 1000 is represented as [TM+1000+0]. A sequence whose id is 888 is represented as [SQ+888+0].
    Every resource which is protected by enqueue lock is exposed via V$RESOURCE view. And equeue lock is exposed exposed via V$LOCK view. The relationship between V$RESOURCE and V$LOCK is 1:m. For instance, let's assume that table 1000 is locked by session 1 in exclusive mode, and session 2 is waiting to lock the same table in exclusive mode. In this case, one record(TM+1000+0) is registered in V$RESOURCE view, and two records(one blocker+one blockee) are registered in V$LOCK view.
    You need to google "Oracle enqueue resource" or something.
    Hope this helps.
    PS) 99% of locks in Oracle are "enqueue lock", which are exposed via V$RESOURCE and V$LOCK view. But some locks are not exposed by these views. For instance, library cache lock is exposed via X$KGLLK, library cache pin is exposed via X$KGLPN.

  • HT201401 What causes the iPhone 4S to shut down to a black screen when it has full power?

    What causes the iPhone 4S to shut down to a black screen when it has full power? I have cleared the open icons and it works for one day then shuts down again.

    Software hiccup, glitch or maybe faulty battery. Restore iPhone with iTunes on computer. See if this helps. If still problem that you think is serious enough to fix, all iPhone 4S have full Warranty. Make Genius Reservation and take iPhone to Apple for resolution.

  • What causes the rainbow swirling icon that locks a program such as address book?

    What causes the rainbow swirling icon that locks a program such as address book? And how do I get out of it?

    The Finder is just assigning the wrong kind and icon to what I presume are plist files. Often rebuilding the Launch Services will cure this, but sometimes Finder gets a strange bee in its bonnet about some particular combination of characteristics and what they mean, and it can't be dissuaded. Unless you are opening plist files, and get really annoyed when you double click one and Address Book launches and announces "wrong type of file" you can just ignore it. In my own ~/Library/Prefences folder plists are generally labeled correctly, probably because I have them assigned to open with Apple's own Property List Editor. But there are some other preferences that Finder has decided are something altogether different than what they are: WingNuts Prefs and Saved Games are both believed to be Eudora preferences; a whole batch of other prefs from a dozen differenct programs are described as TextWrangler preferences, and there's a another group thought to be Unix Executables. As long as the program they belong to isn't having a problem finding and writing to them, don't worry about it.
    Francine
    Francine
    Schwieder

  • What caused the err ORA-12547 ?

    when i logged in sqlplus,
    i type this:
    SQL>connect internal
    then
    ERROR:
    ORA-12547: TNS: lost contact
    what caused the error?
    sorry for my poor English.

    Hi there,
    I guess you have not started your listener.
    Regards
    Sim kw

  • What cause the ZEN Touch 2 to freeze?

    Hello,
    I've (finally) received my ZEN Touch 2 with GPS two days ago, and it truly is a fantastic MP3 Player. But guess what? Today, for the first time, it really did froze, using the N64oid emulator. When the ZEN is lagging, I'm simply waiting, and it work like a charm a few seconds later. But now, it was completely frozen. Touch Screen, Power button... Tried connecting to computer, no reaction.
    So in a bad mood, I tried reseting the unit, which I'm obviously not suposed to do often, I had a hard time. First, the reset hole is way too tiny!? Even with a paper clip or a pencil mine, this is ridiculously hard!? First, I even used the wrong hole, I though this was the reset hole, so yeah, the paper clip got inside the ZEN... Truly awesome. After all, I managed to remove it.
    And then, seemed like I got it, ZEN resetted, when I thought it was completely screwed, only two days after I received it!
    It seems to work correctly, now. Needless to saw I deleted the data, application and ROMs of N64oid, the right way (Along with PSXoid, which I haven't tested, but is probably similar.). When I first tried Super Mario 64, it was playable, at an OK speed. But today, I tried others ROMs, like Donkey Kong 64, or Tony Hawks Pro Skater, without a doubt, that was asking too much from the ZEN, since I couldn't pass the main menu.
    So now I really hope my ZEN will last,?Creative. I'm in Quebec, got it from California. Needed to ship it to Plattsburgh by Amazon.com, and to be fowarded to my house, since you unfortunately do not ship to Canada.
    I still have a one year warrantee, but undestand me, I?absolutely wouldn't want to ship it to Creative?in?the US, then get it shipped back to Plattsburgh, and then to my home. That'll cost me hell (Again)!
    Alright,?I'll?now like to know what cause the ZEN Touch 2 to freeze? In my case, that was the emulator that was too advanced for the ZEN (And since it doesn't support multi-touch, it's hardly playable without a USB keyboard or gamepad (Possible?), or Wiimote). ?I don't have applications running?in the backgroung, only one at a time.
    How can I avoid my ZEN to freeze again?
    Oh yes, one more question. Why when I start some applications, it instantly shut ("The application [...] (process com [...] has stopped unexpectedly. Please try again.") ? How can I fix this?
    Thanks for the reply.

    )?Thanks for the reply.
    I unistalled many 3rd Party APPs (Only /3 were booting, anyways), and I can already see a huge difference with the fluidity of the menu. It's also turning on faster.
    I already uninstalled N64oid, but kept the others 2D emulators, never had a problem with them, they run without lagging.
    What's odd, however, I downloaded Firefox from ZiiO Space, ran it, and the ZEN went pretty much crazy; black screen, I tried to get back to the menu, pressing buttons and all that, and then the ZEN vibrated like hell, perhaps because I pressed the buttons a lot of time. I finally made it, without resetting, but that was freaking scary. Oo
    Uninstalled Firefox. I find it strange that I downloaded it from ZiiO Space, and that it doesn't work like normal.
    I'll try to be more careful while downloading APPs, if I can.
    I appreciate the reply.
    GameX

Maybe you are looking for

  • Personal File sharing is on but not working

    This problem has been plaguing me for some months. When I try to access the problem computer on the network it will not show up until I turn off Personal File Sharing and then turn it back on. Then all works fine for several days until it doesn't wor

  • Need a formula for a date in one table to show on a calendar on a "summary" sheet

    Hello, I have created a simple table for my daughter to keep track of her monthly bill's due dates which are in one row of the table. I'd like to create a "summary" sheet which consists of a calendar that shows those dates at one look, it would also

  • Shared Variable Engine clock is consistently inconsistent

    From the annals of the weird: I noticed a while back that the DSM displays a different time than my system clock when I manually change a NSV value. I didn't think much of this, but then I noticed that it is not just wrong but inconsistently wrong. H

  • HT1420 troubleshout with authorizing

    I have problem with authorization of de itune store, i get constantly a message that i hav to authorize my PC but after filling the acount information it does not work. Is there any other solution?

  • J2ee Application Deployed,error connecting to 9i db

    Hi, I am working on a Oracle 10g 9.0.4 AS and a Oracle 9i db, both of which I have just installed on red Hat Linux 2.1 Advanced Server. I have deployed a j2ee ear file in an OC4J container. The deployment works fine as I get the login page correctly.