Solved

ora-29532 error when calling java source

Posted on 2008-10-27
1
1,622 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…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

776 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