Bug 1268233 - SolverFactoryTest.testdataSolverConfigWithClassLoader() test fails on IBM JDK 7
Summary: SolverFactoryTest.testdataSolverConfigWithClassLoader() test fails on IBM JDK 7
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: OptaPlanner
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ER5
: 6.2.0
Assignee: Geoffrey De Smet
QA Contact: Tibor Zimanyi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-02 08:49 UTC by Tibor Zimanyi
Modified: 2020-03-27 19:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:01:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tibor Zimanyi 2015-10-02 08:49:55 UTC
Description of problem:

When running test method SolverFactoryTest.testdataSolverConfigWithClassLoader() on IBM JDK 7, the test fails on "java.lang.SecurityException: Uninitialized class loader". See stacktrace [1].

On other JDKs the test passes. If you debug the test, you can see that mocked IBM classloader from the test have attribute initDone = false, which is not present in mocked classloader from Oracle JDKs. Maybe there is needed to call some initialization method on IBM JDKs. 

[1] http://pastebin.com/s1Xmufs7


Version-Release number of selected component (if applicable): 6.2.0.ER3


How reproducible: 

Run SolverFactoryTest.testdataSolverConfigWithClassLoader() on IBM JDK 7.

Comment 2 Geoffrey De Smet 2015-10-16 13:09:35 UTC
Reproduced with IBM JDK 8 (JDK 7 is too much of a pita to download).
Fixed on master:
  http://github.com/droolsjbpm/optaplanner/commit/9044f8595
Fixed on 6.3.x:
  http://github.com/droolsjbpm/optaplanner/commit/44e2385ba

Comment 3 Tibor Zimanyi 2015-11-11 16:36:51 UTC
Verified in 6.2.0.ER5. The test now pass.


Note You need to log in before you can comment on or make changes to this bug.