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 » [b]MQ 2195 :Exception in thread "main" java.lang.N

Post new topic  Reply to topic
 [b]MQ 2195 :Exception in thread "main" java.lang.N « View previous topic :: View next topic » 
Author Message
prk
PostPosted: Fri Feb 10, 2006 6:41 am    Post subject: [b]MQ 2195 :Exception in thread "main" java.lang.N Reply with quote

Centurion

Joined: 17 Feb 2004
Posts: 102

We have 2 environements Dev and QA. There is a Java application that interacts between MQSeries and Maximo software. Everything is the same on both the servers. It works fine in Dev but in QA this is the error it throws out.

Any help would be greatly appreciated.

MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE007: IO error reading message data
MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received
MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received
MQ error occurred writing to message buffer. com.ibm.mq.MQException:
MQJE001: An
MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received
E-mail Sent
Exception in thread "main" java.lang.NullPointerException
at mqmaximo.GS_Cal_MQSender.main(GS_Cal_MQSender.java:140)
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Feb 10, 2006 11:37 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Which happens first, the MQ error or the nullPointer.

If it's the nullPointer, then fix that.

If it's the MQ, then look in the MQ logs, as a 2195 (Unexpected Error) should create an FDC.

BTW. The code should really stop on the 1st error, and not just carry on blindly.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
prk
PostPosted: Fri Feb 10, 2006 11:55 am    Post subject: Reply with quote

Centurion

Joined: 17 Feb 2004
Posts: 102

There is nothing in the MQ logs and no FDC's created.
Back to top
View user's profile Send private message
mvic
PostPosted: Fri Feb 10, 2006 2:41 pm    Post subject: Re: [b]MQ 2195 :Exception in thread "main" java.la Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

prk wrote:
MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE007: IO error reading message data
MQJE001: An MQException occurred: Completion Code 2, Reason 2195
MQJE018: Protocol error - unexpected segment type received

Please ensure both client and server are at the latest fix pack - there is a hint here of a client-induced protocol error, which I have seen in the past, though not recently.

In any case, please do state what MQ version and fix pack client and server have installed.

There is also a hint of network connectivity problems. Does the app work for a while then fail? Does it fail immediately? Are there any firewalls or other active network components between client and server (IP sprayer?) that might disrupt or cancel long-lived network connections?
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 » [b]MQ 2195 :Exception in thread "main" java.lang.N
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.