Questions? Feedback?powered byOlark live chat software
Bug 983

Unable to instantiate JavaVM from 64bit application 08 November, 2018

Marco Meoni
09 April, 2018
Product: PowerBuilder Category: PowerScript
Version: 2017 R2 Publishing: Public
Status: Transferring Priority: P3
Classification: Enhancement Resolution:
Mark Lee 08 November, 2018
Hi Marco,

Thanks for your quick update!
We are looking forward to your customer providing the corresponding sample case.

Mark Lee
Marco Meoni 08 November, 2018
this is an old bug report.
I will pass the information on the the customer who requested the support.
Mark Lee 08 November, 2018
Hi Marco,

We recently tested it against the latest PB 2017 R3 and are able to instantiate JavaVM from 64bit applications.
So could you please provide us a complete PB sample(PBL) to reproduce this issue for further analysis?

Thanks in advance!

Mark Lee
Mark Lee 10 April, 2018
Hi Marco,
Please refer to the email we sent you yesterday for reference.
Supporting 64-bit applications was added since PB 12.6, however instantiating JavaVM from 64bit applications is not supported in 64-bit application even in PB 12.6.
We haven’t enhanced this in PB 2017, so currently it is not supported in PB 2017 either.

Thanks for reporting this problem and for your valuable suggestion. We'll transfer it as a new feature to our product team for consideration. 
Meanwhile I will proceed to lower the priority of this ticket to P3 since this is not considered a bug and it does not impact production as such.   

Thanks for your understanding.

Mark Lee
Govinda Lopez 09 April, 2018
Hi Marco,

I will work on analyzing/reproducing your case. I will keep you posted of the results here.

Marco Meoni 09 April, 2018
createJavaVM fails with -1 return code when the PB application is compiled in 64bit mode.

*Reproduce Steps:
g_jvm = CREATE JavaVM
if Not g_jvm.isjavavmloaded() then g_jvm.createJavaVM(is_classpath, true)

- jvm.dll and entire 64bit JRE is taken from 
- pbejbclient170.jar is only available under Shared\PowerBuilder (there is no equivalent under x64, EJBlocator.class inside pbejbclient170.jar is 32bit)
Windows 7 
Database Type:
Database Version: