Error of BadMajor number and BadMinor number

in Help Center
Hi All
I am using 3.5 now. But I got an error. Why and how to correct it.
The program is compiled in vs2010.
operation: transfer
remote host: x.x.x.x remote port: 63718
Ice.UnsupportedEncodingException
reason = (null)
badMajor = 1
badMinor = 1
major = 1
minor = 0
at IceInternal.IncomingBase.handleException__(Exception exc) in c:\IceBuilds\VC9\Release\cs\src\Ice\Incoming.cs:line 212
In another old java program, I send the same message and get no error.
I am using 3.5 now. But I got an error. Why and how to correct it.
The program is compiled in vs2010.
operation: transfer
remote host: x.x.x.x remote port: 63718
Ice.UnsupportedEncodingException
reason = (null)
badMajor = 1
badMinor = 1
major = 1
minor = 0
at IceInternal.IncomingBase.handleException__(Exception exc) in c:\IceBuilds\VC9\Release\cs\src\Ice\Incoming.cs:line 212
In another old java program, I send the same message and get no error.
0
Comments
Seems to me that your CS application is still using Ice-3.4.2
This matches the 3.4.2 sources not 3.5.
If your intention is that a 3.5 client communicates with a 3.4 (or earlier) service you should set the encoding to 1.0
See: Interoperability between Ice 3.5 and prior releases
Regards,
Jose
Thanks Jose
I figured it out also. since the server is still 3.4. Only my test server and application are 3.5 I will set the encoding version to 1.0 for them.
I added two lines after the first line
IceStorm.TopicManagerPrx manager =
IceStorm.TopicManagerPrxHelper.checkedCast(communicator().propertyToProxy("TopicManager.Proxy"));
Ice.EncodingVersion e = new Ice.EncodingVersion(1, 0);
manager = IceStorm.TopicManagerPrxHelper.checkedCast(manager.ice_encodingVersion(e));
but it still complains that the client using 1.1.
Thanks
Try this:
Thanks again
Attachment not found.
I have a java program, run on window7 without any problem. But run at winxp got the error as in the screen in the picture. I move the program to a different folder and run it in win7 without problem. System variable of path are correct. Seems to me this program can not load correct icestorm lib.
What is wrong?