JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-524  -  Stream isn't closed properly in org.jppf.utils.VersionUtils#createVersionInfo
Posted Jan 08, 2018 - updated Jan 09, 2018
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     igor
  • Owned by
    Not owned by anyone
  • Category
    Client
  • Resolution
    RESOLVED
  • Priority
    Low
  • Reproducability
    Rarely
  • Severity
    Low
  • Targetted for
    icon_milestones.png JPPF 5.2.9
Issue description
During restart of a payara server i see sometimes this warning in logs: 2018-01-08T13:31:47.119+0100 4.1 WARNING NCLS-COMUTIL-00023 javax.enterprise.system.util [[
  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:1284)
	at com.sun.enterprise.loader.ASURLClassLoader$InternalJarURLConnection.getInputStream(ASURLClassLoader.java:1392)
	at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:238)
	at com.sun.enterprise.loader.ASURLClassLoader.getResourceAsStream(ASURLClassLoader.java:936)
	at org.jppf.utils.VersionUtils.createVersionInfo(VersionUtils.java:59)
	at org.jppf.utils.VersionUtils.<clinit>(VersionUtils.java:42)
	at org.jppf.client.AbstractJPPFClient.<init>(AbstractJPPFClient.java:97)
	at org.jppf.client.AbstractGenericClient.<init>(AbstractGenericClient.java:87)
	at org.jppf.client.JPPFClient.<init>(JPPFClient.java:61)
Steps to reproduce this issue
Every initialisation of JPPFClient will lead to the problem.

The not closed stream is in org.jppf.utils.VersionUtils#createVersionInfo
    try {
      InputStream is = VersionUtils.class.getClassLoader().getResourceAsStream("META-INF/jppf-version.properties");
      props.load(is);
      v = new Version(props.getString("version.number", ""), props.getString("build.number", ""), props.getString("build.date", ""));
    }

#3
Comment posted by
 lolo4j
Jan 09, 13:44
Fixed in: