Getting "oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed
Hi All,
Please help me in the following Scenario.
For the Oracle Forms, I am writing java program in JDAPI(Java Development API) to create a DataSourceColumns for the Base Block with out touch the form manually.
i wrote the following code to create DataSourceColumns for the Block...
JdapiIterator blkcolmap = block.getQueryDataSourceColumns();
/* block is an object which points to block of the form */
while(blkcolmap.hasNext())
{
DataSourceColumn colmap1 = (DataSourceColumn)blkcolmap.next();
try{
if(!blk1.getQueryDataSourceName().equals(""))
{ DataSourceColumn colmap2 = new DataSourceColumn(blk1,colmap1.getDSCName());
colmap2.setDscName(colmap1.getDscName());
colmap2.setDscLength(colmap1.getDscLength());
colmap2.setDscPrecision(colmap1.getDscPrecision());
colmap2.setDscScale(colmap1.getDscScale());
colmap2.setDscType(colmap1.getDscType());
}
}
catch(Exception e)
{
System.out.println(e);
}
}
When i run the above code... every time the exception raises and got the following error.
"oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed"
How can i solve this problem