• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MQSeries UnsupportedEncodingException: 1051 exception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm getting UnsupportedEncodingException: 1051 exception exception when I try to convert and MQMessage to a String (str = MQMessage.readString( ... ).
My application has been in use for a couple of years, and I've never had this problem. I'm reading from a new queue, but I don't know what would cause this error.
Any ideas??
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the IBM/Websphere Forum.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having similar issues. It works on winXP but not on win2000? On win2000, this process of readString works as a bat file but if I install this as an NT service: I get:

Read characterset=500
IOException Error=java.io.UnsupportedEncodingException: Cp500
java.io.UnsupportedEncodingException: Cp500
at sun.io.Converters.getConverterClass(Unknown Source)
at sun.io.Converters.newConverter(Unknown Source)
at sun.io.ByteToCharConverter.getConverter(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at com.ibm.mq.MQMessage.readConvertedString(MQMessage.java:1929)
at com.ibm.mq.MQMessage.readString(MQMessage.java:960)
at com.csaa.mqutils.WBIMessage.readString(WBIMessage.java:76)
at com.csaa.mqutils.Preprocess_MQStartup.pre_process(Preprocess_MQStartup.java:308)
at com.csaa.mqutils.Preprocess_MQStartup.initialize(Preprocess_MQStartup.java:258)
at com.csaa.mqutils.Preprocess_MQStartup.run(Preprocess_MQStartup.java:268)

Appreciate any feedback on your fix.
Regards,
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What platform and version of MQ are you using?
 
Hey! You're stepping on my hand! Help me tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic