Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting "oracle.forms.jdapi.JdapiStatusException: _jni_create_object failed

jv43244204Feb 6 2008 — edited Feb 22 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2008
Added on Feb 6 2008
30 comments
3,039 views