Questions? Feedback?powered byOlark live chat software

Standard Support

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.
 
Thanks!

Regards,
Mark Lee
Marco Meoni 08 November, 2018
Hi,
this is an old bug report.
I will pass the information on the the customer who requested the support.
Best,
.m
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!

Regards,
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.

Regards,
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.


Regards,
Marco Meoni 09 April, 2018
*Phenomenon:
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)

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