SAXParser.parse never returns!

I'm using sockets to transfer xml data. When I feed my InputSource (containing the xml document) into the SAXPaser.parse method I can see the events being fired correctly (ie: startDocument, characters, startElement,etc) apart from the endDocument event. The parse method is executing all my code but it never returns! What should cause it to return? Do I need to close the socket connection or should it recognise when it has reached the final closing element?

I couldn't find that exact implementation but I looked into the crimson version and it reads until it hits an EOF. It's a reasonable guess that the xerces version does the same. I think it has to read in the whole file becasue it cannot tell whether the document is well-formed otherwise.

Similar Messages

  • All validation error from saxParser.parse

    I am getting just the 1st error but I want all the errors in the 1st pass itself.
    Attaching the code for reference also.
    ?would really appreciate you suggestion.
    ==code---
    public class EDITExtractSchema {
    static Document document;
    public void validateXMLVOusingXSD(String str)
    try {
    //create a SchemaFactory capable of understanding W3C XML Schemas (WXS)
    SchemaFactory factory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
    //Set the error handler to receive any error during Schema Compilation
    XMLErrorHandler errorHandler = new XMLErrorHandler();
    factory.setErrorHandler(errorHandler);
    //set the resource resolver to customize resource resolution
    //factory.setResourceResolver( new MyLSResourceResolver());
    // load a WXS schema, represented by a Schema instance
    File schemaFile = new File("C:/Temp/project2-CorrVO/XSDs/TaxExtract5498DetailVO.xsd");
    Schema schema = factory.newSchema(new StreamSource(schemaFile));
    SAXParserFactory spf = SAXParserFactory.newInstance();
    //spf.setNamespaceAware(true);
    //spf.setValidating(true);
    spf.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
    //Just set the Schema instance on SAXParserFactory
    spf.setSchema(schema);
    //Obtain the SAXParser instance
    SAXParser saxParser = spf.newSAXParser();
    //parser will parse the XML document but validate it using Schema instance
    //saxParser.parse(new File(str), myHandler);
    saxParser.parse(new File(str),new MyDefaulyHandler());
    }catch(ParserConfigurationException e) {
    System.out.println("ParserConfigurationException-" + e);
    }catch (SAXException e) {
    System.out.println("SAXException-" + e);
    catch (Exception e) {
    System.out.println("Exception-" + e);
    /*// output the errors XML
    XMLWriter writer = null;
    try {
    writer = new XMLWriter(OutputFormat.createPrettyPrint());
    } catch (UnsupportedEncodingException e) {
    System.out.println("validate error" + e);
    e.printStackTrace();
    try {
    writer.write(errorHandler.geterrors());
    } catch (IOException e) {
    System.out.println("validate error" + e);
    e.printStackTrace();
    //implement error handler
    public static class XMLErrorHandler implements ErrorHandler {
    private boolean valid = true;
    public void reset() {
    // Assume document is valid until proven otherwise
    valid = true;
    public boolean isValid() {
    return valid;
    public void warning(SAXParseException exception) throws SAXException{
    System.out.println("Warning: " + exception.getMessage());
    System.out.println(" at line " + exception.getLineNumber()
    + ", column " + exception.getColumnNumber());
    System.out.println(" in entity " + exception.getSystemId());
    valid = true;
    public void error(SAXParseException exception) throws SAXException{
    System.out.println("Error: " + exception.getMessage());
    System.out.println(" at line " + exception.getLineNumber()
    + ", column " + exception.getColumnNumber());
    System.out.println(" in entity " + exception.getSystemId());
    valid = true;
    /* // output the errors XML
    XMLWriter writer = null;
    try {
    writer = new XMLWriter(OutputFormat.createPrettyPrint());
    } catch (UnsupportedEncodingException e) {
    System.out.println("validate error" + e);
    e.printStackTrace();
    try {
    writer.write((Object)exception);
    } catch (IOException e) {
    System.out.println("validate error" + e);
    e.printStackTrace();
    public void fatalError(SAXParseException exception) throws SAXException {
    System.out.println("Fatal Error: " + exception.getMessage());
    System.out.println(" at line " + exception.getLineNumber()
    + ", column " + exception.getColumnNumber());
    System.out.println(" in entity " + exception.getSystemId());
    valid = true;
    public static class MyDefaulyHandler extends DefaultHandler {
    private boolean valid = true;
    public void reset() {
    // Assume document is valid until proven otherwise
    valid = true;
    public boolean isValid() {
    return valid;
    public void warning(SAXParseException exception) throws SAXException{
    System.out.println("Warning: " + exception.getMessage());
    System.out.println(" at line " + exception.getLineNumber()
    + ", column " + exception.getColumnNumber());
    System.out.println(" in entity " + exception.getSystemId());
    valid = true;
    public void error(SAXParseException exception) throws SAXException{
    System.out.println("Error: " + exception.getMessage());
    System.out.println(" at line " + exception.getLineNumber()
    + ", column " + exception.getColumnNumber());
    System.out.println(" in entity " + exception.getSystemId());
    valid = true;
    /* // output the errors XML
    XMLWriter writer = null;
    try {
    writer = new XMLWriter(OutputFormat.createPrettyPrint());
    } catch (UnsupportedEncodingException e) {
    System.out.println("validate error" + e);
    e.printStackTrace();
    try {
    writer.write((Object)exception);
    } catch (IOException e) {
    System.out.println("validate error" + e);
    e.printStackTrace();
    public void fatalError(SAXParseException exception) throws SAXException {
    System.out.println("Fatal Error: " + exception.getMessage());
    System.out.println(" at line " + exception.getLineNumber()
    + ", column " + exception.getColumnNumber());
    System.out.println(" in entity " + exception.getSystemId());
    valid = true;
    public static void main(String[] args) {
    EDITExtractSchema schemaClass = new EDITExtractSchema();
    try {
    schemaClass.validateXMLVOusingXSD("C:/Temp/project2-CorrVO/XSDs/TaxExtract5498DetailVO.xml");
    }catch (Exception e) {
    System.out.println("xml file read error Exception-" + e);
    --====
    Regards,
    Tapas

    No really, it will report all the error if you turn on the validation and implement the error hander methods(error()).
    ALSO,
    My XSD had "<xs:sequence>" which was causing the problem.
    We had to change it to "<xs:all>". Now all the errors are getting reported.
    thx!

  • SAX parsing to return element instead of document

    Hi,
    Is there any sample implementation which would allow my SAX parser to return just Element object instead of returning the whole document.
    Thanks for your help.

    // XML FILE
    <Account>
    <StudentInfo>
    <firstname>John</firstname>
    <lastname>Doe</lastname>
    <age>21</age>
    </StudentInfo>
    <StudentInfo>
    <firstname>Sarah</firstname>
    <lastname>Smith</lastname>
    <age>32</age>
    </StudentInfo>
    </Account>
    // This parser will only print out the firstname
    class MyParser extends DefaultHandler{
    private String firstName = "";
    private boolean boolFName = false;
    public void parse(String xmlDoc) {
    try{
    SAXParser parser = new SAXParser();
         parser.setContentHandler(this);
    parser.parse(new InputSource(new StringReader(xmlDoc)));
    catch (SAXException se){ System.out.println(se.toString()); }
    catch (IOException ie){ System.out.println(ie.toString()); }
    public void startElement(String ns, String name, String qName, Attributes atts) throws SAXException {
    if (name.equals("FirstName"))
    boolFName = true;
    public void characters(char[] ch, int start, int length) throws SAXException {
    String s = new String(ch, start, length);
    if (boolFName)
    firstname = s;
    boolFName = false;
    public void endElement(String ns, String name, String qName) throws SAXException {
    if (name.equals("StudentInfo")
    displayName(name);
    public void displayName(String name){
    System.out.println(name);
    } // end of MyParser

  • Adobe took early termination penalty   $ 764.30 from my account 10days ago insisting staff mistake but never returned  $ 764.30 back. I have chatted with two staffs for this and all I got was "please wait with patient"... 10 days already have passed since

    This is totally insane!! They took someone's money in a sec by 'MISTAKE' but haven't returned after 10days.
    I already have chatted with two staffs about this but different from what they promised, this still has not solved yet!
    My devoted time for this was totally wasted and I am still in suffering.
    I think this is theft!!!  What shall I do more?!

    I am really sorry to bring this issue to the forum but had no choice. Like I mentioned above, I already have contacted them but never returned me back. Sick of chatting with those staffs who act like answering machine and wasting my time because of their mistake. After I finally decided to post this last night, then they called me this morning that I have to wait 5days more.
    Sorry again, and thanks for your reply.
    J

  • JNI_CreateJavaVM() (1.4.0) NEVER returns if I call it from DLL !

    Hello,
    I'm invoking java application from C++ exe (Win2000) and this works almost fine (except DestroyJavaVM()), but if the same piece of code that handles Java resides in DLL then JNI_CreateJavaVM() (1.4.0) NEVER returns and the process gets stuck !!!
    What could be the reason ?
    Thanx !

    Hi,
    JVM can start java application from DLL if the application (that embeds java application and DLL) has message loop (or simple endless while loop, I tested).
    Vitally

  • Toolkit.getDefaultToolkit() in Java service never returns on Windows

    I'm stumped by this problem. It appears to be specific to a single machine as I can reproduce it reliably there but not on other machines. I'm hoping someone has some thoughts on what could be going on.
    Here's the scenario:
    I have Tomcat 5 running as a service on a new installed Windows 2000 Server with up to date service packs and j2sdk1.4.2_06. The service is configure to run headless.
    I have a webapp that performs simple image transformations using AWT and Java2D. Any invocation of Toolkit.getDefaultToolkit() never returns. The thread just sits there consuming no CPU and does not throw an exception. I've narrowed it further to a call to new sun.awt.windows.WToolkit() in getToolKit(). sun.awt.windows.WToolkit is the value of the system property awt.toolkit.
    I can reproduce this exact behavior in a different scenario: the server is running sshd on cygwin. If I ssh to the server and run the following class, it also hangs at new sun.awt.windows.WToolkit().
    public class ToolkitTester
      public static void main(String[] args)
        System.out.println("awt.toolkit = " + System.getProperty("awt.toolkit"));
        System.out.print("Invoking: new sun.awt.windows.WToolkit()... ");
        new sun.awt.windows.WToolkit();
        System.out.println("done.");
    }Running this same class from a shell on the server works just fine.
    I have tried j2sdk1.4.2_03 and jdk1.5 with the same results. I've replicated this second scenario (logging in over ssh) on another Windows 2000 server and do not see this behavior.
    Any thoughts?
    Alon

    Okay. Here's the fix...
    The 'no video card' comment was actually pretty close. The issue appears to be with DirectDraw support. We found this by watching regmon as the testing code ran. Installing a new video driver may have addressed this but so does disabling using DirectDraw as described here:
    http://java.sun.com/products/java-media/2D/forDevelopers/java2dfaq.html#dither
    java -Dsun.java2d.noddraw=true
    Wow. Weird one.
    Alon

  • Problems with using SAXParser.parse with an InputStream

    Hello:
    I have successfully run the echo01 program from the XML tutorial. I made the following changes to parse the output from a servlet which generates an XML document.
    URL recordedSensor = new URL("http://redbd01:8010/servlet/RecordedSensor?vin=1M000000000000001");
    URLConnection rsConn = recordedSensor.openConnection();
    // Parse the input
    SAXParser saxParser = factory.newSAXParser();
    saxParser.parse( rsConn.getInputStream(), handler);
    I get the following errors when I try to run the code.
    org.xml.sax.SAXParseException: java.lang.NullPointerException
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:393)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:191)
    at ServletInterface.main(ServletInterface.java:29)
    I think I have the problem narrowed down to the handlers accessing the class variable out which is a Writer the emit() method uses to output the document. When I replace out.write in emit() with System.out.println() the code works.
    I've tried accessing other class variables in the handler methods with similar results.
    Anybody encountered similar problems? And what is the solution.
    Thanks in advance,
    Gary

    I have the same problem, if you find a solution let me know. I've double checked my objects to make sure their not null, I've checked my constructors in the extended default handler, not really sure where else to look, its such a simple program....

  • Select count(Key_Field) from table_name never returns

    I am doing some scalability tests and am building a db w/table that will contain 400Million records. I am trying to see how far along I am in the process, and am experiencing this problem.
    The select count(ID) never returns.
    Does anyone have any suggestions for me as to how i might make it perform better? I am not too familiar with such large scale implementations, so any advice would be appreciated, and you can feel free to tell me the most basic info... (I do read docs, etc, but there might be a place I have not yet searched..)
    The hardware is not an issue, at least for my testing, as it is as follows, and I see the IO on the arrays is busy, but not too busy, and that is to be expected, and we are neither CPU or RAM bound.
    SUN E4800
    12 CPUs
    48GB RAM
    2 T3 Arrays (fiber cards on different IO boards)
    4 internal drives (2 on each IO board), not mirrored or RAIDed

    This is always a troublesome type of query.
    Are you trying to count the number of all rows in a table? You can try to ANALYZE the table, then from user_tables select the NUM_ROWS
    I am doing some scalability tests and am building a db w/table that will contain 400Million records. I am trying to see how far along I am in the process, and am experiencing this problem.
    The select count(ID) never returns.
    Does anyone have any suggestions for me as to how i might make it perform better? I am not too familiar with such large scale implementations, so any advice would be appreciated, and you can feel free to tell me the most basic info... (I do read docs, etc, but there might be a place I have not yet searched..)
    The hardware is not an issue, at least for my testing, as it is as follows, and I see the IO on the arrays is busy, but not too busy, and that is to be expected, and we are neither CPU or RAM bound.
    SUN E4800
    12 CPUs
    48GB RAM
    2 T3 Arrays (fiber cards on different IO boards)
    4 internal drives (2 on each IO board), not mirrored or RAIDed

  • SaxParser.parse(sok.getInputStream(), new handler()) [clarification please]

    this code works, however i am not sure how/why?
    i am interested in how Strings/characters are sent over tcp
    streams:
    here is sender:
    Socket sok = new Socket(server, port);
    OutputStreamWriter streamWriter = new OutputStreamWriter(sok.getOutputStream());
    streamWriter.write(xmlString, 0, xmlString.length());i am ok with this.
    i see that the OutputStreamWriter does "something" about converting the
    socket's OutputStream to characters.
    here is receiver:
    SAXParser parser = saxFactory.newSAXParser();
    Socket sok = serverSok.accept();
    parser.parse(sok.getInputStream(), new MyHandler());see, i am plugging:
    sok.getInputStream()
    directly into the sax parser without providing context
    that those bytes are characters (and what character encodings ).
    so, what is going on? i might imagine using:
    ObjectOutputStream.appendClass();
    ObjectInputStream.resolveClass();to provide context that the byte stream are
    characters of the "x" character set.
    however, i am not using any
    ObjectStreams.
    if this is a ridiculous question, and the answer is
    in the api somehow, i am sorry. i am not good
    at always understanding the api.

    then my fundamental confusion is the difference between
    java.io.Reader;
    java.io.InputStream;
    consider the set of polymorphic method signatures for the
    SAXParser parse () methods.
    parser.parse(sok.getInputStream(), new MyHandler());clearly invokes:
    public void parse(InputStream is, DefaultHandler dh);however i don't see any method signature that matches:
    parser.parse(new InputStreamReader(sok.getInputStream(), myCharSet), new MyHandler());for example, in the api, there is no:
    public void parse(Reader r, DefaultHandler dh);this has been very helpful.
    i will Google the interchangability of Reader/InputStream tomorrow, however any
    further guidance would be welcomed. the java.io heirarchy confuses me.

  • SAXParser.parse(resder, ...) ???

    Hi;
    Is there any way to pass SAXParser.parse() a Reader instead of an InputStream? I thought we were not supposed to use InputStreams anymore.
    thanks - dave

    Is there any way to pass SAXParser.parse() a Reader instead of an InputStream? The SAX parser should implement a mechanisim to check the character encoding declared in the the XML prefix is compatible with the streamed octet data. If you use Reader for untrusted sources (ie pretty well anything other than StringReader, where the character encoding is well defined), you circumvent that error check.
    I thought we were not supposed to use InputStreams anymore.Part of the role of an XML parser in dealing with the character encoding, so it is appropriate to use the stream that provide octets which encode characters rather than a reader that provides characters.
    Pete

  • Javax.xml.parsers.SAXParser parser() error

    Hi,
    I've got some code that works fine in the Forte for Java IDE but just will not work when running as a stand-alone Windows application. I think it's to do with the filename having spaces in the pathname?
    Any help would be great!
    Regards.
    Gary Revell
    [email protected]
    [email protected]
    I've attached the code and the error(s) I get
    ------------------CODE FRAGMENT------------------
    // loadCE.java
    // Created on 25 April 2001, 15:43
    // @author RevellG
    // @version V1.0
    // This class is used to load the Standard Call Reporting XML document
    // and to allow the easy interrogation of the contents. The data can
    // then be used to populate fields in the Call Reporting GUI.
    import java.util.Vector;
    import java.io.*;
    import java.util.*;
    import java.util.Collections;
    import org.xml.sax.*;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class loadCallElement extends Object
    private static loadCall loadCall = null;
    private static boolean DEBUG = false;
    // Creates new loadCE
    public loadCallElement(boolean debugFlag )
    this.DEBUG = debugFlag;
    public void parseDoc( String docName ) throws Throwable
    // Use the default (non-validating) parser
    SAXParserFactory factory = null;
    try
    // Parse the input
    factory = SAXParserFactory.newInstance();
    SAXParser saxParser = factory.newSAXParser();
    loadCall = new loadCall(DEBUG);
    saxParser.parse( new File( docName ), loadCall );
    catch (Throwable t)
    // catch ( Exception t )
    System.err.println( t.getMessage() +" - <"+docName+">");
    t.printStackTrace ();
    loadCall.ceTree.clear();
    throw t;
    ------------------Error and Stack Trace---------------
    E:\Support\Call Logs\bin>java -classpath .\SCM_GUI.jar;%CLASSPATH%;%XML_HOME%\jaxp.jar;%XML_HOME%\parser.jar M
    anagerInterface > g.g
    CWD /Telecom/Support/Call Logs/Logs/Open/BBC PICS/001$revellg$qwerty.xml: 550 /Telecom/Support/Call Logs/Logs/
    Open/BBC PICS/001$revellg$qwerty.xml: The system cannot find the path specified.
    - <\\Reoclu1\Telecom\Support\Call Logs\Logs\Open\BBC PICS\001$revellg$qwerty.xml>
    java.io.FileNotFoundException: CWD /Telecom/Support/Call Logs/Logs/Open/BBC PICS/001$revellg$qwerty.xml: 550 /
    Telecom/Support/Call Logs/Logs/Open/BBC PICS/001$revellg$qwerty.xml: The system cannot find the path specified
    at sun.net.ftp.FtpClient.readReply(Unknown Source)
    at sun.net.ftp.FtpClient.issueCommand(Unknown Source)
    at sun.net.ftp.FtpClient.issueCommandCheck(Unknown Source)
    at sun.net.ftp.FtpClient.cd(Unknown Source)
    at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    at com.sun.xml.parser.InputEntity.init(InputEntity.java:141)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:463)
    at com.sun.xml.parser.Parser.parse(Parser.java:284)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
    at loadCallElement.parseDoc(loadCallElement.java:52)
    at SCMView.create(SCMView.java, Compiled Code)
    at EventController$5.actionPerformed(EventController.java:116)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    Thanks Jim,
    I've installed JDK V1.3.1 and the problem HAS gone away..... However now JDK V1.3.1 won't install on other Win 2K machines.....
    Gary.

  • MobileService.SyncContext.PushAsync never returns in Release build

    I am currently trying to create a windows phone app with azure mobile services but somehow offline sync is not working. When I create a release build and call await SyncContext.PushAsync() it never returns back to the context.
    I dont really know what is happening,
    Code:
     await App.MobileService.SyncContext.PushAsync();
     return true;
    When I run a debug build everything works fine.
    I can't understand, whats happening in Release mode?
    Its a very urgent. Please provide a quick solution or setup a call with me.
    Thanks,
    Hema
    hema

    Thank you for the answer, I added HttpMessageHandler to check which operation was causing the problem and a IMobileServiceSyncHandler, as I mentioned earlier when there is nothing to Push the syncing work fine and the pull can be made, but when the push
    needs to send data the request passes by OnPushCompleteAsync and does not get to the LoggingHandler.SendAsync or to the ExecuteTableOperationAsync and on the Output console I can see the following exceptions are thrown but the PushAsync does not fail and never
    ends.
    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll
    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll
    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll
    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll
    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll
    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll
    A first chance exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.ni.dll
    The thread 0x1080 has exited with code 259 (0x103).
    About the UI, this operation is triggered by the user (button) and is handle in an ICommand in a way that can only be triggered once and locked from other processes with a SemaphoreSlim, I add a little part of the sync code.
    await this.MobileServiceClient.SyncContext.PushAsync(cancellationToken);
    var query = SyncItemTable.CreateQuery().Where(syncItem => syncItem.UserId == userId);
    await SyncItemTable.PullAsync("PullSyncItem", query, true, cancellationToken);
    I am using the nugets WindowsAzure.MobileServices, 1.3.1 and WindowsAzure.MobileServices.SQLiteStore, 1.0.1
    I appreciate a quick response this is a stopper bug for the next release of our application.

  • [svn:fx-trunk] 12007: When the Internet Explorer browser window is obscured Stage. width and Stage.height never return the proper sizes until/ unless the IE window is unobscured long enough for the player to feel it needs to render initially .

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

  • 4.51 new InitialContext never returns

    4.51 new InitialContext never returns
    When I do a "new InitialContext" in my client test program, it never
    returns
    when run on solaris or linux, it works fine on NT.
    Another symptom of the same problem is that a LIST command of
    weblogic.Admin works
    on NT but never returns on Solaris or Linux.
    VERSION and SHUTDOWN work on NT, Solaris and Linux.
    also note that on linux with ibm 1.1.8 jdk, I completely re-loaded the
    weblogic
    with only the system password changed in the weblogic.properties file
    (just to
    make sure I did not accidently put something in the properties file to
    cause
    the problem)
    here is the some raw data, I do relaize that some of these combinations
    are not certified (none of the Solaris or Linux combinations worked).
    Sun Ultra10 2.5.1 with jdk1.1.8 no service pack
    Sun Ultra10 2.5.1 with jdk1.1.8 service pack 8
    Sun Ultra10 2.5.1 with jdk1.1.7 service pack 8
    Windows NT 4.0 service pack 6a javasoft jdk1.2.2 weblogic service pack 7
    linux (redhat 6.2 with blackdown jdk1.2.2)
    linux (redhat 6.2 with ibm1.1.8 jdk)
    changes to weblogic.properties:
    weblogic.system.password=syspword
    to startup weblogic:
    export PATH=$PATH:/usr/local/jdk118/bin
    export JDK_HOME=/usr/local/jdk118
    export
    CLASSPATH=./classes:./lib/weblogicaux.jar:./myserver/serverclasses
    ./startWebLogic.sh
    code segment from client program:
    static public Context getInitialContext()
    Context returnValue = null;
    Properties p;
    p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.TengahInitialContextFactory");
    p.put(Context.PROVIDER_URL,"t3://207.112.33.206:7001");
    try
    System.out.println("getting initial context");
    returnValue = new InitialContext(p);
    System.out.println("got initial context");
    catch (NamingException ex)
    System.out.println("exception");
    System.out.println("NamingException " +
    ex.getMessage())
    ex.printStackTrace();
    catch (Exception ex)
    System.out.println("exception");
    return returnValue;
    results of running the client program:
    getting initial context
    the client program never returns
    check linux version:
    [jack@linux01 test]$ uname -a
    Linux linux01.delfour.com 2.2.14-5.0 #1 Tue Mar 7 20:53:41 EST 2000 i586
    unknown
    check weblogic version on NT:
    [jack@linux01 test]$ java weblogic.Admin t3://207.112.33.203:7001
    VERSION
    WebLogic Build: 4.5.1 Service Pack 7 02/16/2000 15:17:50 #63218
    check weblogic version on linux:
    [jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 VERSION
    WebLogic Build: 4.5.1 09/30/1999 17:41:18 #53704
    test one: linux client to linux server:
    [jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 PING 1 1
    Sending 1 ping of 1 byte.
    RTT = ~741 milliseconds, or ~741 milliseconds/packet
    test two: linux client to linux server:
    [jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 LIST
    weblogic system bogus
    Setting credentials
    An AuthenticationException occurred that prevented access to the given
    name in the naming service. The username/password you supplied is not
    authorized for thi
    s operation.
    test three: linux client to linux server:
    [jack@linux01 test]$ java weblogic.Admin t3://localhost:7001 LIST
    weblogic syste
    m syspword
    Setting credentials
    after 5 minutes, still no response
    test four: linux client to NT server:
    [jack@linux01 test]$ java weblogic.Admin t3://207.112.33.203:7001 LIST
    weblogic system password
    Setting credentials
    Contents of weblogic
    fileSystem:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WL
    [email protected]:[7001,7001,7002,7002,-1]
    NameBas
    edFailOverHandler (name: weblogic.fileSystem, env:
    weblogic.jndi.Environment@806
    05d5
    ejb:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFailO
    verHandler (name: weblogic.ejb, env: weblogic.jndi.Environment@80605d5
    common:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLCont
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFa
    ilOverHandler (name: weblogic.common, env:
    weblogic.jndi.Environment@80605d5
    jdbc:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContex
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFail
    OverHandler (name: weblogic.jdbc, env: weblogic.jndi.Environment@80605d5
    jts:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFailO
    verHandler (name: weblogic.jts, env: weblogic.jndi.Environment@80605d5
    server:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLCont
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFa
    ilOverHandler (name: weblogic.server, env:
    weblogic.jndi.Environment@80605d5
    rmi:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFailO
    verHandler (name: weblogic.rmi, env: weblogic.jndi.Environment@80605d5
    jms:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContext
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFailO
    verHandler (name: weblogic.jms, env: weblogic.jndi.Environment@80605d5
    jndi:
    weblogic.jndi.toolkit.ReplicatedWLContext:weblogic.jndi.toolkit.WLContex
    [email protected]:[7001,7001,7002,7002,-1]
    NameBasedFail
    OverHandler (name: weblogic.jndi, env: weblogic.jndi.Environment@80605d5
    here is the end of the weblogic traces after a single LIST on linux:
    Sun May 07 09:40:34 EDT 2000:<I> <WebLogicServer> Server loading from
    weblogic.c
    lass.path. EJB redeployment enabled.
    Sun May 07 09:40:44 EDT 2000:<I> <WebLogicServer> Event handler log
    started (reg
    id: 1)
    Sun May 07 09:40:44 EDT 2000:<I> <WebLogicServer> Invoking main-style
    startup we
    blogic.jdbc.common.internal.JdbcStartup
    weblogic.jdbc.common.internal.JdbcStartu
    p
    Sun May 07 09:40:48 EDT 2000:<S> <SSLListenThread> 2 certificate(s):
    fingerprint = 88dae49f1a3122e62e7a94a3dc76fbf0, not before = Tue Oct
    26 15:03:
    00 EDT 1999, not after = Tue Oct 24 15:03:00 EDT 2000, holder = C=US
    SP=Californ
    ia L=San Francisco O=WebLogic CN=weblogic.beasys.com
    [email protected]
    , issuer = C=US SP=California L=San Francisco O=WebLogic OU=Security
    CN=Demonstr
    ation Certificate Authority [email protected] , key = modulus =
    65 byte
    Bignum
    value=00959b5668811e78a28a018631455f5bd4f51b0e3e77b79dcb7a4c67c31a8f94b0
    4bce347b731121da27918dd36bce8f1f0b77cd7944ecbd3d517baa3a83dcce8b,
    exponent = 3 b
    yte Bignum value=010001
    fingerprint = f1c530f7211410a2220c7e9d3152b496, not before = Tue Oct
    26 14:18:
    53 EDT 1999, not after = Wed Oct 25 14:18:53 EDT 2000, holder = C=US
    SP=Californ
    ia L=San Francisco O=WebLogic OU=Security CN=Demonstration Certificate
    Authority
    [email protected] , issuer = C=US SP=California L=San
    Francisco O=WebL
    ogic OU=Security CN=Demonstration Certificate Authority
    [email protected]
    om , key = modulus = 65 byte Bignum
    value=00b6743b62ce13992324b18d8061d24457ff90
    5b7e8aaceef6bef802b6f8a1e176f9791d571f14df79e9dd40f1f8e83e9e41048f05f931fe07dc06
    2f19ac20fa93, exponent = 3 byte Bignum value=010001
    Sun May 07 09:40:48 EDT 2000:<I> <SSLListenThread> Using exportable
    strength
    SSL
    Sun May 07 09:40:50 EDT 2000:<I> <JMS> Beginning startup process
    Sun May 07 09:40:50 EDT 2000:<I> <JMS> Init JMS Security
    Sun May 07 09:40:51 EDT 2000:<I> <JMS> Startup process complete. JMS is
    active
    Sun May 07 09:40:51 EDT 2000:<I> <WebLogicServer> Invoking main-style
    startup RM
    I Registry weblogic.rmi.internal.RegistryImpl
    Sun May 07 09:40:51 EDT 2000:<I> <RMI> Registry started
    Sun May 07 09:40:52 EDT 2000:<I> <EJB> 0 EJBs were deployed using .ser
    files.
    Sun May 07 09:40:52 EDT 2000:<I> <EJB> 0 EJBs were deployed using .jar
    files.
    Sun May 07 09:40:53 EDT 2000:<I> <ZAC> ZAC ACLs initialized
    Sun May 07 09:40:53 EDT 2000:<I> <ZAC> ZAC packages stored in local
    directory ex
    ports
    Sun May 07 09:40:54 EDT 2000:<I> <ListenThread> Listening on port: 7001
    Sun May 07 09:40:57 EDT 2000:<I> <SSLListenThread> Listening on port:
    7002
    Sun May 07 09:40:58 EDT 2000:<I> <WebLogicServer> WebLogic Server
    started
    Sun May 07 09:41:09 EDT 2000:<I> <ListenThread> Adding address:
    linux01.delfour.
    com/207.112.33.206 to licensed client list
    Sun May 07 09:41:12 EDT 2000:<I> <RJVM> Creating connection to
    localhost/127.0.0
    .1 -1260680115049870327
    I hope someone can shed some light on this...
    - Rob (jack) Lapensee

    It looks like you are modifying the object you are iterating over while you are iterating... not good. Say your gp only had one element, a LINE_TO. It will run through and call another LINE_TO in the switch, thus when it comes back to the while, there is a newly added point to interpret, so the iterator will never finish. Usually, most components throw a ConcurrentModificationException when this happens for this type of case. I'm not sure why the PathIterator doesn't.
    In short, use a different reference in the loop then the one you are iterating over.
    -JBoeing

  • Recursive WITH (Recursive Subquery Factoring) Never Returns

    11.2.0.2 database on Windows, SQL Developer Version 3.2.20.09, build MAIN-09.87 (Database and SQL Developer are on the same machine. I have also tried connecting to a Linux 11.2 database and have the same results.)
    I've been doing some simple testing with recursive WITH (Recursive Subquery Factoring) and when I run this following statement in SQL*Plus it returns instantly. However when running in SQL Developer it never returns, I've let it run for quite a long time (172 seconds) and gotten nothing, I finally kill the statement. Once I ran it and even killing the job didn't come back. I can get an explain plan but if I try to run it, run as script or autotrace it never returns. I have only one plan in the plan_table for this test, and it's only 4 lines long. No errors, no messages.
    WITH get_plan (query_plan, id, planlevel) as
    select ' '||operation||' '||options||' '||object_name query_plan, id, 1 planlevel
    from plan_table
    where id = 0
    union all
    select lpad(' ',2*planlevel)||p.operation||' '||p.options||' '||p.object_name query_plan, p.id, planlevel+1
    from get_plan g, plan_table p
    where g.id = p.parent_id
    SELECT QUERY_PLAN FROM GET_PLAN ORDER BY PLANLEVEL;

    Hi Jeff, using either give the same results. The query is "running", as is the little graphic with the bouncing gray bar is moving back and forth saying either "Query Results" or "Scriptrunner Task" as appropriate.
    OK this is odd. I run a count(*) on plan_table in SQL*Plus and get 4, in SQL Developer I get 487. Hun? That makes no sense I'm connect as the same user in each. Where are all these other entries coming from and why can't I see them in SQL Plus? Does SQL Developer have it's own PLAN_TABLE?
    **EDIT --- Yes that seems to be the case. The PLAN_ID I see in SQL Plus doesn't even exist in the SQL Deveropler version of the table. OK that's good to know. I assume the plan_table for SQL Developer is local to it somehow? It's not in the database as best I can see.
    Edited by: Ric Van Dyke on Feb 7, 2013 5:19 PM

Maybe you are looking for

  • Pass parameter in EPCM.doNavigate

    Hello! I have JSPDynpage the button, that have OnClientClick: addPosButton.setOnClientClick("EPCM.doNavigate('ROLES://portal_content/Webdynpro/java_local_add_lot_position_jwd_nrj_applications_AddLotPositionApplication', 1, 'width=400,height=500');");

  • Impossible to burn cd in up to date iPhoto

    All I did was select a roll with about 625 MB of pictures that I wanted to burn to cd. I selected "burn", it told me it was going to burn the photos, asked me to name the roll, and i pressed burn. It prepared the photos for burning and then skipped t

  • HR Forms conversion (PE53)

    Hi Experts, Once we have finished the technical upgrade from ERP 5.0 to ECC 6.0 (Unicode version), we have realized that all the HR Forms (PE53) are displayed incorrectly. I think it's a problem between Unicode and non-Unicode versions and it should

  • Keyboard + mouse functions not working

    After updating InDesign CC 6-days ago started to have issue with all keyboard + mouse functions not working ex. shift key does not constrain proportions when scaling. A restart fixed the issue thr first time. Today I have installed latest update and

  • CJ20N User Exit

    Hi All, Please let me know which User exit can be used for T-Code CJ20N as I have to change projrct description (PRPS-POST1) and Investment profile (PRPS-IMPRF) on the basis of Project definition (PROJ-PSPID). I am not able to get any user exit for t