Author |
Message
|
sam |
Posted: Wed Jun 26, 2002 1:50 pm Post subject: Error when trying to send messages |
|
|
Acolyte
Joined: 02 Apr 2002 Posts: 52
|
We have two solaris machines on which we are doing testing. When I get a request message I send a response back. When sending the response I'm getting the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/ras/RASLogger
at com.ibm.mq.jms.services.Trace.checkForTurnTracingOn(Compiled Code)
at com.ibm.mq.jms.MQQueueSender.send(Compiled Code)
at com.ibm.mq.jms.MQQueueSender.send(Compiled Code)
at JMSMessageResp.sendMessage(Compiled Code)
I have no idea why this is happening. My sending application reads a file and sends in all the messages from that file. Thanks all for your time. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Jun 26, 2002 2:02 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I'd suggest contacting IBM support. This may be a bug. |
|
Back to top |
|
 |
sam |
Posted: Wed Jun 26, 2002 2:38 pm Post subject: |
|
|
Acolyte
Joined: 02 Apr 2002 Posts: 52
|
Is there an other jar file which I'm missing which contains this class com.ibm.ras.RASLogger? I was not able to find this in any of the jar files which I had on my machine? Thanks very much. |
|
Back to top |
|
 |
sam |
Posted: Thu Jun 27, 2002 8:49 am Post subject: |
|
|
Acolyte
Joined: 02 Apr 2002 Posts: 52
|
Any clues as to why this is happening? we are really stuck up on this. We don't have IBM Support to contact them. Thanks everyone. |
|
Back to top |
|
 |
Rajeesh |
Posted: Mon Jul 01, 2002 1:50 am Post subject: |
|
|
Newbie
Joined: 01 Jul 2002 Posts: 3
|
sam, i am receiving the same exception using JMS on solaris - did you discover the cause/find a solution? |
|
Back to top |
|
 |
sam |
Posted: Mon Jul 01, 2002 8:30 am Post subject: |
|
|
Acolyte
Joined: 02 Apr 2002 Posts: 52
|
Rajeesh,
No. I'm still hoping that someone would reply to my question. I searched many forums but could'nt find this anywhere. I'll let you know if I find a resolution for this. |
|
Back to top |
|
 |
bduncan |
Posted: Mon Jul 01, 2002 9:10 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Sam,
I think we can solve this one, but if you don't mind, I'd ask that you post the source code for your application. I would like to see exactly which parameters you are using on every MQCONN, MQOPEN, MQPUT, etc...
Thanks! _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
bduncan |
Posted: Mon Jul 01, 2002 9:14 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
|
Back to top |
|
 |
sam |
Posted: Mon Jul 01, 2002 1:04 pm Post subject: |
|
|
Acolyte
Joined: 02 Apr 2002 Posts: 52
|
brandon,
Thanks very much for the response. I finally feel happy that someone is responding anyways, the scenario is as follows:
This error happens when I try to send messages from my solaris machine. The program is a simple JMS app trying to send a request machine to a remote Solaris machine sitting in our network. The weird thing is it only happens on one of the Solaris machines. I guess it's a configuration change but fail to understand what that is? I checked my classpath and path settings, they are exactly the same. I'm pasting the code below. Thanks for the help.
public static void main(String args[]) {
//Define the classes for obtaining connection to MQ
QueueConnectionFactory factory = null;
QueueConnection connection = null;
QueueSession session = null;
Queue queue = null;
QueueSender sender = null;
QueueReceiver receiver = null;
TextMessage textMessage = null;
String QUEUE = "MODEL.REMOTE";
//String QUEUE = "APP.QUEUE";
String message = "ARMSREQUEST |01|01|20020415|153114|00002|00|01 757542822 BD
L";
//String message = "ARMSRESPONSE|01|01|20020415|153114|00002|11|99|O|3333|RejectReason|";
System.out.println("Creating a Queue Connection Factory");
try {
MQEnvironment.hostname = "locahost";
MQEnvironment.channel = "CHAN1";
factory = new MQQueueConnectionFactory();
((MQQueueConnectionFactory)factory).setQueueManager("ARMSTEST.QUEUE.MANAGER");
((MQQueueConnectionFactory)factory).setHostName("localhost");
((MQQueueConnectionFactory)factory).setChannel("CHAN1");
((MQQueueConnectionFactory)factory).setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
System.out.println(" creating connection");
connection = factory.createQueueConnection();
System.out.println("Starting connection");
((MQQueueConnection)connection).start();
System.out.println(" Creating session");
session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue tempQueue = ((MQQueueSession)session).createTemporaryQueue();
System.out.println("Temporary Queue Created....." + ((MQQueue)tempQueue).getQueueName());
queue = session.createQueue(QUEUE);
((MQQueue)queue).setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
System.out.println("Creating a Sender");
sender = session.createSender(queue);
receiver = ((MQQueueSession)session).createReceiver(tempQueue);
System.out.println("Creating a Text Message");
textMessage = ((MQQueueSession)session).createTextMessage();
textMessage.setText(message);
textMessage.setJMSReplyTo(tempQueue);
System.out.println("Sending Message to " + ((MQQueue)queue).getQueueName());
((MQQueueSender)sender).setDeliveryMode(DeliveryMode.NON_PERSISTENT);
((MQQueueSender)sender).send(textMessage);
while(true) {
String s;
Message m = receiver.receive(60000);
try {
s = ((TextMessage)m).getText();
}catch(NullPointerException e) {
continue;
} |
|
Back to top |
|
 |
Rajeesh |
Posted: Tue Jul 02, 2002 2:03 am Post subject: |
|
|
Newbie
Joined: 01 Jul 2002 Posts: 3
|
sam/brandon, some additonal info on my own problem with the same exception (this a revision on my last post):
- i was able to send n number of requests successfully before the exception occurs. little strange.
- however, i jarred up the com.ibm.ras classes (including RASLogger) and included in classpath. This worked.
- i suggest you get your hands on this package: i do not think it comes with MA88 (and based on our experience maybe it should?). However, i was lucky to be using VAJava and it was within the IBM Websphere Test Environment project. |
|
Back to top |
|
 |
Rajeesh |
Posted: Tue Jul 02, 2002 2:08 am Post subject: |
|
|
Newbie
Joined: 01 Jul 2002 Posts: 3
|
PS: note that i was not running my app through Websphere, but am thinking they may live there - in which case brandon had the correct point in his first post. However, i still think the ras classes should be part of ma88 and not Webshpere? |
|
Back to top |
|
 |
sam |
Posted: Tue Jul 02, 2002 8:32 am Post subject: |
|
|
Acolyte
Joined: 02 Apr 2002 Posts: 52
|
Thanks for that finding. I'm still confused about why it's asking for the RASLogger class? Is it trying to log something? also this only happens one of our test environments and as Rajeev put it happens after sending a couple of messages. Just inquisitive in knowing the reason. Thanks. |
|
Back to top |
|
 |
T.Rob |
Posted: Mon Aug 12, 2002 11:17 am Post subject: RASLogger |
|
|
 Acolyte
Joined: 16 Oct 2001 Posts: 56 Location: Charlotte, NC
|
We are having the same problem. I opened a ticket with IBM and will report the results here. It's opened at severity 2 so it may not be until tomorrow.
-- T.Rob _________________ -- T.Rob
Voice/SMS 704-443-TROB (8762)
https://t-rob.net
https://linkedin.com/in/tdotrob
@tdotrob on Twitter |
|
Back to top |
|
 |
T.Rob |
Posted: Tue Aug 13, 2002 4:01 am Post subject: IBM Response |
|
|
 Acolyte
Joined: 16 Oct 2001 Posts: 56 Location: Charlotte, NC
|
We are running a Weblogic app server. IBM states that this is the primary reason for the error. If anyone gets this error running stand-alone JMS or under Websphere, the issue should be revisited with IBM. Here is their response:
Quote: |
I believe that JMS is checking to see if it is running inside an application server. It detects that it is and assumes it is Websphere (as this is the only tested/supported environment). It checks to see if tracing has been turned on, which needs websphere RASLogger class, and can't find the correct class. This is because it is running in Weblogic. This functionality has been added to ma88 j521. We cannot support this running in Weblogic. All I can suggest is that if j520 worked then stick with that level.
The customer could try raising a DCR for this problem but I'm not sure
what would happen.
------------------------------------------------------------------------------------------------------------------
I will include the DesignChangeRequest (DCR) form in case you are
interested in making a request to the developers to have the class added to MA88 or some other way of addressing this problem. If you are interested, please complete the attached form and return it to mqseries@us.ibm.com and we can pass it along to the development team.
(See attached file: mqreq.txt)
Regards,
Greg Bowman
MQSeries Level 2 Support - Distributed Platforms
|
The DCR form is just a simple text document which I've pasted in below. Brandon, you might want to snag this and put it in the Downloads section.
Quote: |
Requirement Pro-Forma - MQREQ
MQSeries / MQSeries Integrator / MQSeries Workflow / MQSeries Family REQUIREMENT Form
Customer or account team: Please complete the following form and email it to:
MQSeries or WebSphere MQ on distributed/ other MQ family products.............. mqseries@us.ibm.com
1. Customer name requesting the product enhancement (i.e. Company name, or Vendor, or Business Partner)
2. MQSeries product (All, MQ/MVS, MQ/400, MQ/NT, MQ/Unix, MQSeries Integrator V2, MQSeries Workflow V3.2.2, etc.)
3. a) Person(s) to whom our response should be sent:
-) Email Address:
-) Name:
-) Phone:
b) and, Name and email addressof the IBM account rep, if known
4. Short Requirement Title (customer's choice, but IBM may edit it.)
5. What is the problem to be solved? (detailed description)
6. What is the suggested solution (if any)?
7. What is the impact of the problem?
8. What is the deadline for:
(a) a Response? and
(b) a Solution (if applicable)?
9. Other considerations, if any:
10. What is the PMR number (if any)? (helpful for Level 2 tracking and closure of PMR)
|
_________________ -- T.Rob
Voice/SMS 704-443-TROB (8762)
https://t-rob.net
https://linkedin.com/in/tdotrob
@tdotrob on Twitter |
|
Back to top |
|
 |
Phil |
Posted: Tue Aug 13, 2002 11:15 pm Post subject: Ma88 with Weblogic |
|
|
Newbie
Joined: 13 Aug 2002 Posts: 1
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This problem can be solved by upgrading the JDK from 1.2.2 to 1.3.
It is uncertain why this change fixes the problem.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! _________________ -------------------------
Regards,
Phil |
|
Back to top |
|
 |
|