Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-812

An exception is thrown on glassfish 3 on stop server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.3.0.CR1
    • 6.2.0.Final, 6.3.0.Beta2
    • core engine
    • None

      When using Drools with glassfish 3.
      When stopping the server, An exception is thrown with the following stack trace.
      It seems that the InputStream that is opened on JavaRuleBuilderHelper#getRuleTemplateRegistry is not closed.

      [#|2015-05-26T11:15:37.408+0300|WARNING|glassfish3.1|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=67;_ThreadName=Thread-3;|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:1230)
      at com.sun.enterprise.loader.ASURLClassLoader$InternalJarURLConnection.getInputStream(ASURLClassLoader.java:1338)
      at java.net.URL.openStream(URL.java:1010)
      at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1200)
      at com.sun.enterprise.loader.ASURLClassLoader.getResourceAsStream(ASURLClassLoader.java:872)
      at java.lang.Class.getResourceAsStream(Class.java:2066)
      at org.drools.compiler.rule.builder.dialect.java.JavaRuleBuilderHelper.getRuleTemplateRegistry(JavaRuleBuilderHelper.java:48)
      at org.drools.compiler.rule.builder.dialect.java.JavaRuleBuilderHelper.generateMethodTemplate(JavaRuleBuilderHelper.java:214)
      at org.drools.compiler.rule.builder.dialect.asm.AbstractASMEvalBuilder.buildEval(AbstractASMEvalBuilder.java:81)
      at org.drools.compiler.rule.builder.dialect.asm.AbstractASMEvalBuilder.build(AbstractASMEvalBuilder.java:63)
      at org.drools.compiler.rule.builder.ConditionalBranchBuilder.build(ConditionalBranchBuilder.java:37)
      at org.drools.compiler.rule.builder.ConditionalBranchBuilder.build(ConditionalBranchBuilder.java:22)
      at org.drools.compiler.rule.builder.ConditionalBranchBuilder.build(ConditionalBranchBuilder.java:19)
      at org.drools.compiler.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:66)
      at org.drools.compiler.rule.builder.RuleBuilder.build(RuleBuilder.java:99)
      at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addRule(KnowledgeBuilderImpl.java:1727)
      at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileRules(KnowledgeBuilderImpl.java:1022)
      at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileAllRules(KnowledgeBuilderImpl.java:900)
      at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildRules(CompositeKnowledgeBuilderImpl.java:301)
      at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.buildPackages(CompositeKnowledgeBuilderImpl.java:107)
      at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:91)
      at org.drools.compiler.kie.builder.impl.AbstractKieModule.buildKnowledgePackages(AbstractKieModule.java:223)
      at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:49)
      at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:219)
      at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:190)

      #]

              psiroky_jira Petr Široký (Inactive)
              ronayadid Rona Yadid (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: