Open daneshk opened 5 years ago
Comment by riyafa Tuesday Jul 03, 2018 at 03:37 GMT
The reason for this issue is that the length of a string
variable that is currently supported is a short
value: https://github.com/ballerina-platform/ballerina-lang/blob/b5eef748f8848addd99b1bf2f8a2690cfa0d8ea3/bvm/ballerina-core/src/main/java/org/ballerinalang/util/codegen/PackageInfoReader.java#L139
Hence it is not possible to send a large text message using the existing createTextMessage
function.
The solution to this would be to implement a method that takes a filePath
with the text or a io:ByteChannel
Issue by sashikamw Thursday Apr 26, 2018 at 13:26 GMT Originally opened as https://github.com/ballerina-platform/ballerina-lang/issues/8175
Description: Failed to compile when a 40 kb message is passed to "queueSender.createTextMessage"
Steps to reproduce: Used the following code for jms producer
Affected Versions: Ballerina - ballerina-0.970.0-beta17
OS, DB, other environment details and versions: Ubuntu 15.10
Observations