Ssl_accetp failed when java visual machine tries to load jar file

my web server uses openssl to implement https protocol .
my webpage contains a jar file.( "archive=droptext.jar")
JVM failed to load this jar from web server (using https protocol).
because Server failed to make a ssl connection after a ssl_accept failed error .(the function "SSL_accept (ssl)" failed)
if I use class file instead of jar file. JVM can successfully make a connection with server and load the class file.
I have no choice but to use jar file because the applet contains more than one class file.

>
Try putting the domain names in the Windows hosts files with their numeric addresses. That should bypass any DNS lookup. If you have central maintenance you can update all the hosts files when IP address change.
We have considered this option, but then we have the same problem described on c). IP maintentance. IPs change often and we cannot control it.
Malcolmmc, paul.miner, jschell,
I think the problem is Netbios resolution, rather than DNS one. The sites that figure on java.policy file, are not available in terms of Netbios (they are not LAN clients), so they are only visibles on DNS resolution. But Java still tries to resolve them with Netbios first, so I think there's a timeout on this resolution (not the DNS one) . This timeout causes the problem.
But, anyway .... Why is Java trying to resolve those names ??? In fact, Java will only have to match the site you are visiting with the site specified on java.policy (just a String comparison). Why does Java need to resolve (netbios & dns) the names on java.policy? I cannot figure out why.
Thank you all.
Marc

