Exception using JAXP transformer on non-default DOM

Hi!
I have a problem with the JAXP integration of my own DOM implementation. I've written a compressed core level 1 DOM implementation and integrated it into JAXP by writing a DocumentBuilder and a DocumentBuilderFactory class. Although not 100% of all DOM methods are implemented completely, it works fine for typical xml documents. I can read in a xml document using JAXP by setting the DocumentBuilderFactory setting to my implementation:
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "ddom.jaxp.DDocumentBuilderFactory");
But if I try to use a Transformer on the document, I get a NoSuchMethodException:
Exception in thread "main" java.lang.NoSuchMethodError
     at org.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:348)
     at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:281)
     at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:119)
     at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:320)
     at ddom.DTreeTester.write(DTreeTester.java:59)
     at ddom.DTreeTester.main(DTreeTester.java:76)
Unfortunately there is no source code available for JAXP, so I can't really figure what's going wrong. From the exception it is obvious that the Transformer is trying to figure out the namespace before it crashes. As my implementation ony implements DOM level 1 at the moment there is no support for namespaces. But of course this is reported by my DocumentBuilder class, so no calls to such methods hould occur.
I just wanted to use the identity transformation to produce some nice output files. I would be very happy if anyone could help me with this problem.
Mathias

I tried to get more info on the DOM2Helper class, but only found lots of deprecated APIs. There seems to be some work done on internal APIs dealing with that class. Search for "DOM2Helper" in this page http://xml.apache.org/xalan-j/readme.html
Maybe you just need to get a newer version of Xalan.

