Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336320

Summary: [Net4J] Server can't open channel
Product: [Modeling] EMF Reporter: Caspar D. <caspar_d>
Component: cdo.net4jAssignee: Caspar D. <caspar_d>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3 CC: saulius.tvarijonas
Version: 4.0Flags: stepper: review+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch
none
Patch v2 none

Description Caspar D. CLA 2011-02-04 03:16:54 EST
When a Net4J server opens a channel, the channel ID will be
negative (i.e. < 0) value. During channel registration,
assertValidChannelID gets called, which will throw an
IllegalArgEx because it erroneously assumes the channel ID
will always be a positive value.
Comment 1 Caspar D. CLA 2011-02-04 03:18:19 EST
Created attachment 188295 [details]
Patch
Comment 2 Eike Stepper CLA 2011-02-04 04:00:46 EST
Created attachment 188298 [details]
Patch v2

I changed some of these channel ID constants in several classes. Please review carefully and commit if you are happy with it ;-)
Comment 3 Caspar D. CLA 2011-02-04 05:03:18 EST
Committed to trunk, rev. 7018
Comment 4 Eike Stepper CLA 2011-06-23 03:41:04 EDT
Available in R20110608-1407