What does XMLType.isFragment () throw SQLException with no details?

package com.test.db.xml;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import oracle.jdbc.OracleResultSet;
import oracle.xdb.XMLType;
import oracle.xml.sql.query.OracleXMLQuery;
public class TestXMLTypeMethods {
     // This test performs a simple insert into a table defined as
     // Name Type
     // ID NUMBER
     // DESCR VARCHAR2(32)
     // XMLDOC SYS.XMLTYPE
     public static void main(String[] args) {
          String sConn = "jdbc:oracle:thin:@saturn:1522:ssidev";
          String sUser = "scott";
          String sPass = "tiger";
          Connection          conn = null;
          Statement          stmt = null;
          ResultSet          rs = null;
          OracleResultSet orset = null;
          OracleXMLQuery     oraQry = null;
          try {
               DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
               conn = DriverManager.getConnection(sConn, sUser, sPass);
               stmt = conn.createStatement();
               rs = stmt.executeQuery("select a.xmldoc from robxml1 a ");
               orset = (OracleResultSet) rs;
               while (orset.next()) {
                    XMLType tXML = XMLType.createXML(orset.getOPAQUE(1));
                    System.out.println (" *** SQL Type Name: " + tXML.getSQLTypeName());
                    try {
                         System.out.println (" *** isFragment() : " + tXML.isFragment());
                    } catch (SQLException e) {
                         while (e != null) {
                              System.err.println (" " + e.getSQLState() + " " + e.getErrorCode() + " " + e.getMessage());
                              e.printStackTrace();
                              e = e.getNextException();
                    } catch (Exception e) {
                         e.printStackTrace();
          } catch (Exception e) {
               e.printStackTrace();
          } finally {
               try {
                    if (orset != null) {
                         orset.close();
               } catch (Exception e) { /* ignore */
               try {
                    rs.close();
               } catch (Exception e) { /* ignore */
               try {
                    stmt.close();
               } catch (Exception e) { /* ignore */
               try {
                    conn.close();
               } catch (Exception e) { /* ignore */
          System.out.println("all done");

hello,
What is the error message. Atleast what is the output of
System.out.println (" *** SQL Type Name: " + tXML.getSQLTypeName());
Regards.

Similar Messages

  • I replaced my iPhone with a Galaxy 5 and am not receiving all of my text messages. The sales person told me to remove my phone number from iTunes to stop this from happening. Is that true? What does iTunes have to do with text messages?

    I replaced my iPhone with a Samsung Galaxy5 and I am not receiving all of my text messages now. The rep at the store told me to go to iTunes and take my phone # off of the account and that would fix the problem. Is that true? What does iTunes have to do with text messages anyway?

    You need to remove your phone number from the iMessage system.
    Read here: http://support.apple.com/kb/ts5185
    ~Lyssa

  • What does a blinking file folder with a question mark indicate?

    What does a blinking file folder with a question mark indicate?  I cannot get past it or do anything with the unit.

    glamiera wrote:
    What does a blinking file folder with a question mark indicate?
    That's the firmware telling you it can't find the operating system it's been assigned to boot from.
    It could be because it forgot somehow, or the operating system is no longer there or readable or the hardware holding the operating system has failed.
    Hold the power button to force a hardware shutdown, then reboot holding the option/alt key held down on the wired or built in keyboard, icons will hopefully load on the screen and if OS X appears, click the arrow to boot from it.
    Once in OS X, head to System Preferences > Startup Disk and select your boot drive so it can remind the firmware.
    If there is no OS X boot volume, just recovery or Bootcamp (if Windows installed) then you need to perform more work.
    Create a data recovery/undelete external boot drive
    To get a copy of your files off the drive.
    Step by Step to fix your Mac
    To fix your machine and find out (hardware test) if it's a hardware issue of some sort.

  • What does icloud have to do with ID DAV has stopped working?

    what does icloud have to do with always getting this message at start up APPLE IE DAV has stopped working?

    Hi,
    Have you thought about filter on both session id and query counter? or it's also possible for you to go to transaction st03n BW profile to get the times for query execution in a specified time range.
    Best regards,
    Matt.

  • What does a flashing folder icon with a "?" inside mean?

    What does a flashing folder icon with a "?" inside mean?

    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark or globe appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by one or more of these:
    a. Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    b. Boot drive's directory has been corrupted - Repair with Disk Utility.
    c. Critical system files are damaged or deleted - Reinstall OS X.
    d. The disk drive is physically non-functional - Replace the hard drive.
    Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
    Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • What does JDBC has to do with Jdeveloper ?

    I have to demonstrate the use of JDBC for my presentation in the next few days and I have to use Jdeveloper for the presentation. Unfortunately, I'm still confuse about what is the relationship between JDBC and Jdeveloper? What part of Jdeveloper that I should use for the demonstration.
    Right now, I basically understand pretty much how JDBC and Jdeveloper work seperately but I still don't know how can I integrate those two together.
    Please give me some ideas because I really need serious help here!!!!
    Thanks

    JDeveloper is a graphical Java application. JDBC is an API that documents a standard framework for dealing with tabular and relational data. So "what does JDBC has to do with Jdeveloper ?" - Nothing.
    http://developer.java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html

  • What does the symbol a bell with a slash thru it mean

    What does the symbol a bell with a slash thru it mean?

    You have silenced the ringer. Check the little switch near the external volume controls. Orange showing indicates silent mode.

  • What does mean the itune icon with a cable in the iphone screen?

    what does mean the itune icon with a cable in the iphone screen?

    I'm having exact same problem. I was installing the latest ios7 update (to fix some Facetime bug that I don't have) and this happened. I noticed in some other posts on similar problem to hold down the sleep and on buttons at the same time and tried that. No change. Then I plugged it into my laptop and it said it was in recovery mode. I'm now in the process of restoring the software.
    I really hope I haven't lost all my contacts, notes, and photos.

  • My cat likes to lick and chew on iPhone charging cables. What does Apple coat their cables with?

    My cat likes to lick and chew on iPhone charging cables. Only Apple cables, she is not attracted to any others in our home. Has anyone else had this happen.
    The Kindle and iPhone cables are right next to each other. She only likes the Apple cable leaving the Kindle cable untouched.
    What does Apple coat their cables with?
    Thanks in advance

    I'll go ahead and suggest it. My cat has chewed (and destroyed) the following:
    --two sets of my brother's Apple ear buds
    --two sets of my boyfriend's Apple ear buds
    --three sets of my own Apple ear buds
    -- one Macbook power cord ($80+ to replace)
    I went into the Apple store Friday to buy a new power cord. I said to the genius helping me, "I didn't even have that cord for a year.  Ye know what happened to it?"
    Genius said, "Your cat ate it?"
    They're aware of the issue!
    WTH secret ingredient is Apple using?  My story is no different than the others: cat leaves all other cords alone; seeks out and destroys Apple cords.
    The only thing I know for sure is that Apple makes money on cord replacements.

  • What does a blinking folder icon with a question mark mean when turning on computer?

    When I turn on my Mac Book Pro all I get is a blinking forder icon with a question mark in it in the middle of the screen. What does this mean and how can I fix it?

    Your Mac is not able to find a system folder to boot from so it displays the question mark.
    Allan

  • What does the error - file open with write privilege mean?

    When exporting an iMovie, I received the error message, file open with write privilege - what does that mean and what causes it?

    Hi
    Error -49
    Error -49  opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    Yours Bengt W

  • What does a little spinning disc with different colors mean

    A little spinning disc with different colors will come up & the computer freezes up. To get rid of it I've had to restart computer at times. What does that mean?

    Hi ..
    It means your Mac is trying to process data.
    Click the Apple  top left in your screen. From the drop down menu click: About This Mac
    Which version do you see?
    Troubleshooting advice can depend on that information.

  • What does a small blue square with a spinner inside on my Mac book mean

    MMy Mac book won't start. Only  a small blue square with a spinner appears. What does that mean?

    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • What does the display look like with 'My Movies'?

    I'm thinking about buying an Apple TV, not to rent movies but to stream all of my own videos to a seperate tv. I'm already doing this with my Xbox 360 with H.264 video but before people watch it they have no idea what the video is about because apart from the brief information i can give in the title, their isn't any picture, comments etc. So i was wondering if the Apple TV has any of these features for the 'My Movies' section:
    -Cover Flow/Browse by Cover
    -Playlists (eg. Recently Added, My Top Rated)
    -Title
    -Year
    -Rating
    -Genre
    -Comments
    -Actors
    -Anything else
    Also i was wondering if you can use the search feature for 'My Movies' rather than just rented movies?
    Any one who can give me answers i would be so grateful
    Thankyou
    Message was edited by: Jonaldinho
    Message was edited by: Jonaldinho

    This shows the 2.0+ top level interface change and how Store content is shown.
    http://gizmodo.com/355843/apple-tv-20-review2
    Currently you can't use search for My Movies or My whatever, it only works in the Store. Might change, might not. Apple's business model seems to be pushing towards rentals/purchases whereas originally it was a media extender for your own or Apple purchased content before all rentals became available earlier this year in the US and last week in the UK.
    They have added genres for My Movies so if you tag a movie as horror, sci-fi, drama, family holidays, westerns etc it should show as a genre.
    On Mac there's a great tagger called MetaX (might be worth a look as there's a video there showing some of teh tags that can be applied) - I would not be surprised if there's something similar on the PC.
    http://www.kerstetter.net/page53/page54/page54.html
    One last thing, although you've encoded your video as h264 and it plays on Xbox it will not necessarily play on AppleTV unless if fits the specs for playback found here:
    http://www.apple.com/uk/appletv/specs.html
    Not trying to put you off, but that could be an issue for you.
    In the same way some things I've encoded for AppleTV don't work on my PS3.
    AC
    Message was edited by: Alley_Cat

  • What does scale mean in PARALLEL_PROJECTION with SCALE_EXPLICIT policy?

    Does anyone know how the parallel projection view is scaled?
    I'm using:
    view.setScreenScalePolicy(View.SCALE_EXPLICIT); / /specifies that the scale is taken directly from the user-provided screenScale attribute
    First of all, I tried two ways of changing the scale:
    1. Scaling in the view
    view.setScreenScale(scale); // Sets the screen scale value for this view. This is used when the screen scale policy is SCALE_EXPLICIT. The default value is 1.0 (i.e., unscaled).
    2. Scaling in the transform matrix
    Transform3d t=new Transform3d();
    t.lookAt(new Point3d(eye),new Point3d(center),new Vector3d(up));
    t.setScale(scale);
    objTrans.setTransform(t); // Sets the scale component of the current transform; any existing scale is first factored out of the existing transform before the new scale is applied.
    Note: t.getScale() returns 1.0 by default, until a scale is applied.
    Both seem to have the same result, and I'm not sure which is better.
    Now what's weird is to figure out what the "default" scale is?
    I made a cube model, centered on the origin, resized it until it fix well on the screen without any scale applied. I found a 0.2 length cube accomplished this. Then I measured the pixel size of the window and cube and I found this relation:
    Cube_size (in pixels) = window width (in pixels) *0.55; // Measured factor varied only slightly from 0.5414 to 0.5544 depending on window size and aspect ratio.
    I found the window height had no effect on the pixel size of the cube.
    My 0.2 length cube filled 55% of the width, so a 0.36 length cube fills the full window width. I verified this.
    This means if I want to assign the scale by the number of physical units wide I want visible, I need to include a 0.36 correction factor to the scale:
    view.setScreenScale(0.36/width);
    This works - my 0.2 length cube fills the full width when width=0.2. I verified this works for other sized models too.
    Although this works, I really don't like mysteries, and I'm becoming convinced other problems (properly setting the FrontClipDistance and BackClipDistance for a given model and view) are related.
    I really HATE that these transforms don't seem to be written out anywhere, in any documentation I can find.
    Has anyone else worked with the SCALE_EXPLICIT policy in PARALLEL_PROJECTION view?
    Any help is appreciated!
    Tom Ruen

    I'm trying to scale a 3d representation of the human body so that it always remains the same distance from a virtual camera regardless of resolution. I need it to be the same virtual distance from the virtual camera as a subject would be from a real 35mm camera.
    I tried the following code:
    GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
              Canvas3D canvas = new Canvas3D(config);
              SimpleUniverse universe = new SimpleUniverse(canvas);
              canvas.getView().setScreenScalePolicy(View.SCALE_SCREEN_SIZE);
              System.out.println(canvas.getScreen3D().getPhysicalScreenWidth());
              System.out.println(canvas.getScreen3D().getPhysicalScreenHeight());
              canvas.getScreen3D().setPhysicalScreenWidth(0.005);
              canvas.getScreen3D().setPhysicalScreenHeight(0.005*0.8);And it does seem to "zoom out" ever so slightly (using 0.005). However, it appears that the boundingsphere is such that the objects begin to be not drawn as one "shrinks the scene", thus effectively zooming out. Scaling the scene up is fine, but i need to scale it down - ie shrink it.
    The reason I am attempting to use this method rather than applying a transform on the viewingPlatform is because I purposefully did not want to have to adjust the bounding sphere.
    Can you give me any help on why scaling up works really well with most values >actual screen size, but scaling down is very iffy, and only shrinks the scene with values MUCH less than the actual screen value. Even then, i start to get holes where polygons arent drawn anymore.
    Thanks

Maybe you are looking for

  • Can't open NEF file (Nikon Raw)

    I don't have a problem opening NEF files in CS3 on my desktop Vista PC (32bit), but my new laptop with Windows 7 (64bit) won't open them, do I need to install a plugin or an update?  If so, what?  I searched the forum and I think that's what I need t

  • Looping in XML publisher

    For this problem I went through following links Re: FOR loop in XML Publisher Re: How do you iterate through a string? Re: How can print blank rows for XML output report.. Based on the information I created one template as follow <?for-each:xdoxslt:f

  • Can't Replace Pages (via drag and drop in Pages panel) in Acrobat 9 Pro

    I'm running OS X 10.5.8, Acrobat Pro 9.1.3, PPC G5 PowerMac. I'll have two PDFs open and I'll want to replace certain pages from document A with certain pages from document B.  Rather than using the Replace Pages command from the Document menu, I pre

  • Auditing in oracle 10g database and oracle 10g application server

    Dear friends, We have oracle 10g application server and oracle 10g database server in place.My criteria is to audit users connected using oracle application user credentials to the database. Can you please tell me how can i do it. Thanks & regards,

  • Seeburger + SAP XI

    Hi chirag With your answers I learned some thing about seeburger adapters , will expect any projects....on this combination. We are expecting internal training thats what? any prerequisites before moving to SEEBURGER Thanks Sushma .