Error JMS queue cannot be multi-conumer enabled

Hi
I wanted to enqueue using IPmessage type in java but I ended up getting the error
Exception: oracle.jms.AQjmsException: JMS-130: JMS queue cannot be multi-conumer enabled
Below is my java code. Anyone has any ideas.
public static void main (String args [])
throws java.sql.SQLException, ClassNotFoundException, JMSException
try
String ora_sid = "QA620";
String host = "localhost";
String schema = "OSA";
String password = "OSA";
String queueName = "IP_OUT_QUEUE";
int port = 1521;
Enqueue(ora_sid, host, schema, password, queueName, port);
System.out.println("You should see messages in IP_OUT_QUEUE. Should be buffered but they are persistent instead");
catch (Exception ex)
System.out.println("Exception: " + ex);
public static void Enqueue(String ora_sid, String host,
String schema, String password, String queueName, int port) throws Exception
String s5 = generateIdAsString();
String s6 = "";
String s7 = "Acme";
String s8 = "GlobalChips";
String s9 = "ProcessORDERS";
String s10 = null;
String s11 = null;      
int i = 1;
String s12 = null;
if(!isNullString(s12))
i = Integer.parseInt(s12);
String s13="D:\\sas.xml";
if(isNullString(s13))
throw new Exception("No payload uri");
String s14 = readFile(s13);
byte abyte0[] = null;
String s15 = "";
if(!isNullString(s15))
abyte0 = readFileInByte(s15);
QueueConnectionFactory qc_fact = null;
QueueConnection q_conn = null;
QueueSession q_sess = null;
java.sql.Connection db_conn = null;
Queue queue = null;
AdtMessage adt_msg = null;
QueueSender q_sender = null;
oracle.xdb.XMLType xtype = null;
String data = null;
try
qc_fact = AQjmsFactory.getQueueConnectionFactory(host,
ora_sid, port, "thin");
q_conn = qc_fact.createQueueConnection(schema, password);
q_sess = q_conn.createQueueSession(true, Session.CLIENT_ACKNOWLEDGE);
q_conn.start();
db_conn = ((AQjmsSession)q_sess).getDBConnection();
queue = ((AQjmsSession)q_sess).getQueue(schema, queueName);
q_sender = q_sess.createSender(queue);
adt_msg = ((AQjmsSession)q_sess).createAdtMessage();
data = "<bolek>olek</bolek>";
///xtype = oracle.xdb.XMLType.createXML(db_conn, data);
//=====================================
//AdtMessage adtmessage = aqjmssession.createAdtMessage();
IPMessageOld ipmessageold = new IPMessageOld(s5, s6, s8, s7, s9, s10, s11, i, s14.toCharArray(), abyte0);
ipmessageold.setPayload(CLOB.empty_lob());
ipmessageold.setAttachment(BLOB.empty_lob());
//=====================================
//adtmessage.setAdtPayload(ipmessageold);
adt_msg.setAdtPayload(ipmessageold); //xtype
//try sending a buffered message, different ways, none of them works!
((AQjmsQueueSender)q_sender).send(queue, adt_msg,
DeliveryMode.PERSISTENT, 1,
AQjmsConstants.EXPIRATION_NEVER);
q_sender.setDeliveryMode(DeliveryMode.PERSISTENT);
((AQjmsQueueSender)q_sender).send(queue, adt_msg,
DeliveryMode.PERSISTENT, 1,
AQjmsConstants.EXPIRATION_NEVER);
adt_msg.setJMSDeliveryMode(DeliveryMode.PERSISTENT);
((AQjmsQueueSender)q_sender).send(queue, adt_msg,
DeliveryMode.PERSISTENT, 1,
AQjmsConstants.EXPIRATION_NEVER);
q_sess.commit();
q_sess.close();
q_conn.close();
catch (Exception e)
System.out.println("Exception: " + e);
}

