Big Design Element
I was trying to do some reading of Excel inside a Java agent in Domino the other day. It was my first attempt at it (I have done it in LotusScript, but not Java), so it was quite a bit of trial and error. The first thing I saw said you need so-and-so JAR to do it. So I download that and add it to my agent. Then I get some error message. A quick search on that results in "you need so-and-so JAR to get rid of that error". Another download and add. Triggers a different error. Repeat. And so on.
Pretty soon, I end up with an agent design element that, by itself, is 10,854,717 bytes in size. That's nearly 11 MB for just that one design element. I have a pretty complex Java library that is just under 50 KB in size in the same application. That's KB... the design element that was just created was 218 times bigger. And that was without much of my own code inside it. Naturally, I get an "out of heap space" error whenever I try to use it.
Guess I'll have to figure out another way to read Excel inside a Domino Java agent.
Pretty soon, I end up with an agent design element that, by itself, is 10,854,717 bytes in size. That's nearly 11 MB for just that one design element. I have a pretty complex Java library that is just under 50 KB in size in the same application. That's KB... the design element that was just created was 218 times bigger. And that was without much of my own code inside it. Naturally, I get an "out of heap space" error whenever I try to use it.
Guess I'll have to figure out another way to read Excel inside a Domino Java agent.
Comments
Post a Comment