Problem ragarding load xml(embedded) file

oGlobalMain is the object of global class where every object is created and function is defined
SBO_Application is declared as Public WithEvents SBO_Application As SAPbouiCOM.Application
#Region "Load as XML"
Public Sub LoadAsXml(ByVal FileName As String, Optional ByVal FileType As ResourceType = ResourceType.Content)
Dim oXmlDoc As Xml.XmlDocument
Dim oXmlStream As System.IO.Stream
oXmlDoc = New Xml.XmlDocument
Try
If FileType = ResourceType.Content Then
oXmlDoc.Load(FileName)
Else
oXmlStream = System.Reflection.Assembly.LoadFrom(System.Windows.Forms.Application.ExecutablePath).GetManifestResourceStream(GetType(modStartUp).Namespace & "." & FileName)
oXmlDoc.Load(oXmlStream)
End If
oGlobalMain.SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)
Catch ex As Exception
oGlobalMain.SBO_Application.MessageBox(ex.Message)
End Try
End Sub
#End Region
please send me some suggestion, I would be grateful to you.
Thanks in advance
regards
Nandini

Hi..
use this code
Form load()
use
Me.CreateForm()
Sub CreateForm()
        Try
            SAPXML("AAAAAAA.xml")
            OM_Form = app.Forms.Item("FormID--Yours")
            Catch ex As Exception
            OM_Form = app.Forms.Item("FormID--Yours")
            OM_Form.Select()
            Exit Sub
        End Try
    End Sub
Sub SAPXML(ByVal path As String)
        Try
            Dim xmldoc As New MSXML2.DOMDocument
            Dim Streaming As System.IO.Stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Your Folder." + path)
            Dim StreamRead As New System.IO.StreamReader(Streaming, True)
            xmldoc.loadXML(StreamRead.ReadToEnd)
            StreamRead.Close()
            app.LoadBatchActions(xmldoc.xml)
        Catch ex As Exception
            app.MessageBox(ex.Message)
        End Try
    End Sub
Regards,
Siva

