Outof Memory

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Outof Memory

K.-P. Kirchdoerfer
Running JDK 1.1.1 with Warp3 FP30, netrexx 1.120 and rxfile 1.16 I've
got the following error while copying a 1,5MB large ps-file:
 java.lang.OutOfMemoryError
        at java.lang.String.toCharArray(String.java:1275)
        at netrexx.lang.Rexx.toRexx(Rexx.nrx:562)
        at RXFile.charin(RXFile.nrx:1383)
        at RXFile.copy(RXFile.nrx:141)
        at obm_s300.prepare_mail(obm_s300.nrx:281)

java reported before copying:
12126783 free memory
that should be enough.

Is that error related to the OS/2 JVM? If so, how's the adress for
bug reports?
Any ideas whatelse causes the exception?

regards kp
--
K.P.Kirchdoerfer                      Voice:   +49 431 15479
24116 Kiel                            E-Mail: [hidden email]

The Mission Is Terminated (TG 1982)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Outof Memory

Massimiliano Marsiglietti
>Running JDK 1.1.1 with Warp3 FP30, netrexx 1.120 and rxfile 1.16 I've got
>the following error while copying a 1,5MB large ps-file:
> java.lang.OutOfMemoryError

>java reported before copying:
>12126783 free memory
>that should be enough.

>Is that error related to the OS/2 JVM? If so, how's the adress for bug
>reports?
>Any ideas whatelse causes the exception?

RXFile does a RandomAccessFile read with a Byte[] array, which gets
translated into String and finally into a Rexx object. Perhaps I could
jump directly from byte[] to Rexx? I will look into the  operators for the
Rexx type. Anyway the problem could come out again when dealing with a
larger file, so it may not be a perfect solution..

--
Max Marsiglietti,
PC-Magazine Italy (Technical contributor)
MaxBase 1.08 and RXFile 1.16 author

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>