Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350832 - Client/Server Communication if compression disabled breaks at excpetions from server
Summary: Client/Server Communication if compression disabled breaks at excpetions from...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 09:51 EDT by Stephan Leicht Vogt CLA
Modified: 2021-08-19 11:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Leicht Vogt CLA 2011-06-30 09:51:42 EDT
If the server sends a exception to the client and the client has disabled the compression an "java.util.zip.ZipException: unknown compression method" occurs in the client.

Caused by: java.util.zip.ZipException: unknown compression method
	at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
	at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2265)
	at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2278)
	at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
	at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
	at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
	at org.eclipse.scout.commons.osgi.BundleObjectInputStream.<init>(BundleObjectInputStream.java:61)
	at org.eclipse.scout.rt.shared.servicetunnel.ServiceTunnelInputStream.<init>(ServiceTunnelInputStream.java:27)
	at org.eclipse.scout.rt.shared.servicetunnel.DefaultServiceTunnelContentHandler.getData(DefaultServiceTunnelContentHandler.java:361)
	at org.eclipse.scout.rt.shared.servicetunnel.DefaultServiceTunnelContentHandler.read(DefaultServiceTunnelContentHandler.java:346)
	at org.eclipse.scout.rt.shared.servicetunnel.DefaultServiceTunnelContentHandler.readResponse(DefaultServiceTunnelContentHandler.java:297)
	at org.eclipse.scout.rt.client.servicetunnel.http.internal.HttpBackgroundJob.run(HttpBackgroundJob.java:90)
	... 1 more
	
	After searching for the cause I found that the compressed	attribute is only written if it is not an exception. (DefaultServiceTunnelContentHandler.writeResponse(...) line 214). I'm pretty shure, this should also be written in case of an exception.
Comment 1 Stephan Leicht Vogt CLA 2011-06-30 10:02:51 EDT
Fixed and commited to trunk for the release 3.8.0
Comment 2 Stephan Leicht Vogt CLA 2011-07-01 09:43:30 EDT
Must be fixed in Juno Release 3.7.1
Comment 3 Stephan Leicht Vogt CLA 2011-07-01 09:44:39 EDT
Fixed and commited also to branch 2011-Jun for the release 3.7.1
Comment 4 Stephan Leicht Vogt CLA 2011-07-01 09:48:25 EDT
(In reply to comment #2)
> Must be fixed in Juno Release 3.7.1
Actually that would be Helios Release. Sorry.
Comment 5 Stephan Leicht Vogt CLA 2011-07-04 02:26:16 EDT
(In reply to comment #4)
> (In reply to comment #2)
> > Must be fixed in Juno Release 3.7.1
> Actually that would be Helios Release. Sorry.
Names... Neither Helios nor Juno. I know 3.7 is Indigo.
Comment 6 Stephan Leicht Vogt CLA 2011-07-04 02:31:56 EDT
(In reply to comment #4)
> (In reply to comment #2)
> > Must be fixed in Juno Release 3.7.1
> Actually that would be Helios Release. Sorry.
Names... Neither Helios nor Juno. I know 3.7 is Indigo.
Comment 7 Matthias Zimmermann CLA 2011-10-10 12:50:23 EDT
shipped with scout 3.7.1