[ https://jira.jboss.org/jira/browse/JBRULES-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Bergquist updated JBRULES-1672:
-------------------------------------
Attachment: streams_close.patch
Here is a patch for closing the streams that I found left open. I've been running a build with this patch applied in production for a while and do not get exceptions about streams not being closed when I undeploy my application from Glassfish.
> Input streams are not closed when no longer needed
> --------------------------------------------------
>
> Key: JBRULES-1672
> URL: https://jira.jboss.org/jira/browse/JBRULES-1672
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.7
> Environment: Windows XP
> Reporter: Brett Bergquist
> Assignee: Mark Proctor
> Attachments: streams_close.patch
>
>
> Input streams are left open after loading a new rules base. This is being reported when I unload an application deployed in the Glassfish Application server: Here is a partial stack traceback:
> 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.EJBClassLoader$SentinelInputStream.<init>(EJBClassLoader.java:1165)
> at com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1258)
> at java.net.URL.openStream(URL.java:1009)
> at org.drools.util.ChainedProperties.loadProperties(ChainedProperties.java:245)
> at org.drools.util.ChainedProperties.loadProperties(ChainedProperties.java:216)
> at org.drools.util.ChainedProperties.<init>(ChainedProperties.java:102)
> at org.drools.util.ChainedProperties.<init>(ChainedProperties.java:31)
> at org.drools.util.ChainedProperties.<init>(ChainedProperties.java:25)
> at org.drools.RuleBaseConfiguration.init(RuleBaseConfiguration.java:174)
> at org.drools.RuleBaseConfiguration.<init>(RuleBaseConfiguration.java:133)
> at org.drools.common.AbstractRuleBase.<init>(AbstractRuleBase.java:147)
> at org.drools.reteoo.ReteooRuleBase.<init>(ReteooRuleBase.java:124)
> at org.drools.reteoo.ReteooRuleBase.<init>(ReteooRuleBase.java:101)
> at org.drools.RuleBaseFactory.newRuleBase(RuleBaseFactory.java:57)
> at org.drools.RuleBaseFactory.newRuleBase(RuleBaseFactory.java:38)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira