Pages

Search This Blog

Tuesday, November 13, 2018

Unable To Run Frmf2xml.Sh or JDAPI Without X Window Display

Issue Details:
Unable to generate xml file using form2xml option, using below command:
$/appl/apps/tech_st/10.1.2/bin/frmf2xml.sh WGCLIENTAPPR.fmb
Oracle Forms 10.1.2 Forms to XML Tool
Copyright(c) 2001, 2005, Oracle.  All rights reserved.

Processing module WGCLIENTAPPR.fmb

Error initialising the Forms Jdapi:
_jni_initialize: Failed to create new forms context

Solution:
Reference document - Oracle Doc ID 1312459.1

Set the DISPLAY environment variable so that it points to a valid X server
or
set the environment variable FORMS_API_TK_BYPASS to true.

I did as shown below and it created a xml file.

export FORMS_API_TK_BYPASS=true

$/appl/apps/tech_st/10.1.2/bin/frmf2xml.sh WGCLIENTAPPR.fmb

Oracle Forms 10.1.2 Forms to XML Tool
Copyright(c) 2001, 2005, Oracle.  All rights reserved.

Processing module WGCLIENTAPPR.fmb
WARNING: Item OBJ1 - all ListItemElements must have an Index, Name and Value.
WARNING: Item OBJ2 - all ListItemElements must have an Index, Name and Value.
WARNING: Item OBJ4 - all ListItemElements must have an Index, Name and Value.
WARNING: Item PROP - all ListItemElements must have an Index, Name and Value.
XML Module saved as WGCLIENTAPPR_fmb.xml