Skip to main content

Summary

What is the maximum length of an unbounded string in Orbix 6.3?

What is the limit for unbounded strings in Orbix 6.3?

Environment

Orbix 6.3

All Supported OS

Question/Problem Description

This article clarifies the details around the maximum length of unbounded strings in Orbix 6.3?

Error Message

IT_Core:LENGTH_TOO_LARGE exception

Resolution

Orbix 6.3 C

For the Orbix 6.3 C ORB the maximum length of an unbounded string is as follows:

  • Orbix 6.3.6: uses the constant: 64MB
  • Orbix 6.3.7: uses the constant: 320MB
  • Orbix 6.3.8 the unbounded string size limit has been removed, so that unbounded strings are fully unbounded in nature.
Orbix 6.3 Java
 
For the Orbix 6.3 Java ORB the maximum length of an unbounded string can be limited using the configuration variable plugins:orb:max_unbounded_string_size.

This variable only applies to the Java ORB and it enables you to specify the maximum permitted size of an unbounded string (in megabytes).

Remember to allow for the null character that terminates the string. An attempt to pass an unbounded string equal to or greater than this value from client to server results in the client generating an IT_Core:LENGTH_TOO_LARGE exception.

Must be a positive integer value greater than 0, and defaults to 128.

Note:
This value is also used to limit the size of wstrings (wide strings). However, the extra memory that wstrings typically require (typically two bytes for UTF-16 encoding, or 1 bytes for UTF-8) you may hit the upper limit with a smaller than anticipated wstring.

Support Incidents

2831620, 2860301


#Orbix
#KnowledgeDocs