Reg jtreg failure to get JDK properties

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue Feb 26 00:23:32 UTC 2019


Shashi,

jtreg-dev is not the right place for this. The problem is somehow in the 
way the hotspot code is configured to use jtreg.

Forwarded to quallity-discuss at ojn.

-- Jon


On 02/21/2019 10:00 PM, Shashidhara Veerabhadraiah wrote:
> Hi All, I believe am in the right place to post a jtreg problem that I am facing while running jtreg. If not please direct me.
>
>   
>
> I get the following the failure when tried to run the jtreg-4.2-b14 with the test jdk set to the latest of the jdk 13 builds:
>
> Exception while calling user-specified class: requires.VMProps
>
> java.lang.UnsatisfiedLinkError: sun.hotspot.WhiteBox.aotLibrariesCount()I
>
>          at sun.hotspot.WhiteBox.aotLibrariesCount(Native Method)
>
>          at requires.VMProps.vmAotEnabled(VMProps.java:344)
>
>          at requires.VMProps.call(VMProps.java:89)
>
>          at requires.VMProps.call(VMProps.java:55)
>
>          at com.sun.javatest.regtest.agent.GetJDKProperties.run(GetJDKProperties.java:80)
>
>          at com.sun.javatest.regtest.agent.GetJDKProperties.main(GetJDKProperties.java:54)
>
>   
>
> And if I tried to use the jdk 11 build, I get the following error:
>
> Exception while calling user-specified class: requires.VMProps
>
> java.lang.UnsatisfiedLinkError: sun.hotspot.WhiteBox.isJFRIncludedInVmBuild()Z
>
>          at sun.hotspot.WhiteBox.isJFRIncludedInVmBuild(Native Method)
>
>          at requires.VMProps.vmHasJFR(VMProps.java:301)
>
>          at requires.VMProps.call(VMProps.java:84)
>
>          at requires.VMProps.call(VMProps.java:55)
>
>          at com.sun.javatest.regtest.agent.GetJDKProperties.run(GetJDKProperties.java:80)
>
>          at com.sun.javatest.regtest.agent.GetJDKProperties.main(GetJDKProperties.java:54)
>
> Error: failed to get JDK properties for C:\JDK\jdk-11\bin\java ; exit code 1
>
>   
>
> I am not sure why I end up getting  this error when it used to work earlier. I believe am missing configuration settings to be set. Please direct me to a solution for this problem. And it is really annoying as I can't seem to get any further help from the way the error is thrown!!
>
>   
>
> Thanks and regards,
>
> Shashi



More information about the quality-discuss mailing list