Archived
This forum has been archived. Please start a new discussion on GitHub.
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
-
Hi Chang,
Seems to me that your CS application is still using Ice-3.4.2IncomingBase.handleException__(Excepti on exc) in c:\IceBuilds\VC9\Release\cs\src\Ice\Incoming.cs:li ne 212
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,
Jose0 -
Hi Chang,
Seems to me that your CS application is still using Ice-3.4.2IncomingBase.handleException__(Excepti on exc) in c:\IceBuilds\VC9\Release\cs\src\Ice\Incoming.cs:li ne 212
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.0 -
where to se encoding verion in sample program clock?
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.
Thanks0 -
Keep in mind that checkedCast makes a remote call, so the first checkedCast in the code will be still using 1.1 encoding.
Try this:IceStorm.TopicManagerPrx manager = IceStorm.TopicManagerPrxHelper.checkedCast( communicator().propertyToProxy("TopicManager.Proxy").ice_encodingVersion(Ice.Util.Encoding_1_0));
0 -
error help
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?0 -
You need to set "Ice.IPv6" property to 0. See: IPv6 on Windows XP0