Instruction "TransformerFactory.newInstance()" doesn't work !!

                                                TransformerFactory tFactory = null;
               System.setProperty("javax.xml.transform.TransformerFactory",
                         "org.apache.xalan.transformer.TransformerImpl");
               try {
                    tFactory = TransformerFactory.newInstance();
               } catch (Exception ex) {
                    ex.printStackTrace();
               }Why The instruction tFactory = TransformerFactory.newInstance(); do nothing ? the program crashes (thread stop) without letting exception, no errors message appears ! I installed the package xalan (in the classpath), i set the property and at the call, the program ends.
What to do ?

Hey wake up men !

Similar Messages

  • HT204022 Can't seem to get rid of any photos in Photo Stream from my iMac.  Following instructions from Apple doesn't work!

    Can't seem to get rid of any photos in Photo Stream from my iMac.  Following instructions from Apple doesn't work!

    You need to update iPhoto.  The latest version is 9.4.2. 
    To do your updates, do the following: 
    Software Updates
    How to do software updates via the apple menu - http://support.apple.com/kb/ht1338. - is a link to Apples article on updating the software on your computer
    How to do software updates via the App's store - PH2730 - Mac App Store: Update applications and http://support.apple.com/kb/HT4710.
    If you need info on your apple ID -
    You can visit the Apple ID Support page - http://www.apple.com/support/appleid/ - to learn more about your Apple ID, or visit the - Apple ID Frequently asked questions page - http://support.apple.com/kb/HE37.

  • HT1535 This isn't working at all... I follow instructions and it doesn't work.. there's no option in !tunes to add to movies... This is a nightmare, I should have stuck with my PC instead...

    This isn't working, all I need is to add a couple of movies to my Iphone 4s but itunes doesn't seem to have any option to add movies, videos etc.... I should've really just stuck with my PC you guys....  Why do they have to make things so difficult in Apple? really? just to add a **** movie to my Iphone 4s I have to ask for help... This is ridiculous..

    Hi,
    Yes, I know this forum has users like me and it's not Apple. I was only venting and, showing my frustration for Apple. You said if I wanted more help I need to give more info...
    What kind of info? like what kind of Apple computers I have? the specs? etc. I know I need Itunes on a PC as well to add movies to my Iphone 4s but, I also have a Samsung Galaxy S4 and, that phone all I do is Plug it in to my PC and from there on it's really easy because it gives me the option to let my PC see it as a external HDD to where I can litteraly drag my movies that I want into it.. And, boom! I'm done. With Apple is like oh my god, you need this you need that you need the other thing.. Blah Blah Blah LOL.... But, I'm a stubborn bull and I want to add movies to my Iphone 4s. So, what I do is the following, I plug in my iphone 4s to my macbook pro and Itunes launches by itself, then I click on the iphone 4s on the upperr right corner, right after a list appears with all my music, then I click on where it says Movies on the upper left, then I try to drag a movie into the list and there's an error message that appears telling me that the movie wasn't copied to my iphone because it can't be played.... at this point I gave up and here I am asking for help.
    I don't what info you want, I have a iphone 4s, a macbook pro wth OSX Mavericks, 2.6 GHz Intel Core !7 8 GB ram... I also have a Imac which I have put away since we just moved in so, I can't remember the specs but it's about 2 - 3 years older than my macbook pro...  Apple seems easy to use when it comes to graphic design, video editing and, working with audio... When it comes to multimedia, it seems not so great. I hope this is enough info... If not just ask me what you guys would need to know.. Thanks for your help... I appreciate it, hopefully I can master the use of Apple just like PC.

  • T9 on blackberry 8520 doesn't work

    I can't set the t9 on blackberry 8520.
    The instructions on manual doesn't work.
    Thanks.

    Hi,
         We don't have t9 facilities on 8520, as we have the qwerty keyboard on your blackberry 8520 so we don't require the t9.
    Regards
    SVS. 

  • HT4798 I have forgotten my password for mountain os. I have followed the instructions about going to "User group" and enetering my apple ID. It doesn't work. Can anyone help me? Thank you.

    I have forgotten my password for mountain os. I have followed the instructions about going to "User group" and enetering my apple ID. It doesn't work. Can anyone help me? Thank you.

    Welcome to the Apple Support Communities
    https://discussions.apple.com/docs/DOC-4101

  • I followed the instructions to install the Put Tabs at the End, restarted Firefox and it still doesn't work. How do I get back to 3.6.22??? PLEASE

    The upgrade to 3.6.23 took away my tabs. I use them constantly. I followed your instructions to add the plug-in, but it doesn't work. I did it twice to be sure. It doesn't work.

    You can set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to <i>false</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • How to I set an internal link in a PDF document using Preview?  After setting a link under the Tools/Annotations menu, the link doesn't work and no detailed instructions are provided.

    How to I set an internal link in a PDF document using Preview?  After setting a link under the Tools/Annotations menu, the link doesn't work and no detailed instructions are provided via the Help menu other than it showing the pull-down menu selection to make.

    No.  I am able to use the other features such as underlining, highlighting, adding rectangles and oval and save those changes.

  • Just download Adobe Reader XI for windows 8.1,  it doesn't work.  My OS is Windows 8.1 64-bits.  Two dialogues appear as  1.) AcroRd32.exe Error, The instruction at 0x9068675f reference memory at 0x9068675f. The memory could not be written. Click on OK to

    Just download Adobe Reader XI for windows 8.1,  it doesn't work.  My OS is Windows 8.1 64-bits.  Two dialogues appear as  1.) AcroRd32.exe Error, The instruction at 0x9068675f reference memory at 0x9068675f. The memory could not be written. Click on OK to terminate the program.  2.) Adobe Reader ha stopped working, a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution ia available.

    What is the Reader XI version you installed?
    Does this also happen when you open Reader by itself?  If not, can you try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • I wanted to host my iWeb pages on Dropbox.  I followed all the instructions but it still doesn't work.

    I guess in October of 2013, Dropbox changed their program so you don't need a public folder to place your files in.  I followed the instructions on numerous youtube and google result sites on how to do this.  I thought I followed all the instructions but it still doesn't work.  I downloaded Dropbox and configured it as instructed.  I created a domain at .tk and when I put the URL in my browser, I see that .tk does go to my dropbox index html but it is a blank screen.  Can anyone tell me what I'm doing wrong?

    I would ask this to dropbox it could be they have blocked the option to avoid being used as free web hotels

  • HT5163 where do I get a SIM card tool for iPad 3?  My cellular data doesn't work now that I downloaded iOS6.  Instructions are to remove SIM card and then reinsert and it SHOULD work.

    Where di I get a SIM card tool for iPad 3?  My cellular data doesn't work now tht I downloaded iOS6.1.  Instructions tell me to remove SIM card and then return.  Will that work? Verizon tells me it's an Apple issue.

    I did that but was intimidated.  With your adivce I was more aggressive and it popped open. And I removed and replaced.  It works.  Thanks!

  • I followed the instructions for restoring bookmarks from an older Firfox to a new one but it doesn't work.

    I'm trying to get my old bookmarks installed with Firefox on a drive holding Win xp to Firfox installed on a different drive holding Win 7. I followed the backup and restore process in the Firefox help file but it doesn't work. Help will be appreciated because I have a slew of bookmarks that I would like to use with Win 7.

    If you need to merge bookmarks then you need to export the bookmarks to an HTML file and import that file on the other computer.
    Bookmarks > Organize Bookmarks > Import & Backup > Export HTML
    Bookmarks > Organize Bookmarks > Import & Backup > Import HTML : "From File"
    See also http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • Matching on comment() doesn't work

    Hello,
    Matching with comment() using the Java API in the XDK doesn't seem to work, but works with the xsl program included in the XDK (using XDK 10.1, and xsl is located in the bin directory).
    I have style sheet with only this template:
    <xsl:template match="/">
    <xsl:message>Comment count:
    <xsl:value-of select="count(//comment())"/>
    </xsl:message>
    <xsl:for-each select="//comment">
    <xsl:copy/>
    </xsl:for-each>
    </xsl:template>
    I run the template on the same xml file.
    With the xsl utility it returns the comment count correctly and outputs all the comments.
    With a short Java program I wrote, it outputs zero for the count and of course no comments in the output.
    Do you see anything I did wrong in the Java program?
    StreamSource xslInput = new StreamSource(new FileInputStream(xslFile));
    StreamSource xmlInput = new StreamSource(new FileInputStream(xmlFile));
    StreamResult xmlOutput = new StreamResult(System.out);
    // Writes xml results to the console
    Transformer xsl = TransformerFactory.newInstance().newTransformer(xslInput);
    xsl.transform(xmlInput, xmlOutput);
    Thanks,
    Leon

    Its a bug with the XDK. The program above was written using XDK and JDK 1.3 (which doesn't have XML APIs).
    I recompiled and ran my program using JDK 1.4 and removed the XDK from my classpath. The program and XSL work fine.
    Anyone have a work around?

  • XDK DOM 3 implementation doesn't work (i.e ElementEditVAL)

    Hi,
    I want to use XDK DOM 3 implementation to be able to validate my modification against the schema and then save it to file, for that I found that I have to use ElementEditVAL class and canSetXXX methods, but unfortunately none of them is working and always they return UNKNOWN (7) code or null value.
    following are my XML test file and XSD file and at the end the code that I wrote, so I need your help to see why it doesn't work, maybe it is the XSD bug and I don't know about it!
    Thank you in advance for your help
    XML file:
    ?xml version = '1.0' encoding = 'UTF-8'?>
    <config xmlns:xlink="http://www.w3.org/TR/2000/REC-XLINK-20010627" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mytest.xsd">
    <item name="locked"/>
    </config>
    XSD file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:complexType name="itemType" mixed="true">
              <xs:attribute name="name" use="required">
                   <xs:simpleType>
                        <xs:restriction base="xs:string">
                             <xs:enumeration value="unlocked"/>
                             <xs:enumeration value="locked"/>
                             <xs:enumeration value="shutdown"/>
                        </xs:restriction>
                   </xs:simpleType>
              </xs:attribute>
         </xs:complexType>
         <xs:element name="config">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="item" type="itemType"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    Source code:
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import oracle.xml.parser.v2.DOMParser;
    import oracle.xml.parser.v2.XMLDocument;
    import oracle.xml.parser.v2.XMLElement;
    import oracle.xml.parser.v2.XMLNodeList;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.validation.ElementEditVAL;
    import java.io.File;
    public class forum{
         static XMLDocument document;
         static final String schemaSource = "C:/cmt/ServerSolarisTest/config/mytest.xsd";     
         static final String JAXP_SCHEMA_SOURCE ="http://java.sun.com/xml/jaxp/properties/schemaSource";     
         static final String JAXP_SCHEMA_LANGUAGE ="http://java.sun.com/xml/jaxp/properties/schemaLanguage";
         static final String W3C_XML_SCHEMA ="http://www.w3.org/2001/XMLSchema";
         public static void main(String[] args) {
              if(args.length !=1){
                   System.err.println("Please enter the file name");
                   System.exit(1);
              }//if
              System.out.println("Start parsing.....");
              try{
    //               Create URL String from incoming file
         String url = "file:" + new File(args[0]).getAbsolutePath();               
         String schemaurl = "file:" + new File("C:/cmt/ServerSolarisTest/config/mytest.xsd").getAbsolutePath();
                   DOMParser parser = new DOMParser();
    // Set parser options
    parser.setErrorStream(System.err);
    parser.setValidationMode(DOMParser.SCHEMA_VALIDATION);
    parser.showWarnings(true);
    parser.setXMLSchema(schemaurl);
    //               Parser the incoming file (URL)               
    parser.parse(url);
                   document = parser.getDocument();
                   XMLElement root = (XMLElement)(document.getDocumentElement());
                   XMLElement Current;
                   NamedNodeMap attribs;
                   XMLNodeList nlist = (XMLNodeList)document.getElementsByTagName("*");
                   String nodeName;
                   for(int i = 0; i<nlist.getLength(); i++)
                        attribs = nlist.item(i).getAttributes();
                        Current = (XMLElement)nlist.item(i);
                        ElementEditVAL elval = (ElementEditVAL)Current;
                        //See if Element is item
                        if(Current.getNodeName().equals("item"))
                             for(int j = 0; j<attribs.getLength(); j++)
                                  nodeName = attribs.item(j).getNodeName();
                                  if(nodeName.equalsIgnoreCase("name"))
                                       if(elval.canSetAttribute(nodeName, "unlockedsdf") == ElementEditVAL.VAL_TRUE)
                                            System.out.println("Valid attribute value");
                                            Current.setAttribute(nodeName, "unlockedsdf");
                                       else
                                            System.out.println("Invalid attribute value");
                                       if(elval.canSetAttribute(nodeName, "locked") == ElementEditVAL.VAL_TRUE)
                                            System.out.println("Valid attribute value");
                                            Current.setAttribute(nodeName, "unlockedsdf");
                                       else
                                            System.out.println("Invalid attribute value");
                   //write
                   TransformerFactory tFactory =
    TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer();
    DOMSource source = new DOMSource(document);
    StreamResult result = new StreamResult(new File(args[0]));
    transformer.transform(source, result);                              
              }catch(Exception e){
                   e.printStackTrace();
         }//main     
    }//DomEcho2

    Using DOM 3.0 Validation Techniques with XDK 10g
    http://www.devx.com/Java/Article/31221

  • Xalan error in web-logic 8.1 (DomSource doesn't work)

    Hi,
    The following piece of code worked in web-logic 6.1 but no longer works in WL8.1:
         xslDoc = documentBuilder.parse(xslURI);
    xmlDoc = XML.stringToDocument(ls_xml);
         // Use Document objects to make DOMSource objects
         xslDomSource = new javax.xml.transform.dom.DOMSource(xslDoc);
         xmlDomSource = new javax.xml.transform.dom.DOMSource(xmlDoc);
         // Load XSL into transformer object
         tFactory = TransformerFactory.newInstance();
         transformer = tFactory.newTransformer(xslDomSource);
         // Style and display
         transformer.transform(xmlDomSource, new StreamResult(out));
    It has to been changed to:
         xslDoc = documentBuilder.parse(xslURI);
    xmlDoc = XML.stringToDocument(ls_xml);
         // Use Document objects to make DOMSource objects
         xslDomSource = new javax.xml.transform.dom.DOMSource(xslDoc);
         xmlDomSource = new javax.xml.transform.dom.DOMSource(xmlDoc);
         // Load XSL into transformer object
         tFactory = TransformerFactory.newInstance();
    // here xslURI is a URL pointing to an XSL file
         transformer = tFactory.newTransformer(new StreamSource(xslURI));
         // Style and display
         transformer.transform(xmlDomSource, new StreamResult(out));
    The part in ****** is the changed code. Could anyone please shed some light on
    why DomSource doesn't work? Why do I have to use StreamSource?
    Thanks,
    VJ

    Hi,
    For this issue,I think it is related to the custom image.
    I suggest we don't add any drivers to the custom image to test it.
    Meanwhile,I  suggest you upload following logs here for further research. SkyDrive or similar network sharing would be better to use to share your files.
    C:\WINDOWS\PANTHER\setupact.log
    C:\WINDOWS\PANTHER\setuperr.log
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Bridge CC is asking my to 'purge cache'. When I do this doesn't work and freezes my mac. Bridge is unable to work at all. Please help?

    When I start up Bridge CC I get a error message instructing me to purge cache in preferences which I do but it doesn't work and freezes my mac. I cannot curretnly use Bridge CC. PLease help as this is costing me time and money - thank you in advance....

    Hold down the Option key as you launch Bridge, keep it down until you see a dialog box, then click all three options in the re-set box that comes up.
    If you don't see that re-set box, you're doing it wrong, i.e., you're not holding the Option key down fast enough.

Maybe you are looking for

  • ITunes on Windows Vista PC can't connect to AirPort Express. PC returns error message -15000

    I'm running PC with Vista and newest update iTunes. I have set up a network through my AirPort Express, and i am streaming music wirelessly from my PC to AirPort. This used to work, but now i get an error message saying that an error occured while co

  • Watched folder stops working in cluster

    Hi. Have you ever seen this, when an XML file is picked up in the watched folder?? 2009-08-27 17:52:16,660 ERROR [STDERR] Aug 27, 2009 5:52:16 PM com.adobe.idp.jobmanager.util.JobManagerUtil getQueueConnectionFactory SEVERE: JobManager:getQueueConnec

  • Help with Infoset Query

    HI i have created an Infoset Query in SQ02. what would be my next step, before assigning it to a datasource, i want to check whther it has the valid data in it or not. could it be possible. If so can some one guide me how can i do that and so on... T

  • Problems embedding Japanese font

    I'm having problems embedding the font Ryumin-light. It's a Japanese font that is not essential to my document but I'm placing a PDF file that uses the font. I get the message that it can't be embedded at preflight. I don't have the full version of t

  • Restrict certain Storage location from getting displayed in CO06 !!

    Dear all - We have implemented ECC 6 recently & I have a doubt about restricting certain Storage Locations in CO06. I have 2 storage locations for a plant and would like to restrict it in CO06 one of the storage locations. Is there any other way by w