Hi.. i'm trying to put an ADT message created using an ORA Message in the Topic. but i'm getting the conversion error!
below is the code.
* Preparing request Message
try {
                    requestMessage.setOsmOrderid("OSMOrderID12345");
                    requestMessage.setOsmEventVersion("OSMEventVersion1.0");
                    requestMessage.setEventType("SendOrder");
                    CLOB payload = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
                    Writer w= payload.setCharacterStream(1);
                    w.write(xml);
                    w.flush();
                    w.close();
                    //payload.setString(1, xml);
                    requestMessage.setEventPayload(payload);
               } catch (SQLException se) {
                    System.out.println("SQL Exception Occured :" + se.getMessage());
                    se.printStackTrace();
               } catch (IOException e) {
                    System.out.println("IO Exception!");
                    e.printStackTrace();
               AdtMessage request=((AQjmsSession)session).createORAMessage(requestMessage);
               System.out.println("ORA Message Created.");
               request.setJMSCorrelationID("ABG");
               request.setJMSMessageID("324324435435");
               request.setJMSDeliveryMode(AdtMessage.DEFAULT_DELIVERY_MODE);
* Creating Sender and sending message.
TopicConnection topicConn= AQjmsTopicConnectionFactory.createTopicConnection(conn);
               topicConn.start();
               TopicSession topicSess= topicConn.createTopicSession(true, TopicSession.CLIENT_ACKNOWLEDGE);
               Topic requestopic = ((AQjmsSession)topicSess).getTopic("BG_AQ_USER","BG_REQUEST_Q");
               MessageProducer t_sender= topicSess.createProducer(requestopic);
               t_sender.send(request, DeliveryMode.PERSISTENT, 1,600000);
and the error is:
java.lang.AbstractMethodError: oracle.jms.AQjmsSession.createProducer(Ljavax/jms/Destination;)Ljavax/jms/MessageProducer;
Instead of a topic connection, I tried using a AQjmsSession and instead of MessageProducer I've tried using AQjmsProducer as well... but the error persists... please help...

Similar Messages

  • JMS-130 JMS queue cannot be multi-consumer enabled

    error:
    queue = ((AQjmsSession)t_sess).getQueue("tmp", "tmp_queue");
    pl/sql code:
    BEGIN
    DBMS_STREAMS_ADM.SET_UP_QUEUE(
    queue_table => 'tmp_queue_table',
    queue_name => 'tmp_queue');
    END;
    BEGIN
    SYS.DBMS_AQADM.CREATE_AQ_AGENT(
    agent_name => 'explicit_dq');
    END;
    BEGIN
    DBMS_AQADM.ENABLE_DB_ACCESS(
    agent_name => 'explicit_dq',
    db_username => 'tmp');
    END;
    DECLARE
    subscriber SYS.AQ$_AGENT;
    BEGIN
    subscriber := SYS.AQ$_AGENT('explicit_dq', NULL, NULL);
    SYS.DBMS_AQADM.ADD_SUBSCRIBER(
    queue_name => tmp.tmp_queue',
    subscriber => subscriber);
    END;
    I search in forums, google but i can not find solution. Any idea?
    regards

    Bill,
    I could be mistaken, but as far as I know, you can only access JMS queues from java. In other words, "queue_payload_type" needs to be: SYS.AQ$_JMS_OBJECT_MESSAGE
    Good Luck,
    Avi.

  • Migratable JMS queue cannot be found

    I have a cluster composed of 2 servers.
              I have a JMS queue which I assigned to one of the servers in the cluster (Migratable).
              Only the server which I chose can perform a successful JNDI lookup for that queue. The other server doesn't and vice versa depending on which server I assign the queue to.
              Is this a known problem?
              I believe it worked for me at some point in the past.
              Recently I'm experiencing multicasting related issues.
              Can this be a cause/sympton?
              Is this what migratable servers in JMS are for?

    If you are using a release prior to 9.0 then there is a configuration parameter on the JMSDestinationMBean called "JNDINameReplicated". If this is set to "true" (the default) then the JNDI name of the destination should become available in the entire cluster (eventually - you may have to wait for the cluster replication mechanism a couple of minutes).
              If the JNDINameReplicated field is explicity set to "false" then the JNDI name of that destination will only be available on the specific WLS server on which that destination is currently deployed. So if that destinations lives in a JMSServer that is targeted to a MigratableTarget that is currently on WLSServer "A", then the JNDI name will only be accesible to clients on WLSServer "A".
              In 9.0 and beyond each destination actually has two possible JNDI names - the global JNDI name that is replicated throughout the cluster and a local JNDI name that is only available on the specific WLS server. These parameters are called "jndi-name" for the replicated one and "local-jndi-name" for the one only available locally.
              In general, JMSServers targeted to MigratableTargets are for people with dual-ported SCSI disk or some other technology that makes the physical disk appear on two different physical machines. In that case, the JMSServer can be "migrated" to the other physical machine in the case of a crash of the original machine, and all of the persistent messages will remain intact.
              The issues of JNDI name distribution and migratable targets are orthogonal.
              Hope this helps...
              John Wells (Aziz)
              [email protected]

  • Resubmit payloads from JMS Queue

    Hi,
    We have a requirement to resubmit our claims which are faulted and captured in error(JMS queue) using HumanTask..
    Can anyone please provide me any inputs?
    Thanks a lot..
    Regards,
    Sri

    First, there is no need to use human task. You can put retry to Error Queue to retry by itself.
    Second, if you still need human intervention, you can pause the consumption of queue, once queue gets filled up with error messages, you can resume the consumption to let the compsite to pick the messages.
    Regards,
    Richa

  • Error :The user cannot be enabled because the end date is passed.

    Hi
    While running eBusiness HRMS Terminated Reconciliation, OIM picks the Users End Date and if that End Date is passed, the user is Disabled. I think the connector should behave this way. Pls correct me if I am wrong.
    But, what's happening is, when I run the eBusiness HRMS Terminated Reconciliation, I am getting the below error and in the recon manager I can see the End Date as earlier date but the user is still Active. It is not changing to Disabled.
    ERROR [ACTIVE] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.SERVER - Class/Method: tcUSR/validateProvDates Error :The user cannot be enabled because the end date is passed.
    ERROR [ACTIVE] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.SERVER - Class/Method: tcDataObj/save Error :Data Update Failed
    ERROR [ACTIVE] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.DATABASE - Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
         at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcRCE.modifyUserStatus(Unknown Source)
         at com.thortech.xl.dataobj.tcRCE.linkToUser(Unknown Source)
         at com.thortech.xl.dataobj.tcRCE.applyActionRules(Unknown Source)
         at com.thortech.xl.dataobj.tcRCE.checkDataSorted(Unknown Source)
         at com.thortech.xl.dataobj.tcRCE.eventPostUpdate(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcRCE.reapplyRules(Unknown Source)
         at com.thortech.xl.ejb.databeansimpl.tcRCEBean.reapplyRules(Unknown Source)
         at com.thortech.xl.ejb.beans.tcRCE_4tknfu_EOImpl.reapplyRules(tcRCE_4tknfu_EOImpl.java:200)
         at com.thortech.xl.ejb.beans.tcRCE_4tknfu_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ERROR [ACTIVE] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.SERVER - Class/Method: tcDataObj/save Error :Data Update Failed
    ERROR [ACTIVE] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.DATABASE - Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
         at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
         at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
         at com.thortech.xl.dataobj.tcRCE.reapplyRules(Unknown Source)
         at com.thortech.xl.ejb.databeansimpl.tcRCEBean.reapplyRules(Unknown Source)
         at com.thortech.xl.ejb.beans.tcRCE_4tknfu_EOImpl.reapplyRules(tcRCE_4tknfu_EOImpl.java:200)
         at com.thortech.xl.ejb.beans.tcRCE_4tknfu_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.activation.ActivatableServerRef.invoke(ActivatableServerRef.java:85)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I dont know why OIM is trying to Enable User.
    Pls Help
    Edited by: AAG on 25 Jan, 2011 4:12 AM
    Edited by: AAG on Feb 3, 2011 12:43 AM

    I am getting the same error. Any idea which field OIM considers as signal of disabling the user? Status or Termination date?

  • Error while sending the messages to JMS Queue

    Hi ,
    I am trying to pick the file from JMS Queue and send the response xml as outbound message to JMS Queue again using XAI Sender
    I Created XAI Sender, Outbound Message Type(DM-RCVRESP) and configured these two with External System.
    I am able to pick the file from JMS Queue but unable to send the message through XAI Sender (Real-time)
    Plz find below the error trace getting.
    [Wed Jun 15 16:12:09 IST 2011] Error while processing sender "UPLOADSTG" : Unable to update response in staging table: Row id not given.
    com.splwg.mpl.sending.SameThreadSendingManager$ProcessException
         at com.splwg.mpl.sending.SameThreadSendingManager.processDestination(SameThreadSendingManager.java:341)
         at com.splwg.mpl.sending.SameThreadSendingManager.sendResponse(SameThreadSendingManager.java:293)
         at com.splwg.mpl.sending.SameThreadSendingManager.doSend(SameThreadSendingManager.java:249)
         at com.splwg.mpl.server.async.ExecSendRequestProcessor.ProcessRequest(ExecSendRequestProcessor.java:61)
         at com.splwg.mpl.server.async.RequestProcessingThreadAdapter.run(RequestProcessingThreadAdapter.java:46)
         at com.splwg.mpl.server.PooledThread.run(PooledThread.java:91)
         at java.lang.Thread.run(Thread.java:662)
    Please guide me in this regard..
    Thanks,
    sukumar

    What have you configured for the response tab for the sender? Are you using the MPL or the MDB?
    Take a look at:
    MPL Best Practices (Doc Id 1308165.1)
    Oracle WebLogic JMS Integration (Doc Id: 1308181.1)

  • Error while passing ODI variable in JNDI Url for JMS Queue XML

    Hi,
    Facing a weird problem while passing ODI variable in JNDI Url for JMS Queue XML.
    Below is the JNDI Url configured under ODI Topology:
    JNDI Url: t3://<host_location>?d=#TEST.SCHEMA_FILE&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
    where,
    #TEST.SCHEMA_FILE --> ODI variable storing xsd name and location
    Issue Description:
    If we restart ODI server then for the first run of any ODI interface using JMS Queue XML, it is unable to get the value for ODI variable present in JNDI Url (d=#TEST.SCHEMA_FILE).
    It throws error message saying: No XSD found
    Temporary Resolution:
    As a temporary fix if we hard-code and pass the value in that ODI variable as shown below, it will successfully go through.
    eg: JNDI Url: t3://<host_location>?d=C:\XSD\test.xsd&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
    Reverting it back to variable later will have no issues and subsequent run will succeed.
    But again anytime later if server is restarted then first run will have this issue.
    Want to have permanent fix for it.
    Any one having idea on it please share. Appreciate your help!

    What ODI version are you using? It could be related to the bug in the older version as described in support note Doc ID 1290326.1

  • Cannot start VM - IDE Emulator Failed to Power on with Error 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.'

    HI all.
    New install of 2008R2 on HP DL-380 G6.  I have created (several) VM's none of which will start.  If I remove the IDE Hard Disk and add a DVD of the OS ISO, it will boot and start the install (although with no HDD). 
    It seems like the IDE controller is working ok - it is what the DVD drive is using, but it cannot mount a VHD.  The error indicates a driver is not working (although the DVD on IDE works fine) so something to do with VHD?  I can attach the VHD
    in disk management, so it does not seem corrupt - again I have tried with both dynamic and fixed VHDs.
    Full error is:
    'Test1' failed to start. (Virtual machine ID 4320D2D6-DF7E-40D2-BD0F-9562CBB9F052)
    'Test1' Microsoft Emulated IDE Controller (Instance ID {83F8638B-8DCA-4152-9EDA-2CA8B33039B4}): Failed to Power on with Error 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.' (0x80070422).
    (Virtual machine ID 4320D2D6-DF7E-40D2-BD0F-9562CBB9F052)
    'Test1': Failed to open attachment 'C:\Users\Public\Documents\Hyper-V\Virtual hard disks\New Virtual Hard Disk.vhd'. Error: 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.' (0x80070422).
    (Virtual machine ID 4320D2D6-DF7E-40D2-BD0F-9562CBB9F052)
    Any Ideas?

    Hi ,
    Did  you try to disable the services , if they are exsit :
    HP Smart Array SAS/SATAEvent notification
    HP Insight storage agents
    Then restart your server .
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Error creating jms queue

    Hello,
    I am facing this error when creating the jms queue.
    I gave unique names for queue and jndi. This error is because of what reason?
    Messages
    An error occurred during activation of changes, please see the log for details.
    weblogic.application.ModuleException:
    The proposed JNDI name eis/Jms/TopicConnectionFactory for destination SOAJMSModule!Topic-0 is already bound by another object of type weblogic.jdbc.common.internal.RmiDataSource
    The JMS Queue was created successfully
    There is nothing specific in log files to my knowledge.
    Please revert ASAP.

    Hi,
    i am also facing the same issue, please help and tell me what you did to resolve this.
    meanwhile I am trying my best to get it up...
    thanks in advance.
    ABHISHEK

  • JMS Queue - lookup error

    Hi All,
    I have created a queue 'JMSTestQueue' through the Visual Administrator/ JMS Provider.
    I have also created an MDB in which the ejb-j2ee-engine.xml contains a parameter as
    <destination-name>JMSTestQueue</destination-name>
    Now, when I try to deploy my MDB I get an exception saying
    that
    javax.resource.spi.UnavailableException: The destination JMSTestQueue cannot be looked up. Last attempt performed : jms_vendor_queues_global/JMSTestQueue.
    Now here I can't understand that why the container is making a lookup in the path jms_vendor_queues_global.
    Because the JMS queue I have created has the JNDI path as
    jmsqueues/default/JMSTestQueue
    Another twist to the tale is that when I use the default JMS queue by the name 'JobQueue', then the MDB is deployed succesfully. This means the 'lookup' is successful.
    How do I solve this issue? I want to use a new JMS Queue with my MDB.
    I'll be really grateful, if someone can help me out.
    Thanks and Regards,
    Gagan Parhar.

    Hi All,
    I have created a queue 'JMSTestQueue' through the Visual Administrator/ JMS Provider.
    I have also created an MDB in which the ejb-j2ee-engine.xml contains a parameter as
    <destination-name>JMSTestQueue</destination-name>
    Now, when I try to deploy my MDB I get an exception saying
    that
    javax.resource.spi.UnavailableException: The destination JMSTestQueue cannot be looked up. Last attempt performed : jms_vendor_queues_global/JMSTestQueue.
    Now here I can't understand that why the container is making a lookup in the path jms_vendor_queues_global.
    Because the JMS queue I have created has the JNDI path as
    jmsqueues/default/JMSTestQueue
    Another twist to the tale is that when I use the default JMS queue by the name 'JobQueue', then the MDB is deployed succesfully. This means the 'lookup' is successful.
    How do I solve this issue? I want to use a new JMS Queue with my MDB.
    I'll be really grateful, if someone can help me out.
    Thanks and Regards,
    Gagan Parhar.

  • Error when trying to enqueue message on to weblogic JMS queue

    Hi,
    I have developed a BPEL process to enqueue message on to a JMS queue in weblogic 10.3.1.BPEL process manager version is 10.1.3.4. I have referred the Oracle note 549016.1 for configuring the Jms adapter for BEA Weblogic JMS Provider.
    In the invoke activity, I am getting the following error:
    "Missing class: weblogic.security.acl.UserInfo
    Dependent class: weblogic.jndi.WLInitialContextFactory
    Loader: JmsAdapter:0.0.0
    Code-Source: /D:/product/10.1.3.1/orasoa/j2ee/oc4j_soa/connectors/JmsAdapter/JmsAdapter/weblogic.jar
    Configuration: &lt;code-source> in D:\product\10.1.3.1\orasoa\j2ee\oc4j_soa\connectors\JmsAdapter\JmsAdapter
    The missing class is not available from any code-source or loader in the system."
    I could not find a resolution. Please provide your inputs.
    Thanks.
    John

    Could be this, if the above fix was by generating a wlfull client jar:
    http://download.oracle.com/docs/cd/E14571_01/web.1111/e13717/jarbuilder.htm#BABCGHFH
    Edited by: atheek1 on Jul 28, 2010 9:39 PM

  • Error writing to JMS queue

    I am trying to write to a JMS queue using the following cod:
    Hashtable rmiEnvironment = new Hashtable();
    rmiEnvironment.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
    rmiEnvironment.put(Context.SECURITY_PRINCIPAL, "admin"); // username
    rmiEnvironment.put(Context.SECURITY_CREDENTIALS, "welcome"); // pwd
    rmiEnvironment.put(Context.PROVIDER_URL,"ormi://10.10.50.50:9127/APP");
    Context ctx = new InitialContext(rmiEnvironment);
    QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory)ctx.lookup("jms/APP_QueueConnectionFactory");
    The last line throws this exception:
    javax.naming.NamingException: Lookup error: java.io.EOFException: Disconnected; nested exception is:
         java.io.EOFException: Disconnected [Root exception is java.io.EOFException: Disconnected]
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:176)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at tests.TestJms.main(TestJms.java:35)
    Caused by: java.io.EOFException: Disconnected
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2507)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2355)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1782)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:686)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:157)
         ... 2 more
    On the server side (OC4J standalone), in jms.log the following is printed:
    javax.jms.JMSException: [PROTOCOL ERROR] JMSRequestHandler[5:testsrv:46202]: "JMS protocol" error, expected "-559,038,735", got "-485,684,723".
    at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1909)
    at com.evermind.server.jms.JMSRequestHandler.readCheck(JMSRequestHandler.java:272)
    at com.evermind.server.jms.JMSRequestHandler.protocol(JMSRequestHandler.java:282)
    at com.evermind.server.jms.JMSRequestHandler.run(JMSRequestHandler.java:124)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)

    For the record, if you want to run that sample code:
    http://www.oracle.com/technology/sample_code/tech/java/jms/index.html
    edit the classpath section of build.xml (provided with sample) as follows:
    <!--Set the classpath-->
    <path id="classpath">
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/jms.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/jndi.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/oc4jclient.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/javax77.jar"/>
         <pathelement location="${OC4J_HOME}/lib/dms.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/bcel.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/oc4j-api.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/oc4j.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/oc4j-internal.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/oc4jclient.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/rmic.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/adminclient.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/connector.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/jmxri.jar"/>
         <pathelement location="${OC4J_HOME}/j2ee/home/lib/jta.jar"/>
         <pathelement location="${OC4J_HOME}/opmn/lib/optic.jar"/>
    </path>
    (class packaging has changed since this sample was written. Note that the above is really a superset of classes you would need for that simple example).

  • GETTING ERROR MESSAGE"You cannot login because the phone is JAL-enabled' while logging into CAD

    Hello All,
    One of my customer is facing problem while loging into CAD. They were getting an error message"
    You cannot login because the phone is JAL-enabled. 
            JAL-enabled phones are not compatible with CAD".
    I gone through some cisco document saying that Join across line/Direct transfer across policy option status should be set to OFF. But i dont find option in 9971 series phone.
    Any Reply for this query. Highly Appreciated.

    That's because the JAL function is inherent to the 8961/9951/9971 phone and cannot be disabled. You'll need to upgrade to a release that supports this phone model or use a different phone.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Error While accessing JMS Queue on Weblogic***** ASSERTION FAILED *****[ Environment not found on thread ]

    Hi,
    I am trying to read response from JMS Queue hosted on Weblogic server and getting below exception. Any help on this will be appreciable.
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Environment not found on thread ]
          at weblogic.jndi.internal.NamingNodeReplicaHandler.<init>(NamingNodeReplicaHandler.java:148)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
          at java.lang.Class.newInstance0(Class.java:308)
          at java.lang.Class.newInstance(Class.java:261)
          at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:90)
          at weblogic.common.internal.ChunkedObjectInputStream.readObjectWL(ChunkedObjectInputStream.java:159)
          at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.readObjectWL(ChunkedObjectInputStream.java:341)
          at weblogic.rmi.cluster.ReplicaAwareRemoteRef.readExternal(ReplicaAwareRemoteRef.java:356)
          at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
          at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:452)
          at weblogic.rmi.internal.StubInfo.readObject(StubInfo.java:95)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
          at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:111)
          at weblogic.common.internal.ChunkedObjectInputStream.readObjectWL(ChunkedObjectInputStream.java:159)
          at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.readObjectWL(ChunkedObjectInputStream.java:341)
          at weblogic.jndi.internal.WLContextImpl.readExternal(WLContextImpl.java:425)
          at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
          at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:111)
          at weblogic.rjvm.ResponseImpl.getThrowable(ResponseImpl.java:117)
          at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:106)
          at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:127)
          at weblogic.jms.dispatcher.DispatcherImpl_1035_WLStub.dispatchSyncNoTranFuture(Unknown Source)
          at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncNoTran(DispatcherWrapperState.java:341)
          at weblogic.jms.client.JMSSession.createDestination(JMSSession.java:1735)
          at weblogic.jms.client.JMSSession.createQueue(JMSSession.java:1296)
    Thanks

    Hi,
    I am trying to read Queue standalone. Please find the code snippet below.  code highlighted in  where i am getting exception.
    public static void main(String[] args) {
    String jmsServerUrl = "t3://10.51.245.45:5858";
    String jmsUserName = "weblogic";
    String jmsPassword = "welcome123";
    String jndiFactory = "weblogic.jndi.WLInitialContextFactory";
    String jmsFactory = "jms/CBCMReplyConnectionFactory";
    String qName = "jms/CBCMOrderReplyQueue";
    QueueReceiver qReciever = null;
    JMSQueueReader.getQueueSession(jmsServerUrl,jmsUserName,jmsPassword,jndiFactory,jmsFactory);
    qReciever = JMSQueueReader.getQueueReceiver(qName);
    if (qReciever == null) {
    System.out.println("Unable to find JMS Queue Reciever for Queue Name: "
    + qName + " and JMS Server URL:"
    + jmsServerUrl);
    //isProcess = false;
    private static InitialContext getInitialContext(String url, String userName, String password,  String jndiFactory) throws NamingException {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, jndiFactory);
    env.put(Context.PROVIDER_URL, url);
    env.put(Context.SECURITY_PRINCIPAL, userName);
    env.put(Context.SECURITY_CREDENTIALS, password);
    return new InitialContext(env);
    public static QueueReceiver getQueueReceiver(String qName) {
    try {
    if(qReceiver == null || !qName.equals(queueName))
    queueName = qName;
    if(qReceiver != null)
    qReceiver.close();
    qReceiver = null;
    javax.jms.Queue queue = qSession.createQueue(queueName);
    //qReceiver = qSession.createReceiver(queue);
    qReceiver = qSession.createReceiver(queue, "JMSCorrelationID LIKE '"+SOHConstant.CBCM_BSCS_CORRELATION_ID_PREFIX+"%'");
                } catch (Throwable e) {
    e.printStackTrace();
    return qReceiver;

  • How to configure a JMS Queue

    Hi,
    I have an EAR file thai includes an EJB 3.0 module with a MDB. I use a Queue.
    This is my code,
    @Resource(mappedName = "jms/NotificationQueue")
    private Queue notificationQueue;
    @Resource(mappedName = "jms/NotificationQueueFactory")
    private ConnectionFactory notificationQueueFactory;
    public Customer update(Customer customer){
    Customer updated = em.merge(customer);
    try {
    sendJMSMessageToNotificationQueue(updated);
    } catch (JMSException ex) {
    Logger.getLogger(CustomerSessionBean.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Customer updated in CustomerSessionBean!");
    return updated;
    private Message createJMSMessageForjmsNotificationQueue(Session session, Object messageData) throws JMSException
    //Modified to use ObjectMessage instead
    ObjectMessage tm = session.createObjectMessage();
    tm.setObject((Serializable) messageData);
    return tm;
    private void sendJMSMessageToNotificationQueue(Object messageData) throws JMSException
    Connection connection = null;
    Session session = null;
    try
    connection = notificationQueueFactory.createConnection();
    session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
    MessageProducer messageProducer = session.createProducer(notificationQueue);
    messageProducer.send(createJMSMessageForjmsNotificationQueue(session, messageData));
    finally
    if (session != null)
    try
    session.close();
    catch (JMSException e)
    Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "Cannot close session", e);
    if (connection != null)
    connection.close();
    layed inside a stateless EJB 3.0.
    And the MDB looks as follow,
    @MessageDriven(mappedName = "jms/NotificationQueue", activationConfig = {
    @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
    @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
    public class NotificationBean implements MessageListener {
    public NotificationBean() {
    public void onMessage(Message message)
    try
    Object msgObj = ((ObjectMessage)message).getObject();
    if (msgObj != null)
    Customer customer = (Customer)msgObj;
    System.out.println("Customer with the following details has been updated:");
    StringBuilder sb = new StringBuilder();
    sb.append("Customer ID=");
    sb.append(customer.getCustomerId());
    sb.append(", ");
    sb.append("Name=");
    sb.append(customer.getName());
    sb.append(", ");
    sb.append("Email=");
    sb.append(customer.getEmail());
    System.out.println(sb.toString());
    catch (JMSException ex)
    Logger.getLogger(NotificationBean.class.getName()).log(Level.SEVERE, null, ex);
    I have configured both "jms/NotificationQueue" and "jms/NotificationQueueFactory" inside OC4J server.
    But when I try to deploy the EAR file, the server gives me the following error,
    Operation failed with error: No destination location set for message-driven bean NotificationBean
    How must I do to let the EAR file be deployed?
    Thanks in advance
    Jose

    Mingzhuang
    I want to configure a error queue for weblogic jms topic. Wanted: The message goes to error destination when messages have expired or reached their redelivery limit.
    1. using jms transport configure proxy service:
    Retry Count :3
    Retry Interval:10
    Error Destination: ErrorTopic
    Expiration olicy: RedirectUnlike File/SFTP, JMS proxy service definition does not have the concept of Error Destination. To accomplish similar functionality go to JMSQ on (for which proxy is configured) server console (http://localhost:7001/console) and configure the Error Destination. Following URL will help in how to configure JMS Q.
    http://edocs.bea.com/wls/docs103/ConsoleHelp/taskhelp/jms_modules/queues/ConfigureQueues.html
    http://edocs.bea.com/wls/docs103/ConsoleHelp/taskhelp/jms_modules/queues/ConfigureQueueDeliveryFailure.html
    I tried use the proxy service to consume message from the jms topic . and generation an error in the proxy message flow. But the message didn't goes into the error topic.If every thing is configured as per above step, then the after retries, the weblogic server will put the message into JMS topic configured. Your proxy will receive from this topic.
    Let me know if we are not on same page.
    Cheers
    Manoj

Maybe you are looking for

  • Vendor payment with multiple payment references

    How do you allocate multiple payment references per line item for a specific a vendor EG a Municipality in a specific region. Currently we are issuing cheques because we cannot allocate multiple payment references if we create an EFT payment. EG: We

  • Error in opening pdf - adobe reader xi

    I have Adobe Reader XI and windows 7 OS. Whenever i open a pdf, the following error message appears: Adobe Reader could not open the file ".pdf" because it is either not a supported file or because the file has been damaged (for example it was sent a

  • Where is Download All for all unplayed episodes in podcast?

    After subscribing new podcast, is there anyway to download all episodes for me to go thur them offline without Internet access? Autodownload is on, all episodes are unplayed, and "Episodes to keep" is set to "All episodes". Anyone knows where the mos

  • Movies not showing in the iphone section

    Hello i have a win xp with the latest version of ITune and a Iphone latest update My problem is that i have movies that are showing and playing in Itune in MPEG-4 but when i go to my iphone/video tab i see NO movies anywhere. The list is blank. The r

  • Artwork Not Downloading

    I am running Itunes 7.02 and XP. When selecting "Get Album Artwork" it displays a message that the missing artwork is being updated but still nothing appears for those album. The artwork shows just fine for items purchased at the online store. I have