db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomas Fischer <tomas_fische...@yahoo.de>
Subject BaseVwJudasRepSql.java (Too many open files)
Date Sun, 21 Oct 2007 11:54:54 GMT
Hi,

My goal is to reverse engineering an existing database
and generate JAVA classes in help with torque.

The generation of the XML schema works fine.
Unfortunately the process of generating JAVA classes
fails with a "too many open files" exception. The
schema file contains more than 600 tables.

I'm using torque-gen-3.3-RC2 on a Linux system, SUN's
Java 1.5 SDK installed.

The exception occurs during the ant om-classpath task.

I've attached the detailed stack trace below.

I've found another thread of this problem on this
list, but no solution was given there. 

Any ideas how to avoid this error? Thanks a lot.

Best regards,

Tomas

--stack trace / log file entries --

The error:
Exception thrown by 'generator.parse'. 

The last lines from velocity log:
2007-10-21 13:48:24,136 - ResourceManager : found
om/MapBuilder.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2007-10-21 13:48:24,159 - ResourceManager : found
om/Object.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2007-10-21 13:48:24,160 - Method parse threw exception
for reference $generator in template om/ControlBase.vm
at  [166,11]

The output of ant -debug:
Exception thrown by 'generator.parse'. For more
information consult the velocity log, or invoke ant
with the -debug flag.
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
        at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:419)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at
sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at
org.apache.tools.ant.Task.perform(Task.java:348)
Caused by:
/home/tomas/java/torque-gen-3.3-RC2/build-torque.xml:561:
Exception thrown by 'generator.parse'. For more
information consult the velocity log, or invoke ant
with the -debug flag.
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:564)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at
sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:585)
        ... 17 more
Caused by: java.io.FileNotFoundException:
/home/tomas/java/torque-gen-3.3-RC2/src/java/torque/generated/BaseVwJudasRepSql.java
(Too many open files)
        at java.io.FileOutputStream.open(Native
Method)
        at
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at
java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at
java.io.FileWriter.<init>(FileWriter.java:46)
        at
org.apache.velocity.texen.Generator.getWriter(Generator.java:304)
        at
org.apache.velocity.texen.Generator.parse(Generator.java:408)
        at
org.apache.velocity.texen.Generator.parse(Generator.java:361)
        at
sun.reflect.GeneratedMethodAccessor72.invoke(Unknown
Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:585)
        ... 29 more
--- Nested Exception ---
/home/tomas/java/torque-gen-3.3-RC2/build-torque.xml:561:
Exception thrown by 'generator.parse'. For more
information consult the velocity log, or invoke ant
with the -debug flag.
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:564)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at
sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:585)
Caused by: java.io.FileNotFoundException:
/home/tomas/java/torque-gen-3.3-RC2/src/java/torque/generated/BaseVwJudasRepSql.java
(Too many open files)
        at java.io.FileOutputStream.open(Native
Method)
        at
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at
java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at
java.io.FileWriter.<init>(FileWriter.java:46)
        ... 29 more
--- Nested Exception ---
java.io.FileNotFoundException:
/home/tomas/java/torque-gen-3.3-RC2/src/java/torque/generated/BaseVwJudasRepSql.java
(Too many open files)
        at java.io.FileOutputStream.open(Native
Method)
        at
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at
java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at
java.io.FileWriter.<init>(FileWriter.java:46)
        at
org.apache.velocity.texen.Generator.getWriter(Generator.java:304)
        at
org.apache.velocity.texen.Generator.parse(Generator.java:408)
        at
org.apache.velocity.texen.Generator.parse(Generator.java:361)
        at
sun.reflect.GeneratedMethodAccessor72.invoke(Unknown
Source)



      Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message