Problem on MQSeries,

Hi all, I'm new on this, I'm doing this little test program, but when I execute..
C:\Java14\bin>java send1
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/iiop/MQSESSION
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:241)
at send1.main(send1.java:16)
<<show me this message..
If I use -noverify... this happen:
C:\Java14\bin>java -noverify send1
MQJE001: Completion Code 2, Reason 2039
An MQ error occurred : Completion code 2 Reason code 2039
this is my code:
import com.ibm.mq.*;
public class send1
public static String hostname = "localhost";
public static String channel = "java.channel";
public static String qManager = "QM1";
public static String queue = "Q1";
public static MQQueueManager qMgr;
public static void main(String args[]) {
MQEnvironment.hostname = hostname;
MQEnvironment.channel = channel;
try {
qMgr = new MQQueueManager(qManager);
// int openOptions = MQC.MQOO_OUTPUT ;
     int openOptions = MQC.MQOO_INPUT_AS_Q_DEF +
MQC.MQOO_BROWSE +
MQC.MQOO_FAIL_IF_QUIESCING;
MQQueue system_default_local_queue = qMgr.accessQueue(queue ,openOptions);
MQMessage hello_world = new MQMessage();
hello_world.writeUTF("Hello World!" ) ;
MQPutMessageOptions pmo = new MQPutMessageOptions();
system_default_local_queue.put(hello_world,pmo);
system_default_local_queue.close();
qMgr.disconnect();
catch (MQException ex)
System.out.println("An MQ error occurred : Completion code " +
ex.completionCode +
" Reason code " + ex.reasonCode);
catch (java.io.IOException e)
System.out.println("An error occurred while writing to the message buffer: " + e );
I have win2k_p, and websphere MQ installed on my pc.
some help? I've tried a lot..

Try this example. you have configured the wron options. It should work if you change the options like in the example.
// ======================================================================
// Licensed Materials - Property of IBM
// 5639-C34
// (c) Copyright IBM Corp. 1995, 1999
// ======================================================================
// MQSeries classes for Java sample application
// This sample runs as a Java application using the command :- java MQSample
import com.ibm.mq.*; // Include the MQSeries classes for Java package
import java.util.Hashtable; // Required for properties
public class MQSample
private String qManager = "your_Q_manager"; // define name of queue
// manager to connect to.
private MQQueueManager qMgr; // define a queue manager
// object
public static void main(String args[]) {
new MQSample();
public MQSample() {
try {
java.util.Hashtable properties;
// Create a connection to the queue manager
qMgr = new MQQueueManager(qManager);
// Set up the options on the queue we wish to open...
// Note. All MQSeries Options are prefixed with MQC in Java.
int openOptions = MQC.MQOO_INPUT_AS_Q_DEF �
MQC.MQOO_OUTPUT ;
// Now specify the queue that we wish to open,
// and the open options...
MQQueue system_default_local_queue =
qMgr.accessQueue("SYSTEM.DEFAULT.LOCAL.QUEUE",
openOptions,
null, // default q manager
null, // no dynamic q name
null); // no alternate user id
// Define a simple MQSeries message, and write some text in UTF format..
MQMessage hello_world = new MQMessage();
hello_world.writeUTF("Hello World!");
// specify the message options...
MQPutMessageOptions pmo = new MQPutMessageOptions(); // accept the // defaults,
// same as MQPMO_DEFAULT
// put the message on the queue
system_default_local_queue.put(hello_world,pmo);
// get the message back again...
// First define a MQSeries message buffer to receive the message into..
MQMessage retrievedMessage = new MQMessage();
retrievedMessage.messageId = hello_world.messageId;
// Set the get message options...
MQGetMessageOptions gmo = new MQGetMessageOptions(); // accept the defaults
// same as MQGMO_DEFAULT
// get the message off the queue...
system_default_local_queue.get(retrievedMessage, gmo);
// And prove we have the message by displaying the UTF message text
String msgText = retrievedMessage.readUTF();
System.out.println("The message is: " + msgText);
// Close the queue...
system_default_local_queue.close();
// Disconnect from the queue manager
qMgr.disconnect();
// If an error has occurred in the above, try to identify what went wrong
// Was it an MQSeries error?
catch (MQException ex)
System.out.println("An MQSeries error occurred : Completion code " +
ex.completionCode + " Reason code " + ex.reasonCode);
// Was it a Java buffer space error?
catch (java.io.IOException ex)
System.out.println("An error occurred whilst writing to the message buffer: " + ex);
} // end of sample

Similar Messages

  • A problem when I try to create a application view throug a Bea MQSeries Adapter8.1

              Hi, guys!
              I have installed Weblogic platform 8.1 beta, and try to use the MQSeries Adapter
              which provide by Bea weblogic, and it's seems I must deploy the .ear file which
              is an application include the MQ Adapter, on a domain which provide the Integration
              function, the ear file I was download from bea site. So I deploy it in the samples/domain/platform
              domain as the docs told me. And after that I create a new directory called session
              and a subdirectory contain a manifest.xml file, I do this also due to the docs
              provide by Bea. And then I can create the application view in the application
              view console, BUT, when I try to add a Event in the console, the page and OS console
              both print this message :
              DEBUG 21 ?? 2003 20:43:11,906 BEA_MQSERIES_1_0.DesignTime - getMergedDictionary
              got exception:
              DEBUG 21 ?? 2003 20:43:11,906 BEA_MQSERIES_1_0.DesignTime -
              StackTrace:
              java.lang.NullPointerException
              at com.ibi.beamqseries.web.DesignTimeRequestHandler.getMergedDictionary(DesignTimeRequestHandler.java:372)
              at jsp_servlet.__addservc._jspService(__addservc.java:120)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1047)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:383)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:301)
              at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:547)
              at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:364)
              at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:153)
              at jsp_servlet.__display._jspService(__display.java:632)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1047)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:383)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:301)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6319)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3525)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2553)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
              And I'm not quit sure about how to make the Schema directory correcttly, I just
              make one manifest.xml file. and hope I can find more document about the adapter,
              or can fix this problem.
              by the way, I just have userguid, installguide and releasenotes pdf file which
              can be download from Bea
              Regards,
              shannon
              

    Can you tell me the exact url of the BEA_MQSERIES_8_1.ear?
              Please give it to me... Thanks in advance...

  • Problems while doing a rollback on MQSeries using a java client

    Hi,
    I'm new to using MQSeries with Java client. I have a kind of similar problem. I have a set of messages in a Queue. When i'm doing a rollback on certain message it's returing to the same pointer where it had come from in the queue. When i'm iterating through the messages in the queue using a for loop, the same message is again retireved. So, i tried to set the setMQGMO_MARK_SKIP_BACKOUT flag to true. But i'm getting an RequestException with error code 2046: MQRC_OPTIONS_ERROR
    Any help on this would be highlly appreciated.
    I'm pasting the code snippet below.
    Class X {
    public void receive(
    com.stc.connector.webspheremqadapter.message.IMessage input, com.stc.connector.webspheremqadapter.message.IMqOtd
    MQSeries_1){
    int msginqueue = MQSeries_1.getCurrentDepth();
    String corrID = "";
    byte[] corrIDInputArray = input.getMsgHeader().getCorrelationId();
    String corrInputID = (new String( corrIDInputArray )).trim();
    for (int i = 0; i < msginqueue; i = i + 1) {
    MQSeries_1.getQueue().getGMO().setMQGMO_SYNCPOINT( true );
    MQSeries_1.getQueue().getWithOptions();
    byte[] corrIDArray = MQSeries_1.getMessage().getMsgHeader().getCorrelationId();
    corrID = (new String( corrIDArray )).trim();
    if (corrID.equalsIgnoreCase( corrInputID )) {
    MQSeries_1.commit();
    } else {
    MQSeries_1.getQueue().getGMO().setMQGMO_MARK_SKIP_BACKOUT( true );
    MQSeries_1.backout();
    }

    I agree that you should check for a specific axis / tomcat forum (maybe on apache website??;)) anyway ... check the path and classpath you use while building the wsdd file and when running the adminclient, and check the syntax of its invokation

  • MQSeries and MDB communication problem

    I was trying to write one MDB which will talk to MQSeries. After configuring everything(including the bindings and changes in weblogic-ejb-jar.xml) i deployed the MDB in weblogic6.1 sp2 server. It did not give me any error while deploying and container called the ejbCreate and setMessageContext methods without any problem. But it is not reading the messages from the MQ. It never picked up the messages from MQ. Can anyone please tell me what may be the reason?

    I would suggest that you look at the JMS FAQ or read the archives in the JMS newsgroup. There's lots of posts about getting this to work.
    -- Rob
    Sujoy Das wrote:
    I was trying to write one MDB which will talk to MQSeries. After configuring everything(including the bindings and changes in weblogic-ejb-jar.xml) i deployed the MDB in weblogic6.1 sp2 server. It did not give me any error while deploying and container called the ejbCreate and setMessageContext methods without any problem. But it is not reading the messages from the MQ. It never picked up the messages from MQ. Can anyone please tell me what may be the reason?--
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Problem reading JMS message received from MQSeries

    I have a message listener listening on an MQSeries queue.
    I'm expecting a text message back, but what I get is
    partially listed below.
    Any idee's to what I need to do would be greatly received.
    thanks
    JMS Message class: jms_bytes
    JMSType: null
    JMSDeliveryMode: 2
    JMSExpiration: 0
    JMSPriority: 0
    JMSMessageID: ID:414d51205344454e44553031202020203dc7e0ff00223082
    JMSTimestamp: 1038261667350
    JMSCorrelationID:null
    JMSDestination: null
    JMSReplyTo: null
    JMSRedelivered: false
    JMSXDeliveryCount:1
    JMS_IBM_MsgType:8
    JMSXAppID:MQSeries Client for Java
    JMS_IBM_Format:
    JMS_IBM_Encoding:273
    JMS_IBM_PutApplType:28
    JMS_IBM_Character_Set:ISO8859_1
    JMSXUserID:mqm
    JMS_IBM_PutTime:22010735
    JMS_IBM_PutDate:20021125
    Integer encoding: 1, Floating point encoding 256
    3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c52
    65706c79437573746f6d65725374617475735f3030313e3c434e54524f4c415245413e3c4253523e

    I have a temporary/partial solution to this problem.
    As we control the application adapter that is posting messages to the MQSeries queue, we have changed the sender to put the text into the bytes message object using writeUTF rather than writeText that it was using. My reader the does a readUTF.

  • MQSeries 5.2 Queue Manager Creation Problems.

    Hi,
    I have installed MQSeries 5.2 and i need to Configure it to work with VAJ3.5(VisualAge for JAVA). Also when i try to create a new Queue Manager, MQSeries gives me an Error :
    "AMQ7128: No license installed for this copy of MQSeries."
    If i can get help on Creating Queue Manager and VAJ 3.5(Visual Age For Java) local Queue Setup, it would be of great help.
    Have a Good Day!!!
    Thanks and Regards,
    Ganesh Bhat,

    Your problem does not come from VisualAge, I guess.
    Probably, you didn't run mqlicense.sh, to tell MQ Series you have the license.
    If you run on Linux, maybe you can find help on my website, on the page concerning MQ Series.
    Regards.
    Pierre-Yves Fourmond
    Axway Messaging System
    R&D Department
    http://pyfourmond.free.fr

  • Problem in establishing connection from MQSeries to Weblogic 7

              Hello,
              I was earlier having a connection established between MQSeries and Weblogic 6.1,
              that is working fine but recently I have upgraded to Weblogic 7.1
              Now when I try to have a connection between the MQSeries and the Weblogic 7.1
              then while establishing the connection it brings down the Weblogic server i.e.
              shuts it down. I am unable to track this problem. Please if any one has ever experienced
              similar type of problem or has a solution for this problem then let me know.
              Thanks in advance.
              JJ
              

    Hi,
    I guess the problem is due to the driver class not being part of the classpath in your web application. You should include the jar containing the driver class in your classpath. Please consult the documentation provided for your web server to do the same.
    Regards,
    Bhushan.

  • Newbie : Problem starting OPG for IBM MQseries: TNS-00530,  Error Code 2

    Hi All
    First of all, if this is the wrong place to post this question, I apologize.
    I have installed a new installation of Oracle 9.2.0.1 and at a separate home location the OPG for IBM MQSeries for 9.2.0.1 off the same bits.
    The configuration said that the default SID of PG4MQS92 would be setup since I was using a local MQ queue manager but I didnt see any entries in the listener.ora or the tnsames.ora so added the following.
    listener.ora
    (SID_DESC =
    (SID_NAME = pg4mqs92)
    (ORACLE_HOME = C:\Software\oracle\pg4mqs92)
    (PROGRAM = pg4mqs92)
    tnsnames.ora
    ORACLE_QM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = testmachine)(PORT = 1521))
    (CONNECT_DATA =
    (SID = pg4mqs92)
    (HS=OK)
    When I ran tnsping on ORACLE_QM it was resolved. But when I start the putsample.sql program after importing all the required packages using the pgmdeploy9.sql script I get the following output.
    DECLARE
    ERROR at line 1:
    ORA-04052: error occurred when looking up remote object
    [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from PG4MQ
    In the listener.log I see the following error
    07-DEC-2005 07:34:19 * (CONNECT_DATA=(SID=pg4mqs92)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.100)(PORT=1271)) * establish * pg4mqs92 * 12500
    TNS-12500: TNS:listener failed to start a dedicated server process
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 2: No such file or directory
    I noticed that during the install a boot file for the pgm4mqs92 SID was not found anywhere. Is it maintained in the registry, if so where ?
    If the boot file is missing is there a sample I can use and where do I need to put it ?
    Am running on Windows XP Professional.
    Have been stuck with this a while and cannot find any information on this, so any help would be appreciated.
    Thanks
    - Deepak

    I am getting the same error while starting or stopping the listener
    LSNRCTL> start CSCLIST
    Starting tnslsnr: please wait...
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    LSNRCTL> stop CSCLIST
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=CSCINDAE708070)(PORT=152
    2)))
    NL-00303: syntax error in NV string
    TNS-01153: Failed to process string: (DESCRIPTION=(CONNECT_DATA=(CID=(PROGRAM=)
    (HOST=)(USER=Manager(REMOVE)))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=CSCLIST)(VERS
    ION=186646784)))
    Pls help
    Listener.ora:
    # listener.ora Network Configuration File: D:\Sagaya\11gDBhome\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    CSCLIST =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = CSCINDAE708070)(PORT = 1522))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    SID_LIST_CSCLIST =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\Sagaya\11gDBhome\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\Sagaya\11gDBhome\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    ADR_BASE_CSCLIST = D:\Sagaya\11gDBhome

  • Problems when setting SSL for a MQSeries Adapter

    I'm trying to enable SSL and so far these are the steps I've done:
    - I've been using the DemoIdentity.jks and DemoTrust.jks files located under <MIDDLEWARE_HOME>\wlserver_10.3\server\lib for all my certificate operations.
    - I created a PrivateKey and imported it to my DemoIdentity store, created a certificate request and when I got the response imported it back using the same alias. Something I want to highlight here is that when I created the PrivateKey I left the password field empty so it supposed inherit the keystore's.
    - I also imported the CA cert into the DemoTrust.jks
    My MQAdapter is all set and when I used it with no SSL it was working just fine so I think I have the problem isolated.
    Anyway, now when I try to connect this is what I'm getting in the logs:
    at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAConnectionMa
    nager$JCAConnectionPool.createJCAConnection(JCAConnectionManager.java:1335)
    ... 59 more
    Caused by: java.security.UnrecoverableKeyException: Cannot recover key at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)
    at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121
    at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java
    :38)
    at java.security.KeyStore.getKey(KeyStore.java:763)
    at com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyM
    anagerImpl.java:113)
    at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit
    (KeyManagerFactoryImpl.java:48)
    at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
    at oracle.tip.adapter.mq.ManagedConnectionImpl.setupSSLSocketFactory(Man
    agedConnectionImpl.java:670)
    Googling this it seems like it's a problem with the keystore and private key passwords being different but I changed the private key's to match the keystore (something that I shouldn't be necessary because of the keytool's default behavior when generating the key) with no positive results.
    Anyway, any ideas would be really appreciated. I've been spinning my wheels on this issue for 3 days now.
    BTW, here's I'm using Oracle SOA11g.

    Hello MV,
    I don't need to access my console through SSL as this is not part of what I'm trying to do.This will confirm whether SSL has been enabled on your weblogic. In your case it seems that SSL has not been enabled.
    the demo keystore and truststore are regular stores and I was able to successfully import certificates into them using keytool.Demo keystores are not recommended to be used in production. Moreover DemoIdentity.jks already has a private (secret) key so importing another key may cause an issue. I don't think any application server supports multiple private keys for SSL.
    I'll go ahead anyway and create a brand new set of keystores just to rule out that's not the problem here.Please test with new custom keystores and let us know the results.
    Regards,
    Anuj

  • Problem enabling SSL on a MQSeries Adapter

    I'm trying to enable SSL and so far these are the steps I've done:
    - I've been using the DemoIdentity.jks and DemoTrust.jks files located under <MIDDLEWARE_HOME>\wlserver_10.3\server\lib for all my certificate operations.
    - I created a PrivateKey and imported it to my DemoIdentity store, created a certificate request and when I got the response imported it back using the same alias. Something I want to highlight here is that when I created the PrivateKey I left the password field empty so it supposed inherit the keystore's.
    - I also imported the CA cert into the DemoTrust.jks
    My MQAdapter is all set and when I used it with no SSL it was working just fine so I think I have the problem isolated.
    Anyway, now when I try to connect this is what I'm getting in the logs:
    at oracle.integration.platform.blocks.adapter.fw.jca.cci.JCAConnectionMa
    nager$JCAConnectionPool.createJCAConnection(JCAConnectionManager.java:1335)
    ... 59 more
    Caused by: java.security.UnrecoverableKeyException: Cannot recover key at sun.security.provider.KeyProtector.recover(KeyProtector.java:311)
    at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:121
    at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java
    :38)
    at java.security.KeyStore.getKey(KeyStore.java:763)
    at com.sun.net.ssl.internal.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyM
    anagerImpl.java:113)
    at com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl$SunX509.engineInit
    (KeyManagerFactoryImpl.java:48)
    at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:239)
    at oracle.tip.adapter.mq.ManagedConnectionImpl.setupSSLSocketFactory(Man
    agedConnectionImpl.java:670)
    Googling this it seems like it's a problem with the keystore and private key passwords being different but I changed the private key's to match the keystore (something that I shouldn't be necessary because of the keytool's default behavior when generating the key) with no positive results.
    Anyway, any ideas would be really appreciated. I've been spinning my wheels on this issue for 3 days now.
    BTW, here's I'm using Oracle SOA11g.

    What are the steps you are doing to create a FlexConnect WLAN
    Check wether you have done this
    1. You should havee a flexconnect mode AP in your network
    2. That AP should connect via a trunk link back to your switch port
    3. Under "FlexConnect" tab of that AP configuration you need to map required vlans where native vlan should be the AP managment in this trunk (AP connected Switch port)
    4. Under WLAN advanced settings, you have to enable "Local Switching" if you want to do local switching. Leave it untick if you want to do central switching.
    This is some of my notes when I did this on a WLC 7.0.116.0 (feature was called H-REAP in that time & later modified to FlexConnect). This should help you as well
    http://mrncciew.com/2013/03/10/h-reap-modes-of-operation/
    HTH
    Rasika

  • Problems with java + MQSeries 5.2

    Right, so here's the scenario.
    I have an MQ 5.2 server sitting in a server room, not on any windows domain. I can connect to this machine fine from my development box, which is running the 5.0 MQ Series client. (Note that my machine appears to have none of the java mqseries .dll's installed; more on this later, and that the 5.0 client appears to have been uninstalled.)
    I'm attempting to set up a test environment for a client to come in and test an upgrade made to their application (which uses MQ Series messaging). However, attempting to run my test suite on the 5.2 client gives me, alternately, complaints that mqjbnd01.dll is not in the library path (I never needed to do this to my machine, in fact, mqjbnd01 doesn't even EXIST on my machine), and when this dll is located correctly, I get the following exception:
    MQJMS2005: Failed to create MQQueueManager for '<MYQUEUEMANAGER>'
    I've searched the IBM developer resource pages, and everything there seems to indicate it's a user rights issue. Here's the tickler though:
    1) My machine (on our office domain) can connect to the MQ server without a username/password.
    2) One other machine (where I simply copied across my testing applications) can connect. I did not install the 5.2 client on this machine, everything just worked first time.
    3) The usernames I log into on both these machines are domain users, which are not accessible to the MQ Server in any event.
    4) Every other machine I've copied my stuff across onto (on my domain), using the same jdk, gave the 'cannot find mqjbnd01' error. Subsequent to my installing the MQSeries client on these machines, and making sure mqjbnd01 is in the library path, I get the MQJMS2005 error.
    5) Every machine in question has full IP access to the MQ server.
    So. Anyone have any ideas about what I can try? Suffice to say I'm in the mood to drop a nuke on the MQSeries development offices ~.^
    McF

    sorry, forgot to specify that all test machines in question are running Windows 2000, service pack 3. The MQ Server is running NT4 service pack 6a.
    Mcf

  • JMS(WebSphere-MQseries) async to sync bridge Problem

    Hi All,
    Please find the scenario.
    IDOC1  -
    > PI  -
    >JMS(WebSphere-MQseries)receiver request
    IDOC2 <--  PI  <--
    JMS(WebSphere-MQseries)Sender response
    I need to pass the response to JMS sender so that I will get it and will send back to other IDOC.
    here I need the details for making this async to sync bridge for JMS receiver to JMS sender.
    Please let me know the which adapter module I should use handle this situation.
    Thanks,
    Bhupesh

    What exactly is unclear for you regarding the online help?
    http://help.sap.com/saphelp_nw04/helpdata/en/45/20d2b4c20a0732e10000000a155369/frameset.htm

  • Problem installing RDBMS & MQSeries adapters

    The install & config doc (Release 7.0, Aug 31, 2002) says you need to explode the
    EAR using winzip, as there is a problem with WLS exploding RAR files (see note
    page 2-3).
    Seems that exploding the EAR file would not solve the problem of not being able
    to explode RAR files?
    The last stage of the install process requires that you upload the EAR file, this
    works OK, but when I click the button "Configure & deploy" it fails with the following
    log & exception trace.
    Any ideas as to what I need to do would be greatly appreciated.
    LOG:
    preparing application BEA_RDBMS_1_0 on myserver
    prepared application BEA_RDBMS_1_0 on myserver
    activating application BEA_RDBMS_1_0 on myserver
    Exception caught for task Activate application BEA_RDBMS_1_0 on myserver: activate
    failed forBEA_RDBMS_1_0.rar
    Module, BEA_RDBMS_1_0.rar, reported error: weblogic.management.DeploymentException:
    ResourceException when adding ManagedConnectionFactory for eis/BEA_RDBMS_1_0
    TRACE:
    weblogic.management.ApplicationException: activate failed forBEA_RDBMS_1_0.rar
    Module Name: BEA_RDBMS_1_0.rar, Error: weblogic.management.DeploymentException:
    ResourceException when adding ManagedConnectionFactory for eis/BEA_RDBMS_1_0
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1035)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)

    the following line tells that the job server is not configured to manage adapters
    Neither Message Broker, Adapter Manager, nor SNMP MB Server started
    when you open the server manager, is the adapter option enabled ? may be some problem while saving the job server configuration
    the job server will read the configuration from DSConfig.txt check if the value is set correctly in DSConfig.txt for the job server
    look in the AL_JobServer section, AL_JobServerBrokerPort, AL_JobServerAdapterManager parameter should be set for the job Server
    AL_JobServerName1=JobServerDev
    AL_JobServerPort1=3500
    AL_JobServerBrokerPort1=4001
    AL_JobServerAdapterManager1=1

  • JMS configuration problem log file

    Hello,
    My purpose is to send xml data from MQSeries to BW using XI. MQSereies is installed in XI server. For thah I am trying to configure JMS adpter for MQSeries in XI. I have successfully deployed the necessary external drivers using SDM. I have configured the sender channel with the following parameters.
    Adapter type: JMS
    Transport Protocol :WEBsphereMQ(non-JMS)
    Message protocol :JMS1.x
    Queue connection factory java class:com.ibm.mq.jms.MQQueueConnectionFactory
    Queue Java Class: com.ibm.mq.jms.MQQueue
    IP address: IP address of XI system.
    Port: 1414
    Queue manager name : MQ-manager-name_XI-system-name
    Channel Name : reciever-channel-name_XI-system-name
    JMS queue: postcard
    Charecter set ID:
    Transport/networkprotocol: TCP/IP
    JMS-Compliant : WebsphereMQ(non-JMS)
    But when I check it in adapter monitor JMS is shown as red.
    <b>In default trace file I am getting the following error</b>
    javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'SYSTEMNAME:QUEUEMANAGERNAME_SYSTEMNAME'
                at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:546)
                at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1450)
                at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:960)
                at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:159)
                at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:215)
                at com.sap.aii.af.service.jms.WorkerJMSReceiver.init(WorkerJMSReceiver.java:283)
                at com.sap.aii.af.service.jms.WorkerHandlerImpl.run(WorkerHandlerImpl.java:325)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    <b>I also get the following warning</b>
    Warning   : Catching java.lang.NullPointerException
                at com.sap.aii.af.service.jms.WorkerJMSReceiver.start(WorkerJMSReceiver.java:584)
                at com.sap.aii.af.service.jms.WorkerHandlerImpl.run(WorkerHandlerImpl.java:335)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Can any one tell what could be the problem.
    Regards,
    Amith

    Try the following :
    1. Check if by any chance more than 1 Queue manager listeners have port number as 1414. Make sure all run on unique ports.
    2. Instead of IP addreess in the adapter config., try using hostname.
    3. Also check the website www.mqseries.net for this error

  • JMS, MQSeries, R/3 Link, NT and AIX...

    Hi all,
    To put you in situation, I have a java application which can run from any type of OS as of now. It sends documents to a queue (IDOCS) and those documents are then sent to SAP by an R/3 Link adapter. Using native binding and running the java application on the same computer as the QueueManager (AIX) it was all working fine.
    Now, I have translated my app to use JMS instead and tried to run it on my Windows 2000 PC. The message are sent allrigth to the queue, but R/3 Link is now giving me a handfull of errors, complaining about conversion, character sets and things like that.
    Here is a sample of errors I get:
    02/18/03 17:00:39 SMQ4165: Warning on MQGET from inbound queue. Reason code 2110.
    EXPLANATION: The attempt to get a message from the inbound message queue returned a warning. The warning code was 2110. The message will be passed to the use
    r exit if one has been specified. If no exit was specified, the message will be passed to the bad message queue. If no bad message queue was specified, the
    message will be left on the inbound queue, and the server will terminate.
    ACTION: None.
    02/18/03 17:00:39 SMQ4192: A data conversion problem occurred on the MQGET. Attempting to process message.
    EXPLANATION: A warning was issued because the message needs codepage conversion, but the message is either not in MQSTR format, or a user-defined data- conver
    sion exit call failed.
    ACTION: Ensure that incoming messages from machines with a different code page, are in MQSTR format or that there is a user exit defined to convert messages i
    n other formats.
    02/18/03 17:00:40 SMQ4167: IDoc has an invalid structure version. IDoc value="16777216". Expected value="1".
    EXPLANATION: The value of the version field in the IDoc header structure contains an invalid value.
    ACTION: Ensure that the IDoc message starts with a valid version of the Saplink header structure (MQSAPH).
    02/18/03 17:00:40 SMQ4191: A message was put to the bad message queue. Bad message type 1, reason 4108.
    EXPLANATION: The message was not in a valid IDoc format. The bad message type is 1 and the bad message reason is 4108.
    ACTION: Check the bad message reason code in the bad message header of the message. Attempt to correct the error and send the message again.
    I finally set the CCSID to 819 in the connection string, now I suspect that my problem is related to the encoding I use but I can't find what to set it to instead. I write everything in a ByteMessage by the way, just as I was doing it with the native bindings.
    Does anyone know how I am supposed to set this up? What encoding type should I set it to? Is the CCSID correct? previously, I was setting the format this way: bytesMessage.format = "MQHSAP ";
    But using JMS, there is no such property so I tried to just write it to the ByteMessage, not sure this works either...
    Thanks in advance,
    Daniel
    If it can be of any help, here is a code fragment of what I am doing:
    using native binding, which was working fine
    //Add the mandatory R3/Link header to our message
    bytesMessage.writeBytes("SAPH");
    bytesMessage.writeInt(1);
    bytesMessage.writeInt(108);
    bytesMessage.writeInt(273);
    bytesMessage.writeInt(819);
    bytesMessage.writeBytes("MQSTR ");
    for(int i = 28; i < 108; i++)
    bytesMessage.writeByte(32);
    bytesMessage.writeBytes(textMessage);
    bytesMessage.encoding = MQC.MQENC_INTEGER_NORMAL;
    bytesMessage.format = "MQHSAP ";
    And using JMS:
    //Test code
    queue = session.createQueue("queue://" + manager + "/" + name + "?priority=5&persistence=2&targetClient=1&encoding=" +
    MQC.MQENC_INTEGER_REVERSED + "&CCSID=819");
    //Add the mandatory R3/Link header to our message
    bytesMessage.writeBytes("SAPH".getBytes());
    bytesMessage.writeInt(1);
    bytesMessage.writeInt(108);
    bytesMessage.writeInt(273);
    bytesMessage.writeInt(819);
    bytesMessage.writeBytes("MQSTR ".getBytes());
    StringBuffer padding = new StringBuffer(80);
    for(int i = 28; i < 108; i++)
    padding.append(" ");
    bytesMessage.writeBytes(padding.toString().getBytes());
    bytesMessage.writeBytes("MQHSAP ".getBytes());
    bytesMessage.writeBytes(textMessage.getBytes());
    queueSender.send(bytesMessage);

    Hi There,
    I know you used JMS and Link for R/3.
    Now I am doing the same but I am getting the same problem besides I am doing what you mention in the forum.
    Can you give me a hand to fix this?
    I have configured and MQSeries under win2003 and in the same machine a Link 4 R/3. I have a Java app using a .bindings file to connect to the Q and send a message the same way you did, but i am getting this error:
    IDoc has an invalid structure header. IDoc value="RFH ". Expected value="SAPH".
    IDoc has an invalid structure version. IDoc value="2". Expected value="1".
    IDoc has an invalid system number. IDoc value=<T.
    IDoc has an invalid client. IDoc value=�Y&#9830;.
    IDoc has an invalid language. IDoc value=.
    A message was put to the bad message queue. Bad message type 1, reason 4110.
    It seems as if the all the JMS headers are at the begining of the msg and it always throw the same error. it doesn't matter what data I put in the bytesMessage.
    I would really appreciate your help.
    Here a portion code of my SendMessage operation.
         public String EnviarMsg(String Msg) throws JMSException {
              String resp = null;
              try {
                   if (getQueueSend() == null) {
                        // Create un objeto QueueSender como productor del mensaje.
                        setQueueSend(QSess.createSender(MQueue));
                        // Crear y enviar un mensaje a la cola.
                   * Aqui viene codigo para enviar msgs a la cola en formato SAP
                   txtMsg = QSess.createBytesMessage();
                   txtMsg.writeBytes("SAPH".getBytes());
                   txtMsg.writeInt(1);
                   txtMsg.writeInt(108);
                   txtMsg.writeInt(273);
                   txtMsg.writeInt(819);
                   txtMsg.writeBytes("MQSTR ".getBytes());
                   byte b = 32;
                   for(int i=28; i<108; i++)
                        txtMsg.writeByte(b);
                   txtMsg.writeBytes(Msg.getBytes());
                   //txtMsg.encoding = MQC.MQENC_INTEGER_NORMAL;
                   txtMsg.setStringProperty("JMS_IBM_Format", "MQHSAP ");
                   //txtMsg.setText(Msg);
                   // QueueSend.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
                   // QueueSend.setTimeToLive(30000);Funciona. Probado con el MQSeries
                   // 6.0
                   QueueSend.send(txtMsg);
                   resp = "OK";

Maybe you are looking for

  • How can I sync contacts from Outlook 2010 to my iPhone 4S without using iCloud?

    How can I sync contacts form Outlook 2010 to my iPhone 4S without using iCloud?

  • Evermind server jars

    Hi, Can someone tell me in which jar file would I find the "com.evermind.server.http" package? I need to set that jar as a library in order to compile my code. Thanks and Regards, Chaitanya

  • Rollup/Cube help

    Hi, Can anyone help me to get the following output with site-sub-total and grand-total within the one possible query: (I know it's possible either with Analytic function or new Group By Rollup/Cube functionality but do not know how to use them). QUER

  • Can Work Status be controlled by admin (or persons other than Owner & Manager)?

    Hi Experts, We set the initial Work Status as "Locked", and it should be unlocked when opening a new period. System admin is the one responsible for opening a new period. However, the "Controlled by" field of Work Status can be set as Manager or Owne

  • .m2ts files no audio in Premiere Pro CS6

    So my brother want's me to create a video of his son using the videos he filmed on a Panasonic HC-X800, he gave me these files on an external hard-drive. I've never worked with .m2ts files before so wasn't sure what to expect when I dropped them into