Hi Janaka,

This is because there are too many open files. Increasing the file limits
against your user account should solve this.

Thanks,
Senaka.

On Thu, Mar 17, 2011 at 12:56 PM, Janaka Ranabahu <[email protected]> wrote:

> Hi All,
>
> Im getting the following error when I try to run a test module. There are
> several test modules and this error only comes in one module.
>
> Any ideas on this?
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.wso2.carbon.registry.resource.test.TestRunner
> [2011-03-17 12:49:22,195]  INFO {org.wso2.carbon.server.Main} -
>  Initializing system...
> [2011-03-17 12:49:22,757]  INFO
> {org.wso2.carbon.server.TomcatCarbonWebappDeployer} -  Deployed Carbon
> webapp: StandardEngine[Tomcat].StandardHost[defaulthost].StandardContext[/]
> [2011-03-17 12:49:23,092]  INFO
> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
> servlet write/read
> [2011-03-17 12:49:23,204]  INFO
> {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
> servlet write/read
> [2011-03-17 12:49:23,218]  INFO
> {org.wso2.carbon.atomikos.TransactionFactory} -  Starting Atomikos
> Transaction Manager 3.7.0
> No properties path set - looking for transactions.properties in
> classpath...
> transactions.properties not found - looking for jta.properties in
> classpath...
> Failed to open transactions properties file - using default values
> SLF4J: The requested version 1.5.10 by your slf4j binding is not compatible
> with [1.5.5, 1.5.6]
> SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further
> details.
>
> !ENTRY org.eclipse.osgi 4 0 2011-03-17 12:49:24.947
> !MESSAGE
> !STACK 0
> java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
>  at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> at java.util.zip.ZipFile.<init>(ZipFile.java:131)
>  at
> org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:251)
> at
> org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.basicOpen(ZipBundleFile.java:88)
>  at
> org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getZipFile(ZipBundleFile.java:101)
> at
> org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.checkedOpen(ZipBundleFile.java:74)
>  at
> org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleFile.getEntry(ZipBundleFile.java:246)
> at org.eclipse.osgi.baseadaptor.BaseData.getEntry0(BaseData.java:111)
>  at org.eclipse.osgi.baseadaptor.BaseData.getEntry(BaseData.java:102)
> at
> org.eclipse.osgi.internal.baseadaptor.AdaptorUtil.loadManifestFrom(AdaptorUtil.java:185)
>  at
> org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getGeneratedManifest0(EclipseStorageHook.java:406)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getGeneratedManifest(EclipseStorageHook.java:393)
>  at
> org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.createCachedManifest(EclipseStorageHook.java:388)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getManifest(EclipseStorageHook.java:507)
>  at
> org.eclipse.osgi.internal.baseadaptor.BaseStorage.loadManifest(BaseStorage.java:302)
> at
> org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:82)
>  at
> org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:922)
> at
> org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:838)
>  at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:889)
>  at
> org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:833)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:166)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:160)
> at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.installBundles(ConfigApplier.java:197)
>  at
> org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(ConfigApplier.java:89)
> at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:129)
>  at
> org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(SimpleConfiguratorImpl.java:143)
> at
> org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Activator.java:48)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
> at java.security.AccessController.doPrivileged(Native Method)
>  at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
>  at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
>  at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
>  at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
>  at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
>  at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
> Successfully started Carbon server. Returning...
> [2011-03-17 12:49:25,262] ERROR {org.apache.tomcat.util.net.NioEndpoint} -
>  Socket accept failed
> java.io.IOException: Too many open files
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>  at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
> at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:817)
>  at java.lang.Thread.run(Thread.java:619)
> [2011-03-17 12:49:25,262] ERROR {org.apache.tomcat.util.net.NioEndpoint} -
>  Socket accept failed
> java.io.IOException: Too many open files
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
> at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
>  at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:817)
> at java.lang.Thread.run(Thread.java:619)
> [2011-03-17 12:49:25,264] ERROR {org.apache.tomcat.util.net.NioEndpoint} -
>  Socket accept failed
> java.io.IOException: Too many open files
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>  at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
> at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:817)
>  at java.lang.Thread.run(Thread.java:619)
> [2011-03-17 12:49:25,265] ERROR {org.apache.tomcat.util.net.NioEndpoint} -
>  Socket accept failed
> java.io.IOException: Too many open files
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
> at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
>  at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:817)
> at java.lang.Thread.run(Thread.java:619)
> [2011-03-17 12:49:25,265] ERROR {org.apache.tomcat.util.net.NioEndpoint} -
>  Socket accept failed
> java.io.IOException: Too many open files
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>  at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
> at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:817)
>  at java.lang.Thread.run(Thread.java:619)
> [2011-03-17 12:49:25,266] ERROR {org.apache.tomcat.util.net.NioEndpoint} -
>  Socket accept failed
> java.io.IOException: Too many open files
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
> at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
>  at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:817)
> at java.lang.Thread.run(Thread.java:619)
> [2011-03-17 12:49:25,266] ERROR {org.apache.tomcat.util.net.NioEndpoint} -
>  Socket accept failed
> java.io.IOException: Too many open files
> at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
>  at
> sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:145)
> at
> org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:817)
>  at java.lang.Thread.run(Thread.java:619)
>
>
> --
> Janaka Ranabahu
> Software Engineer
> WSO2 Inc.
>
> Mobile +94 718370861
> Email : [email protected]
> Blog : janakaranabahu.blogspot.com
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2, Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://www.linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to