session.execute("CREATE DB test inputFolder"); => java.io.IOException: Stream Closed

Friday, 27 January 2012 · 4 messages
JL
Johann LEGAYE27 Jan 2012 11:58 #
Hello, I'm new on this mailing list and I have a problem when running on my java app : session.execute("CREATE DB test inputFolder"); because after 20 minutes (my input folder is something like 800 Mo). I got this error message in my console : java.io.IOException: Stream Closed java.io.FileOutputStream.writeBytes(Native Method) java.io.FileOutputStream.write(FileOutputStream.java:305) org.basex.server.Log.write(Log.java:74) org.basex.server.ClientListener.quit(ClientListener.java:240) org.basex.server.ClientListener.run(ClientListener.java:170) What can I do to resolve this ? Thanks a lot ! Johann
CG
Christian Grün27 Jan 2012 14:59 #
Johann, thanks for the report. Generally, importing 800 mb of XML data shouldn't cause any major issues; did you manage to reproduce the problem/how does your complete Java code look like? Best, Christian
Quoted text · Johann LEGAYE · 30 lines
On Fri, Jan 27, 2012 at 11:58 AM, Johann LEGAYE <johann.legaye at 4dconcept.fr> wrote: > Hello, > > I'm new on this mailing list and I have a problem when running on my java > app : > > session.execute("CREATE DB test inputFolder"); > > because after 20 minutes (my input folder is something like 800 Mo). I got > this error message in my console : > > java.io.IOException: Stream Closed > java.io.FileOutputStream.writeBytes(Native Method) > java.io.FileOutputStream.write(FileOutputStream.java:305) > org.basex.server.Log.write(Log.java:74) > org.basex.server.ClientListener.quit(ClientListener.java:240) > org.basex.server.ClientListener.run(ClientListener.java:170) > > > What can I do to resolve this ? > > > Thanks a lot ! > > Johann > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
JL
Johann LEGAYE27 Jan 2012 15:09 #
Quoted text · Christian Grün · 41 lines
Le vendredi 27 janvier 2012 14:59:30, Christian Grün a écrit : > Johann, > > thanks for the report. Generally, importing 800 mb of XML data > shouldn't cause any major issues; did you manage to reproduce the > problem/how does your complete Java code look like? > > Best, > Christian > ___________________________ > > On Fri, Jan 27, 2012 at 11:58 AM, Johann LEGAYE > <johann.legaye at 4dconcept.fr> wrote: >> Hello, >> >> I'm new on this mailing list and I have a problem when running on my java >> app : >> >> session.execute("CREATE DB test inputFolder"); >> >> because after 20 minutes (my input folder is something like 800 Mo). I got >> this error message in my console : >> >> java.io.IOException: Stream Closed >> java.io.FileOutputStream.writeBytes(Native Method) >> java.io.FileOutputStream.write(FileOutputStream.java:305) >> org.basex.server.Log.write(Log.java:74) >> org.basex.server.ClientListener.quit(ClientListener.java:240) >> org.basex.server.ClientListener.run(ClientListener.java:170) >> >> >> What can I do to resolve this ? >> >> >> Thanks a lot ! >> >> Johann >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thank you for your response Christian. Each time I launch my code, I get the same error after several minutes of importing. Here is my java code :
BaseXServer server;
		server = new BaseXServer();
session = new BaseXClient("localhost", 1984, "admin", "admin"); session.execute("CREATE DB mydatabase inputFolder"); I get the error at this moment...
CG
Christian Grün27 Jan 2012 15:30 #
Thanks; I'll try to generate a similar scenario. Two more questions: are you working with the latest version/snapshot of BaseX? Which system are you working on?
Quoted text · Johann LEGAYE · 19 lines
> Thank you for your response Christian. > > Each time I launch my code, I get the same error after several minutes of > importing. > > Here is my java code : > > BaseXServer server; > server = new BaseXServer(); > > session = new BaseXClient("localhost", 1984, "admin", > "admin"); > > session.execute("CREATE DB mydatabase inputFolder"); > > > I get the error at this moment... > >

⚡Generated with XQuery