Denis Denis

Greenhorn
+ Follow
since Apr 03, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Denis Denis

Hi, All.
I try to send e-mail via ant.

Here is my code
<mail mailhost="..."
mailport="25"
from=".@."
tolist=".@."
subject="Message"
messagefile="message.html"
encoding="mime"
messagemimetype="text/html"
charset="Windows-1251">

<fileset dir="...">
<include name="**/*.xml"/>
</fileset>
</mail>

And I receive

BUILD FAILED
java.lang.NoSuchFieldError: headers

In my class-path I have catalina-ant.jar, activation.jar, mail.jar.
And I use Ant 1.6.

What is wrong?
16 years ago
Why inner classes cannot contain non-final static variables or static methods, but may them inherit.
What is the sense?
16 years ago
Why inner classes cannot contain non-final static variables or static methods, but may them inherit.
What is the sense?
16 years ago
Hi, Peter Chase. All string have the same size excepts the last.
We have assistant class for sending big UTF String and for receive them.
This class splits big string to blocks, then write blocks amount, and then write parted strings.
16 years ago
Hi All,

I have the code which read big UTF strings



In some cases this code throws OutOfMemoryError.
As I understand, it happens because StringBuffer cannot allocate enough memory space.
When in JVM I pass the parameter -Xmx256M, then I don't have this problems.

This kind of code doesn't make the same problem


As far as I know, String always reallocate memory when I work with it.
And this influence on execution time. I don't want to set -Xmx to JVM.
Where is the dog buried and how to resolve this question by another road?
16 years ago