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 » EncodingException: 285 after client upgrade from v6 to v7

Post new topic  Reply to topic
 EncodingException: 285 after client upgrade from v6 to v7 « View previous topic :: View next topic » 
Author Message
kmidderigh
PostPosted: Thu May 19, 2011 7:46 am    Post subject: EncodingException: 285 after client upgrade from v6 to v7 Reply with quote

Apprentice

Joined: 21 Apr 2009
Posts: 26

Just upgraded an MQ Client from v6.0.2.7 to v7.0.1.5 on Solaris and the install completed successfully and you can connect to a remote Queue Manager fine using sample programs and JMS samples.

However an exisiting unchanged Java application that was working fine on v6.0.2.7 is now reporting the following error when trying to read a queue containing messages 285 encoded :

2011-05-18 16:31:11,983 [main] ERROR - *** ERROR *** in GetDatajava.io.UnsupportedEncodingException: 285
java.io.UnsupportedEncodingException: 285
at com.ibm.mq.MQMessage.readConvertedString(MQMessage.java:3229)
at com.ibm.mq.MQMessage.readStringOfCharLength(MQMessage.java:1285)
at com.ibm.mq.MQMessage.readString(MQMessage.java:1876)
at com.mftl.tws.GetData.pollIAQueue(GetData.java:411)
at com.mftl.tws.GetData.pollQueues(GetData.java:353)
at com.mftl.tws.GetData.main(GetData.java:760)

(no changes have been made to any code pages - just the MQ Client version changed)

Any idea what could be causing this ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 19, 2011 7:54 am    Post subject: Reply with quote

Grand High Poobah

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

Search the IBM site, there is an APAR for this. Behavior of JMS classes changed a bit as to where the conversion is being made.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kmidderigh
PostPosted: Thu May 19, 2011 7:58 am    Post subject: Reply with quote

Apprentice

Joined: 21 Apr 2009
Posts: 26

the application doesnt use JMS - just basic Java - has the behavior for converstion changed for this as well ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 19, 2011 8:02 am    Post subject: Reply with quote

Grand High Poobah

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

kmidderigh wrote:
the application doesnt use JMS - just basic Java - has the behavior for converstion changed for this as well ?

Can't tell. All our java programs are JMS...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kmidderigh
PostPosted: Thu May 19, 2011 8:07 am    Post subject: Reply with quote

Apprentice

Joined: 21 Apr 2009
Posts: 26

found this which looks similar :
http://www-01.ibm.com/support/docview.wss?uid=swg1IZ86625

but apparently fixed in 7.0.1.5
Back to top
View user's profile Send private message
zpat
PostPosted: Thu May 19, 2011 11:23 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

7.0.1.5 does not fix this exception problem.

Can anyone at IBM remind me where the data conversion is being done (for a Solaris java client 7.0.1.5 connected to AIX queue manager 7.0.1.3).

The QM code page is 819, the message data is CCSID 285.

Is it converted by client MQ code, or in the client JVM, or in the client OS, or in the server MQ code, or in the server OS code?

How can I check what conversions a JVM supports?
Back to top
View user's profile Send private message
kmidderigh
PostPosted: Fri May 20, 2011 12:28 am    Post subject: Reply with quote

Apprentice

Joined: 21 Apr 2009
Posts: 26

when I said on the first post the that JMSBrowse sample was working on 7.0.1.5 there was one slightly strange result :

when reading a queue with ascii messages the browsed messages were returned correctly to the prompt, however when i fill the same queue with ebcdic messages this is the result i get :

Browse starts

No more messages

SUCCESS

i.e. none of the messages are actually displayed - but no errors reported either. looks like the ebcdic data did cause some sort of issue.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri May 20, 2011 3:48 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

zpat, these 2 posts will be of interest:
http://www-01.ibm.com/support/docview.wss?uid=swg1IC72897

http://www-01.ibm.com/support/docview.wss?uid=swg21459994
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
zpat
PostPosted: Fri May 20, 2011 3:56 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Definitely interesting for our JMS apps - however this problem is for a non-JMS Java app application.

The only MQ jar files it seems to use are MQ.JAR and CONNECTOR.JAR

I suspect it may be trying to use JVM conversion in version 7 and the JVM being used does not support it.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jun 15, 2011 12:14 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

The interim fix for this would seem to be available for APAR IV00767.

It is a JAR file applied to the client. It will ship in fixpack 7.0.1.6
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 » EncodingException: 285 after client upgrade from v6 to v7
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.