Object Message getObject() error
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Carl_Hume
Posted On:   Tuesday, April 30, 2002 05:08 AM

Hopefully someone on the list can shed some light on my problem. The application is using ObjectMessages to send information. Unfortunately, it periodically errors trying to reconstruct the parcel at the receiver: Parcel parcel = (Parcel)message.getObject(); causes: java.io.IOException: Corrupt GZIP Trailer Other instances of the parcel class are sent correctly. While the exception does not occur with every transmission, it happens frequently enough to cause problems. Does anyone have any idea what could be causing it, and how it can be avoided? Sincerely Carl    More>>

Hopefully someone on the list can shed some light on my problem. The application is using ObjectMessages to send information. Unfortunately, it periodically errors trying to reconstruct the parcel at the receiver:



Parcel parcel = (Parcel)message.getObject();


causes:



java.io.IOException: Corrupt GZIP Trailer



Other instances of the parcel class are sent correctly. While the exception does not occur with every transmission, it happens frequently enough to cause problems. Does anyone have any idea what could be causing it, and how it can be avoided?



Sincerely

Carl

   <<Less

Re: Object Message getObject() error

Posted By:   Andreas_Mueller  
Posted On:   Tuesday, April 30, 2002 07:30 AM

It's the body compression. Switch it off at when sending the message with



msg.setBooleanProperty("JMS_SWIFTMQ_BC",false);


The body compression will be removed completely in 3.2.0 since it doesn't improve the throughput that much and there are platform problems sometimes.
About | Sitemap | Contact