ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Receive Invalid file using MQ on mainframe

Post new topic  Reply to topic
 Receive Invalid file using MQ on mainframe « View previous topic :: View next topic » 
Author Message
moi3
PostPosted: Mon Apr 25, 2005 10:01 am    Post subject: Receive Invalid file using MQ on mainframe Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

I'm sending a xml file from HP-UX to mainframe using MQ 5.3 and JMS. The receiving queue on mainframe received the xml file alright, but in addition to it, it also received some invalid files. We don't know where these invalid files came from. We created a brand new queue to make sure it's the only one that we're using and it still received some invalid files along with the good ones. This is a sample of what an invalid file looks like. Just a bunch of weird characters. Do you have any ideas?

SMQ1 20050422134407 ?_ `/_/ / ?_/> | (
SMQ1 20050422134407 ?_ `/_/ / ?__?> _ / > ( / | ¦ Q
SMQ1 20050422134407 % / ! /> / /> / ?> ` < / /
SMQ1 20050422134407 ¦/ / % / ¦a . , $z L
SMQ1 20050422134407
SMQ1 20050422134407
SMQ1 20050422134407
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Apr 25, 2005 4:18 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Are you sure you are clearing all the memory properly.
Sure there is no occurs clause in play ?
Looks to me like memory access to a non initialized memory area....
Not an MQ problem but an application problem....

Enjoy
Back to top
View user's profile Send private message Send e-mail
moi3
PostPosted: Mon Apr 25, 2005 4:43 pm    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

Here's my jms code. I did close the connection. Do you see anything else that I need to do?

try {
InitialContext ctx = InitialContextFactory.getInitialContext();
QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("jms/myQCF");
con = factory.createQueueConnection();
QueueSession session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue queue = (Queue) ctx.lookup("jms/myQ");
QueueSender sender = session.createSender(queue);
TextMessage message = session.createTextMessage(textMessage);
sender.send(message);

} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (con != null) {
con.close();
}
} catch (JMSException jmse) {
jmse.printStackTrace();
}

}
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Apr 25, 2005 4:51 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

It's the mainframe code you need to look at.
Back to top
View user's profile Send private message Send e-mail
moi3
PostPosted: Mon May 02, 2005 2:15 pm    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 24

I checked with the person who worked on the mainframe and he said everything is fine on his end. He's not using MQ 5.3 but only 5.X. We receive an invalid message every hour now instead of once a day before ever since we deploy it into production. Any ideas?
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon May 02, 2005 2:46 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Is it exactly once an hour?

Then there is a scheduled job somewhere that is sending this.

MQ does not spontaneously produce or corrupt messages.

Someone in your organization has written code that is responsible for these messages.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Receive Invalid file using MQ on mainframe
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.