JMQ Resource in conflict on multiple KJS's via IAS 6.5

Hello,
As part of running our app under IAS 6.5 Solaris, we connect to a queue using JMQ. However, since we run 2 KJS's on our machine, we're actually connecting twice - once for each KJS. When the 2nd KJS comes up, we get the following exception:
javax.jms.JMSException: [C4055]: Resource in conflict
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.addInterest(ProtocolHandler.java:1305)
at com.sun.messaging.jmq.jmsclient.WriteChannel.addInterest(WriteChannel.java:37)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.addInterest(ConnectionImpl.java:572)
at com.sun.messaging.jmq.jmsclient.Consumer.registerInterest(Consumer.java:90)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.addInterest(MessageConsumerImpl.java:126)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.init(MessageConsumerImpl.java:121)
at com.sun.messaging.jmq.jmsclient.QueueReceiverImpl.<init>(QueueReceiverImpl.java:40)
at com.sun.messaging.jmq.jmsclient.QueueSessionImpl.createReceiver(QueueSessionImpl.java:82)
The JMQ server that is running gives the following message simultaneously:
[25/Apr/2002:17:14:03 EDT] WARNING [B2009]: Creation of consumer lstCreateLoanApp to destination 1 failed:
B4006: com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4006]: Unable to attach to queue queue:lstCreateLoanApp: a primary queue is already active
In researching the problem, we found that you must manually set QueueConnection.setClientID() to a unique number. We therefore did the following:
               String newClientId = String.valueOf(Math.random());
               queueConnection.setClientID(newClientId);
               cat.debug("Set QueueConnection clientID to [" + newClientId + "]");
That is successfully resetting the client ID and prints out stuff that looks like this:
               Set QueueConnection clientID to [0.8012784079113983]
However, even after resetting the client ID to a random number on each QueueConnection, we still get the Resource in conflict problem.
Is our thought that the client ID needs to be reset to a unique number for each QueueConnection valid? If so, does the code above do the job correctly? If not, how do we get around this?
Thanks in advance,
Mike

I don't know if you guys are still wrestling with this, but I just wanted to let you know that I have the same configuration - iPlanet app server 6.5 with 2 kjs's integrated with JMQ 2.0 beta - and i don't have this problem at all. From the information given, I can't begin to guess what the differences are.