Similar Messages

  • Error when trying to load jar file (loadjava)

    I have been struggling with this issue for a few days. I read all the old threads and solutions online but none of them worked. I wrote some java stored procedures and have been trying to load the required jar files. The error message I keep getting is this:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
    I have tried to load them using Enterprise Manager Console and the following:
    call dbms_java.loadjava(' -force -resolve
    c:\javacog\cognosClient.jar', ' -resolver "((* PUBLIC) (*
    SYS) )"')
    Any ideas? We are using Oracle 10gr2, and trying to load Cognos 8.3 SDK jar files. According to Cognos, Java 1.4 is supported.
    Edited by: user10406501 on Oct 8, 2008 2:26 PM

    Sorry to respond to an old message, I was just looking for the solution for the totally different problem.
    Key word 'Cognos' got me here.
    I've menage to load Cognos SDK onto Oracle 10.2.0.2 on Windows XP.
    I've used simple loadjava script. After that it requires some additional GRANTs, and it works.
    If you still are looking for the solution for this problem, respond to this message, and I'll post the scripts.
    Thomas

  • Trying to load jar file dynamically

    I'm trying to load the jar file dynamically and making the new instance of an objet present in it.
    mu source code -
    import java.net.*;
    import java.util.*;
    import java.io.*;
    import java.lang.reflect.Method;
    class A
    /** The class loader to use for loading JMeter classes. */
    private static URLClassLoader loader;
         static {
              System.out.println("classpath : " + System.getProperty("java.class.path"));
    URL[] urls = new URL[1];
    StringBuffer classpath = new StringBuffer();
    File f = new File("E:\\try\\lib\\dom4j.jar");
              String s = f.getPath();
    try
                   urls[0] = new URL("file", "", s);
              catch (MalformedURLException e)
                   e.printStackTrace();
    System.setProperty(
    "java.class.path",
    System.getProperty("java.class.path") + System.getProperty("path.separator") + s);
    loader = new URLClassLoader(urls);
    * Prevent instantiation.
    private A()
    * The main program which actually runs JMeter.
    * @param args the command line arguments
    public static void main(String[] args) throws Exception
              System.out.println("java,class.path : " + System.getProperty("java.class.path"));
    Thread.currentThread().setContextClassLoader(loader);
              System.out.println("loader : " + loader);
              System.out.println("java.class.path : " + System.getProperty("java.class.path"));
              System.out.println("classpath : " + System.getenv("classpath"));
    try
    Class B = loader.loadClass("B");
    Object instance = B.newInstance();
    Method startup =
    B.getMethod("print");
    startup.invoke(instance);
    catch (Exception e)
    e.printStackTrace();
    import org.dom4j.*;
    import org.dom4j.dom.*;
    import java.lang.reflect.*;
    class B
         public void print () throws Exception
              //Element e = DocumentHelper.createElement("hello");     
              //e.addText("sachin");     
              //System.out.println(e.asXML());
    ClassLoader loader = Thread.currentThread().getContextClassLoader();
              System.out.println("loader : " + loader);
    Class c = loader.loadClass("org.dom4j.dom.DOMElement");
              //Class c = Class.forName("org.dom4j.dom.DOMElement");
              Constructor con = c.getConstructor(new String().getClass());
              DOMElement el = (DOMElement)con.newInstance(new String("asd"));
              //DOMElement dm = new DOMElement("ADD");
              System.out.println(el);
    the class org.dom4j.dom.DOMElement is present in the jar file .
    basically i'm getting an exception, given below--
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at A.main(A.java:59)
    Caused by: java.lang.NoClassDefFoundError: org/dom4j/dom/DOMElement
    at B.print(B.java:18)
    ... 5 more
    thanks alot..
    Regards,
    Sachin

    Alright let me tell you guys what I am doing. I am using reflection to load the class from a jar file. Then, I am accessing a method defined in the class.
    This piece of code will load and start the class;
    Class c = loadClass(name);
    System.out.println("name:" + name);
    System.out.println("c:" + c);
    Method m = c.getMethod("ServiceStarted", new Class[0]);
    d1 = c.newInstance();
    System.out.println("d1:" + d1);
    m.setAccessible(true);
    try {
    m.invoke(d1, new Object[0] );
    } catch (IllegalAccessException e) {
    This piece of code will invoke a preloaded class;
    String s = d1.getClass().getName();
    Class c = Class.forName(s);
    System.out.println(c);
    Object ret = null;
    Method m = c.getMethod("Hello", new Class[] { String.class });
    Object d = c.newInstance();
    m.setAccessible(true);
    try {
    ret = m.invoke(d, new Object[] { smsg });
    } catch (IllegalAccessException e) {
    and I have define d1 as;
    private static Object d1 = new Object();
    Any ideas why I am getting the exception.
    Thanks,
    MS

  • When my time machine tries to backup to my time capsule I get the following message"The backup disk image "/Volumes/Data/Kent's MacBook Pro.sparsebundle" is already in use. " What do I need to do to fix this?

    When my time machine tries to backup to my time capsule I get the following message"The backup disk image “/Volumes/Data/Kent’s MacBook Pro.sparsebundle” is already in use. " What do I need to do to fix this?

    Restart the Time Capsule.

  • Error - Java Virtual Machine cannot be loaded

    I have installed J2SE Runtime Environment 5.0 Update 10 and have been trying to run Hp Openview Service Desk 4.5, when I try to run it's client application I get the error
    "Unable to start the application -- the Java Virtual Machine cannot be loaded. Class no registered."
    I've tried reinstalling both as well as rebooting after each installation to no avail.. any help would be greatly appreciated.
    thanks

    Installing the Java Virtual Machine
    The Java Virtual Machine is a program that is necessary for running Java programs such as PhotoSite AlbumBuilder. To install the Microsoft Java Virtual Machine, download and run the appropriate installer below. After you install it, restart your computer.
    Windows 98/NT/ME/XP/2000 (SP1/SP2) users:
    http://support.photosite.com/msjavx86.exe
    Windows 2000 (SP3) users:
    http://support.photosite.com/Q300845.exe
    Windows 2000 users (Service Pack 4):
    Microsoft provides no installer for Windows 2K + SP4. You must either revert to an earlier Service Pack or upgrade to Windows XP instead.
    * NOTE: You must be logged into an "Administrator" account to install the Virtual Machine.

  • I have just got an iMac 21" and it continuously freezes when it goes to sleep and also when the internet is trying to load, i have tried three different browsers but it still does it (safari, google chrome and firefox), does anyone know what is wrong?

    I have just got an iMac 21" and it continuously freezes when it goes to sleep and also when the internet is trying to load, i have tried three different browsers but it still does it (safari, google chrome and firefox), does anyone know what is wrong?

    To fix the freezing when sleeping problem go to System Preferences>Energy Saver and set 'Computer Sleep' to 'Never'. It seems there is a problem for some with Bluetooth failing to wake after sleep. This fixes it 100% for me and many others on here, until Apple issue a software update to address it.
    Not sure what to suggest on the internet problem. I assume you are connected and receive and send emails OK.
    Edit: To try to troubleshoot the internet issue maybe try turning the Firewall off: System Preferences>Security & Privacy>Firewall tab.

  • Trying to load flash file in iWeb and when I enter info in the "html snippet" box a "missing plug-in" message comes up (although i have adobe flash player in, if that's the plug-in they're looking for). Anyone have any similar problems or solution. Thanks

    I'm trying to load flash file in iWeb and when i enter info in the "html snippet" box a "missing plug-in" message comes up (although i have Adobe Flash player installed, if that's the plug-in they're looking for). Anyone have any similar problems or solutions. Thanks

    when i publish my site and vew it the page on the web it just comes up with the file name w/ the ,swf and the "mising plug-in" message below. if i click on the file name it displays the flash file but gigantic (the entire height of the page).totally perplexed!
    anyway, here is the code.
    <object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0, 40,0”width=”244” height=”221” id=”ETrade_banner_Gumby_replay”><paramname=movie value=”ETrade_banner_Gumby_replay.swf”><param name=qualityvalue=high><param name=base value=”.”><embed src=”ETrade_banner_Gumby_replay.swf”quality=high width=”244” height=”221” name=”ETrade_banner_Gumby_replay”align=”” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”base=”.”></embed></object>

  • I'm using iweb 3.4 and trying to load audio files to my web page.  everything looks good in iweb but after publishing instead of having a control bar i have a "?".  does anyone know what to do?

    I'm using iweb 3.4 and trying to load audio files to my web page.  Everything looks good in iweb but after publishing instead of having a control bar i have a "?".  Does anyone know what to do?

    Where are you hosting the site, how are you uploading the files and what's the URL of your site so we can examine it first hand?
    Adding audio files by dragging onto the web page forces the viewer to have Quicktime installed on their computer in order to be able to listen to them.  Look at the audio player options on this page of Roddy's iWeb for Musicians site: Audio Players for your Music Website. 
    OT

  • "ASSERT FAILED" when java.exe ends

    What kind of error message is this:
    ASSERT FAILED:
    Executable: java.exe PID 218 Tid b04 Module kswdmcap.ax, 4 objects left active at line blablablablabla
    This happens when my java class ends from where I called a c++ method (that controls the windows media encoder sdk). It return without an error message from the c++ part, but when java.exe tries to end the class does this error message appear on the screen (Windows XP). Does anybody have a clue what that might be?

    I wouldn't say problem.
    Presumably the library you call does something. While doing that it creates "resources" of some sort. It could be a socket. Or a memory allocation. Or something else.
    But it expects you to tell it when you are done. Either with the library or with some specific aspect of the library. And you are not doing that before you exit.
    Keep in mind that I am only guessing. There could certainly be other explainations - like a bug in the library.

  • Hard drive fails when importing to iPhoto or copying old iPhoto files

    I am running a 2012 MBP (2.6 i7, 10GB ram). Just installed two new drives:
    - 250GB SSD that has only the OS and apps.
    - 1TB HGST drive formatted GUID Mac OS Extended Journaled (installed in the cdrw drive space-I had a previous drive working there with no issue)
    My iPhoto library contains over 57K+ photos and is 348GB in size.
    I copied about 500GB of data to the HGST drive and then started to copy my iPhoto library to the drive from my Time Machine folder (I could not figure out how to get Time Machine to restore just my photos to the HGST drive). After awhile I got an error saying the drive had unmounted and to not do that in the future. The first time I was able to remount it and try again. The second time the drive came unreadable and would not repair. So I reformatted and started over. After another failed attempt, I decided to try to copy the files form Time Machine to a different, external drive. That worked fine.
    Then, I attempted to copy the iPhoto library from that external drive to the HGST drive and it failed again.
    Finally I decided to just take all of the Originals out of the iPhoto file and put them in a different directory. Then I created a new library on the newly reformatted HGST drive. I then attempted to import the photos to the new iPhoto library. It seemed to be going fine. I left for 40 minutes, returned and the drive was again dismounted and not recognized at all in Disk Utility )I think it will reappear once I restart.
    I am able to get the iPhoto library to come up on the old external drive. It wants to rebuild the thumbnails when I start it. It does that, but not all of the thumbnails show up. I ran the repair utility and rebuilt the database. I have not tried the last rebuild option on it yet. I am hoping someone has a clue as to what might be the issue (my best guess is a/some bad images that are toasting the library. But before I spend countless more hours searching for bad images by importing in batches (which could turn into days of trial and error if it keeps munching my drive.
    The part that gets me is that I can import my music (iTunes and Logic files) of 400GB or so without a hitch. I am concerned that repeated crashing of the drive might cause errors (I am not that hardware savvy to know...)
    Any help is GREATLY appreciated! Thank you.

    I agree Terrance. However, I was able to copy other large batches of other files (my music for example) without any issues. The issue only showed up when copying iPhoto's library and/or the photos themselves. This was repeated 3 times; I copied all my other files to the drive then it unmounted on iPhoto. And, as I said, again when I started with a fresh reformat and just iPhoto. That does not seem like hardware to me if it is only happening with one set of files.
    I have managed to get the iPhoto library to work on my other external drive. It wanted a rebuild twice and a thumbnail rebuild once. I am now attempting to copy it over to the new HGST internal drive.
    Anyone have a suggestion for alternatives to iPhoto? I have aperture, maybe I will try that. But from what I understand, it just shares the same library as iPhoto.

  • DBCA fails with java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so Error in Oracle 11g

    Hi,
    After ORACLE 11G software installation i tried to change the ORACLE_HOME directory.
    OS : RHEL 4.5
    DB : 11.2.0
    Previous Home Location :
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/prod/tech_st/product/11.2.0/db_1
    Current Home Loc:
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/db/tech_st/product/11.2.0/db_1
    When i am trying the DBCA command i am getting the below error:
    [oracle@localhost ~]$ dbca
    java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
            at java.lang.Runtime.load0(Runtime.java:769)
            at java.lang.System.load(System.java:968)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:387)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:405)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    [oracle@localhost ~]$
    I tried all possible ways with google help but still i am facing the same issue.Kindly check and suggest to solve the issue.
    Thanks in advance.
    Vijay.

    Hi all,
    I give you the clear details about the issue what i am currently facing,
    1. I installed the 11g (11.2.0) database alone(No EBS) in my local vmware machine.
    2. Created my ORACLE_HOME under /u01/oracle/prod/tech_st/product/11.2.0/db_1 directory after that i tried to change my home location from /u01/oracle/prod/tech_st/product/11.2.0/db_1 location to /u01/oracle/db/tech_st/product/11.2.0/db_1 location, like created /u01/oracle/db directory and moved files from /u01/oracle/prod location.
    3. I changed my bash_profile and exported home with the modified location also deregistered an old home and registered the new home.
    4. When i am issuing echo $ORACLE_HOME it is showing the current home location and ORACLE_SID is same what i created before.
    5. But when i am trying to create one more db using DBCA utility it is through the above error.
    Please suggest me is it possible to change the location after db creation or any extra steps i have to do for this issue.
    Thanks.

  • Java virtual machine error: in running bat file!!!

    Hi experts!
    I have encounterd a problem . Could not figure out why I am having this. I hope at least I will get a clue /suggestion from any of you.
    I am creating a bat file from my java Application. Then I double click on the newly created bat file to run that. It gives me Java virtual machine launcher error:" could not find the main class, Progam will exit". I have a VB script, that also create the same bat file. but I dont have problem running that file manually. Even if I create the bat file manually(by typing), it ran well. It shows the error mesage only when I create bat file from my java Application. Instead of running the bat file manually, I tried to run it through my java application too(by Runtime.exec() ). But it shows me the same error msg.
    Why am I getting java virtual machine launcher error when I tried to run my bat file that is created from java Application? ANy clue? Please suggest me about how to resolve this.
    Regards

    Probably because (despite what you say) the contents of the bat file created by your Java application aren't the same as the contents of those other bat files.Yes contents are same. I create the bat file from my java Application. then I am trying to run that bat file manually. It gives me the specified error. But if I create the bat file manually (with the same content) and then run it manually. It works well.
    Any clue/suggestion

  • Some prolems when trying to create Jar file...

    Hi,
    1st sorry i post this in the wrong box, i posted it in the Jar box but no body replied and I really need to get this done soon...
    I've got a list of *.class and a folder images and Start is the class I want to be the entry point
    I tried:
    1. jar cfm MyApp.jar Manifest.txt *.class images
    In Manifest.txt has a line: Main-Class: Start
    the jar file is created, but when I tried to run (both double click and command line) this gives me an error "Failed to load Main-Class manifest attribute from..."
    2. jar cmf MyApp.jar Manifest.txt *.class images
    this has error while making the jar file, it gives "java.io.FileNotFoundException: MyApp.jar (The system cannot find the file specified)...
    3. I tried the 1st method, then unzip the jar file, edit the manifest.mf file by adding a line Main-Class: Start. Then zip it, rename it to MyApp.jar
    And a weird thing happens... When I place the jar file IN THE SAME FOLDER with other class files, it runs fine. But when I move it to A DIFFERENT FOLDER with other class files, it runs with dimension 0x0, i.e. only the title bar is displayed...
    I've tried those method and none of them work... can some one tell me what I have done wrong?
    Thanks...

    This is the class used to get the ImageIcon for the JLabel
    public class CardGUI extends JPanel {
         private ImageIcon tmp;
         private final int CARDWIDTH = 50; //Card width is 50
         //return the Card GUI
         public ImageIcon getCardGUI (int kind, char suit) {
              //This String is used to locate the file (*.png)
              //of each Card
              //E.g. Card 2 Club will has file "images/cards/2c.png"
              String imgStr = "images/cards/" + kind + suit + ".png";
              tmp = new ImageIcon(imgStr);
              //If the card is not found, return the back of the Card
              if (tmp.getIconWidth()!= CARDWIDTH) {
                   tmp = new ImageIcon("images/cards/back.png");
              return tmp;
    }Then the JLabel used this to set the image, where humanCard1 is an instance of JLabel, and cardLabel is instance of the above class.
    humanCard1.setIcon(cardLabel.getCardGUI(card10.getKind(), card10.getSuit()));
    > new ImageIcon("images/mainbackground.jpg")Wrong. Because there are any more no files in a jar archive. Only file is the jar file itself, and nothing else.
    What do u mean? When I create the jar file, i include the images folder inside the jar file already?
    I've been using the Swing forum and that's how I know the 2 methods above for setting image for JLabel and JPanel... So what should i be searching for in the Swing forum now?

  • Getting ORA-22805 when trying to load XML file using SQLLDR

    I'm trying to learn the basics of XML since we'll be getting XML files in the near future. I'm using one of the sample schemas that comes with XMLSPY. I loaded this schema into an 11g Oracle DB using XMLSPY:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XML Spy v4.0 NT beta 1 build Jun 13 2001 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.altova.com/IPO" targetNamespace="http://www.altova.com/IPO" elementFormDefault="unqualified" attributeFormDefault="unqualified">
         <annotation>
              <documentation>
    International Purchase order schema for Example.com
    Copyright 2000 Example.com. All rights reserved.
    </documentation>
         </annotation>
         <!-- include address constructs -->
         <include schemaLocation="address.xsd"/>
         <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
         <element name="comment" type="string"/>
         <complexType name="PurchaseOrderType">
              <sequence>
                   <element name="shipTo" type="ipo:Address"/>
                   <element name="billTo" type="ipo:Address"/>
                   <element ref="ipo:comment" minOccurs="0"/>
                   <element name="Items" type="ipo:Items"/>
              </sequence>
              <attribute name="orderDate" type="date"/>
         </complexType>
         <complexType name="Items">
              <sequence>
                   <element name="item" minOccurs="0" maxOccurs="unbounded">
                        <complexType>
                             <sequence>
                                  <element name="productName" type="string"/>
                                  <element name="quantity">
                                       <simpleType>
                                            <restriction base="positiveInteger">
                                                 <maxExclusive value="100"/>
                                            </restriction>
                                       </simpleType>
                                  </element>
                                  <element name="price" type="decimal"/>
                                  <element ref="ipo:comment" minOccurs="0"/>
                                  <element name="shipDate" type="date" minOccurs="0"/>
                             </sequence>
                             <attribute name="partNum" type="ipo:Sku"/>
                        </complexType>
                   </element>
              </sequence>
         </complexType>
         <simpleType name="Sku">
              <restriction base="string">
                   <pattern value="\d{3}-[A-Z]{2}"/>
              </restriction>
         </simpleType>
    </schema>
    Then I created an XMLType table:
    CREATE TABLE purchaseOrder OF XMLType
    XMLSCHEMA "ipo.xsd" ELEMENT "purchaseOrder"
    I'm trying to load the sample XML file ipo.xml into purchaseOrder using SQLLDR. This is ipo.xml:
    <?xml version="1.0"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Mr. Nobody (Altova GmbH) -->
    <ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ipo="http://www.altova.com/IPO" orderDate="1999-12-01" xsi:schemaLocation="http://www.altova.com/IPO
    ipo.xsd">
         <shipTo export-code="1" xsi:type="ipo:EU-Address">
              <ipo:name>Helen Zoe</ipo:name>
              <ipo:street>47 Eden Street</ipo:street>
              <ipo:city>Cambridge</ipo:city>
              <ipo:postcode>126</ipo:postcode>
         </shipTo>
         <billTo xsi:type="ipo:US-Address">
              <ipo:name>Robert Smith</ipo:name>
              <ipo:street>8 Oak Avenue</ipo:street>
              <ipo:city>Old Town</ipo:city>
              <ipo:state>AK</ipo:state>
              <ipo:zip>95819</ipo:zip>
         </billTo>
         <Items>
              <item partNum="833-AA">
                   <productName>Lapis necklace</productName>
                   <quantity>2</quantity>
                   <price>99.95</price>
                   <ipo:comment>Need this for the holidays!</ipo:comment>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="748-OT">
                   <productName>Diamond heart</productName>
                   <quantity>1</quantity>
                   <price>248.90</price>
                   <ipo:comment>Valentine's day packaging.</ipo:comment>
                   <shipDate>2000-02-14</shipDate>
              </item>
              <item partNum="783-KL">
                   <productName>Uncut diamond</productName>
                   <quantity>7</quantity>
                   <price>79.90</price>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="238-KK">
                   <productName>Amber ring</productName>
                   <quantity>3</quantity>
                   <price>89.90</price>
                   <ipo:comment>With no inclusions, please.</ipo:comment>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="229-OB">
                   <productName>Pearl necklace</productName>
                   <quantity>1</quantity>
                   <price>4879.00</price>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="128-UL">
                   <productName>Jade earring</productName>
                   <quantity>5</quantity>
                   <price>179.90</price>
                   <shipDate>2000-02-14</shipDate>
              </item>
         </Items>
    </ipo:purchaseOrder>
    This is what's in the control file:
    LOAD DATA
    INFILE *
    INTO TABLE purchaseOrder TRUNCATE
    xmltype(xmldata)
    FIELDS
    xmldata LOBFILE (CONSTANT ipo.xml)
    BEGINDATA
    0
    The load fails with:
    Record 1: Rejected - Error on table PURCHASEORDER.
    ORA-22805: cannot insert NULL object into object tables or nested tables
    Another question I have is, how do we know how many records (0's) to specify in the control file? In this case there's only one but when real files are used we won't know how many are in the file.
    Thanks for your help!

    The concept was "Don't use SQL*Loader to parse XML".
    You can use SQL*Loader to load an entire XML document into the DB. That is fine. You can do the same via BFILENAME to read in files from disk as well.
    If you want to parse XML, do that from within Oracle via PL/SQL and/or SQL. The solution depends upon your version of Oracle and what is good enough for you in terms of performance.
    So the basics are
    a) How am I getting the information?
    b) How am I getting in into Oracle?
    c) How do I want to parse it?
    As I see the schema, it only allows for one ipo:purchaseOrder node in the document, since that is the root node. If you have multiple in the incoming file, you no longer have valid XML, both per the schema and because you have no single root node. You have an XML fragment, which must be treated different.
    Just trying to understand the question since I now realize it does not agree with what the schema in your initial example shows.

  • Java Applet fails loading JAR files

    I'm using the OC4J setup with my Oracle forms (10g) install, this was working but no longer.
    I get the message below when running the test.fmx from the Oracle Forms Services test page for each of the JAR files attempting to load.
    I comment out the ARCHIVE statement but it still fails with
    'java.lang.ClassNotFoundException:oracle.forms.engine.Main' on the applet window.
    =====================
    java.io.IOException: Connection failure with 504
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.isUpToDate(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.loadFromCache(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WARNING: error reading http://nzmdgrenfell01.asiapacific.hpqcorp.net:8889/forms/java/frmwebutil.jar from JAR cache.
    Downloading http://nzmdgrenfell01.asiapacific.hpqcorp.net:8889/forms/java/frmwebutil.jar to JAR cache
    java.io.IOException: Connection failure with 504
    Any suggestions?
    Regards......Derek

    I found this Metalink that solved my problem.
    Note:171159.1

Maybe you are looking for

  • Post Goods Issue for Outbound delivery return

    Hi, I'm trying to Post a Goods Issue for a returned outbound delivery but  I cannot find a function module to do this, I tried using SD_DELIVERY_UPDATE_PICKING but its creating the material against the outbound delivery with status archived, which me

  • How to get the purchase order's delivery completed date in the dictionary

    Hi consutant : In me23n transaction code ,I set the delivery completed indicator mannul . I can see the state of delivery completeed by click environment->item changes menu . But I don't find the date that I  set the state of delivery completed  in t

  • ABAP to asXML to XSLT to XML???

    Hi, I have a few questions concerning <b>Call Transformation</b> hopefully someone has done this before. I am attempting to convert an ABAP internal table to a particular XML layout for consumption by an external application.  There seem to be a few

  • I need a script to reduce the size of the Fra which has used 34 gb in space

    I need an rman script to reduce the size of the Fra: SQL> select * from v$flash_recovery_area_usage; FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES CONTROL FILE 0 0 0 REDO LOG 0 0 0 ARCHIVED LOG 0 0 0 BACKUP PIECE 0 0 0 IMAGE

  • PO Release procedure based on Cost Centers

    Currently a have release procedure based on purchasing groups created as departments. Now i have to create release  procedure based on cost centers. Is it possible to bind cost centers with purchasing groups, in order to use the release procedure tha