Error reading ByteArrayInputStream after Parsing it.

Hello All,
I have an XML string:
String ji = "<book><person>dsdds</person></book>";
ByteArrayInputStream str = new ByteArrayInputStream(ji.getBytes());I can succesfully read it into a ByteArrayOutputStream like this:
ByteArrayOutputStream bos = new ByteArrayOutputStream();
               byte b;
               while ((b =(byte) str.read()) != -1) {
                    bos.write(b);
               String s = bos.toString();
               System.out.println(s);It works!!
Now I need to parse that XML string:
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
               DocumentBuilder docBuilder =  documentBuilderFactory.newDocumentBuilder();
               Document doc = docBuilder.parse(str);
               doc.getDocumentElement().normalize();After that the reading of the ByteArrayInputStream using .read() does not work.
Does not even throw an exception.
Please help.
I cannot use File objetc for Parsing here.

Hi Masijade,
Thanks but it still throws no output. I marked it to 0
String ji = "<book><person>dsdds</person></book>";
          ByteArrayInputStream str = new ByteArrayInputStream(ji.getBytes());
          ByteArrayOutputStream os=null;
          OutputStream oos = null;
          try
               DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
               DocumentBuilder docBuilder =  documentBuilderFactory.newDocumentBuilder();
               Document doc = docBuilder.parse(str);
               //doc.getDocumentElement().normalize();
               str.mark(0);
               ByteArrayOutputStream bos = new ByteArrayOutputStream();
               byte b;
               while ((b =(byte) str.read()) != -1) {
                    bos.write(b);
               str.reset();
               String s = bos.toString();
               System.out.println(s);Am I doing this right?
Message was edited by:
PremPrem

Similar Messages

  • Error reading data after submit.

    Hi All,
    I have a problem getting some data after i submit a standard report FPO4.
    Here the issue is with a file that is getting created by a dynamic report created and called internally by a report on the same path every time dynamically. say (/devabap/if/out/XXXX.0 for the first time and the next time we run the report file name would be /devabap/if/out/XXXX.1 etc.2,3,4,5,). I am now using the FM: FILE_GET_NAME to get the name and then proceeding further to get my output.
    But when i am trying to use the above function module for a single run i am getting the correct result as ther is only one file present in the path.If i run the same report with different variants parallely in background then in the application server there are there are two or more files already created for two different run's as said above ( .0 and .1) the logic is such that i have to get the latest file and so a wrong file is getting picked up at the time of parallel run.
    Note: When i Submit the transaction the ouput screen along with the data contains the File path & File Name as said above.I am trying to get the file name from the submit screen as the file is generated dynamically. For change in the instance (run) again there will be change in the file name. So system is not identifying the correct file. The dynamic program that is getting created and placing the file in the path is opened in another session (NEW) and hence i am not a ble to use any of the methods like ( SET/GET Parameters) also the IMPORT/EXPORT statements.
    The flow of the execution is (Program A --> Standard Transaction B --> Dynamically created Program C --> File is getting created) . Here i want the file name that program c is creating in my zprogram A.
    Could any one please advise?
    Regards,
    Vijay

    Hi All,
    I have a problem getting some data after i submit a standard report FPO4.
    Here the issue is with a file that is getting created by a dynamic report created and called internally by a report on the same path every time dynamically. say (/devabap/if/out/XXXX.0 for the first time and the next time we run the report file name would be /devabap/if/out/XXXX.1 etc.2,3,4,5,). I am now using the FM: FILE_GET_NAME to get the name and then proceeding further to get my output.
    But when i am trying to use the above function module for a single run i am getting the correct result as ther is only one file present in the path.If i run the same report with different variants parallely in background then in the application server there are there are two or more files already created for two different run's as said above ( .0 and .1) the logic is such that i have to get the latest file and so a wrong file is getting picked up at the time of parallel run.
    Note: When i Submit the transaction the ouput screen along with the data contains the File path & File Name as said above.I am trying to get the file name from the submit screen as the file is generated dynamically. For change in the instance (run) again there will be change in the file name. So system is not identifying the correct file. The dynamic program that is getting created and placing the file in the path is opened in another session (NEW) and hence i am not a ble to use any of the methods like ( SET/GET Parameters) also the IMPORT/EXPORT statements.
    The flow of the execution is (Program A --> Standard Transaction B --> Dynamically created Program C --> File is getting created) . Here i want the file name that program c is creating in my zprogram A.
    Could any one please advise?
    Regards,
    Vijay

  • Strange error message in after effects

    Hello,  I am experincing an error message that I have not seen befor, not only that but I can not find anything on it when I search google.
    The error reads.
    "after effects error:internal verification failure, sorry! (Node recieved more checkout request than expected"
    I am running cs5 on a wwindows 7 computer. 64bit
    anyone have any thoughs.
    p.s
    The only thing I have done defferent is I purchased Red Gients Denioser.
    I get the error message durring the render at the location where I have applied the denoiser.

    I struggle a lot with RG's MB.Denoiser too, but I have found few workarounds for this bug:
    1. At first try change "Frame Sample" to other frame (usually first frame of trimmed layer = layer's IN point) - this helps in 90% cases.
    2. Secondly avoid using Denoiser in pre-comps - in many cases this crash rendering. Especially when Continious Rasterizer/Collapse Transformation is used. So try to use Denoiser in topmost comp.
    3. Thirdly - try to use earlier mentioned adjustment layer instead of applying Denoiser directly to layer.
    Good luck!
    ps
    And one more TIP: make some tests and try to set "Frame Sample" to frame before layer's IN point (if possible), because first processed frame have much less noise removal than following frames.
    Because I lastly used Denoiser on prerendered edits, so I haven't chance to test this, but I notice that first frame of layer have a lot more niose than subsequent.

  • I downloaded acrobat reader dc. after download completed, I could not open many PDF files. Error read: "could not open this file because its either not a supported file or because the file has been damaged". I opened a new user account and moved these fil

    I recently downloaded acrobat reader dc. After download was complete, I could not open PDF files. Error read "Adobe acrobat reader DC could not open this file because its either not a supported file or the file has been damaged". Any suggestions?

    HI davidd92392148,
    Is this error occurring for all PDF files that you try to open? There is an issue where all file icons can change to the PDF icon after installation, so is it possible that the files you're trying to open have been affected by this issue (and aren't actually PDF files)? Please see Application, file icons change to Acrobat/Reader icon.
    If that document isn't the key, then please tell us more about these files. Where are they stored? Did they open in previous versions of Reader?
    Best,
    Sara

  • Error reading memory - W3WP.exe after running rpt

    We have a few reports that are causing memory errors to occur. This is under Windows Server 2003 using CR 2008. The reports are exported from a Windows application to .rpt files. These are then displayed using the Report Viewer from a .Net web app. Most of the reports we generate run fine but there are about 6 that are causing these errors. The problem .rpts do display fine when viewing the report using the VS CR designer.
    The scenario for report 'X' is that I can display a number or reports without a problem and the first time I display report 'X' it also is correct. The next report I attempt to display after report 'X' pops up the error on W3WP.exe...The instruction at "0x7c81bb72" referenced memory at "0x30303030". The memory could not be "read". The event log after this shows...
    Faulting application w3wp.exe, version 6.0.3790.3959, faulting module ntdll.dll, version 5.2.3790.4789, fault address 0x0002bac2.
    I have tried a number of combinations for displaying reports but the error always occurs after running report 'X'. As a side note the same reports causing these problems have also been tested in CR2010 on Windows Server 2008 - 64 bit and they also have problems there. In that case we are getting the Event ID 4353 - KeycodeDecoder.dll error in the event log which I have seen in other posts.
    Any ideas on what to look for in the problem reports? What other info can I supply?
    Thank you.
    - David

    What CR Service pack are you on? You should be on SP3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    Do you see the issue on your dev computer or after you deploy?
    Create a new simple web app;
    viewer
    code; CrystalReportViewer1.Reportsource = <path to report"
    Does the test app reproduce the issue? If it does, would you be able to share the report?
    - Ludek

  • Launching LR4 after a restart gives the error message "Lightroom encountered an error reading from its preview cache and needs to close" no fix on re

    launching LR4 after a restart gives the error message "Lightroom encountered an error reading from its preview cache and needs to close" no fix on restart

    Delete your preview cache, it is a folder whose name ends with Previews.LRDATA

  • After i installed updates for my mac mini server, the web services for the server app wont start, it gives an error massage: "Error Reading Settings"

    After i installed updates for my mac mini server, the web services for the server app wont start, it gives an error massage: "Error Reading Settings"
    The system logs reads:
    Mar 29 22:06:25 server servermgrd[82]: servermgr_web:  Error Domain=XSServerFoundationErrorDomain Code=4 "Failed to read settings: Exception:
              undefined method `downcase' for nil:NilClass
              ." UserInfo=0x7fc547901080 {NSLocalizedDescription=Failed to read settings: Exception:
              undefined method `downcase' for nil:NilClass

    To check the local network for some of the common configuration problems, launch Terminal.app and issue the following diagnostic command:
    sudo changeip -checkhostname
    That'll report some local configuration information and then either no errors detected and no changes required, or it'll point to whatever configuration errors or issues it might detect.  That doesn't catch everything, but it catches the common errors.
    FWIW, 192.168.0.0/24 and 192.168.1.0/24 are poor choices for the local network, as VPNs are based on IP routing and IP routing gets tangled when the same subnet is used on both ends of the VPN. 192.168.0.0/24 and 192.168.1.0/24 are near ubiquitous in home networks and coffee shops.

  • Hi, lightroom has crashed. I am using windows 7. I can't open lightroom after trying to access a catalogue. error reading

    the error reading is: lightroom-opening catalogue. Temporary import data.d.h.Ircat. This message appears every time I try to access lightroom. It tells me that a shortcut has stopped working.

    Thanks Geoff. I was finally able to locate the ".lrcat.lock" file relevant to the catalog I want to open. Once I deleted it, LR5 was able to access my images. Problem solved. THANK YOU

  • XL Reporter - Santax error in selection after upgrading from PL26 to PL29

    Hello all there,
    again a question concerning my old friend XLR!
    We are running SAPB0 2005A SP01 PL29.
    After an update of XLR PL26 (Version 6.80.01.26 / 6.80.367) to XLR PL29
    (Version 6.80.01.26 / 6.80.388) in some reports the following syntax
    error came up: "Definition parsing failed; syntax error near #NULL".
    This is the selection in which the syntax error is reported:
    BPA(CardType = "C" And scrIncl_0 = "N" Or
    CardType = "C" And scrIncl_0 = #NULL )
    ARDT( Code = "ARCreditMemo","Invoice" )
    In XLR PL26 the report runs without any problems! The following as
    additional information on the meaning of this selection:
    We select all clients (CardType = "C") where the UDF scrIncl_0 is
    either assigned the value "N" or a value is not yet assigned (#NULL).
    Again I stress: It works as expectedin XLR PL26 !!
    I had checked all SAP notes concerning XLR PL29 or #NULL before I
    posted this question but had found nothing pointing into this direction!
    Best Regards
    Frank Romeni

    Hi Daan,
    you were right - it had to do with the XLR naming of my UDF.
    Is there any reason for XLR to change UDF names from e.g. name to name_0 or to "name_0" (with apostrophes) ?
    In my last reply I wrote "the UDF are all available with there old names. I can make this sure, since other selections in the same report definition use the UDF - without the #NULL construct - are not rejected."
    But the other selections were not rejected with syntax errors, since XLR put apostrophes round the wrong names. In the mentioned selection the UDF name was not put in apostrophes and therefore the selection was rejected with a syntax error. Unfortunately I realised the wrong names in the not rejected selection only after I checked the results (all empty) when I executed the report.

  • How to compare after parsing xml file

    Hi,
    following code, parse the input.xml file, counts how many nodes are there and writes the node name and its value on screen.
    1) i am having trouble writing only node name into another file instead of writing to screen.
    2) after parsing, i like to compare each node name with another .xsd file for existence.
    Please keep in mind that, input.xml is based on some other .xsd and after parsing i have comparing its tag with another .xsd
    Need you help guys.
    thanks
    * CompareTags.java
    import java.io.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    /** This class represents short example how to parse XML file,
    * get XML nodes values and its values.<br><br>
    * It implements method to save XML document to XML file too
    public class CompareTags {
    private final static String xmlFileName = "C:/input.xml";
         int totalelements = 0;
    /** Creates a new instance of ParseXMLFile */
    public CompareTags() {
    // parse XML file -> XML document will be build
    Document doc = parseFile(xmlFileName);
    // get root node of xml tree structure
    Node root = doc.getDocumentElement();
    // write node and its child nodes into System.out
    System.out.println("Statemend of XML document...");
    writeDocumentToOutput(root,0);
                   System.out.println("totalelements in xyz tag " + totalelements);
              System.out.println("... end of statement");
    /** Returns element value
    * @param elem element (it is XML tag)
    * @return Element value otherwise empty String
    public final static String getElementValue( Node elem ) {
    Node kid;
    if( elem != null){
    if (elem.hasChildNodes()){
    for( kid = elem.getFirstChild(); kid != null; kid = kid.getNextSibling() ){
    if( kid.getNodeType() == Node.TEXT_NODE ){
    return kid.getNodeValue();
    return "";
    private String getIndentSpaces(int indent) {
    StringBuffer buffer = new StringBuffer();
    for (int i = 0; i < indent; i++) {
    buffer.append(" ");
    return buffer.toString();
    /** Writes node and all child nodes into System.out
    * @param node XML node from from XML tree wrom which will output statement start
    * @param indent number of spaces used to indent output
    public void writeDocumentToOutput(Node node,int indent) {
    // get element name
    String nodeName = node.getNodeName();
    // get element value
    String nodeValue = getElementValue(node);
    // get attributes of element
    NamedNodeMap attributes = node.getAttributes();
    System.out.println(getIndentSpaces(indent) + "NodeName: " + nodeName + ", NodeValue: " + nodeValue);
    for (int i = 0; i < attributes.getLength(); i++) {
    Node attribute = attributes.item(i);
    System.out.println(getIndentSpaces(indent + 2) + "AttributeName: " + attribute.getNodeName() + ", attributeValue: " + attribute.getNodeValue());
    // write all child nodes recursively
    NodeList children = node.getChildNodes();
              //int totalelements = 0;
    for (int i = 0; i < children.getLength(); i++) {
    Node child = children.item(i);
                   //     System.out.println("child value.."+child);
    if (child.getNodeType() == Node.ELEMENT_NODE) {
    writeDocumentToOutput(child,indent + 2);
                             if(node.getNodeName() == "DATA"){
                             totalelements = totalelements+1;}
                        //System.out.println("totalelements in DATA tag " + totalelements);
    /** Parses XML file and returns XML document.
    * @param fileName XML file to parse
    * @return XML document or <B>null</B> if error occured
    public Document parseFile(String fileName) {
    System.out.println("Parsing XML file... " + fileName);
    DocumentBuilder docBuilder;
    Document doc = null;
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    docBuilderFactory.setIgnoringElementContentWhitespace(true);
    try {
    docBuilder = docBuilderFactory.newDocumentBuilder();
    catch (ParserConfigurationException e) {
    System.out.println("Wrong parser configuration: " + e.getMessage());
    return null;
    File sourceFile = new File(fileName);
    try {
    doc = docBuilder.parse(sourceFile);
    catch (SAXException e) {
    System.out.println("Wrong XML file structure: " + e.getMessage());
    return null;
    catch (IOException e) {
    System.out.println("Could not read source file: " + e.getMessage());
    System.out.println("XML file parsed");
    return doc;
    /** Starts XML parsing example
    * @param args the command line arguments
    public static void main(String[] args) {
    new CompareTags();
    }

    hi,
    check out the following links
    Check this blog to extract from XML:
    /people/kamaljeet.kharbanda/blog/2005/09/16/xi-bi-integration
    http://help.sap.com/saphelp_nw04/helpdata/en/fe/65d03b3f34d172e10000000a11402f/frameset.htm
    Check thi link for Extract from any DB:
    http://help.sap.com/saphelp_nw04s/helpdata/en/58/54f9c1562d104c9465dabd816f3f24/content.htm
    regards
    harikrishna N

  • Urgent :How to get values after parsing

    Hi ..
    I am using SAX parser for parsing a xml document.
    After parsing i want to get the valuse to make a jsp page. how do i get the Values after parsing.
    the code i am working on is:
    import java.util.*;
    import java.lang.*;
    import java.io.*;
    import java.io.IOException;
    import org.apache.xerces.parsers.SAXParser;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    public class performDemo
    public static void main(String args[]) throws Exception
         performDemo p =new performDemo();
         p.performDemo(args[0]);
    public void performDemo(String uri)
    System.out.println("Parsing XML File: " + uri + "\n\n");
    try {
    XMLReader parser = new SAXParser();
    ContentHandler contentHandler = new MyContentHandler();
    parser.setContentHandler(contentHandler);
    parser.parse(uri);
    } //try ends here
    catch (IOException e)
    System.out.println("Error reading URI: " + e.getMessage());
         } //catch ends here
    catch (SAXException e)
    System.out.println("Error in parsing: " + e.getMessage());
    } //catch ends here
    } //function ends here
    class MyContentHandler implements ContentHandler {
    private Locator locator;
    public void setDocumentLocator(Locator locator) {
    System.out.println(" * setDocumentLocator() called");
    this.locator = locator;
    public void startDocument() throws SAXException {
    System.out.println("Parsing begins...");
    public void endDocument() throws SAXException {
    System.out.println("...Parsing ends.");
    public void processingInstruction(String target, String data)
    throws SAXException {
    System.out.println("PI: Target:" + target + " and Data:" + data);
    public void startPrefixMapping(String prefix, String uri) {
    System.out.println("Mapping starts for prefix " + prefix +
    " mapped to URI " + uri);
    public void endPrefixMapping(String prefix) {
    System.out.println("Mapping ends for prefix " + prefix);
    public void startElement(String namespaceURI, String localName,
    String rawName, Attributes atts)
    throws SAXException {
    System.out.print("startElement: " + localName);
    if (!namespaceURI.equals("")) {
    System.out.println(" in namespace " + namespaceURI +
    " (" + rawName + ")");
    } else {
    System.out.println(" has no associated namespace");
    for (int i=0; i<atts.getLength(); i++)
    System.out.println(" Attribute: " + atts.getLocalName(i) +
    "=" + atts.getValue(i));
    public void endElement(String namespaceURI, String localName,
    String rawName)
    throws SAXException {
    System.out.println("endElement: " + localName + "\n");
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("characters: " + s);
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("ignorableWhitespace: [" + s + "]");
    public void skippedEntity(String name) throws SAXException {
    System.out.println("Skipping entity " + name);
    PLese suggests.

    Dear Gaurav
    Please consider the blow JSP CODE:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" autoFlush="true" session="true" buffer="8kb"%>
    <HTML>
    <HEAD>
    <TITLE> SAX PARSER BEAN</TITLE>
    </HEAD>
    <BODY>
    <jsp:useBean id="p" class="sax.performDemo" scope="page"/>
    <%
    String file = request.getParameter("loc");
    String xpath = request.getParameter("xpath");
    %>
    <br> In <%=file%> and for <%=xpath%> is <br> <%=p.performDemo(file,xpath)%>
    <br><br>Node Names: <%=p.getNodes()%>
    <br><br>AttNames: <%=p.getAttNames()%>
    <br><br>AttValues: <%=p.getAttValues()%>
    <br><br><%=p.clearAll()%>
    </BODY>
    </HTML>
    THIS IS CORRESPONDING SAX BEAN TO THE ABOVE JSP CODE
    I am using "sax" package. PLease make changes accordingly.
    package sax;
    import java.util.*;
    import java.lang.*;
    import java.io.*;
    import java.io.IOException;
    import org.apache.xerces.parsers.SAXParser;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    public class performDemo
    public static ArrayList NodeNames = new ArrayList();
    public static ArrayList attNames = new ArrayList();
    public static ArrayList attValues = new ArrayList();
    public static String QueryString="",QString1="", QString2="",start="",end="";
    public static boolean start_collecting=false;
    public static void main(String args[]) throws Exception
    performDemo p =new performDemo();
    System.out.println("\nResult: "+p.performDemo(args[0],args[1]));
    System.out.println("\nNodes "+p.getNodes());
    System.out.println("\nAttNames "+p.getAttNames());
    System.out.println("\nAttValues "+p.getAttValues());
    public String performDemo(String uri,String xpath)
    //System.out.println("Parsing XML File: " + uri + "\n\n");
    QueryString=xpath;
    StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
    if(QueryString_ST!=null)
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
    try
    XMLReader parser = new SAXParser();
    ContentHandler contentHandler = new MyContentHandler();
    parser.setContentHandler(contentHandler);
    parser.parse(uri);
    return("Given File Parsed Successfully!");
    } //try ends here
    catch (IOException e)
    //System.out.println("Error reading URI: " + e.getMessage());
    return("IO Exception Occured!! \n \n Check the file name and path");
    } //catch ends here
    catch (SAXException e)
    //System.out.println("Error in parsing: " + e.getMessage());
    return("SAX Exception Occured!!! \n \n Check the xpath ");
    } //catch ends here
    } //function ends here
    public ArrayList getNodes()
    return NodeNames;
    public ArrayList getAttNames()
    return attNames;
    public ArrayList getAttValues()
    return attValues;
    public String clearAll()
    NodeNames.clear();
    attNames.clear();
    attValues.clear();
    return("Cleared!!");
    class MyContentHandler extends performDemo implements ContentHandler {
    private Locator locator;
    public void setDocumentLocator(Locator locator) {
    //System.out.println(" * setDocumentLocator() called");
    this.locator = locator;
    public void startDocument() throws SAXException {
    //System.out.println("Parsing begins...");
    public void endDocument() throws SAXException {
    //System.out.println("...Parsing ends.");
    public void processingInstruction(String target, String data)
    throws SAXException {
    //System.out.println("PI: Target:" + target + " and Data:" + data);
    public void startPrefixMapping(String prefix, String uri) {
    //System.out.println("Mapping starts for prefix " + prefix + " mapped to URI " + uri);
    public void endPrefixMapping(String prefix) {
    //System.out.println("Mapping ends for prefix " + prefix);
    public void startElement(String namespaceURI, String localName,String rawName, Attributes atts)throws SAXException
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
                   if(start_collecting)
    if((atts.getLength())>1)
                   NodeNames.add(localName);
                   for(int i=0;i<=(atts.getLength()-1);i++)
              attNames.add((String)atts.getLocalName(i));
              attValues.add((String)atts.getValue(i));
    //System.out.print("startElement: " + localName);
    //if (!namespaceURI.equals("")) {
    ////System.out.println(" in namespace " + namespaceURI + " (" + rawName + ")");
    //} else {
    //System.out.println(" has no associated namespace");
    //for (int i=0; i<atts.getLength(); i++)
    //System.out.println(" Attribute: " + atts.getLocalName(i) +"=" + atts.getValue(i));
    public void endElement(String namespaceURI, String localName,String rawName) throws SAXException
         end=localName;
         if(end.equals(QString2))
              start_collecting=false;
    //System.out.println("endElement: " + localName + "\n");
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    //System.out.println("characters: " + s);
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    //System.out.println("ignorableWhitespace: [" + s + "]");
    public void skippedEntity(String name) throws SAXException
    //System.out.println("Skipping entity " + name);
    Cheers....!!
    Newton
    Bangalore, INDIA

  • SPAU error reading log file

    Hi All,
    We have an R/3 4.0B landscape and are working on some changes.  I want to see if any SAP delivered objects have been modified in the past, but whenever I run SPAU or SPDD, I get an error message
    "Error Reading File D:\usr\sap\put\log\umodstat.log"  "Message Number 0U 503".
    I can read a text file in the same directory through AL11, so I'm reasonably sure it's not an OS permission problem.
    Any ideas?
    Thanks,
    Alan

    Hi All,
    I had same issue trying to edit sat.trc file, I fixed this problem by manual editing sat.trc file and modified the following line:
    <!FORMATTER[com.sap.tc.logging.perf.PerfFormatter]/>
    change to:
    <!FORMATTER[com.sap.tc.logging.ListFormatter]/>
    after changes you will able to open file with Visaul Admin Log Viewer or standalone logviewer.
    Hope it helps.
    Regards

  • Error reading zip file in Java 6

    We have a bespoke installer program that fails, intermittently, in Java 6 on Windows. After installing some files, it then fails with a stack trace like this:
    java.util.zip.ZipException: error reading zip file
         at java.util.zip.ZipFile.read(Native Method)
         at java.util.zip.ZipFile.access$1200(ZipFile.java:29)
         at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:447)
         at java.util.zip.ZipFile$1.fill(ZipFile.java:230)
         at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
         at java.io.FilterInputStream.read(FilterInputStream.java:90)
         at com.XXXX.trent.installer.Installer.writeStreamToFile(Unknown Source)
         at com.XXXX.trent.installer.Installer.installFile(Unknown Source)
         at com.XXXX.trent.installer.PatchFileInstaller.installFile(Unknown Source)
         at com.XXXX.trent.installer.PatchFileInstaller.installFiles(Unknown Source)
         at com.XXXX.trent.installer.UpgradeInstaller$TpfAction.run(Unknown Source)
         at com.XXXX.trent.installer.UpgradeInstaller.runActions(Unknown Source)
         at com.XXXX.trent.installer.UpgradeInstaller.install(Unknown Source)
         at com.XXXX.trent.installer.TrentInstall$SoftwareInstallStage.install(Unknown Source)
         at com.XXXX.trent.installer.TrentInstall$UpgradeInstallWorker.install(Unknown Source)
         at com.XXXX.trent.installer.PatchInstall$InstallWorker.construct(Unknown Source)
         at com.XXXX.trent.utils.SwingWorker$2.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:619)The same code works in Java 5 on the same environments that it now fails in Java 6 (1.6.0_16).
    Any ideas?
    Thanks.

    gimbal2 wrote:
    it is not weird, it is a bug in the application. Don't let the upgrade from Java 5 to Java 6 make you believe otherwise.It's a singularly bad exception message though. I would have thought that something from java.util might be a bit more explicit about what the problem is.
    Winston

  • Error reading Maya file

    I was trying to import a camera into AE, but I encounted the error: AEGP Plugin MayaImport: Error reading Maya file. (5027::12)
    Here's how I did:
    Version of softwares:
    Maya 2014 and 2013
    After Effects CS6
    System:
    Windows 7 & Mac OS 10.6.8
    I exported Camera and locator from a maya(.mb) file and save it as a .ma file. I baked all keyables of the camera.
    Then I tried to import it into AE. and the error occured.
    I tried different versions of maya and different systems, as I mentioned above. But the results were the same.
    Does anybody know how to fix it? Or show me another way to import Maya's camera into AE?
    Thanks!

    Without seeing the actual Maya file nobody can say anything. Could simply need a manual editing of the file version info or some reformatting...
    Mylenium

  • Error reading/writing file "com.garageband.cs":`≤Ć». message

    Hey all! Don't know if anyone can help but I keep getting the message...
    " Error reading/writing file "com.garageband.cs":`≤Ć». " with a cancel button.
    If you click on it it does go away, but after a time playback starts skipping and stuff.
    Anyone help please?
    Thanks
    Righini

    first two things to try for “oddball” probs:
    http://www.bulletsandbones.com/GB/GBFAQ.html#oddballprobs
    (Let the page FULLY load. The link to your answer is at the top of your screen)

Maybe you are looking for

  • Code to connect to database in  Webdynpro-- iviews

    Hi All- Could you let me know the code to connect to database in WebDynPro-->iviews. Regards, Cris

  • How do i copy and print groups from my address book?

    How do I copy and print groups(with contact information) from address book? I want to copy a group of contacts in list form that ideally I can paste into Excel.

  • How to turn on private browsing in ios8

    ios7 had a private browsing option to click on when you tapped the search bar. How do you turn on private browsing in ios8?

  • Sound problems: volume always muted.

    iMac 20" dual core Tiger 10.4.8 The com.apple.soundpref.plist file has disappeared from the Macintosh HD Library. The volume now is muted. When it's at 50% I can barely hear anything from the speakers. I've been told I need to do an Archive and Reins

  • I can't use instll games or download

    Hello Pls I want help In my iPad : the problem that every time I try to go to iTunes to get ( games or anything els ) and when select one of any game free the iPad asking me about applE ID us usual .so I put my ID ..than I wait ..to instill my game !