Similar Messages

  • Why am I getting �Resource in conflict"?

    I have implemented P2P model using iMQ2.0. I have a client & server program sending and receiving requests. I am creating seperate session's to handle requests received and sent. Problem is when I open up two or more DOS consoles(client is program on the same machine) and fire-up up the client program I get "Resource in conflict" Exception. Any Ideas please let me know.
    FYI -- Looks like "Resource in conflict" is a known limitation in iMQ2.0. Is there any workaround ?????

    The error should not be a bug or limitation, its an indication that
    you are doing something which isnt allowed (because of spec
    limitations OR your current configuration)
    The common case for the exception to be generated is:
    * you have two different connections attempting to use the same
    client ID for a durable subscription OR the same
    durable name. (this is not supported by the JMS spec)
    OR
    * you have two Queue Receivers attempting to connection to
    the same single receiver queue. (the default configuration
    for a queue is that only one receiver can be active on the
    queue at the same time)
    If you are receiving the exception while creating a durable subscription:
    - try explicitly setting client ID. The default client ID is
    determined by host name (which is this case would be identical)
    - if you are explicitly setting clientID and receiving an exception,
    make sure the clientID's are different
    - if you are creating two durable subscriptions on the same connection
    with the same clientID, make sure the durable name is different
    If you are receiving the exception while creating a QueueReceiver, you
    will need to either:
    - not have two receivers connecting to the same queue
    OR
    - use admin or jmqcmd to create a queue which supports multiple receivers
    The possible flavours of queues are:
    - single queue receiver - allows only one receiver (the
    default queue type which will be used by autocreated queues)
    - failover queue receiver - multiple receivers can be on
    a single queue, but only one will be receiving messages
    at a given time
    - Round robin queue receiver - multiple receivers are registered
    on a single queue and messages are equally divided among
    the receivers
    e.g. the command:
    jmqcmd create dst -n foo -t q -o queueDeliveryPolicy=r
    will create a new queue named foo with a delivery policy of
    round robin.

  • 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"

  • Regarding multiple KJS in  iAS 6.0 application server

    hi,
    Why we have multiple kjs log option in iAS 6.0. How this impacts the server performance or any other issues related to it.
    How we can merge multiple KJS to single (any configuration needs to be done).
    thanks in advance
    mohan.

    Hi Karmesh,
    As a role of thumb, Oracle does not support any extended shared memory segments on IBM AIX. Please take a look OSS notes #105429, 123366.
    Additionally, I would like to suggest that you use dynamic SGA that has been mentioned in OSS note #105429.
    What kind of memory, you are talking about, in your last question? Oracle memory tuning or SAP memory tuning?
    Regards,
    Orkun Gedik
    Senior SAP R/3 Basis and Development Consultant
    ASTRON

  • Cluster Resource IP Conflict

    Hi,
    I have 2 node windows cluster 2008 R2 Cluster resources are offline due to Cluster resource Ip conflict.
    Windows
    has detected Ip address conflict
    Another
    computer on this network has the same IP address as this computer. Contact your network administrator for help resolving this issue. More details are available in the Windows system event log.
    Checked and found that Cluster resources ip address getting conflict with node 1. how can it be conflicting with itself?
    Kindly let me know how to fix this issue.
    Regards,
    Sridharan. M

    Hi Murat Demirkiran,
    Thanks for the above infoirmation.
    I have same issue in one my my cluster server. I have a two node server. as you said above i have 3 different IP address for node 1, node 2 and Cluster name. My issues
    is that resource 1 ip address is conflict with Node 2 server.(Resource 1 ip address is conflict with the ip address of node 2 (showing the mac ID of node 2).
    Please help me on this please
    Salesh.C

  • Configuring optimizeit profiler for multiple kjs

    Hi,
    I am facing problems in configuring optimizeit profiler for multiple kjs. It
    works fine if i have a single kjs in my app server and i am able to read the
    profiler output. I am using iAS6.0sp2.
    When i try to change the script that attaches the profiler with kjs for
    multiple kjs all the kjs start on the same port i.e 10819. I want all the
    kjs to start on different ports so that i can read the profiler output for
    all of then at one go.
    If any body has done this before with success then please help me at an
    earlier date.
    This is very very urgent for me.
    sandhya

    There is three things important While you working with custom member ship and FBA to work. 
    1. If you have developed Custom membership extending SQLServerMembership provider then make sure to check for Machine Key. as internally if usese combincation of this to encrypt password, so if you used first userid using some other method of creating user
    then probably it does not use machine key in that configuration file.
    2. if you doing brand new implementation from base classes you probably want to check your query & stored Procedure. make sure to run sql profiler to see what query is getting fired.
    3. this one is most least and mostly not will be problem but do check Application Name,
    Note: Key to get this working is Machine key, Application Name, your custom code revisit, sql profiler and you should be good,
    Also do review FBA Code from CodePlex you can save significant time in developing from scratch.
    -Samar
    www.gosam.info
    Please remember to click Mark as Answer on the answer if it helps you
    Sr. Software engineer

  • PO print sent to multiple mail id  via email

    Hi,
    We are using the standard output type NEU, medium 5 (external send).i maintained multiple mail id in single vendor master,
    i want to sent po print out for multiple mail id via email,after wt are all configurations do as a mm and abap consultant,plz
    suggest.
    Regards
    Sam

    Hi,
    You requirement is not specific.You want to print PO or want send PO via E-mail to vendor.
    You can maintain multiple E-mail ID's for a vendor master.In standard possible to send PO by e-mail to vendor to single e-mail ID ONLY. If you want to send PO by e-mail in multiple (e-mail) ID's, you can go for development with ABAPer for using of function module OR can work with group e-mail concept( check with system admin team).
    Regards,
    Biju K

  • Does Airport Express support multiple ethernet connections via a switch?

    If I use the following configuration, with the Airport Express extending my network, will it handle multiple devices connected via a switch?
    Modem---Airport Extreme- - -802.11n- - -Airport Express---Switch---multiple devices (eg. network printer and iMac).
    Or do I need to use a second Airport Extreme instead?

    It works for me—even when the AirPort Express device is configured to extend the wireless network created by the AirPort Extreme router.

  • Setting up a Resource Based Calendar with Multiple Permissions

    Using SharePoint 2010 we're trying to schedule multiple conference rooms in a single calendar using calendar resources as described here: office.microsoft.com/en-us/sharepoint-server-help/enable-reservation-of-resources-in-a-calendar-HA101810595 (dot) aspx
    Our requirements are that most of the conference rooms (resources) may be scheduled by anyone, but two of the rooms may only be scheduled by some users (a different set of users for each room...three sets of permissions).
    I suspect there is no way to articulate permissions for different resources, all coming from the same resource list, and I can not figure out how to create more than one resource list per subweb. My solution has been to create two subwebs, one for each of
    the restricted calendars, and have three different calendars which I'm trying to conceal to some degree from the user by making everything look the same, having the same navigational structure everywhere, etc.
    A near-requirement (strongly desired but not absolutely required) is for a master view of all the conference room schedules. Not sure how I'm going to do this yet.
    Questions are:
    Is there a way to assign different permissions to different resources?
    Is there a way to establish more than one resource list for this type of calendar within a single subweb, and if so, how do you assign different calendars to different lists?
    With the approach I've taken, is there a way to combine my three calendars into a single calendar (ideally) or a single "schedule" that users may use to see which conference rooms might be open for a desired date/time?
    Thanks in advance.

    Hi,
    In workflow, use impersonation step. It will help you decide who can view or edit this document.
    You can refer these link to know how impersonation step works:
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=91 
    http://www.learningsharepoint.com/2010/07/31/impersonation-in-sharepoint-designer-2010-workflow/

  • Adobe X Standard conflicts with multiple scanners?

    If I add a second scanner to my home network, will the Adobe X Standard software create a conflict when it sees the two devices?  I will be just scanning one document at a time.

    No problem with multiple scanners. If they are supported scanners you will have a choice. If you install an unsupported scanner it will be ignored.

  • Cause conflicts with multiples platforms?

    Have been using LR for a while and enjoy most of it but then thought I might
    check out with other programs have to offer like ACD See. Think I have tried
    others in the past, but they didn't grab me. Anyhow, this question isn't
    about what is better, but rather, will or could there be issues by having
    multiple photo management programs on my machine and have them linking to
    the same images and such? I mean, the databases of the programs will stand
    on their own and therefore I thought it shouldn't, but then maybe it would
    be best to get some insight here? Thanks much for any insight you can
    provide!

    No...no "conflicts" but I would question the value of doing so...as it stands, right now only Camera Raw and Bridge CS3 can really "work together" for anything other than just metadata. Meaning only Lightroom & Camera Raw 4 (and I suppose CR 3.7 in CS2) can show images with the correct renderings based on image settings.
    So adding other DAMs into the mix will not really help, it may only confuse the issues.
    I would argue also that having multiple DAMs will, in effect mean you may not master any of them. I mean although Lightroom is supposed to be easy to learn, it still take time & effort it to really be good at it. And other programs will also require time & effort to become good at using them. Splitting your time for anything other than testings would be, I think, a waste...

  • Resource configuration for updating multiple tables

    Hi all,
    My aim is to update multiple tables in Sun Identity Manager
    I would like to know what is the resource to be configured for this
    Could any one help me in solving this issue
    Thanks in advance,
    Shalini

    I have used the Scripted JBDC resource as follows;
    go to Resources > Configure Types and select Scripted JDBC > Save
    at Resources, select resource Type Actions > New Resource
    select Scripted JDBC from the drop down, this should start the wizard
    the wizard will guide you with lots of questions.
    The one problem we had is in the Action Scripts (second wizard page). we found the example scripts
    at the webserver root /idm/sample/ScriptedJdbc/SimpleTable/beanshell
    the above scripts had to be modified to the SQL required for the application, but it worked well with the example databases and codes that it is easily understood.
    there are several examples of different table types here... there are lots of options, see the README iles for each type
    hope this helps;
    TG

  • How can multiple kjs produce different results?

    I have two kjs's running on a single (unclustered) machine. Now whenever I run the server the first kjs seems to be O.K the second however seems to just accept requests and not return them - I see thread add contiously added to the kjs.log and every other browser request will hang, if I disable the second kjs everything works o.k. Have have also noticed running top that this second kjs is constantly running consuming a minimum of 30%+ processor all the time.
    Does anybody have any idea as to how the 2kjs's could behave differently considering they are using the same script parameters ?

    need some more clues:
    1. Is the behaviour specific to the VM, i.e if you were to disable kjs1 and only enbale kjs2 does the app behave correctly.
    2. is is this behaviour specific to your app, i.e does fortune work on both engines.
    3. are you limited by some backend resource like db, jms etc.

  • Is there a major resource (memory) conflict between AdBlock addon and Peerblock?

    Sorry this is so long. I just downloaded FF 3.6.3 for Windows last night and added the NoScripts and Adblock addons while concurrently running Peerblock. Within a few minutes my entire system went haywire, more precisely a complete system failure. I/O, CMOS, IDEport2, ACPI, everything went haywire. The mouse and the cursor became unusable, it was as though someone was mashing on buttons or clicking repeatedly. When I tried to open FF again it literally opened more than a hundred terminals. Right click completely failed because it immediately closed. I couldn't use any programs or type anything anywhere on my system. This behavior persisted even when I booted into BackTrack 4 and even under BIOS. The entire system literally became unusable. Then I wasn't able to even make it past the splash screen in most instances. During boot this was accompanied by constant beeps. I was able to gather some information, but not much before the complete insanity. I did see in FF something about a corrupted module. Peerblock also generated an error report indicating I/O errors but because of the nature of this problem I wasn't able to really view or record either one. There were tons of ACPI and other errors in EventViewer under Windows while all this was occurring. More errors than I had ever seen before. Finally my system wouldn't even boot unless I left it alone for some time. I also noticed excessive heat. Finally Windows prompted me, after removing and reseating the RAM, to the repair console. It found zero errors, absolutely nothing, generating 0x0 errors for everything. but did indicate that it located the root source of the problem. When it started up both FF and Peerblock had been removed. Everything else was fine. I'm using the system now without a single problem. I've been using Peerblock for more than six mos. without any issues. FF runs beautifully under BackTrack 4. It appears to me this was a memory conflict of some nature that corrupted the CMOS or some other memory modules, but I'm not that savvy. I would like to continue using both these programs with Windows but if it's not possible; it's not possible. I'm not crazy and won't be installing and using both these programs together again. This was the most serious problem I've ever encountered, worse than any virus. Also, let me assure you this was not a virus. Since I've gotten back on my system I've run three different AV engines. I am willing to try FF, with AdBlock of course, again and update how it goes. I may even try the alpha5. I know your busy, but please help if you can. Any feedback or help would be greatly appreciated. I will continue to support the Mozilla community regardless of this issue.
    -Regards
    == This happened ==
    Every time Firefox opened
    == As soon as I used FF for windows.

    I have a new computer and have had problems with just about everything there is to have problems with. I chose FireFox over IE because I just plain like it better. I am at a loss as to what to do with the Error Console. It is full of errors, and I am afraid to use my computer because it may crash. I had to remove my MicroTrend Security System because of all the problems with downloads. I really have never seen any such disgusting things before from a computer. Perhaps I downloaded too many addons. But isn't that what they are for? If not, why not make a simple product with no add-ons that will work efficiently. I know I would buy one. This is a beautiful computer with a huge screen that can also be a TV, but what is the use if the Browsers are all fighting with one another and cannot get along. Worse than our World. Lets get all get along and try to get what everyone would like. We are not all NERDS, although I wish I were right at this moment. I wish some wonderful nerd would email me and take over my computer and take out what I don't need and add in what I do. There is a terrific idea for some brilliant NERD.
    I am desperate here in New York State, USA and need help NOW.
    Thanks to all. I hope Firefox will send us out a Great Big Power Patch to fix all the ills of 3.6.3. I thought this might be the one. It surely sounded great. Thanks, Elizabeth

  • Conflicts with multiple VIs

    Hi, we have a setup where we would like 2 VIs to read from a common high speed ADC. The first VI is a "housekeeping" VI which monitors a few channels on the ADC, mostly monitoring temp and pressure in a dewar. The second VI sends commands to an outside box to have it change the input to one of the ADC channels, and then records the voltage from that channel. Actually, for every cycle we record four different values in succession and write it to file. The problem is when we increase the rate (say to 1-5 seconds per data point) at which the "housekeeping" VI acquires data the second vi does not work correctly. Is there something in LV that can make these two (and maybe three) VIs not conflict when accessing the ADC? Please note that I am
    new to LV programming, my apologies if this question should be directed to another category. Thanks for any insight!
    Anil

    Without doing a lot of work, synchronizing communication to the same piece of hardware from different and independant VIs (or any other software for that matter) is next to impossible. It would be far easier to have a single VI that acquires all channels and then pass the data to different VIs that display what you want. You could do this a lot of different ways. The dispaly VIs could be subVIs of the the main VI that does all of the acquisition or the main VI could de a Datasocket server and your display VIs are Datasocket clients.

Maybe you are looking for

  • Lenovo 3000 N200 0769 BWG startup problem

    Laptop failing to load Windows Vista. Tried Rescue and recovery options and after running through the option, on restarting the laptop went to the rescue and recovery page. Removed the battery, reinserted battery and restarted laptop but it still wen

  • Background missing when exporting from indesign to pdf

    Sometimes when I export a file from indesign to pdf, my background doesn't show up. The background is just a block of solid colour, or gradient. The background block of colour is usually the full size of the page. I've tried to play around to see wha

  • Installation failed error code 15 on my desktop for CC 2014 upgrade

    I am trying to upgrade to the 2014 CC on my desktop and everytime I get the error code (15) and try again. I have restarted, but it's no use. I spoke to the support center for an hour, they couldn't figure it out, and they informed me that Adobe woul

  • Imac won't boot after upgrade to latest Yosemite

    After Upgrading to latest Yosemite version - my Imac will not start - it just hangs there or eventually comes with Crash window tellling it will restart. However the Imac does launch in safe mode - holding down the shift key -but then there is no sou

  • Java error trying to forward logs?

    I'm getting a really strange error when I try to set where my Operations Manager logs direct to. It happens whenever I click on the gears icon for the ANALYTICS, COLLECTOR, WEB, and SUITEAPI folders in Administration > Support > Logs. The error that