You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Robert McKinnon <rm...@alabanza.com> on 2003/11/19 14:31:16 UTC

too many files open; goal maven-jxr-plugin:report

All,

I am in the middle of a large project, so far the project has roughly 2,500
source java files.  When I run the maven goal "maven-jxr-plugin:report" I
get the following error after several hundred files have been processed:
"java.io.FileNotFoundException" .../<filename>.java (Too many open files).

I was wondering if anybody has come across this same error and if so what is
the workaround?  or maybe this is a legitimate bug?

OS: Solaris
Hardware: Sparc


Thanks,

Bob




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: too many files open; goal maven-jxr-plugin:report

Posted by Emmanuel Venisse <em...@venisse.net>.
Ok, apparently, we don't close the stream after parsing files.

I don't have time for the moment for look at it. Perhaps you can try to
write a patch for JavaFileImpl in the jxr plugin that close the stream.

Emmanuel

----- Original Message ----- 
From: "Robert McKinnon" <rm...@alabanza.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Wednesday, November 19, 2003 2:53 PM
Subject: RE: too many files open; goal maven-jxr-plugin:report


> java.io.FileNotFoundException:
>
/export/home/mckinnon/cvs/brm/src/com/alabanza/brm/products/SellRelationship
> TypeRemote.java (Too many open files)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at java.io.FileInputStream.<init>(FileInputStream.java:66)
> at java.io.FileReader.<init>(FileReader.java:41)
> at
>
org.apache.maven.jxr.pacman.JavaFileImpl.getTokenizer(JavaFileImpl.java:160)
> at org.apache.maven.jxr.pacman.JavaFileImpl.parse(JavaFileImpl.java:96)
> at org.apache.maven.jxr.pacman.JavaFileImpl.<init>(JavaFileImpl.java:85)
> at org.apache.maven.jxr.pacman.FileManager.getFile(FileManager.java:93)
> at
> org.apache.maven.jxr.pacman.PackageManager.parse(PackageManager.java:133)
> at
>
org.apache.maven.jxr.pacman.PackageManager.process(PackageManager.java:171)
> at org.apache.maven.jxr.JxrBean.xref(JxrBean.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230)
> at
>
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
> at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
> at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
> at com.werken.werkz.Goal.fire(Goal.java:639)
> at com.werken.werkz.Goal.attain(Goal.java:575)
> at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:448)
> at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
> at org.apache.maven.cli.App.doMain(App.java:543)
> at org.apache.maven.cli.App.main(App.java:1109)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
>
> > -----Original Message-----
> > From: Emmanuel Venisse [mailto:emmanuel@venisse.net]
> > Sent: Wednesday, November 19, 2003 8:40 AM
> > To: Maven Users List
> > Subject: Re: too many files open; goal maven-jxr-plugin:report
> >
> >
> > Could you send us the stack trace?
> >
> > Emmanuel
> >
> > ----- Original Message -----
> > From: "Robert McKinnon" <rm...@alabanza.com>
> > To: <us...@maven.apache.org>
> > Sent: Wednesday, November 19, 2003 2:31 PM
> > Subject: too many files open; goal maven-jxr-plugin:report
> >
> >
> > > All,
> > >
> > > I am in the middle of a large project, so far the project has roughly
> > 2,500
> > > source java files.  When I run the maven goal
> > "maven-jxr-plugin:report" I
> > > get the following error after several hundred files have been
processed:
> > > "java.io.FileNotFoundException" .../<filename>.java (Too many
> > open files).
> > >
> > > I was wondering if anybody has come across this same error and
> > if so what
> > is
> > > the workaround?  or maybe this is a legitimate bug?
> > >
> > > OS: Solaris
> > > Hardware: Sparc
> > >
> > >
> > > Thanks,
> > >
> > > Bob
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: too many files open; goal maven-jxr-plugin:report

Posted by Robert McKinnon <rm...@alabanza.com>.
java.io.FileNotFoundException:
/export/home/mckinnon/cvs/brm/src/com/alabanza/brm/products/SellRelationship
TypeRemote.java (Too many open files)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at java.io.FileInputStream.<init>(FileInputStream.java:66)
	at java.io.FileReader.<init>(FileReader.java:41)
	at
org.apache.maven.jxr.pacman.JavaFileImpl.getTokenizer(JavaFileImpl.java:160)
	at org.apache.maven.jxr.pacman.JavaFileImpl.parse(JavaFileImpl.java:96)
	at org.apache.maven.jxr.pacman.JavaFileImpl.<init>(JavaFileImpl.java:85)
	at org.apache.maven.jxr.pacman.FileManager.getFile(FileManager.java:93)
	at
org.apache.maven.jxr.pacman.PackageManager.parse(PackageManager.java:133)
	at
org.apache.maven.jxr.pacman.PackageManager.process(PackageManager.java:171)
	at org.apache.maven.jxr.JxrBean.xref(JxrBean.java:132)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230)
	at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
	at com.werken.werkz.Goal.fire(Goal.java:639)
	at com.werken.werkz.Goal.attain(Goal.java:575)
	at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:448)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
	at org.apache.maven.cli.App.doMain(App.java:543)
	at org.apache.maven.cli.App.main(App.java:1109)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.werken.forehead.Forehead.run(Forehead.java:551)
	at com.werken.forehead.Forehead.main(Forehead.java:581)

> -----Original Message-----
> From: Emmanuel Venisse [mailto:emmanuel@venisse.net]
> Sent: Wednesday, November 19, 2003 8:40 AM
> To: Maven Users List
> Subject: Re: too many files open; goal maven-jxr-plugin:report
>
>
> Could you send us the stack trace?
>
> Emmanuel
>
> ----- Original Message -----
> From: "Robert McKinnon" <rm...@alabanza.com>
> To: <us...@maven.apache.org>
> Sent: Wednesday, November 19, 2003 2:31 PM
> Subject: too many files open; goal maven-jxr-plugin:report
>
>
> > All,
> >
> > I am in the middle of a large project, so far the project has roughly
> 2,500
> > source java files.  When I run the maven goal
> "maven-jxr-plugin:report" I
> > get the following error after several hundred files have been processed:
> > "java.io.FileNotFoundException" .../<filename>.java (Too many
> open files).
> >
> > I was wondering if anybody has come across this same error and
> if so what
> is
> > the workaround?  or maybe this is a legitimate bug?
> >
> > OS: Solaris
> > Hardware: Sparc
> >
> >
> > Thanks,
> >
> > Bob
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: too many files open; goal maven-jxr-plugin:report

Posted by Emmanuel Venisse <em...@venisse.net>.
Could you send us the stack trace?

Emmanuel

----- Original Message ----- 
From: "Robert McKinnon" <rm...@alabanza.com>
To: <us...@maven.apache.org>
Sent: Wednesday, November 19, 2003 2:31 PM
Subject: too many files open; goal maven-jxr-plugin:report


> All,
>
> I am in the middle of a large project, so far the project has roughly
2,500
> source java files.  When I run the maven goal "maven-jxr-plugin:report" I
> get the following error after several hundred files have been processed:
> "java.io.FileNotFoundException" .../<filename>.java (Too many open files).
>
> I was wondering if anybody has come across this same error and if so what
is
> the workaround?  or maybe this is a legitimate bug?
>
> OS: Solaris
> Hardware: Sparc
>
>
> Thanks,
>
> Bob
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org