Hi:
I tried add -Xms128m -Xmx256m and now get a different error:
Any help? Thanks.

XML:DB Exception occured 0
org.xmldb.api.base.XMLDBException:
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collection
Impl.java:330)
        at AddDocument_1.main(AddDocument_1.java:24)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for 
URL: http://localhost:8080/xindice/
        at 
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:444)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(Collect
ionImpl.java:193)
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collection
Impl.java:318)
        ... 1 more
[EMAIL PROTECTED]: Server returned HTTP response code: 500 for 
URL: http://localhost:8080/xindice/
        at 
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:444)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(Collect
ionImpl.java:193)
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collection
Impl.java:318)
        at AddDocument_1.main(AddDocument_1.java:24)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for 
URL: http://localhost:8080/xindice/
        at 
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:444)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(Collect
ionImpl.java:193)
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collection
Impl.java:318)
        at AddDocument_1.main(AddDocument_1.java:24)

Also as to using setContentAsDOM() to load a xml doc, since I use from a java 
application, there is no way I can add -v like in command line to see the 
error detail.

Thanks


>===== Original Message From Vadim Gritsenko <[EMAIL PROTECTED]> =====
>Eric Zhang wrote:
>
>>Hi:
>>  Is there anybody being able to load a big XML file to the database. I
>>know Xindice is not designed to do that, however, the limitation of a
>>string will easily be reached. I have a 11M xml file, when I try to load
>>it using the example from xindice's site(the one read the content of a
>>file to a string), it gives me an out of memory mistake.
>>
>>
>
>Increase the memory. Add parameters to the java:
>-Xms128m -Xmx256m
>
>and try again.
>
>
>>  I then tried to use create a DOM/other create resource way and load
>>it, which give me an error: XML:DB Exception occured 0
>>
>>
>
>Add -v parameter to see exception message / stack trace.
>
>Vadim

Yue(Eric) Zhang                    
Database Analyst/DBA, Arts Dept.    Email:  [EMAIL PROTECTED]
University of Alberta               Phone:  780-492-8042
Edmonton, Alberta T6G 2E6  CANADA     WWW:  http://tapor.ualberta.ca

Reply via email to