[seam-issues] [JBoss JIRA] (SEAMSPRING-13) InputStream left open in SpringContextBootstrapExtension

Gunther Klein (JIRA) jira-events at lists.jboss.org
Mon Sep 9 06:54:03 EDT 2013


Gunther Klein created SEAMSPRING-13:
---------------------------------------

             Summary: InputStream left open in SpringContextBootstrapExtension
                 Key: SEAMSPRING-13
                 URL: https://issues.jboss.org/browse/SEAMSPRING-13
             Project: Seam Spring
          Issue Type: Bug
    Affects Versions: 3.1.0.Final, 3.2.0.Alpha1
         Environment: Win 7 64Bit, Glassfish 3.2.1, Glassfish 4
            Reporter: Gunther Klein
            Assignee: Marius Bogoevici


We use the seam spring core library for integration of spring batch into our java ee 6 application (groupId:org.jboss.seam.spring, artifactId:seam-spring-core, version:3.1.0.Final). On Glassfish 3.2.1 and 4 undeployment of our ear shows the warning message:
WARNING: Input stream has been finalized or forced closed without being explicitly closed; stream instantiation reported in following stack trace
java.lang.Throwable
	at com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream.<init>(ASURLClassLoader.java:1280)
	at com.sun.enterprise.loader.ASURLClassLoader.getResourceAsStream(ASURLClassLoader.java:938)
	at org.jboss.seam.spring.extension.SpringContextBootstrapExtension.loadSpringContext(SpringContextBootstrapExtension.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...

Looking into method org.jboss.seam.spring.extension.SpringContextBootstrapExtension::loadSpringContext() shows that it opens an InputStream to /META-INF/org.jboss.seam.spring.contexts, which never gets closed. This causes the ugly warning message.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list