Similar Messages

  • Problem with load XML data

    Hi.
    I have a problem this load XML data. For example: file name:
    01-05-2008.xml => in this file all data have date=01.05.2008.
    Once i load period 01.05.2008 to 10.05.2008 my app load 10 files.
    Sometimes some row this greater date stay earlier then row this
    smaller date. I don't know why this happend. Bellow part of code.
    Please help.
    P.S. sorry for my very bad english.

    Hi Lekser,
    ntsii is totally right.
    Calling httpservice send is a async operation, which means
    you don´t know when the result event of such operation will
    return.
    You can also sort your grid after a xml data file was loaded.
    At least it would guarantee that the entries appear in the
    right order.
    best regards,
    kcell

  • Problem when load more swf files work with xml files into my movie

    hi ;
    I have one flash file & more of swf files which work with xml files .
    when I load one swf file into my flash file  and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
    when i load one on movieclip and remove it and load anther swf  on anther movieclip the file doesn`t work  and stoped.
    when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
    thanks;

    YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect.  If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)

  • Problem when loading xml file using sql loader

    I am trying to load data into table test_xml (xmldata XMLType)
    i have an xml file and i want whole file to be loaded into a single column
    when i use the following control file and executed from command prompt as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct=true;:
    LOAD DATA
    INFILE *
    TRUNCATE INTO TABLE test_xml
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(100),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    the file is being loaded into table perfectly.
    unfortunatley i cant hardcode file name as file name will be changed dynamically.
    so i removed the block
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    from control file and tried to execute by giving file path from command line as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml direct=true;
    but strangely it's trying to load each line of xml file into table instead of whole file
    Please find the log of the program with error
    Loading of XML through SQL*Loader Starts
    SQL*Loader-502: unable to open data file '<?xml version="1.0"?>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Root>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>Forms</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>PLL</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    please help me how can i load full xml into single column using command line without hardcoding in control file
    Edited by: 907010 on Jan 10, 2012 2:24 AM

    but strangely it's trying to load each line of xml file into table instead of whole fileNothing strange, the data parameter specifies the file containing the data to load.
    If you use the XML filename here, the control file will try to interpret each line of the XML as being separate file paths.
    The traditional approach to this is to have the filename stored in another file, say filelist.txt and use, for example :
    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

  • Problem to load XML SQL Utility into other user

    Hi,
    I need help to load XML Utility into other user than
    "scott"tiger".
    I loaded both xmlparser.jar and oraclexmlsql.jar into
    "scott/tiger", it works and creating functions and testing work
    fine. But when change USER_PASSWORD to another user, it gave me
    some errors like
    creating : org/xml/sax/helpers/AttributeListImpl
    Error while creating class org/xml/sax/helpers/AttributeListImpl
    ORA-29506: invalid query derived from USING clause
    ORA-00942: table or view does not exist
    Error while accessing MD5 table
    ORA-00942: table or view does not exist
    Do I need create any table or view for my another oracle account?
    Or did I missed any thing. From the installation instruction, I
    cano not find any about creating table or view before I load the
    two jar files.
    Thanks
    Yuping
    null

    Hi Yuping,
    Great to hear that! Thx for posting the solution to the
    problem! Let us know if you have any problems with the utility
    or if u need any enhancements!
    Thx
    Murali
    Yuping Zhu (guest) wrote:
    : Hi,Murali,
    : The problem is fixed now. When load xmlparser into the user, it
    : creates two tables automatically, my mistake is I did not grant
    : "create table" privilege to the user. After I granted the
    : privilege to it, it works fine.
    : Thanks!
    : Yuping
    : Murali K (guest) wrote:
    : : Hi,
    : : I will check this out with the Java folks and let u know
    : : Thx
    : : Murali K
    : : Yuping Zhu (guest) wrote:
    : : : Hi, Murali
    : : : I'm using Oracle8i on Solaris 2.6. When I load xmlparser
    : using
    : : : loadjava -resolve -verbose -user $USER_PASSWORD
    xmlparser.jar
    : : : I get error message and I catch part of erros
    : : : PS, I can load it into scott/tiger.
    : : : Thanks!
    : : : Yuping
    : : : loading : org/w3c/dom/html/HTMLLegendElement
    : : : Error while loading org/w3c/dom/html/HTMLLegendElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLLegendElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLLegendElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : org/w3c/dom/html/HTMLImageElement
    : : : Error while loading org/w3c/dom/html/HTMLImageElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLImageElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLImageElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : oracle/xml/parser/v2/XSLException
    : : : Error while loading oracle/xml/parser/v2/XSLException
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : Murali K (guest) wrote:
    : : : : Hi Yuping,
    : : : : I tried the same on a 8i database and it seems to be
    : : working
    : : : : fine. (loading into two schemas). In fact I just created
    : the
    : : : : other user and it doesnt have any tables or anything in
    it.
    : : : : You do not need to create anything (table/view) extra
    for
    : : : these
    : : : : to work.
    : : : : Which database (Oracle8 or 8i) are u using?
    : : : : Thanks
    : : : : Murali
    : : : : Yuping Zhu (guest) wrote:
    : : : : : Hi,
    : : : : : I need help to load XML Utility into other user than
    : : : : : "scott"tiger".
    : : : : : I loaded both xmlparser.jar and oraclexmlsql.jar into
    : : : : : "scott/tiger", it works and creating functions and
    : testing
    : : : work
    : : : : : fine. But when change USER_PASSWORD to another user,
    it
    : : gave
    : : : me
    : : : : : some errors like
    : : : : : creating : org/xml/sax/helpers/AttributeListImpl
    : : : : : Error while creating class
    : : : : org/xml/sax/helpers/AttributeListImpl
    : : : : : ORA-29506: invalid query derived from USING clause
    : : : : : ORA-00942: table or view does not exist
    : : : : : Error while accessing MD5 table
    : : : : : ORA-00942: table or view does not exist
    : : : : : Do I need create any table or view for my another
    oracle
    : : : : account?
    : : : : : Or did I missed any thing. From the installation
    : : instruction,
    : : : I
    : : : : : cano not find any about creating table or view before
    I
    : : load
    : : : : the
    : : : : : two jar files.
    : : : : : Thanks
    : : : : : Yuping
    null

  • Problem with loading Danish dictionaries files.

    Hi,
    I want use Danish spell check for my project and when my app start load
    spell check files I get exception. Files are here http://www.stavekontrolden.dk/main/top/index.php.
    Please tell me is thare any way to use Danish spell check in flex application?
    And alos I can't find Finnish spell check that I could use with flex.
    Is flex support Finnish spell check ?? If no will flex support it?
    Error decription:
    Main Thread (Suspended: Error: null cannot be parsed to a squiggly dictionary)
    Thanks,
    Vladimir

    As Ned said the problem might be with the file structure on the server. Other problems may be with spelling. You computer may not be case sensitive to the names of the .swf files that you are loading, but your server might. So, on your computer when you are testing, second.swf is the same as Second.swf, or even second.SWF. But, on the server each of these variations is seen as a different file. Another problem is that when you are loading files from the same computer in testing, those files are close and so they load very quickly from your computer. When the files have to travel from the server, there will likely be a measurable period of time before the file is ready to be shown. This is particularly problematic with video that is embedded into an .swf. The whole file will need to be downloaded and uncompressed before it is available to play. If you stream the video as an external file, you can shorten the wait considerably.

  • LoadMovie to load xml button file... undefined

    Hi, I am a designer and not familier with programming, my
    fiend purchased some flash buttons with xml file, when i run its
    swf its work perfect for me. there are 6 six buttons in it and i
    can easily change their name from xml file.
    ok here is the problem
    i want to assemble those button in another file and just
    those buttons to run from a different main file.
    i made a movie clip container and gave it an instance name
    holder_mc
    on main file on frame action i wrote this
    loadMovie("button.swf","holder_mc");
    ok there are loading in my file but problem is that now i see
    only one button now and written Undefined on the buttons.
    i am not sure why they are not working , i followed many
    online tutorials on loadMovie and did exactly same...
    one thing is interesting see here.. without xml files are
    loading perfect but with xml file i always get error even though
    xml file is already in my folder.
    I look forward to learn something from your experts.
    thank you very much
    i am using flash 8 professional. AS 2.0

    ok this time i made nav bar my main .. this time i am not
    loading nav bar in another movie since i was really undefined error
    but this time i have another xml file which is only a simple xml
    file but when i click on nav bar to load another swf file which is
    txt file, it loads but i don't see anything on it, no text , no
    content nothing there... even though when i view it separtly it
    works fine..
    any help would be appreciated.
    thanks

  • Loading XML Configuration File into Java

    I have a stored procedure wrapper to a Java method (within a jar file) that has been loaded into the database. I need to load an XML configuration file in this method and parse it but get the following error.
    <Line 2, Column 192>: XML-24538: (Error) Can not find definition for element 'LODConfigs'
    When I run the method standalone through netbeans it parses fine and is able to load the file. I've confirmed that it is able to read the file but I am lost as to what could be the problem. Any suggestions would be welcome.
    The header of the file is
    <?xml version="1.0" encoding="UTF-8" ?>
    <LODConfigs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.oracle.com/spatial/network/lodLODConfigs.xsd"
    xmlns="http://xmlns.oracle.com/spatial/network">
    <LODConfig globalNetworkName="$DEFAULT$" networkName="$DEFAULT$">
    <networkIO>
    </networkIO>
    </LODConfig>
    </LODConfigs>

    Just a guess really, (and this is an old question now - so you may have moved on).. is your XML parser attempting to use the schema location to pull the XML schema from the internet?
    If so, that might run fine in netbeans, but hit java permission limits in Oracle. Have you tried running it in netbeans with the network cable unplugged.
    If that fails with the same error as the Oracle JVM, that might give a clue as to the problem and you can troubleshoot the permissions from there.

  • Problem to load XML

    dear,
    i have problem to load a xml file from flash.
    see in below:
    when i put this : xmlpath.load(_root.xmlFile==undefined?"datas.xml":_root.xmlFile);  it works perfect in flash but not in the browser.
    kindly help me on this...
    i will appreciate your help
    regards,
    MELAS076

    I solved the URL But i have some issues between 2 flashs and 2 xml files which they are loading and navigate together....
    let me explain my problem is:
    - i have 2 flashs (main + index) and 2 xmls(data + datas) but they are not in the same path.
    in the main.swf : we have pictures of product which is load datas from data.xml and it is loading MC when clicked on one of picture.
    is in the root path.
    in the index.swf: we have all details and pictures of product which is loaded from datas.xml clicked by main.swf
    is in the root path/products/name1/ and we have root path/products/name2/.
    and each product has datas.xml in their folder with index.swf
    so how can i let the index.swf load its datas.xml when i clicked from main.swf?
    My main.swf code:
    stop();
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    links = [];
    description = [];
    thumbnails = [];
    a =[];
    total = xmlNode.firstChild.childNodes.length;
    for (i=0; i<total; i++) {
    links[i] = xmlNode.firstChild.childNodes[i].attributes.datas;
    description[i] = xmlNode.firstChild.childNodes[i].attributes.label;
    thumbnails[i] = xmlNode.firstChild.childNodes[i].attributes.thumbs;
    a[i] = xmlNode.firstChild.childNodes[i].attributes.folder;
    thumbnails_fn(i);
    //trace(xmlNode.firstChild.childNodes[1].attributes.thumbs);
    initPreloading();
    //firstImage();
    } else {
    content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("data.xml");
    p = 0;
    function thumbnails_fn(k) {
    this.thumbnail_mc.createEmptyMovieClip("t"+k, this.thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
    target_mc._x = (eval("this.thumbnail_mc.t"+k)._width+20)*k;
    target_mc.pictureValue = k;
    aa = xmlData.firstChild.firstChild.childNodes[k].attributes.datas;
    target_mc.onRelease = function() {
    LOADmc.loadMovie(aa);
    //trace();
    p = this.pictureValue;
    //nextImage();
    target_mc.onRollOver = function() {
    this._alpha = 90;
    //thumbNailScroller();
    target_mc.onRollOut = function() {
    this._alpha = 100;
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
    LOADmc._x=(alignmc.width-LOADmc._width)/2;
    LOADmc._y=(alignmc.height-LOADmc._height)/2;
    my data.xml:
    <?xml version="1.0"?>
    <data>
      <category title="OUR PRODUCTS">
        <item id="1" folder="Products/Multihost" thumbs="Products/Multihost/thumbs/1.jpg" label="Multihost" datas="Products/Multihost/index.swf"/>
        <item id="2" folder="Products/VOIP" thumbs="Products/VOIP/thumbs/image1.jpg" label="VO IP" datas="Products/VOIP/index.swf"/>
      </category>
    </data>
    my index.swf in each product/name :
    var xmlfiles:XML = new XML();
    xmlfiles.ignoreWhite = true;
    xmlfiles.load("../../data.xml");
    xmlfiles.onLoad=function(success) {
        if (success) {
    //        total = xmlfiles.firstChild.firstChild.childNodes.length;
    //for (i=0; i<total; i++) {
            var ba = xmlNodes.firstChild.firstChild.childNodes[k].attributes.folder;
    var xmlOb:XML = new XML();
    xmlOb.ignoreWhite = true;
    xmlOb.onLoad = function() {
        var aux:main = new main(xmlOb);
        trace(ba+"/datas.xml");
    xmlOb.load(a+"/datas.xml");
    //xmlOb.load(_root.xmlFile==undefined?"datas.xml":_root.xmlFile);
    //xmlOb.load("products/multihost/datas.xml");
    my datas.xml for prduct name 1:
    <?xml version="1.0" encoding="utf-8"?>
    <product>
      <gallery>
        <button id="1" title="Multihost 20" subtitle="MH20" thumb="Products/Multihost/thumbs/2.jpg" ProductTitle="MH20">
          <picture thumb="Products/Multihost/thumbs/1.jpg" image="Products/Multihost/images/1.jpg"/>
          <picture thumb="Products/Multihost/thumbs/2.jpg" image="Products/Multihost/images/2.jpg"/>
          <picture thumb="Products/Multihost/thumbs/3.jpg" image="Products/Multihost/images/3.jpg"/>
          <picture thumb="Products/Multihost/thumbs/5.jpg" image="Products/Multihost/images/5.jpg"/>
          <description linkname="MH Overview.pdf"><![CDATA[Marwan salem tests]]></description>
        </button>
      </gallery>
      <mainTitle MainTitle="Multihost"/>
    </product>
    my datas.xml for prduct name 2:
    <?xml version="1.0" encoding="utf-8"?>
    <product>
      <gallery>
    <button id="0" title="VO IP 20" subtitle="VO IP 20" thumb="Products/VO IP/thumbs/image1.jpg" ProductTitle="VO IP 20"><picture thumb="Products/VO IP/thumbs/image1.jpg" image="Products/VO IP/images/image1.jpg"/><description linkname="Multi-Host Flyer.pdf"><![CDATA[MArwan VO IP 20]]></description></button></gallery>
      <mainTitle MainTitle="VO IP"/>
    </product>
    thanks for your help.
    best regards,
    MELAS076
    Message was edited by: melas076

  • Problem while loading a jar file into database

    Hi All,
    We are using Oracle 8.1.5 in Solaris. When I try to load a jar file into the database by using loadjava it gives the following error
    Error while processing jar cryptix32.jar
    Exception java.io.IOException: Load Java is unable to handle compressed entries: cryptix/provider/Cryptix.class
    loadjava: 1 errors
    Can anybody suggest anything to overcome this. Thanks in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Emmer ([email protected]):
    I presume you've tried creating the jar w/o compressing it? If not, and even if you didn't create the jar, then first unpack the jar into a directory and re-jar it without using compression.<HR></BLOCKQUOTE>
    Hi John,
    Thanks for your help. I unpacked the jar and rhen re-jared it with -0 (uncompress ) option. The above error is gone. But I am getting another problem. I am getting the following error for all the classes except the property files.
    Error while resolving class cryptix/cryptix/provider/cipher/Rijndael
    ORA-04043: object cryptix/cryptix/provider/cipher/Rijndael does not exist
    But the class is there in the jar. I am able to load single individual classes. Can anybody help me in this matter. Thanks in advance.

  • PROBLEM IN LOADING XML SECOND TIME

    HI,
    Actually i m loading xml 1st time when the page is loading,then again 2nd time when i m trying to load 2nd xml based on dropdown value then it is loading xml but it is appending the 2nd xml with the 1st xml.i m also unloading xml at first then loading 2nd xml but it is cming like that.the code is for loading and unloading is........
    for loading i m calling---------------load_xml(xml)
    for unloading i m calling------------- unload_xml()
    function unload_xml():void
    trace("in unload")
    this.removeChild( flashmo_item_group );
    function push_array(e:Event):void
    flashmo_xml = XML(e.target.data);
    total = flashmo_xml.item.length();
    for( i = 0; i < total; i++ )
      flashmo_item_list.push( { content: flashmo_xml.item[i].content.toString() } );
    load_css();
    function load_xml(xml_file:String):void
    var xml_loader:URLLoader = new URLLoader();
    xml_loader.load( new URLRequest( xml_file ) );
    xml_loader.addEventListener(Event.COMPLETE, push_array);
    xml_loader.addEventListener(IOErrorEvent.IO_ERROR, io_error);
    function load_css():void
    css_loader.load( new URLRequest(css_file) );
    css_loader.addEventListener(Event.COMPLETE, css_complete);
    css_loader.addEventListener(IOErrorEvent.IO_ERROR, io_error);
    function css_complete(e:Event):void
    var css_format:TextFormat = new TextFormat();
    flashmo_style.parseCSS(css_loader.data);
    create_item_list();
    flashmo_loading.visible = false;
    function io_error(e:IOErrorEvent):void
    flashmo_loading.xml_info.text += "\n\n" + e;
    function create_item_list():void
    for( i = 0; i < total; i++ )
      var flashmo_item = new MovieClip();
      flashmo_item.addChild( create_item_desc( flashmo_item_list[i].content ) );
      flashmo_item.addChildAt( create_item_bg( flashmo_item.height, i ), 0 );
      flashmo_item.y = item_height;
      item_height += flashmo_item.height + item_spacing;
      flashmo_item_group.addChild( flashmo_item );
    this.addChild( flashmo_item_group );
    flashmo_item_group.mask = flashmo_mask;
    flashmo_sb.scrolling("flashmo_item_group", "flashmo_mask", 0.40); // ScrollBar Added
    function create_item_bg( h:Number, item_no:Number )
    var fm_rect:Shape = new Shape();
    fm_rect.graphics.beginFill(0xFFFFFF, 1); // ITEM BACKGROUND COLOR
    fm_rect.graphics.drawRoundRect(0, 0, item_width, h + item_padding * 2, 0);
    fm_rect.graphics.endFill();
    return fm_rect;
    function create_item_desc( item_desc:String )
    var fm_text = new TextField();
    fm_text.x = item_padding;
    fm_text.y = item_padding;
    fm_text.width = item_width - item_padding * 2;
    fm_text.styleSheet = flashmo_style;
    fm_text.htmlText = item_desc;
    fm_text.multiline = true;
    fm_text.wordWrap = true;
    fm_text.selectable = true;
    fm_text.autoSize = TextFieldAutoSize.LEFT;
    return fm_text;
    flashmo_sb.alpha=1;
    so plz give me idea to resolve this problem.

    function push_array(e:Event):void
        flashmo_item_list = [];
    flashmo_xml = XML(e.target.data);
    total = flashmo_xml.item.length();
    for( i = 0; i < total; i++ )
      flashmo_item_list.push( { content: flashmo_xml.item[i].content.toString() } );
    load_css();
    that will reset your array.

  • Problem in loading few jsp files

    Hi,
    I am facing problem in loading very few jsp pages. The situation is something like this.
    Server: WebSphere
    I have a top frame and bottom frame.
    When the user keep on clicking the same link in the top frame, not giving time to get loaded in bottom frame,
    on the server the error "Servlet Error: Connection reset by peer: socket write error: java.net.SocketException: Connection reset by peer: socket write error" was coming.
    My bother is not on the server-side. but on the client side.
    On the client side, the html of two requests are getting overlapped and displaying(see at the end for sample output of html). In this HTML, if you observe, you can find the line "Error 500: Connection reset by peer: socket write error
    ". Above to this is the half-content of the previous request and bellow is the actual page need to be loaded. And the output was a merge of actual page with the code of the previous request.
    Is it the problem of Websphere or coding?
    Can you help me resolving this problem?
    thanks
    naveen
    Output HTML (for example):
         Contract Name:</td>
         <td class="Label" ><input type="text" id="contractName"
    size="25" maxlength = "100"></td>
         <td class="Label" >Owner:</td>
         <td class="Label" colspan="2"><select id="owner" class="Label"
    size="1" style="WIDTH:200px">
         <option value="_______________">_____________</option>
         </select></td>
                   </td>
    Error 500: Connection reset by peer: socket write error
    <html>
    <head>
    <title> welcome </title>
    <link rel="STYLESHEET" type="text/css" href="Scripts/SSheet.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!-- This .js script files contains all components, which is used -->
    .... and so on
    </html>

    Hi
    I have Observed that "java.net.SocketException: Connection reset by peer" is caused due to manual malfunction performed by the user in the browser like sending multiple request to the server stopping, moving forward, moving backward when a request is placed to the server and waiting for it to get it done.
    More clearly if the User Selected an option from the browser and send a request to the server and followed by sending another request immediately to the server and by this time Server is processed the first request and is started writing the result to the JSP/Browser (Same client), by this time the 2nd reqest from the same Browser/Client is interrupted the first one and ohhhhhhh..... problem , you got an error "java.net.SocketException: Connection reset by peer".
    If any one could figure out more Please update me too appreciate !
    [email protected]
    Sr. Software Architect

  • Problem with loading a Sequence File - Limited Windows Account

    Dear Sirs,
    I have a problem and a very less time to fix it; so I'm asking for your kind help.
    I have a production PC, with a Debug Deploy License of TS 3.1 and LV 7.1; the operating system is Win XP SP2.
    No problem when I login the session with my Administrator Windows Account; on the contrary, when I try to login with a Limited Windows Account, I'm not able to load my Sequence File, and the text appearing is attached to this message.
    Someone can advise me a solution to quickly solve my problem?
    Thank you very much and Best Regards.
    Stefano 
    Attachments:
    TS_error_winXP_login_limited_account.jpg ‏224 KB

    Stefano,
    if you open files in TestStand, TestStand tracks this in different configuration files (for example for the "most recently used" list). Therefore, TestStand tries to save these changes in the ini-files. It seems to me, that the installationdirectory of TestStand is not permitted to be used for writing for your user login in Windows.
    So you have different solutions here, the simpliest being:
    Give your user the right to write files into the < TestStand >\-folder.
    hope this helps,
    Norbert B.Message Edited by Norbert B on 11-16-2006 07:28 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Memory issue loading XML schema files

    Hi,
    I have an application that a startup reads available XML schema files from a folder and creates Validator objects that are put into a HashMap.
    I'm running into problems creating validation schema objects when the file size of the schema is just over 30kB in size.
    The following error message is given when testing with the "large" schemas:
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet.<init>(CMStateSet.java:100)
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.firstPos(CMNode.java:96)
         at com.sun.org.apache.xerces.internal.impl.xs.models.XSCMBinOp.calcFirstPos(XSCMBinOp.java:136)
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.firstPos(CMNode.java:97)
         at com.sun.org.apache.xerces.internal.impl.xs.XSComplexTypeDecl.getContentModel(XSComplexTypeDecl.java:185)
         at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.fullSchemaChecking(XSConstraints.java:457)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:530)
         at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
         at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
    The smaller 1-10kB schemas can be stored without any problem regardless of the number I test (+1000).
    The problem occurs as soon as it handles these larger schemas in the source directory. Even only one 30kB schema is enough to consume the all memory.
    Below is the code uesd for creating the validation objects
    for(int i=0;i<files.length;i++){
        SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
        Source schemaFile = new StreamSource(files);
    schema = factory.newSchema(schemaFile); // Here is where the process fails
    Validator validator = schema.newValidator();
    hm.put(documentType, validator); //hm is the HashMap used as placeholder for Validator objects
    Regards,
    Håkan
    Edited by: dezer on Jun 2, 2010 5:04 AM
    Edited by: dezer on Jun 2, 2010 5:08 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Welcome to the Sun forums.
    dezer wrote:
    ..Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    The smaller 1-10kB schemas can be stored without any problem regardless of the number I test (+1000).
    The problem occurs as soon as it handles these larger schemas in the source directory. Even only one 30kB schema is enough to consume the all memory.Are you certain that only one schema is involved? How does the code tell how many schemas there are?
    Below is the code uesd for creating the validation objects
    for(int i=0;i<files.length;i++){
    SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Source schemaFile = new StreamSource(files);
    schema = factory.newSchema(schemaFile); // Here is where the process fails
    Validator validator = schema.newValidator();
    hm.put(documentType, validator); //hm is the HashMap used as placeholder for Validator objects
    It would seem that if files.length is 10000, that would end up in around 30 times as much memory usage as for the 1000x10Kb schemas.

  • Problems with load DSO from file

    I am working with BI 7.0.
    I am loading data from file to DSO and my problem is that data is not active in my DSO, the data are loaded how New Data and I haven´t the data in query and DSO.
    The settings of my dso are:
    Type: standard
    SIDs Generation upon Activation: X
    Set Quality Status to 'OK' Automatically: X
    Activate Data Automatically: X
    I have created one transformation from datasource to DSO and one DTP that extract from datasource ( No PSA).
    When I execute the DTP there aren´t errors, the status is green and ok but the data is not active.
    If I try activate the data manually the job is launched but the data no active.
    Thanks.

    hai
    Isabel Bautista 
    u r saying the data is not active in dso and also u r loading the data from file directly( no psa).
               i think u know in B.I the data should be in psa then only u can load the data using DTP .so how can u load the data with out data in psa  .i thinks may be because of this u r data is not activating in dso
    if it helps
    assign some points ok

Maybe you are looking for