XMLPARSE Oddities

Server version: *10.2.0.1.0*
I am seeing a strange error when trying to encode CLOB output to xml using XMLPARSE... The issue is that rows that have a NULL in the CLOB column end up pulling in data from the last row that wasn't NULL.
-- Create a tmp table
CREATE GLOBAL TEMPORARY TABLE gtt_Test (
ID NUMBER NOT NULL,
Val CLOB NULL
) ON COMMIT PRESERVE ROWS;
-- Insert a few rows
INSERT INTO gtt_Test VALUES (1, TO_CLOB('Row 1 has a value'));
INSERT INTO gtt_Test VALUES (2, NULL);
INSERT INTO gtt_Test VALUES (3, NULL);
INSERT INTO gtt_Test VALUES (4, TO_CLOB('Row 4 has a value'));
-- Build XML from the data
SELECT
-- We can use XMLCDATA here, because the type can be converted to a string type
XMLELEMENT("Cell", XMLELEMENT("Data", XMLATTRIBUTES('String' AS "ss:Type"), XMLCDATA(ID))),
-- We can't use XMLCDATA here, because it will either error out or truncate (if we cast)
-- So, we generate our own CDATA element and stuff our CLOB in it
XMLELEMENT("Cell",
XMLELEMENT("Data", XMLATTRIBUTES('String' AS "ss:Type"), XMLCONCAT(
XMLPARSE(CONTENT '<![CDATA[' WELLFORMED),
                      XMLPARSE(CONTENT Val WELLFORMED),
                      XMLPARSE(CONTENT ']]>' WELLFORMED)
FROM gtt_Test;
Note in the output from the above SELECT query that the 'Row 1 has a value' text ends up in rows 1, 2, and 3. Now, compare the output of the above to something like:
SELECT * FROM gtt_Test;
Notice that this time, rows 2 and 3 properly ended up with NULLs in the Val column. Also, I can reduce the error producing query down to:
SELECT ID, XMLPARSE(CONTENT Val)
FROM gtt_Test;
My first query shows the issue in the context that I am actually using XMLPARSE.
Another interesting example is to compare the following two queries:
SELECT ID,
XMLPARSE(CONTENT
CASE
WHEN Val IS NOT NULL THEN Val
ELSE TO_CLOB('')
END
WELLFORMED)
FROM gtt_Test;
SELECT ID,
XMLPARSE(CONTENT
CASE
WHEN Val IS NOT NULL THEN Val
ELSE TO_CLOB('empty')
END
WELLFORMED)
FROM gtt_Test;
Notice that even with the CASE statement, XMLPARSE in the first example insists on using the last non-NULL value... while in the 2nd example we end up with "empty" for rows 2 and 3.
Any ideas?

Ok, I worked around the issue by moving the XMLPARSE inside a case statement, and using XMLCDATA('') in the case where Val is null.
I am still interested in knowing why XMLPARSE is reusing values from prior rows - but, for now I have a workaround.
SELECT
-- We can use XMLCDATA here, because the type can be converted to a string type
XMLELEMENT("Cell", XMLELEMENT("Data", XMLATTRIBUTES('String' AS "ss:Type"), XMLCDATA(ID))),
-- We can't use XMLCDATA here, because it will either error out or truncate (if we cast)
-- So, we generate our own CDATA element and stuff our CLOB in it
XMLELEMENT("Cell",
XMLELEMENT("Data", XMLATTRIBUTES('String' AS "ss:Type"),
CASE
WHEN Val IS NOT NULL THEN
XMLCONCAT(
XMLPARSE(CONTENT '<![CDATA[' WELLFORMED),
                             XMLPARSE(CONTENT Val WELLFORMED),
                             XMLPARSE(CONTENT ']]>' WELLFORMED)
ELSE XMLCDATA('')
END
FROM gtt_Test;
-----

Similar Messages

  • Hanging start up and other oddities

    Hanging Startup and other oddities
    I'm not especially proficient with the upkeep and terminology that comes with the programming aspect of Macs, so, if you do help, if you could please put whatever advice you have in lay terms, it would really help me out.
    I've had my laptop computer for going on three years now, and I've never had a problem like this before. My machine started to really slow down yesterday morning, and generally when ever it does that, I just do a quick restart, and everything is back at normal. Well, not so yesterday.
    To begin with, it took me to the grey screen, and it just stayed there for about ten minuets. It didn't change, didn't move to load the apple insignia, nothing. So I gave it a forced restart, and it did it again, except it load the apple logo.
    Third time, it got me to blue screen. On restart #4 (force restart #3), it finally loads into my desk top, but the slow processing remained. I tried to go in and repair disk permissions, but then it froze up, and I forced a restart. This time, back to the grey screen.
    I lost count as to how many time I restarted, but I finally went and rooted out my OS disks, and did a restart with disk 1 in, holding down PR+CtrlApple (It was my understanding that this would zap the P-Ram, and would at lest sort of help with whatever my problem was). Well, it took me to grey screen, but now a small folder is in the center of my screen. going from the finder icon to a "?" in the middle of the folder.
    Did a restart holding down the "C" key, and it went into the install screen that launches from the disk. I was able to click through to select the drive I wanted, then my hard drive didn't show up as a possible selection. Yet ANOTHER C key restart, and this time it showed up.
    Went through the first loading screen, where it is checking permissions, and everything's fine, but when I get to the installation process, it tells me there is an error with my perimeters, and I should restart and try again. Did this again, and I had to start over from square one.
    I tried just a normal restart after three or four attempts at an installation, and now, whenever I load it without C depressed, a grey box shows up in the middle of my screen with an image of the globe on it, and it flashes. Nothing else loads until I do a restart.
    It's my impression this, obviously, isn't a good sign and I should get in contact with someone who knows what they're doing and can walk me through it and get my computer running again. I thought I'd run it by you guys here before I called Apple, and, hopefully, you guys can help me out/help me better describe my problem. Any help you can give - links to other threads, experiences, what something means, what to tell a technician that I'm looking at/going through, anything at all, will help me tremendously.
    Thanks for your help and time,
    Brittany
    Powerbook G4   Mac OS X (10.3.9)   Owned Since April, 2004

    Hey Gary, thanks for the welcome!
    By the time I was able to pull your suggestions off of the form, I had already done a few things to my computer, as per recommended by the Apple site. This article is what I was pulling my steps off of.
    I started at step 4 (Selecting the "Connect automatically when starting TCP/IP applications") and went through to step 8, semi-step i.
    1 - I tried to start up in safe mode (Shift+Restart) and I logged several kernal panic screens before I even got to the apple insignia on a grey screen.
    2 - I ran Disk Utility several times, and would come up with an error and a notice that the utility had quit. The first time I ran it, I noticed that it had found a lot of Oprhaned indirect iNodes, and by the second time the utility was ran, they no longer showed up in the right pane of the box. The fifth time it ran, it took roughly two hours to complete, and actually went all the way through.
    3 - Still would not load past the grey screen, so I went through and did fsck check a couple of times, and it told me that my machine appeared to be ok. I got all the way through the step where it tells you to run a fsck, then type in a mv Preferences Preferences_old, then did a reboot and let my computer load.
    When it finally did load (the actual boot up and load took about ten minuets, which is about seven minuets slower than normal), it took forever to do any commands that I issued. I went through and backed up all of my files onto my external, and then I went to go follow the rest of the step, and my computer froze up. I decided to save the rest of the procedure for today, when I can find some time.
    The basic thing that I'm concerned about now is that the machine is running exceptionally slow. It loaded Safari and a couple of other applications I'm always in, but it took roughly ten times longer than normal to do anything.
    Since it's recignising the machine and loading into my desktop, I was going to see if I can now do a safe restart and see if I can follow any of the steps that are dictated by the site, but I'm still not certian if that will work. Last time I tried it, I got a kernal panic screen.
    Anything I should try?
    Powerbook G4   Mac OS X (10.3.9)   Since 2004

  • External monitoring oddities in Motion 3, anyone?

    Hi all,
    I do a lot of NTSC DV projects, and I'm seeing some weird things happen with Motion 3 external monitoring.
    - First, the image looks squeezed ("skinny"), with black bars on the sides.
    - Second, Motion now applies the "Correct to Aspect Ratio" option to the external monitor (why??), which makes it even more squeezed!!
    - Third, moving the canvas with the hand tool moves the image around on the monitor. What does external monitoring have to do with where the canvas is in the canvas pane?
    I never had any of these problems in Motion 2. Is there some way to make it act like it used to?
    I'm using Firewire NTSC output to DV deck, connected to the monitor.

    I don't use FW for external monitoring, but - no, I haven't experienced any oddities since the upgrade...
    Patrick

  • ParserException: XMLParser: Prefix 'c' is not mapped to a namespace

    Hello and thanks in advance for any help. I am trying to deploy a war (that worked with Tomcat 4.1) on SAP Web Application Server.
    In this war I have a JSP that says
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/products/JSP/Page"
           xmlns:c="http://java.sun.com/jstl/core"
           xmlns:trx="http://www.highdeal.com/taglib">
      <jsp:directive.include file="jspf/doctype.jspf"/>
      <html>
        <jsp:directive.include file="jspf/Imports.jspf"/>
        <jsp:include page="include/Variables.jsp" flush="true" />
        <head>
          <title><c:out value="$"/></title>
          <jsp:directive.include file="jspf/Style.jspf"/>
        </head>
    In my web.xml, I have:
    <taglib>
    <taglib-uri>http://www.highdeal.com/taglib</taglib-uri>
    <taglib-location>WEB-INF/trx.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>WEB-INF/c.tld</taglib-location>
    </taglib>
    I am becoming crazy because of the exception I keep having in the logfile:
    #1.5#0013CEDA9E4F00380000000800000DDC00040F1A970A7F6A#1142506784439#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#sap.com/csrui.war#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#Guest#2####f9b076e0b4db11da96df0013ceda9e4f#SAPEngine_Application_Thread[impl:3]_7##0#0#Error#1#/System/Server#Plain###Runtime error in compiling of the JSP file <D:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/csrui.war/servlet_jsp/csrui/root/WEB-INF/jsp/Logon.jsp> ! The error is: TagLibValidator returns error(s) for taglib ( http://java.sun.com/jstl/core ):
         com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)(:main:, row=818, col=1) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)
    #1.5#0013CEDA9E4F00380000000900000DDC00040F1A970A834A#1142506784439#com.sap.engine.services.servlets_jsp.Deploy#sap.com/csrui.war#com.sap.engine.services.servlets_jsp.Deploy#Guest#2####f9b076e0b4db11da96df0013ceda9e4f#SAPEngine_Application_Thread[impl:3]_7##0#0#Error##Plain###Runtime error in compiling of the JSP file <D:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/csrui.war/servlet_jsp/csrui/root/WEB-INF/jsp/Logon.jsp> ! The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib ( http://java.sun.com/jstl/core ):
         com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)(:main:, row=818, col=1) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'c' is not mapped to a namespace(:main:, row:818, col:1)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.validate(JSPParser.java:243)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:348)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:105)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:238)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:428)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:346)
         at com.highdeal.wui.base.WForwardFactory.forwardPage(WForwardFactory.java:89)
         at com.highdeal.wui.base.WForwardFactory.forward(WForwardFactory.java:128)
         at com.highdeal.wui.base.HighdealSession.forward(HighdealSession.java:245)
         at com.highdeal.wui.base.ControllerServlet.performAction(ControllerServlet.java:568)
         at com.highdeal.wui.base.ControllerServlet.perform(ControllerServlet.java:913)
         at com.highdeal.wui.base.ControllerServlet.doPost(ControllerServlet.java:482)
         at com.highdeal.wui.base.ControllerServlet.doGet(ControllerServlet.java:476)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    What am I doing wrong here??
    Tangi

    Hi Tangi,
    A small mistake in your web.xml
    <taglib>
    <taglib-uri>http://www.highdeal.com/taglib</taglib-uri>
    <taglib-location><b>/</b>WEB-INF/trx.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
    <taglib-location><b>/</b>WEB-INF/c.tld</taglib-location>
    </taglib>
    You have missed a / before WEB-INF.
    Also, the order of entries in web.xml matters. Refer <a href="http://www.pchighway.com/helpdesk/index.php?page=index_v2&id=1694&c=135">here</a> for more info about JSTL.
    Hope this solve your problem.
    Regards,
    Uma

  • JTextPane and XMLParser and jdk .-) problems

    Hi there.
    I have a nice problem, which really gives me headaches.
    I have an XML editor (working as an applet or as an aplication, using a JTextPane). All worked ok untill jdk1.3 and parts even until jdk1.4. Now 2 big problems appeared.
    1.Under jdk1.4.1:
    Spaces between lines are awful big. The actual characters are ok, but the cursor is almost twice as the characters. The distance from the bottom of a character and the bottom of the line is pretty big. Now that looked to me as a SpaceBelow or LineSpacing problem. I've tried to set up the SpaceBelow or/and LineSpacing... everything that I've thought it should work. No result. Seems like they have no effect when XMLParser comes in place and sets up the document content (at least i think this is the reason, also i'm not sure). An element tree implemented shows me that this attributes are set to the values I've intended, but no 'visual' effect. Does anyone know ANYTHING about this? Please!
    2.Starting from jdk1.3. Doubling of tags.
    If the XML editor reads something like <FT>something</FT> from a xml file, it sets in the JTextPane <FT><FT>something</FT></FT>. It's working under jdk1.2 but if I switch to 1.3 or 1.4does something like this. Any idea what's going on? Could it be an unfortunate mix between jdk and xalan libraries?
    I REALLY hope that ANYONE of you knows ANYTHING about these!!!
    THNX!

    Hi DrClap.
    Well, this would be the best thing to do. The only problem is that those are long time gone. Not really 'gone', but they are not to be found.
    There's something about first problem: At the end of starting process, after the parser finished his work, if I come and set the attributes (in the document of the JTextPane, using StyleConstants) with replace set to true, the display is ok but, of course, I loose any style defined in the xml file. That means is not a problem of the JTextPane in jdk 1.4 (at one time I thought it might be a 'mapping' problem of the JTP in 1.4) or?
    Because I'm really stuck, I have all kind of strange ideas!!!
    Could be "old libraries(for the parser) - new jdk" mixture problem, perhaps? (I've told you!)
    THX for your previous response.

  • XML Includes and XMLPArse()

    I have an XML file that has the following at the top:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE MyDtd[
    <!ENTITY getInclude SYSTEM "thisInclude.xml">
    ]>
    Later on in the file I call the include:
    <product>
    <name>productName</name>
    <version>ProductVersion</version>
    &getInclude;
    </product>
    Both the parent and the include XML files are properly
    formated and when I open the parent or even just the include in a
    browser they render correctly. However, when I use Coldfusion's XML
    Parse():
    <cfscript>
    Request.myXML = XmlParse(expandPath('/config/config.xml'));
    </script>
    <cfdump var="#Request.myXML#">
    the results are incorrect. What I get back is this "[unknown
    type]". However, if I remove the
    &getInclude; the page renders fine. So far I must
    conclude that XMLParse() cannot handle XML Includes. This isn't
    anything new. Includes inXML has been around for awhile. I can't be
    the first to encounter this am I? Is there something I'm missing or
    not aware of that's preventing this from working?

    quote:
    Originally posted by:
    little seal
    I guess the question now changes to: Can XMLPArse() handle
    XML includes or External entities? And as it is now, it would seem
    that it can't.
    Yes, after rummaging through my archives, that appears to be
    the case. You will have to use java or some other workaround until
    this is fixed in CF8.

  • XMLParser and Special Characters

    Hi,
    I'm trying to read in an XML Document from a stream (e.g. a file) using XMLParser. The document contains german text (i.e. lots of special characters like umlauts �, �, � and others).
    If I read this stream into a text string all these special characters are perfectly handled (i.e. � looks like an �, etc.).
    However, if I import the stream into an XMLParser.Document using ImportDocument the umlauts seem to be scrambled. If the imported document is without any changes exported again to a stream (using ExportDocument) the umlauts are not displayed correctly anymore.
    Example Stream:
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <UserID>M�ller</UserID>
    If this stream is imported into an XMLParser.Document and then exported again it contains
    <UserID>M��ller</UserID>
    I'm using correct XML encoding iso-8859-1 which is for western european languages and I guess it should not be a Forte locale issue since simple string handling of the stream works fine.
    Thanks for any hints,
    Daniel

    Let's start at the basics. Right now you are quite limited by your database character set as US7ASCII. You need to migrate to something that will support Latin and Greek characters at least. Maybe EL8ISO8859P7, or UTF-8. Please look at documentation Scanner Utility, available for Oracle 8.1.6 and above to make sure migration is safe before doing any import/export. The title of paper is: Database Character Set Migration, at: http://technet.oracle.com/products/oracle8i/listing.htm#nls
    UTF-8 will give you more versatility in the languages that your customer supports now or in the future. There is some performance overhead using Unicode but how much depends? I would base a large part of the Unicode decision on how likely it would be that other languages would need to be supported in the future and special character support.
    The special characters that your customer would like to support may already exist in Unicode. IF they don't or you choose another character set then your customer will need to look at the National Language Support Guide, Appendix 'B' "Customizing Locale Data"
    Are you running Greek windows? Otherwise how will you enter Greek characters? If you are using Greek windows you probably need to set your client NLS_LANG to EL8MSWIN1253.
    On your Forms questions you might want to take a look at the following :
    1. Chapter 4 of "Oracle Forms Developer and Reports Developer Release 6i: Guidelines for Building
    Applications" discusses How to design MultiLingual Applications.
    http://otn.oracle.com/docs/products/forms/doc_index.htm

  • Error at the time of defining XmlParser object in J2ME......

    Hi:
    I want to use XmlParser in my J2ME application, but at the time of defining XmlParser object i a getting error is:"XmlParser cannot be resolved to a type". I am using eclipse for developing application. I have already added KXml.zip in my src folder.
    I have imported following things:
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.rms.*;
    import org.kxml.*;
    import org.kxml.parser.*;
    and actual error line is:
    byte[] xmlByteArray = str.getBytes();
                                  ByteArrayInputStream xmlStream = new ByteArrayInputStream(xmlByteArray);
                                  InputStreamReader xmlReader = new InputStreamReader( xmlStream );
              //error line          XmlParser parser = new XmlParser( xmlReader );
    So, can anybody help me.
    Thank You

    Hi AnupDesai.
    I'm using [kXML 2|http://kxml.sourceforge.net/kxml2/] parser, so maybe this could help you. I'm using NetBeans 6.5 and to use it I had to add the JAR file into the "resources" of my project. Then I simply use three imports:
    import org.kxml2.io.KXmlParser;
    import org.xmlpull.v1.XmlPullParser;
    import org.xmlpull.v1.XmlPullParserException;And use it like this:
    KXmlParser parser = new KXmlParser();
    InputStreamReader reader = (open your streeam here);
    parser.setInput(reader)I hope this helps you!
    Marc

  • 5G Oddities - Alarm clock and audiobooks

    My 5G ipod is a wonderful toy but I've noticed a couple of oddities that I wonder if anyone else has experienced. They both relate to switching away from video playback - i.e. I had been watching a video on the ipod before ...
    In both cases the iPod is sat in a powered dock.
    1) When watching video & using the sleep timer to turn it off (falling asleep infront of a very small TV) the alarm clock doesn't seem to sound the next morning. When I fall asleep to music it works fine.
    2) When navigating away from a video to an audiobook (through the audiobook menu - though not if chosen as a "song" or "album") the audiobook plays back like an old 45 set on 33.
    (for you "youngsters" who have never played with vinyl records that means "slowly" ).
    Can anyone else reproduce this?
    iBook G4, Powerbook G4   Mac OS X (10.4.3)  

    Thanks, I had searched for the alarm clock issue but only remembered the audiobook one as I was writing it. Unsurprisingly that's the workaround I came up with.
    My guess would be that the same problem is affecting the alarm clock operation
    so when they fix one they'll probably fix both. In the meantime I should probably just stop falling asleep to video if I want to get woken up by my iPod.
    Thanks again.

  • Using XMLParser as a single object used by different threads

    Hi,
    I'm trying to use the XMLParser object as a parser used by
    several different objects, probably running under separate
    threads.
    Each such object will implement its own callback, the idea being
    that the callback supplied to the parser upon initialization,
    will actually call the callback implemented by the object that
    called parse. I thought about doing this by using the "context"
    passed to the XMLParser, if I could change it after
    initialization and before each call to XMLParser.parse that I
    would be able to switch between calling objects, and thus allow
    multiple threads to use the same parser.
    The problem here is that the SAX callback implementation
    functions are defined "extern C" and I can't get them in the
    context of an object.
    Is there any way at all to accomplish this?
    Thanks
    J Galore

    Hi,
    You can use "select for update" to lock this row but locking means other sessions will hang and wait until lock is released. If this is ok for you, go for it.
    Other option is to use a flag column which you should set to "1" so that other threads don't use the row with flag vlaue "1"
    Salman

  • Several LR3 issues - Crashes, memory dumps, and other oddities

    I recently built a new PC dedicated to my photo work.
    i7 2600k, 16gb DDR 3 ripjaws, 128GB crucial m4 SSD, (2) x 1TB 7200 HDDs (mirrored), Sapphire Radeon HD 5570.
    The first month or so of use LR worked great. However, recently I have been getting several errors and oddities.
    1) Randomly closes. I can restart it without a problem and pick back up where I left off. There are not warnings or signs that it is about to close.. it just does.
    2) "Unexpected end of file". Unable to edit photo. Preview does show, however. I have never seen this error before on other machines.
    3) Memory dumps. I assume this is related to LR3 as that is the only program I am actively using when it happens (Chome is always open as well, however) I will have the dump files examined to know for sure.
    4) Something new that just started today. In the preview bar on the bottom, as I scroll through the photos I see the previews of other photos.. some photos from other folders I took weeks or months ago. When I hover over the image it changes to what it should be. I am seeing 2 instances of this. 1 with a photo from this particular shoot and one from one I did over a month ago. Everything I scroll back and forth (rapidly or not) as the previews load it loads the wrong files first, multiple times (around 8 or 9 in a row) and then they slowly change to what it should be.
    I am not sure if I am properly describing this error but it is really weird.
    Also, this seems to only happen on the images off a CF card. I was borrowing a friends D200 as a 2nd body for a party. When I scroll through the images off my SD card I do not see the issue appear. When I get to the CF portion of the folder is when I see the problem....
    I just updated LR today but these issues occured prior to the update and still exist afterwards.
    Do I need to do a fresh install of LR?
    What precautions do I need to take in doing so to insure my catalogue stays intact?
    Thanks for your help.

    I am still having issues.
    The crash dumps are far less frequent now. I think it may have been a catalogue issue maybe? I started a new one and things were better.
    However, I am consistantly getting the "Lightroom has stopped working" and it closes down..... repeatedly. Very Very annoying.
    It is not a major issue to just restart Lightroom, esp since it is on an SSD, it pops right back up instantly.
    All of my files are on the HDD, however, not the SSD.
    I had reinstalled LR3 once before which did not help. Any other suggestinos?
    I can't imagine a reinstall of Windows would do anything for me. I have no issues with anything other than LR.
    Could my video card be playing a role in the errors? I do notice weird random artifacts in my images sometimes when I add a brush stroke, or clone something out. Or sometimes just simply zooming in will great these weird multicolored lines in the image. Zooming out makes it go away. It is random when it shows up and often times closing and reopening LR will make it go away. So these are not permanent artifacts in the image unless I export the file with them showing. This leads me to think maybe the video card is having some issues. All drivers are up to date. It is not a high end card. Based on all my research when buidling this machine, a basic video card is all that is needed as RL is CPU and memory intensive, which is where I put most of my $. (i7 2600k and 16GB DDR3)

  • XMLPARSER.parseCLOB Error

    Hi all, i'm having a little trouble working with XML in pl SQL could somebody please help me? I'm the biggest noob
    here is a sample of what i'm doing:
    FUNCTION getXML(IdSP IN NUMBER) RETURN CLOB
    is
    p xmlparser.parser;
    dadosAvaria dbms_xmlgen.ctxHandle;
    result CLOB;
    begin
    dadosAvaria := dbms_xmlgen.newContext('SELECT
    Id_Avaria,
    num_posto,
    ps,
    CCO_1,
    CCO_2,
    Operacao,
    Sub_Operacao,
    AEL_A,
    Servico,
    def_distr,
    sub_esp from r_avari1 where id_equipa = ' || IdSP);
    DBMS_XMLGen.setRowTag(dadosAvaria, 'R_Acti_API_SP');
    DBMS_XMLGen.SETROWSETTAG(dadosAvaria, 'ListagemAvarias');
    result := DBMS_XMLgen.getXML(dadosAvaria);
    p := xmlparser.newparser;
    xmlparser.parseclob(p, result);
    the error is what follows:
    ORA-20103: Null input is not allowed
    ORA-06512: at "SYS.XMLPARSER", line 33
    ORA-06512: at "SYS.XMLPARSER", line 99
    ORA-06512: at "PSINGLRP.PK_BD_SS_XML_SP", line 93 <---- This the line that has the PARSECLOB Statement
    ORA-06512: at line 4
    why does this happens, it should work right?
    I'm using Oracle 9i does anybody knows where can i get more information? Pleasy it is very important and i can't seem to make a correct XML document from a query...
    Thank You
    Best Regards
    João Lopes
    Edited by: Joao Lopes on 2/Jul/2009 6:21

    Hi again, sorry about the absence.
    if result is not null then
    xmlparser.parseclob(parserXML, result);
    doc := xmlparser.getdocument(parserXML);
    xmlparser.freeparser(parserXML);
    nl := xmldom.getElementsByTagName(doc, 'ListagemAvarias');
    numeroOcorrencias := xmldom.getLength(nl);
    end if;
    I added this code to my procedure, it seams that he detects result is null. But in the end of my procedure i added a print clob statement wich is
    xmlstr := dbms_lob.SUBSTR(result,32767);
    loop
    exit when xmlstr is null;
    line := substr(xmlstr,1,instr(xmlstr,chr(10))-1);
    dbms_output.put_line('| '||line);
    xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
    end loop;
    The strangest thing is that it prints the value o result in the above statement, but it detects null on the xmlparser
    :S

  • Test result on XSU&XMLParser

    Dear XML team, I test XSU & XMLParser in a the following environment, the result is as below:
    I run my program in serveral environment and got serveral result:
    1. JDeveloper3.12 environment
    XSU12.21 beta
    XMLParser_v2.0.0.6
    classes12.zip
    the first time I run the program, errors occur as below:
    java.lang.NullPointerException
    java.lang.String oracle.xml.parser.v2.XMLError.getMessage2(int, java.lang.String, java.lang.String)
    void oracle.xml.parser.v2.XSLNode.processSpaceAttr(java.lang.String)
    void oracle.xml.parser.v2.XSLTemplate.processAttributes()
    void oracle.xml.parser.v2.XSLNode.transformChildren()
    void oracle.xml.parser.v2.XSLStylesheet.addBuiltInTemplate()
    void oracle.xml.parser.v2.XSLStylesheet.initStylesheet(oracle.xml.parser.v2.XMLDocument, java.net.URL)
    void oracle.xml.parser.v2.XSLStylesheet.<init>(oracle.xml.parser.v2.XMLDocument, java.net.URL)
    java.lang.String net.qingniao.qingniao.news.XMLDocHandler.applyXSLtoXML(oracle.xml.parser.v2.XMLDocument, oracle.xml.parser.v2.XMLDocument)
    2. JDeveloper3.12 environment
    XSU12.21 beta
    XMLParser_v2.0.0.9
    classes12.zip
    the first time I run the program, all is OK,
    the second time I run the program, errors occur:
    The error I got is : java.lang.ArrayIndexOutOfBoundsException: 1
    3. JDeveloper3.12 environment
    XSU12.21 beta
    XMLParser_v2.1 beta
    classes12.zip
    the first time I run the program, all is OK,
    the second time I run the program, errors occur:
    java.lang.NullPointerException
    void oracle.xml.parser.v2.XSLProcessor.processXSL(oracle.xml.parser.v2.XSLStylesheet, oracle.xml.parser.v2.XMLDocument, oracle.xml.parser.v2.XMLDocumentHandler)
    void oracle.xml.parser.v2.XSLProcessor.processXSL(oracle.xml.parser.v2.XSLStylesheet, oracle.xml.parser.v2.XMLDocument, java.io.OutputStream)
    java.lang.String net.qingniao.qingniao.news.XMLDocHandler.applyXSLtoXML(oracle.xml.parser.v2.XMLDocument, oracle.xml.parser.v2.XMLDocument)
    4. JDeveloper3.12 environment
    XSU12.121
    XMLParser_v2.0.2.6, XMLParser_v2.0.2.9, XMLParser_v2.1.beta
    classes12.zip
    Error: java.lang.NullPointerException
    5. JDeveloper3.12 environment
    XSU12.121
    XMLParser_v2.0.2.7
    classes12.zip
    most time it runs OK, occasionally it get the error: java.lang.NullPointerException
    6. JDeveloper3.12 environment
    XSU12.21
    XMLParser_v2.0.2.7 beta
    classes12.zip
    ALL IS OK!!!
    7. Test in SUN JDK1.2
    all the combination version of XSU & XMLParser is OK!!
    XSU12.21 & XMLParserV2.0.2.7 is the combination
    I just dont know why the XMLParser works so untrustable,
    but I am really thanks for your GREAT WORK!
    ---CHENLW---

    This concept was okay over all, but after applying this setting and encoded mpeg2 for dvd, it had many imperfections. I suppose this is some results from the resizing issues. I will pick out the bad portions and maybe post them on my site later.

  • Sample for XMLparser v2 for Java?

    Hello,
    I am new in this field. I tried to generate a HTML document by sending an XML, an XSL document to my java code, which uses Oracle.xml.parser.v2. I always failed. I am getting a little bit frustrated.
    If you ever got a HTML document from XML and XSL document using Oracle's XML parser, please send me a copy. Your help will be highly appreciated!!!!!
    Thank you very much!!!!
    Steve

    Thanks for reply. I will treat you lunch when you are in Columbus, OH some day. Again, thanks for help!!!
    Here are the code:
    Steve Fan
    ======XML doc: i1html.xml=========
    <?xml version='1.0'?>
    <products>
    <department>Information One</department>
    <report>
    <name>test report 1</name>
    <author>steve Fan</author>
    <content>Something interesting...</content>
    </report>
    <report>
    <name>test report 2</name>
    <author>Eric</author>
    <content>Hello there.</content>
    </report>
    </products>
    ===================================
    ========XSL doc: i1html.xsl========
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    <xsl:template select="product">
    <HTML>
    <HEAD>
    <TITLE>Title: <xsl:apply-templates select="products/department"/>
    <xsl:value-of select="product/department"/></TITLE>
    </HEAD>
    <BODY>
    <H1>Title: <xsl:apply-templates select="products/department"/></H1>
    <xsl:apply-templates select="report"/>
    </BODY>
    </HTML>
    </xsl:template>
    <xsl:template select="report">
    <HR/>
    <UL><LI>
    <xsl:apply-templates select="name"/>
    </LI></UL>
    <B>Author: <xsl: apply-templates select="author"/>
    Content: <xsl: apply-templates select="content"/></B>
    </xsl:template>
    <xsl:template select="name">
    <FONT COLOR=red><xsl:value-of select="name"></FONT>
    </xsl:template>
    </xsl:stylesheet>
    ==================================
    ======Parser: fanxslparser1.java=====
    * Title: XSL parser Test<p>
    * Description: This test project uses the parser from Oracle.<p>
    * Copyright: Copyright (c) sfan<p>
    * Company: UUNET, an MCI WorldCom company<p>
    * @author sfan
    * @version 1.0
    package fanxsl;
    import org.w3c.dom.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    import oracle.xml.parser.v2.*;
    * This file gives a simple example of how to use the XSL processing
    * capabilities of the Oracle XML Parser V2.0. An input XML document is
    * transformed using a given input stylesheet
    public class fanxslparser1
    * Transforms an xml document using a stylesheet
    * @param args input xml and xml documents
    public static void main (String args[]) throws Exception
    DOMParser parser;
    XMLDocument xml, xsldoc, out;
    URL xslURL;
    URL xmlURL;
    try
    if (args.length != 2)
    // Must pass in the names of the XSL and XML files
    System.err.println("Usage: java fanxslparser1 xslfile xmlfile");
    System.exit(1);
    // Parse xsl and xml documents
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    // parser input XSL file
    xslURL = createURL(args[0]); //see the following for the definition of this function.
    parser.parse(xslURL);
    xsldoc = parser.getDocument();
    // parser input XML file
    xmlURL = createURL(args[1]);
    parser.parse(xmlURL);
    xml = parser.getDocument();
    // instantiate a stylesheet
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL);
    XSLProcessor processor = new XSLProcessor();
    // display any warnings that may occur
    processor.showWarnings(true);
    processor.setErrorStream(System.err);
    // Process XSL
    DocumentFragment result = processor.processXSL(xsl, xml);
    // create an output document to hold the result
    out = new XMLDocument();
    // create a dummy document element for the output document
    Element root = out.createElement("root");
    out.appendChild(root);
    // append the transformed tree to the dummy document element
    root.appendChild(result);
    // print the transformed document
    out.print(System.out);
    catch (Exception e)
    e.printStackTrace();
    // Helper method to create a URL from a file name
    static URL createURL(String fileName)
    URL url = null;
    try
    url = new URL(fileName);
    c atch (MalformedURLException ex)
    File f = new File(fileName);
    try
    String path = f.getAbsolutePath();
    // This is a bunch of weird code that is required to
    // make a valid URL on the Windows platform, due
    // to inconsistencies in what getAbsolutePath returns.
    String fs = System.getProperty("file.separator");
    if (fs.length() == 1)
    char sep = fs.charAt(0);
    if (sep != '/')
    path = path.replace(sep, '/');
    if (path.charAt(0) != '/')
    path = '/' + path;
    path = "file://" + path;
    url = new URL(path);
    catch (MalformedURLException e)
    System.out.println("Cannot create url for: " + fileName);
    System.exit(0);
    return url;
    =======================================
    =======Error message I got=============
    jdk1.2.2\bin\javaw -classpath "D:\Study\XmlParser\FanTest\classes;D:\Study\XmlParser\lib\xmlparserv2.jar;D:\JBuilder30\jdk1.2.2\jre\lib\rt.jar;D:\JBuilder30\jdk1.2.2\jre\lib\i18n.jar;D:\JBuilder30\jdk1.2.2\lib\ dt.jar;D:\JBuilder30\jdk1.2.2\lib\tools.jar;D:\JBuilder30\jdk1.2.2\lib\jpda.jar;D:\JBuilder30\jdk1.2.2\jre\lib\ext\iiimp.jar" -Duser.dir=D:\Study\XmlParser\FanTest fanxsl.fanxslparser1 i1html2.xsl i1html2.xml
    Attribute value should start with quote.
    at oracle.xml.parser.v2.XMLError.flushErrors(XMLError.java:208)
    at oracle.xml.parser.v2.XMLError.error(XMLError.java:114)
    at oracle.xml.parser.v2.XMLError.error(XMLError.java:152)
    at oracle.xml.parser.v2.NonValidatingParser.parseAttrValue(NonValidatingParser.java, Compiled Code)
    at oracle.xml.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1090)
    at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java, Compiled Code)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java, Compiled Code)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:237)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:201)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:148)
    at fanxsl.fanxslparser1.main(fanxslparser1.java:57)
    ==========================================
    null

  • XMLParser for PL/SQL ORA-20100 Problem

    I am using XML parser for PL/SQL in Oracle9i Enterprise Edition Release 9.0.1.1.1
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> execute domsample('c:\xml', 'family.xml', 'errors.txt');
    begin domsample('c:\xml', 'family.xml', 'errors.txt'); end;
    ORA-20100: Error occurred while parsing: No such file or directory
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 22
    ORA-06512: at "COMMODITYBACKCONNECT.XMLPARSER", line 79
    ORA-06512: at "COMMODITYBACKCONNECT.DOMSAMPLE", line 80
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL>
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser')
    5 ;
    CLASS STATUS
    oracle/xml/parser/v2/DOMParser VALID
    oracle/xml/parser/v2/DOMParser VALID
    Please advice to how remove the following error:
    ORA-20100: Error occurred while parsing: No such file or directory

    Hi, I have run into the same problem. I think the parser is looking for c:\XML on your sever instead of your local drive. Try creating a dir on the server called \xml and rerunning the script. I don't know whether it will fix your problem, as i am sitting with the same thing, but it is a step in the right direction. Also check your separators. If you are running unix servers use / instead of \

Maybe you are looking for

  • Is there a way to add two windows in the same window?

    is there a way to add two windows in the same window?

  • Ipod 2G speaker doesn't work after iOS 4 update

    I've just posted a message with the music that "lags" with the new software update and on top of that I now found out the the build in speaker of the Ipod stopped working to! Please help! Message was edited by: Paulf88

  • VM NIC keeps changing from Dynamic to Static IP (from a static IP pool)

    Back ground: Having migrated our VM's from 2008R2 and 2012SP1 servers into one 4 node 2012R2 Hyper V Cluster we have a problem with NIC's being changed to Static IP, this in turn gives a range of warning and errors when moving VM's between the nodes

  • Custom Icon / Marker / Point-style on Graph

    Is there a way I can use a custom icon (or point-style) on a graph or chart?  I want to place a series of points on an XY-Graph but I don't want to use any of the built-in point styles, I want to use a .gif file I have.  I have toyed with the idea of

  • HT1338 wifi problem at home

    I am having problems with my apple macbook pro especially the wifi, when i try connecting the wifi upstairs it is not working, and when i am down stairs it is not working at all but when i am next to the router it is working on the mac book pro, i ha