About using 'loadjava' tool [message #92427] |
Mon, 12 July 2004 19:20 |
Daniel
Messages: 47 Registered: February 2000
|
Member |
|
|
I use 'loadjava' to upload a jar file 'weblogic.jar' to db.
cmd likes this:
loadjava -user name/pass weblogic.jar
Exception occurs,
Exception in thread "main" java.lang.OutOfMemoryError:
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:
128)
at oracle.aurora.util.IOCopy.toBytes(IOCopy.java:69)
at oracle.aurora.server.tools.loadjava.SchemaObject.getBytes(SchemaObjec
t.java:252)
at oracle.aurora.server.tools.loadjava.SchemaObject.getRepeatableInputSt
ream(SchemaObject.java:283)
....................................
The file 'weblogic.jar' is Ok, but where is the problem?
Thanks & Regards,
Daniel
|
|
|
|
Re: About using 'loadjava' tool [message #92649 is a reply to message #92427] |
Sat, 06 November 2004 12:11 |
Vijay karthik
Messages: 1 Registered: November 2004
|
Junior Member |
|
|
Iam having the same kind of error while uploading a jar file which is of size 5 MB
The error is
Exception in thread "main" java.lang.OutOfMemoryError:
at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:
128)
at oracle.aurora.util.IOCopy.toBytes(IOCopy.java:69)
at oracle.aurora.server.tools.loadjava.SchemaObject.getBytes(SchemaObjec
t.java:310)
at oracle.aurora.server.tools.loadjava.SchemaObject.getRepeatableInputSt
ream(SchemaObject.java:341)
at oracle.aurora.server.tools.loadjava.SchemaObject.load(SchemaObject.ja
va:736)
at oracle.aurora.server.tools.loadjava.ClientResourceObject.create(Clien
tResourceObject.java:26)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObjec
t.java:192)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:513)
at oracle.aurora.server.tools.loadjava.LoadJava.addObject(LoadJava.java:
494)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:432)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:361)
at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:687
)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:413)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:361)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:330)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:620)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(Loa
dJava.java:592)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:77
6)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:23
7)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.jav
a:66)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.ja
va:27)
Some body help in this regard.
-Vijay Karthik
|
|
|
Re: About using 'loadjava' tool [message #92775 is a reply to message #92427] |
Thu, 13 January 2005 02:22 |
Rupesh Raut
Messages: 1 Registered: January 2005
|
Junior Member |
|
|
Hi,
problem is with heap size for loadjava process.
So u need to increase heap size, just insert these two parameters in last line of loadjava.bat/.sh "-ms256M -mx256M". Here 256 is the heap size it dependes upon u'r system ram(512).
Thanks and Regards
Rupesh
|
|
|