Solved

ora-29532 error when calling java source

Posted on 2008-10-27
1
1,631 Views
Last Modified: 2013-12-18
Good Morning,
     we are having a problem running the call below:

+++++++++++++++++++++++++++++++++++
CREATE  OR REPLACE  
    AND COMPILE   JAVA SOURCE NAMED "CONCIERGE".""  RESOLVER ((*
    CONCIERGE)(* PUBLIC)) AS import java.util.Hashtable;

import javax.naming.*;

import javax.naming.directory.*;

public class doLookup{

    public  static int domname(String hostName) throws NamingException {

          Hashtable env = new Hashtable();

          env.put("java.naming.factory.initial",

                      "com.sun.jndi.dns.DnsContextFactory");

          DirContext ictx = new InitialDirContext (env );

          Attributes attrs = ictx.getAttributes (hostName, new String[] { "MX" });

          Attribute attr = attrs.get( "MX" );

          if (attr == null) return (0); else return (attr.size() );

    }

};

+++++++++++++++++++++++++++++++++++

we are getting the following error:
+++++++++++++++++++++++++++++++++++
Connecting to the database TPMCDB.

ORA-29532: Java call terminated by uncaught Java exception:

 javax.naming.NoInitialContextException: Cannot instantiate class:

 com.sun.jndi.dns.DnsContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.dns.DnsContextFactory]

ORA-06512: at "CONCIERGE.DOLOOKUP", line 1

ORA-06512: at line 7

Process exited.
+++++++++++++++++++++++++++++++++++++++++


Disconnecting from the database TPMCDB.
0
Comment
Question by:pmcdevelop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
barfi earned 500 total points
ID: 22814662
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question