Solved

ora-29532 error when calling java source

Posted on 2008-10-27
1
1,624 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
ID: 22814662
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.

Question has a verified solution.

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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
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…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

860 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