Similar Messages

  • How to use non default port 1521 while 11.2.0.1 grid upgrade to 11.2.0.2

    Hi Team ,
    We are planning 11.2.0.1 Grid infra rolling upgrade to 11.2.0.2 with out any downtime.
    But while up gradation due to default scan port 1521 , 11.2.0.1 databases are not able to connect (remote connections)
    We are using 1900 port for existing 11.2.0.1 grid infra scan.
    While up gradation it is taking default port of 1521 insted of existing port 1900.
    Please provide the solution to use non default port while 11.2.0.2 up gradation.
    After upgrade the status as below.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
    Here I was getting TNS:no Listener errors from the client connections.
    I have modifyed the scan port then it is working fine.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl modify scan_listener -p TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4>
    Here the problem is we need to do the grid infra upgrade with out downtime,but due this default port issue clients are not able to connect to the database.
    Thanks
    Bala
    Edited by: user12032334 on May 31, 2011 11:46 AM

    Why are you using a non default port? It does not improve security. It makes network management more complex. And causes the type of issues that you are facing now.
    So before changing defaults, make sure that your reasons are technically sound. And using port 1900 when 1521 is available, is not technically sound by any means.
    As for addressing the problem you have created for yourself by mucking around with port numbers. Use a NAT firewall (on each RAC node) to rewrite packets headers received on port 1900 and send these to the server's port 1521 instead (on the VIP or static IP as required).
    This can be fairly easily done using iptables if your o/s is Linux. You need to:
    a) create a pre-routing NAT rule
    b) create a post-routing NAT rule
    c) create a forwarding filter rule for port 1900/tcp
    d) create an input filter rule to accept traffic on 1900/tcp

  • When I use my Delete key to delete a song, I get a pop-up.  This is OK, except the Keep File button is defaulted and I cannot tab or arrow to the "Move to Trash" button, and so i need to use my mouse.  How can I do this only with keyboard?

    When using iTunes on my iMac, I use my Delete key to delete a song and I get a pop-up.  This is OK, except the Keep File button is defaulted and I cannot tab or arrow to the "Move to Trash" (or Cancel) button, and so I need to use my mouse.  How can I do this only with keyboard?

    Huh.. Interesting. I went back to check these proceedures and found there is a difference between using the return key or the space bar as the action command.
    tabbing the blue ring moves the selection and then spacebar takes that action. The return key takes action of only the blue collored button.
    .... learn somting new every day, even if it is somthing I previously forgot

  • How to find Parameter values of a non-default listener using LSNRCTL

    Hi,
    I have a non-default listener with name like "lsnr_abcd" in non-default port.
    I am on 10.2.0.4 database version. If I want to find out parameter values (like displaymode,dynamic_registration,etc)
    for a non-default listener, which command should I use?
    I know that for default listener, we can do the following
    1) Execute lsnctl
    2) show dynamic_registration
    What should I execute if I want to get this details for a listener "lsnr_abcd"
    Thank You
    Sarayu

    After setting your current listener to non default listener like this
    lsnrctl> SET CURRENT_LISTENER lsnr_abcd
    You can execute the further commands without your listener name
    lsnrctl>set DISPLAYMODE
    Edited by: vreddy on Jul 19, 2012 6:53 AM
    Edited by: vreddy on Jul 19, 2012 6:54 AM

  • Warning! DSPs 1 in slot 0 are using non-default firmware from device flash:

    Hi,
    Im having a problem on my 2801 router, my fxo and fxs port are not fucntioning, when i check the dsp it shows below; i have tried different ios still the same problems encountered.
    rtr01#show voice dsp detailed
    edsp 0001 01 g729r8 p  0.1 IDLE  50/0/1.1
    edsp 0002 01 g729r8 p  0.1 IDLE  50/0/5.1
    edsp 0003 01 g729r8 p  0.1 IDLE  50/0/6.1
    Warning! DSPs 1 in slot 0 are using non-default firmware from device flash:
    This is not recommended, the IOS default version is 24.3.0
    ----------------------------FLEX VOICE CARD 0 ------------------------------
                               *DSP VOICE CHANNELS*
    CURR STATE : (busy)inuse (b-out)busy out (bpend)busyout pending
    LEGEND     : (bad)bad    (shut)shutdown  (dpend)download pending
    DSP   DSP                 DSPWARE CURR  BOOT                         PAK   TX/RX
    TYPE  NUM CH CODEC        VERSION STATE STATE   RST AI VOICEPORT TS ABRT PACK COUNT
    ===== === == ========= ========== ===== ======= === == ========= == ==== ============
    C5510 001 01 None           0.0.0 bad   idle      0  0                 0          0/0
    C5510 001 02 None           0.0.0 bad   idle      0  0                 0          0/0
    C5510 001 03 None           0.0.0 bad   idle      0  0                 0          0/0
    C5510 001 04 None           0.0.0 bad   idle      0  0                 0          0/0
    C5510 001 05 None           0.0.0 bad   idle      0  0                 0          0/0
    C5510 001 06 None           0.0.0 bad   idle      0  0                 0          0/0
    C5510 001 07 None           0.0.0 bad   idle      0  0                 0          0/0
    C5510 001 08 None           0.0.0 bad   idle      0  0                 0          0/0
                               *DSP SIGNALING CHANNELS*
    DSP   DSP                 DSPWARE CURR  BOOT                         PAK   TX/RX
    TYPE  NUM CH CODEC        VERSION STATE STATE   RST AI VOICEPORT TS ABRT PACK COUNT
    ===== === == ========= ========== ===== ======= === == ========= == ==== ============
    C5510 001 01 {flex}         0.0.0 free  idle      0  0 0/0/0           0          0/0
    C5510 001 02 {flex}         0.0.0 free  idle      0  0 0/0/1           0          0/0
    C5510 001 03 {flex}         0.0.0 free  idle      0  0 0/2/0           0          0/0
    C5510 001 04 {flex}         0.0.0 free  idle      0  0 0/2/1           0          0/0
    ------------------------END OF FLEX VOICE CARD 0 ----------------------------
    #sho voice port summary
                                               IN       OUT
    PORT            CH   SIG-TYPE   ADMIN OPER STATUS   STATUS   EC
    =============== == ============ ===== ==== ======== ======== ==
    0/0/0           --  fxs-ls      up    dorm on-hook  idle     y
    0/0/1           --  fxs-ls      up    dorm on-hook  idle     y
    0/2/0           --  fxo-ls      up    dorm idle     on-hook  y
    0/2/1           --  fxo-ls      up    dorm idle     on-hook  y
    50/0/1          1      efxs     up    up   on-hook  idle     y
    50/0/5          1      efxs     up    up   on-hook  idle     y
    50/0/6          1      efxs     up    dorm on-hook  idle     y
    PWR FAILOVER PORT        PSTN FAILOVER PORT
    =================        ==================
    can somenone help to advice. th

    Hi,
    I see that the DSPware version says 0.0.0 and the current state shows "BAD" which should not be the case. Are you running 12.4(24)T IOS because i see that the default version of DSP should be 24.3.0 as printed in the output. By default the IOS itself contains the default DSPware in it but if it does not show up in your router, try reloading the router to see whether it fixes your issue. If not check the following link which lists the steps to be followed to install a new DSPware on your router.
    http://www.cisco.com/en/US/tech/tk652/tk698/technologies_tech_note09186a0080a7af82.shtml
    Hope that helps
    Regards
    Nitesh
    PS:pl rate helpful posts

  • Cannot specify non-default KDC port using system property krb5.kdc

    For testing / debug it's very useful to be able to run the KDC on a non-default port. This can be specified in Kerberos config file by appending the port number to the KDC host name, delimited with a colon.
    The java.security.krb5.kdc property can be used to locate the KDC - Unfortunately in Config.java in the sun.security.krb5 package, when parsing the property the colon is used as a delimiter for multiple KDCs. The config object String.replace()s the colons with space chars. Then the KrbKdcReq.java module, when testing for a non-default port in the KDC string from the config object, looks for the colon delimiter - but this has been zapped. So it seems that it's not possible to specify the non-default port via the property.
    The workaround is to use the config file approach instead, but this is inconvenient and limits programmability (especially when using configuration reload) - Is there a prospect that the config parser might be adjusted backwards compatible (say, to recognise a double colon or an escape char) to fix this?
    regards
    Ted Hayes

    Greetings
    I'm sorry to dig this thread up, but I could really use some help concerning this. I need to set up ApacheDS in a remote machine, but I'm not allowed to have root access to it, which means I can't make ApacheDS to run its KDC at port 88. Port 88 is a reserved port in *nix machines, so I can't make ApacheDS to list on that port without admin previledges.
    On the other hand, I already have a client/server demo program that can connect to a kdc (which can be found at http://thejavamonkey.blogspot.com/2008/04/clientserver-hello-world-in-kerberos.html), but I don't know how to set it up to run on any other port. I noticed that teddy_salad mentioned something about a config file approach, but I don't know what he is referring to.
    At this point I should mention that its my first time trying to use JGSS, but I'm also running out of time to make the ApacheDS work. I'm supposed to make some benchmarking tests for my masters degree dissertation, and the deadline is approaching :\
    I only need to know how to change hte default port to which that application connects to. Thanks in advance to anyone who replies to this.

  • Menu font is using a non-default that is illegible

    I can't believe this: Last week, I installed all my font collection from my PC to my new Mac. (was told this wouldn't be an issue, which is why I switched over because I need my beloved fonts).
    Anyway, I launched DW today, only to find the font on the loading menu and in the properties inspector has become a non-default, illegible font that it has automatically chosen from my collection!! How do I change this? What is that default font the software uses? Why has it done this?
    Thanks.

    Hmm, that suggested ensuring I had Geneva installed, which I do.
    Any other ideas? I went through my preferences in DW, and nothing mentions a default application font. This is not occurring in any of my other programs. Even in preferences, where it's got the info that you can change by typing...it is all in Serpentine outlines.
    Help! Can't understand why it would do this.

  • DSPs using non-default firmware

    Hello everyone,
    I have this problem that I'm facing.
    I had a branch router which was working fine then all of a sudden incoming/outgoing calls stopped working.
    I noticed a new line in configuration
    voice-card 0
    ! Warning! DSPs 1 in slot 0 are using non-default firmware from device flash:
    ! This is not recommended, the IOS default version is 24.3.4
    The thing is I have many branch sites that are working using the same router hardware model (2811) as well as same IOS version.(c2800nm-adventerprisek9-mz.124-24.T2.bin)
    I changed the IOS (new version is c2800nm-adventerprisek9-mz.124-24.T4.bin) but still the line is there and the case is not solved.
    Could it be a hardware issue with the router itself or the WIC card?
    Really appreciate your help
    Thanks,
    Ahmed

    Hi Ahmed,
    This warning message may not be the issue why calls stopped working through the router is you did not make any changes in the IOS or the dsp version.
    The dsp firmware can be upgraded independently from the bundled firmware that is in IOS.  You would usually do this if you need to get a bug fix in the dsp firmware but wanted to remain on the same IOS release.  There is some risk involved in this as there could be compatibility issue between the firmware version and the IOS release hence the warning message that is displayed.
    If you stay within the same general release branch of the firmware that is bundled with IOS, then you should not see any issues; for example if you had 24.3.2 installed when the default was 24.3.4.  Having said that, 24.3.4 is the latest version in that release branch so I would guess that you are running an earlier release which was installed from some previous incident.
    Check your flash and you should see the dsp firmware there.  A "show voice dsp" will show the version that is currently running on the router.  You can remove it or rename it to something else so that it will not be loaded, but you should try to find out why it was there is the first place.
    Check the link below for more detailed information on maintaining the dsp firmware on IOS routers.
    Without knowing more details on the problem you are experiencing, I cannot gude you further on what else to look at.  We have documents that cover voip troubleshooting but you may need to open a tac case.
    Thanks, Bryan
    http://www.cisco.com/en/US/tech/tk652/tk698/technologies_tech_note09186a0080a7af82.shtml

  • Could I try to use with OC4J another XML transformer factory than default?

    Hello, the masters of masterpieces.
    The application was written and deployed on TomCat 4.0 with standard xalan.jar and xerces.jar from Apache projects?
    I want to run it on OC4J-instance.
    Could I try to use different XML transformer factory than default with OC4J? If I use Apache's jars inside
    classpath it can't help, really: every time request goes to oracle xml-transformer. Please, any advices or
    comments. I'll appreciate every advice which can't destroy the functionality of AppServer.
    Thanks. Regards. Igor.

    Hi,
    I had this same problem where I needed Xalan (more robust). Step I took:
    1) Unjar oc4j.jar into a clean directory
    2) Modify ParserManager.properties to
    defaultParser = xerces
    3) Modify MANIFEST.MF such that xerces.jar and xalan.jar are early on the classpath
    Class -Path ejb.jar xerces.jar xalan.jar ...
    4) Then re-jar the file back up
    jar -cfm oc4j.jar META-INF/MANIFEST.MF .
    5) Copy oc4j.jar as well as xerces.jar and xalan.jar into your j2ee/home directory (making a backup of your previous oc4j.jar to play it safe).
    Larry

  • Changing /updating an xml file using JAXP(DOM)

    Hello,
    i am fairly new to xml and am using it in my degree project.I am able to retrieve and read data from a fairly large xml file using JAXP(DOM) and/or XMLBeans.I am having difficulties in updating the xml document. Any updation i believe is ito be saved into a new xml document,but dont know how to proceed with it. Any help would be appreciated.
    Following is a snippet of my code using JAXP. Here i am able to retrieve data from the source file.
    File document=new File("C:\\tester.xml");
    try {
    DocumentBuilderFactory factory
    = DocumentBuilderFactory.newInstance();
    DocumentBuilder parserr = factory.newDocumentBuilder();
    Document doc=parserr.parse(document);
    System.out.println(document + " is well-formed.");
    NodeList n2=doc.getElementsByTagName("Top");
    NodeList n3=doc.getElementsByTagName("Base");
    int x=n2.getLength();
    System.out.println("There are " x "players");
    for(int g=0;g<=x;g++)
    System.out.println("Top is" + n2.item(g).getFirstChild().getNodeValue()+" Base is" +n3.item(g).getFirstChild().getNodeValue());
    --------------------------------------------------------------------------------

    Following is my updation code to the dom tree:
    NodeList list=doc.getElementsByTagName("Information");
    for(int i=0; i<list.getLength();i++){
    Node thissampnode=list.item(i);
    Node thisNameNode=thissampnode.getFirstChild();
    if(thisNameNode==null) continue;
    if(thisNameNode.getFirstChild()==null)continue;
    // if(thisNameNode.getFirstChild() !(instanceof org.w3c.dom.Text) continue;
    String data=thisNameNode.getFirstChild().getNodeValue();
    if (! data.equals("0.59")) continue;
    Node newsampNode = doc.createElement("Samp");
    Node newsampTopNode = doc.createElement("Top");
    Text tnNode = doc.createTextNode("0.50");
    newsampTopNode.appendChild(tnNode);
    Element newsampRef = doc.createElement("Ref");
    Text tsr = doc.createTextNode("0");
    newsampRef.appendChild(tsr);
    Element newsampType = doc.createElement("Type");
    Text tt = doc.createTextNode("z");
    newsampType.appendChild(tt);
    Element newsampbase = doc.createElement("Base");
    Text sb = doc.createTextNode("0.55");
    newsampbase.appendChild(sb);
    newsampNode.appendChild(newsampTopNode);
    newsampNode.appendChild(newsampRef);
    newsampNode.appendChild(newsampType);
    newsampNode.appendChild(newsampbase);
    rootNode.insertBefore(newsampNode, thissampnode);
    Here i dont see any changes to the original xml source file.

  • Is it possible to use JAXP in Applet? Really urgeng.

    I need to get String output from a DOM Document using JAXP in Applet. I want the entire XML document in one string .I write the code as following,but it doesn't work. Would you help me to point out the mistake I made in it?
    Any help would be appreciated,
    Thanks.
    import java.awt.*;
    import javax.swing.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    import javax.xml.transform.dom.DOMSource;
    import java.io.*;
    import java.io.IOException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import java.util.*;
    public class XMLTest extends JApplet {
         String str;
         public void init()
         str="hello";
    try
    DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
    DocumentBuilder db =factory.newDocumentBuilder();
    Document m_dDoc = db.newDocument();
    Element e1=m_dDoc.createElement("first");
    Text tx;
    tx=m_dDoc.createTextNode("hi");
    e1.appendChild(tx);
    m_dDoc.appendChild(e1);
    DOMSource doms = new DOMSource(m_dDoc);
    Writer out = new StringWriter();
    StreamResult result = new StreamResult(out);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer transformer = tf.newTransformer();//wrong
    transformer.transform(doms,result);
    str=result.toString();
    catch(Exception e)
    e.printStackTrace();
         public void paint(Graphics g)
              g.drawString(str, 50, 60 );
    }

    The problem is that using the transformer in an applet results in the exception:
    The exception is as following:
    org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not loa
    d output_xml.properties (check CLASSPATH)
    at org.apache.xalan.templates.OutputProperties.getDefaultMethodPropertie
    s(OutputProperties.java:364)
    at org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.j
    ava:130)
    at org.apache.xalan.transformer.TransformerIdentityImpl.<init>(Transform
    erIdentityImpl.java:104)
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
    sformerFactoryImpl.java:804)
    at XMLTest.init(XMLTest.java:36)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    I am still unclear to the cause, when I create a copy of the output_xml.properties file and put it somewhere in your classpathe (I put mine in a jar that the applet loads) you get:
    java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:140)
         at org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:131)
         at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
         at com.thalesgroup.mss.infrastructure.xml.SOAPMessage.domDocToString(SOAPMessage.java:180)
         at com.thalesgroup.mss.applets.filemanager.XmlMessages.getFileList(XmlMessages.java:246)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.getFileList(FileManagerFrame.java:575)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.access$2(FileManagerFrame.java:29)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame$fileList.run(FileManagerFrame.java:847)
    Caused by: java.lang.RuntimeException: The resource [ XMLEntities.res ] could not load: java.net.MalformedURLException: no protocol: XMLEntities.res
    XMLEntities.res      java.net.MalformedURLException: no protocol: XMLEntities.res
         at org.apache.xalan.serialize.CharInfo.<init>(CharInfo.java:202)
         at org.apache.xalan.serialize.SerializerToXML.<clinit>(SerializerToXML.java:292)
         ... 10 more
    Which leads me to some questions:
    What is XMLEntities.res, and how do I get one?
    Does anyone know which version of Xalan and JAXP comes with J2SE 1.4.1?
    Why the package "org.apache.xalan.Version" is not in the J2SE 1.4.1 release (and should it be?)

  • Null Pointer Exception with Oracle Transformer

    Hi all,
    I'm getting a NullPointerException after building a DOM tree and feeding it to a stream via the Oracle JAXP transformer. I am trying to convert the data in DOMSource to PDF file. The following code:
    TransformerFactory transFact = TransformerFactory.newInstance();
    Transformer transForm = transFact.newTransformer();
    ByteArrayOutputStream pdfOutStream = new ByteArrayOutputStream();
    DOMSource pdfInput = new DOMSource(doc);
    StreamResult pdfOutput = new StreamResult(pdfOutStream);
    transForm.transform(pdfInput,pdfOutput);
    int pdfByteSize = pdfOutStream.size();
    System.out.println("Size of pdfByteSize : "+ pdfByteSize);
    pdfByte = new byte[pdfByteSize];
    pdfByte = pdfOutStream.toByteArray();
    InputStream formInputStream = new ByteArrayInputStream(pdfByte);
    Iam getting error at "transForm.transform(pdfInput,pdfOutput);".
    Here the StackTrace :
    07/05/24 10:59:40 XML-22900: (Fatal Error) An internal error condition occurred.
    javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
         at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:775)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:374)
    Caused by: java.lang.NullPointerException
         at oracle.xml.parser.v2.XMLText.reportSAXEvents(XMLText.java:402)
         at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
         at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:3061)
         at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
         at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:3061)
         at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
         at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:2165)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:337)
    Environment we are using is Sun JDK 1.4.2_06 on Windows, running JDeveloper 10 g with OC4j as Application Server.
    Can any one please explain me in this regard?
    Thanks
    Manoj

    Thanks for the Reply.
    Before Null Pointer Exception I am getting another Fatal error:
    javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
         at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:775)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:374)
    Please Help

  • "XSL Error: Cannot use a DTMLiaison for a input DOM node"

    This code:
    Writer writer = new StringWriter();
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    // Note: event.getDocument() returns a
    // org.apache.xerces.dom.DocumentImpl
    // sourced from xlms.jar
    processor.process(new XSLTInputSource(event.getDocument()),
    new XSLTInputSource(new FileReader(GDS_XSLT_STYLESHEET)),
    new XSLTResultTarget(writer));
    Gives this stacktrace:
    XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a weblogic.apache.xalan.xpath.xdom.XercesLiaison
    instead!
    XSL Error: SAX Exception
    weblogic.apache.xalan.xslt.XSLProcessorException:
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1756)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1648)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:876)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:600)
    1. All XML/XSLT classes are being sourced from weblogic.jar or xmlx.jar
    2. Both jar files come from the WLS installation (WLS6.0 + SP2)
    3. There are no other XML class providers on my class path
    4. This is a standalone application, not running within WLS; I'm using weblogic
    jarfiles here purely so I use the same XML implementation both inside and outside
    WLS. Is this a sensible approach?
    Any help, anyone?

    All works fine in WLS6.1, with this extra code:
    System.setProperty("javax.xml.transform.TransformerFactory",
    "weblogic.apache.xalan.processor.TransformerFactoryImpl");
    (or you could use -D)
    No longer concerned; we've moved off WLS6.0
    "Simon Spruzen" <[email protected]> wrote:
    >
    Interestingly, expanding the code to (the very verbose):
    Document sourceDocument = event.getDocument();
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    StringWriter source = new StringWriter();
    XMLSerializer sourceSerializer = new XMLSerializer(source, new OutputFormat(sourceDocument));
    sourceSerializer.asDOMSerializer();
    sourceSerializer.serialize(sourceDocument.getDocumentElement());
    StringWriter output = new StringWriter();
    processor.process(new XSLTInputSource(source.toString()),
    new XSLTInputSource(new FileReader(GDS_XSLT_STYLESHEET)),
    new XSLTResultTarget(output));
    (i.e. document -> string -> transform -> string)
    works just fine, but this code is far too long-winded for me to be happy
    with.
    (Note that one of XSLTInputSource's ctors does take a Node, so I'm assuming
    that
    it should be perfectly safe to pass a Document here)
    (Note also, that for various reasons at the moment, using JAXP's transformer
    factory
    is difficult for us)
    "Simon Spruzen" <[email protected]> wrote:
    This code:
    Writer writer = new StringWriter();
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    // Note: event.getDocument() returns a
    // org.apache.xerces.dom.DocumentImpl
    // sourced from xlms.jar
    processor.process(new XSLTInputSource(event.getDocument()),
    new XSLTInputSource(new FileReader(GDS_XSLT_STYLESHEET)),
    new XSLTResultTarget(writer));
    Gives this stacktrace:
    XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a weblogic.apache.xalan.xpath.xdom.XercesLiaison
    instead!
    XSL Error: SAX Exception
    weblogic.apache.xalan.xslt.XSLProcessorException:
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1756)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1648)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:876)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:600)
    1. All XML/XSLT classes are being sourced from weblogic.jar or xmlx.jar
    2. Both jar files come from the WLS installation (WLS6.0 + SP2)
    3. There are no other XML class providers on my class path
    4. This is a standalone application, not running within WLS; I'm using
    weblogic
    jarfiles here purely so I use the same XML implementation both inside
    and outside
    WLS. Is this a sensible approach?
    Any help, anyone?

  • IdM doesn't support non-default port on mysql 4.1 as repository??

    Hi
    IdM doesn't support non-default port on mysql 4.1 as repository??
    IdM version is 6.0.
    I setup mysql 4.1 using non-default port 3307.
    (default port is 3306)
    During setup wizard,
    the URL [jdbc:mysql://localhost:3307/waveset] doesn't work.
    I am getting following error.
    com.waveset.util.InternalError:
         ==> com.waveset.util.ConfigurationError:
         ==> com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    Of cource,
    the URL [jdbc:mysql://localhost/waveset] works well
    when I setup mysql using default port.

    Hi,
    it does work with non standard ports but whatever port you specify it will always try to connect to the default port before actually changing the repo setting.
    Therefore use the switches -n -o $WSHOME/WEB-INF/ServerRepository.xml to write the new configuration without performing the broken checks.
    Regards,
    Patrick

  • Configuring IPIB with non-default partition key

    Hello
    I want to put IB HCA port into non-default partition to create separate network on my IB fabric. On IB switch (Voltaire ISR9096) I created network with non-default partition key 0x7ffe and add HCA port to this partition.
    But this IB-VPPA was displayed as unconfigured on Solaris host
    ib::3BA0001004181,ffff,ipib    IB-VPPA      connected    configured   ok
    ib::3BA0001004182,fffe,ipib    IB-VPPA      connected    unconfigured unknown
    ib::3BA0001004182,ffff,ipib    IB-VPPA      connected    configured   okConfiguration of new VPPA with cfgadm was unsuccessful:
    # cfgadm -c configure ib::3BA0001004182,fffe,ipib
    Configure the device: /devices/ib:fabric::3BA0001004182,fffe,ipib
    This operation will suspend activity on the IB device
    Continue (yes/no)? yes
    cfgadm: Hardware specific failure: configure operation failed ap_id: /devices/ib:fabric::3BA0001004182,fffe,ipibI unconfigured VPPA with default partition key (0xffff) on HCA port 0x3BA0001004182 and issued cfgadm for VPPA with pkey 0xfffe again - the same effect.
    I tried this on Solaris 10 8/07 and OpenSolaris b72 with the same result - no success ;)
    Is it possible to configure VPPA with non-default pkey on Solaris ?
    Is it possible to configure more than 1 IPIB VPPA on single HCA port ?
    How to perform these configurations ?
    Thanks in advance.
    Regards,
    Denis

    hi
    I was able to setup the listener to serve both databases using netmgr, thanks. Apparently I was trying to use the wrong tool for this previously.
    Now i'm able to access the EM Database Control and it seems to be working fine though i get the following error message
    Logged in As SYS
    Error
    java.lang.Exception: Number of responses does not match queries
    Database Instance: devel.foo.bar
    Now, i'd like to be able to use EM for administering two separate databases (running on the same host). Do i need to migrate the database control somehow to grid control? How do i do that?
    What about security? I'd like to use SSL and limit connections to selected clients only.
    regards,
    aspa

Maybe you are looking for

  • How do I convert a Time Capsule former Time Machine into an external drive?

    I want to convert my 2TB Time Capsule (which I formerly used as a Time Machine) into an external drive.  I now have a 3TB which I have set up as the Time Machine thus freeing the 2TB to hopefully work as an external drive.  The 2TB now sits with the

  • Pc no start

    good night when I click the power button turns the two  lights The bios led A and the bios LED B light and the debug LED displays 00 with the option A of bios. if switch to option b all ok computer starts normally board is x99s gaming 7 excuse my eng

  • BADI cant use an internal table with header line

    hi,      In BADI, we cant use an internal table with header line, and I am calling a function module which requires internal table as import parameter, now, the table I am passing is without a header line, So how to solve this problem ?

  • Table for maint. Order & Service

    Hi All, I have created one maint. order with external service. In which table i could find the service against the order. I have checked ESLL but there is no Order link. regards sunil

  • How do I delete items (e.g., podcast episodes) in 11.1?

    I select the item, but the delete button doesn't work, and "delete" under "Edit" is not highlighted.