Solved

ora-29532 error when calling java source

Posted on 2008-10-27
1
1,616 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
1 Comment
 
LVL 2

Accepted Solution

by:
barfi earned 500 total points
Comment Utility
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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…
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
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now