vinodkumarkv opened a new issue, #3825:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3825

   ### Describe the bug
   
   Describe the bug
   
   I have a simple drools with Quarkus application.
   
   Using:
   
   drools version: 8.39.0.Final
   maven.compiler.release : 21
   quarkus.platform.version : 3.17.5
   podman version: 5.3.1
   
   I have tried different combination of options, which not working:
   
   Use latest drools - 10.0.0
   Use different version of Java (17)
   Use different version of graavlm (17)
   
   However, the quarkus dev and 'mvn package' works but generating native 
runner fails with the error.
   
   Please find the git hub link of the sample project : 
[https://github.com/vinodkumarkv/drools-sample.git](https://github.com/quarkusio/quarkus/issues/url)
   
   ### Expected behavior
   
   mvn -P native package should be successful. 
   quarkus build --native should be successful. 
   
   ### Actual behavior
   
   quarkus build --native generates the below error " Error: An object of type 
'java.io.FilePermission' was found in the image heap. This type, however, is 
marked for initialization at image run time for the following reason: classes 
are initialized at run time by default.
   This is not allowed for correctness reasons: All objects that are stored in 
the image heap must be initialized at build time."
   
   <img width="551" alt="image" 
src="https://github.com/user-attachments/assets/3429f0fc-3615-4ed0-b4dd-f50697d814b0";
 />
   
   <img width="500" alt="image" 
src="https://github.com/user-attachments/assets/57fce444-54ed-428e-8b3f-7100107eefe3";
 />
   
   
   
   
   ### How to Reproduce?
   
   Create an application with:
   ` <dependency>
               <groupId>org.kie</groupId>
               <artifactId>kie-api</artifactId>
               <version>${drools.version}</version>
            </dependency>
            <dependency>
               <groupId>org.drools</groupId>
               <artifactId>drools-core</artifactId>
               <version>${drools.version}</version>
            </dependency>
           <dependency>
               <groupId>org.kie</groupId>
               <artifactId>kie-internal</artifactId>
               <version>${drools.version}</version>
           </dependency>
            <dependency>
               <groupId>org.drools</groupId>
               <artifactId>drools-mvel</artifactId>
               <version>${drools.version}</version>
           </dependency>
            <dependency>
               <groupId>org.mvel</groupId>
               <artifactId>mvel2</artifactId>
               <version>2.5.2.Final</version>
           </dependency>`
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   jdk-21.0.5
   
   ### GraalVM version (if different from Java)
   
   graalvm-jdk-21.0.5+9.1
   
   ### Kogito version or git rev (or at least Quarkus version if you are using 
Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   [https://github.com/quarkusio/quarkus/issues/45463](url)
   
   Already raised a defect with quarkus and feels like drools issue. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@kie.apache.org
For additional commands, e-mail: commits-h...@kie.apache.org

Reply via email to