Packages must be recompiled after use SQLLDR

Hi, my system uses a system scheduled job that calls sqlldr to import data into a table but, after this, my system is not able to run because the packages needs to be recompiled.
There's any way to avoid the need of recompile the packages?
I´m using Oracle 8i.
Thanks.

Not in the controlfile. First load the data and then execute the script to compile the invalid ones from sqlplus.
Message was edited by:
FeNiCrC_Neil

Similar Messages

  • Error- DBMS_STANDARD package must be created before using PL/SQL

    HI
    I am trying to run a very small and simple program on my Oracle81 personal edition on Win98.
    I get this error when i want to execute the program
    " package DBMS_STANDARD must be created before using PL/SQL "
    What should i do to create the package??
    Thank you
    Lin

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this question to the Database - General forum or the Installation forum.
    The URLs are:
    General Database Discussions
    and
    Database Installation

  • Error "To run a SSIS package outside of SQL Server data tools you must install task name used in package of Integration service or highter.

    Hello Team,
    I am trying to execute a SSIS package from web page. When i try to do that i am getting following error.
    "To run a SSIS package outside of SQL Server data tools you must install <task name used in package> of Integration service or highter."
    In my machine Integration Services are installed and its service is also in running state.
    Please help me on this.
    Thanks,
    Ramesh
    Thanks, Ramesh Arige

    The SSIS package developed using SSIS 2008 Server R2 and Integrations Services 10.0 is exists in my machine. Is this wrong configuration, please help me on this.
    I am using the below code copied from CodeProject
    Thank you so much for responding.
    Ramesh
    Thanks, Ramesh Arige
    Which way are you using from the provided blog? Using 1) C# Code or 2) C# and Stored Procedure?
    Cheers,
    Vaibhav Chaudhari
    MCP, MCTS, MCSA (SQL Server 2012)

  • On an pci_mio 16e4 programming using nidaq & visual basic, after using AI_Setup analog sequential data accusition stops.To restart I use Init_DA_Brds This takes a long time, What must I reset to restore the analog sequential function?

    on an pci_mio 16e4 programming using nidaq & visual basic, after using AI_Setup analog sequential data accusition stops.To restart I use Init_DA_Brds This takes a long time, What must I reset to restore the analog sequential function?
    I belive that the trigger is being changed on the io board, but cannot manage to reset it.
    The reset process takes in the order of 0.1 sec, and since this is a time critical application, i want to get the scanning function working again faster

    Dear Ian. Thank you for your reply. The problem appears to be that the scan trigger(s) are stopped, or something, by the use of the AI_setup instruction. The sytstem works perfectly until this instruction is used. My problem is in understanding what has happened since the help seems to give no detail on any interconnection between the scan system and the external analog trigger system. I have tried to reconnect the triggers, but so far unsucessfuly

  • After,using,CS,for,one,year,I,must,have,an,activation,code,,the,trial,version,will,be,end, over,25,days.,How,is,it,possible?,What,can,I,do?

    After,using,CS,for,one,year,I,must,have,an,activation,code,,the,trial,version,will,be,end, over,25,days.,How,is,it,possible?,What,can,I,do?

    Was the iPad originally set up on a different computer, and hasn't been synced to the one that you are now trying to use ? There are some instructions on this page for syncing to a new computer : https://discussions.apple.com/docs/DOC-3141
    (Before trying that you could copy any important files/documents off the iPad so that you have you own backup copy of them e.g. depending upon what the apps support then email them to yourself, use Dropbox, copy them to your computer via your wifi-network.)
    You should be able to copy iTunes purchases off the iPad and over to that computer's iTunes via File > Devices  Transfer Purchases, but if you have music from other sources (e.g. copied from CDs) which aren't in that computer's iTunes (and you haven't got a backup to copy them onto it from) then there are some programs listed half-way down this page which should be able to copy them back : https://discussions.apple.com/docs/DOC-3991
    For recovery mode, that will result in your iPad being put back to factory defaults i.e. all of your content will be removed from it

  • After itunes finishes restoring my ipod touch 8gb, itunes still says itunes has detected an ipod touch recovery mode. You must restore it before using it with itunes. and i dont knwo what to do

    after itunes finishes restoring my ipod touch 8gb, itunes still says itunes has detected an ipod touch recovery mode. You must restore it before using it with itunes. and i dont know what to do

    Are you sure it is 1043? I've never seen that error before. But you can try disabling your security software, connecting the phone to a USB port directly on the computer (not a hub), and trying to restore again.

  • Getting ORA-22805 when trying to load XML file using SQLLDR

    I'm trying to learn the basics of XML since we'll be getting XML files in the near future. I'm using one of the sample schemas that comes with XMLSPY. I loaded this schema into an 11g Oracle DB using XMLSPY:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XML Spy v4.0 NT beta 1 build Jun 13 2001 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.altova.com/IPO" targetNamespace="http://www.altova.com/IPO" elementFormDefault="unqualified" attributeFormDefault="unqualified">
         <annotation>
              <documentation>
    International Purchase order schema for Example.com
    Copyright 2000 Example.com. All rights reserved.
    </documentation>
         </annotation>
         <!-- include address constructs -->
         <include schemaLocation="address.xsd"/>
         <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
         <element name="comment" type="string"/>
         <complexType name="PurchaseOrderType">
              <sequence>
                   <element name="shipTo" type="ipo:Address"/>
                   <element name="billTo" type="ipo:Address"/>
                   <element ref="ipo:comment" minOccurs="0"/>
                   <element name="Items" type="ipo:Items"/>
              </sequence>
              <attribute name="orderDate" type="date"/>
         </complexType>
         <complexType name="Items">
              <sequence>
                   <element name="item" minOccurs="0" maxOccurs="unbounded">
                        <complexType>
                             <sequence>
                                  <element name="productName" type="string"/>
                                  <element name="quantity">
                                       <simpleType>
                                            <restriction base="positiveInteger">
                                                 <maxExclusive value="100"/>
                                            </restriction>
                                       </simpleType>
                                  </element>
                                  <element name="price" type="decimal"/>
                                  <element ref="ipo:comment" minOccurs="0"/>
                                  <element name="shipDate" type="date" minOccurs="0"/>
                             </sequence>
                             <attribute name="partNum" type="ipo:Sku"/>
                        </complexType>
                   </element>
              </sequence>
         </complexType>
         <simpleType name="Sku">
              <restriction base="string">
                   <pattern value="\d{3}-[A-Z]{2}"/>
              </restriction>
         </simpleType>
    </schema>
    Then I created an XMLType table:
    CREATE TABLE purchaseOrder OF XMLType
    XMLSCHEMA "ipo.xsd" ELEMENT "purchaseOrder"
    I'm trying to load the sample XML file ipo.xml into purchaseOrder using SQLLDR. This is ipo.xml:
    <?xml version="1.0"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Mr. Nobody (Altova GmbH) -->
    <ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ipo="http://www.altova.com/IPO" orderDate="1999-12-01" xsi:schemaLocation="http://www.altova.com/IPO
    ipo.xsd">
         <shipTo export-code="1" xsi:type="ipo:EU-Address">
              <ipo:name>Helen Zoe</ipo:name>
              <ipo:street>47 Eden Street</ipo:street>
              <ipo:city>Cambridge</ipo:city>
              <ipo:postcode>126</ipo:postcode>
         </shipTo>
         <billTo xsi:type="ipo:US-Address">
              <ipo:name>Robert Smith</ipo:name>
              <ipo:street>8 Oak Avenue</ipo:street>
              <ipo:city>Old Town</ipo:city>
              <ipo:state>AK</ipo:state>
              <ipo:zip>95819</ipo:zip>
         </billTo>
         <Items>
              <item partNum="833-AA">
                   <productName>Lapis necklace</productName>
                   <quantity>2</quantity>
                   <price>99.95</price>
                   <ipo:comment>Need this for the holidays!</ipo:comment>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="748-OT">
                   <productName>Diamond heart</productName>
                   <quantity>1</quantity>
                   <price>248.90</price>
                   <ipo:comment>Valentine's day packaging.</ipo:comment>
                   <shipDate>2000-02-14</shipDate>
              </item>
              <item partNum="783-KL">
                   <productName>Uncut diamond</productName>
                   <quantity>7</quantity>
                   <price>79.90</price>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="238-KK">
                   <productName>Amber ring</productName>
                   <quantity>3</quantity>
                   <price>89.90</price>
                   <ipo:comment>With no inclusions, please.</ipo:comment>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="229-OB">
                   <productName>Pearl necklace</productName>
                   <quantity>1</quantity>
                   <price>4879.00</price>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="128-UL">
                   <productName>Jade earring</productName>
                   <quantity>5</quantity>
                   <price>179.90</price>
                   <shipDate>2000-02-14</shipDate>
              </item>
         </Items>
    </ipo:purchaseOrder>
    This is what's in the control file:
    LOAD DATA
    INFILE *
    INTO TABLE purchaseOrder TRUNCATE
    xmltype(xmldata)
    FIELDS
    xmldata LOBFILE (CONSTANT ipo.xml)
    BEGINDATA
    0
    The load fails with:
    Record 1: Rejected - Error on table PURCHASEORDER.
    ORA-22805: cannot insert NULL object into object tables or nested tables
    Another question I have is, how do we know how many records (0's) to specify in the control file? In this case there's only one but when real files are used we won't know how many are in the file.
    Thanks for your help!

    The concept was "Don't use SQL*Loader to parse XML".
    You can use SQL*Loader to load an entire XML document into the DB. That is fine. You can do the same via BFILENAME to read in files from disk as well.
    If you want to parse XML, do that from within Oracle via PL/SQL and/or SQL. The solution depends upon your version of Oracle and what is good enough for you in terms of performance.
    So the basics are
    a) How am I getting the information?
    b) How am I getting in into Oracle?
    c) How do I want to parse it?
    As I see the schema, it only allows for one ipo:purchaseOrder node in the document, since that is the root node. If you have multiple in the incoming file, you no longer have valid XML, both per the schema and because you have no single root node. You have an XML fragment, which must be treated different.
    Just trying to understand the question since I now realize it does not agree with what the schema in your initial example shows.

  • Using sqlldr when source data column is 4000 chars

    I'm trying to load some data using sqlldr.
    The table looks like this:
    col1 number(10) primary key
    col2 varchar2(100)
    col3 varchar2(4000)
    col4 varchar2(10)
    col5 varchar2(1)
    ... and some more columns ...
    For current purposes, I only need to load columns col1 through col3. The other columns will be NULL.
    The source text data looks like this (tab-delimited) ...
    col1-text<<<TAB>>>col2-text<<<TAB>>>col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    END-OF-RECORD
    There's nothing special about the source data for col1 and col2.
    But the data for col3 is (usually) much longer than 4000 chars, so I just need to truncate it to fit varchar2(4000), right?
    The control file looks like this ...
    LOAD DATA
    INFILE 'load.dat' "str 'END-OF-RECORD'"
    TRUNCATE
    INTO TABLE my_table
    FIELDS TERMINATED BY "\t"
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 "trim(:col1)",
    col2 "trim(:col2)",
    col3 char(10000) "substr(:col3,1,4000)"
    I made the column 3 specification char(10000) to allow sqlldr to read text longer than 4000 chars.
    And the subsequent directive is meant to truncate it to 4000 chars (to fit in the table column).
    But I get this error ...
    Record 1: Rejected - Error on table COL3.
    ORA-01461: can bind a LONG value only for insert into a LONG column
    The only solution I found was ugly.
    I changed the control file to this ...
    col3 char(4000) "substr(:col3,1,4000)"
    And then I hand-edited (truncated) the source data for column 3 to be shorter than 4000 chars.
    Painful and tedious!
    Is there a way around this difficulty?
    Note: I cannot use a CLOB for col3. There's no option to change the app, so col3 must remain varchar2(4000).

    You can load the data into a staging table with a clob column, then insert into your target table using substr, as demonstated below. I have truncated the data display to save space.
    -- load.dat:
    1     col2-text     col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    XYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    END-OF-RECORD-- test.ctl:
    LOAD DATA
    INFILE 'load.dat' "str 'END-OF-RECORD'"
    TRUNCATE
    INTO TABLE staging
    FIELDS TERMINATED BY X'09'
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 "trim(:col1)",
    col2 "trim(:col2)",
    col3 char(10000)
    SCOTT@orcl_11gR2> create table staging
      2    (col1 varchar2(10),
      3       col2 varchar2(100),
      4       col3 clob)
      5  /
    Table created.
    SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test.ctl log=test.log
    SCOTT@orcl_11gR2> select * from staging
      2  /
    COL1
    COL2
    COL3
    1
    col2-text
    col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    XYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    1 row selected.
    SCOTT@orcl_11gR2> create table my_table
      2    (col1 varchar2(10) primary key,
      3       col2 varchar2(100),
      4       col3 varchar2(4000),
      5       col4 varchar2(10),
      6       col5 varchar2(1))
      7  /
    Table created.
    SCOTT@orcl_11gR2> insert into my_table (col1, col2, col3)
      2  select col1, col2, substr (col3, 1, 4000) from staging
      3  /
    1 row created.
    SCOTT@orcl_11gR2> select * from my_table
      2  /
    COL1
    COL2
    COL3
    COL4       C
    1
    col2-text
    col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    more-col3-text
    XYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    1 row selected.

  • HT4168 I have created an 100 page booklet in Pages, with many photographs, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?

    I have created an 100 page booklet in Pages, with many photographs, and much written word, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?....
    Basically what I want to do is publish the document into both an eDocument, and a hard copy document. What is the best way to do this?

    No Peter, this statement came right off the Apple ePub statement when outlining how to use ePub. the full context is:
    Creating ePub files with Pages
    Summary
    Learn how to create ePub files with Pages.
    Products Affected
    Pages '09
    ePub is an open ebook standard produced by the International Digital Publishing Forum. Pages ’09 lets you export your documents in ePub format for reading with iBooks on iPhone, iPad, or iPod touch.
    iBooks supports both ePub and PDF file formats, and you can export both from Pages.
    When to use ePub or PDF
    Use ePub when text is the most important part of your document, for example when you create a book, a report, a paper, a thesis, or classroom reading material.
    More details on using ePubUse PDF when layout is the most important part of your document, for example when you create a brochure, a flyer, or a manual with multiple illustrations.
    More details on using PDF
    Creating an ePub Document to Read in iBooks
    You can export any Pages word processing document to the ePub file format for reading in an ePub reader, such as the iBooks application on the iPad, iPhone, or iPod touch. Documents created in page layout templates can’t be exported to the ePub format.
    Documents exported to ePub format will look different than their Pages counterparts. If you want to get the best document fidelity between the Pages and ePub formats, style your Pages document with paragraph styles and other formatting attributes allowed in an ePub file. A sample document is provided on the Apple Support site that features styles and guidelines to help you create a Pages document that’s optimized for export to the ePub file format, which you can use as a template or a guide. To learn more about using paragraph styles in Pages, see the topics under the heading “Working with Styles” in the Pages built-in help.
    To read your ePub document in iBooks on your mobile device, you must transfer the ePub file that you create onto your device.
    To use the “ePub Best Practices” sample documentTo learn more about using the ePub format and get a better feel for how a Pages document might appear as a book in iBooks, it’s a good idea to download the “ePub Best Practices” sample document. After reading the guidelines and instructions within the document, you can use it as a template to create your own document. You can also import the styles from the sample document into a new document you create.
    Download the “ePub Best Practices” sample document at the following web address:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    Do either of the following:Use the sample document as a template.Import the paragraph styles from the sample document into a new or existing Pages document.
    Export the document you create to ePub format to see how it looks in iBooks.
    Preparing an existing Pages document for export to ePub format
    Documents exported to the ePub format automatically appear with page breaks before every chapter. A table of contents is automatically generated, which allows readers to jump quickly to any chapter title, heading, or subheading in the book. In order to create a meaningful table of contents, it’s important to apply appropriate styles within your document. The ePub reader uses the paragraph styles to determine which items should appear in the table of contents for your book.
    Note: The Pages document must have been created using a word processing template.

  • Using SQLLDR to load files

    I guess this is kind of a newbie question, so sorry in advance, but I can't figure this out from the documentation.
    I would like to use SQLLDR to load a series of files (a.txt, b.txt, c.txt, for example) to a CLOB. I want one file per row as each one is a separate document. I want everything in the file loaded up until EOF, then I want to move on to the next file.
    It sounds fairly simple, but so far I haven't been very successful. Could anyone post an example control file.
    Thanks.

    Use DBMS_LOB.LoadFromFile to do this (files must be accesible from the Oracle server to do this).
    Message was edited by:
    Kamal Kishore

  • Dark path's edges after using shape builder tool or masking objects

    hi,
    i have a problem with path edges after using shape builder tool or masking objects. This problem occurs when i draw bright colored objects above dark colored object. After that i have dark path's edges. Like this: http://img94.imageshack.us/img94/2051/dlm2.jpg     
    I have one solution (pathfinder->dive objects and delete some dark elements on the bottom) but maybe someone know another solution for this problem?

    Thank you for reply
    Unfortunately, I don't have opportunity to print it, but as you wrote, it must be a screen artifact. I exported this file to tiff, then i opened it in photoshop. Everything is ok. All of the edges are clear.

  • Apple ID password must not have been used in the past year

    Hello
    I am trying to reset my Apple password. I have been sent a link by Apple which I have clicked. When I enter a completely new and never used password in the system (which meets all the other requirements) it says this password must not have been used in the previous year. As a completely new password, it obviously hasn't and yet the system says it has. I have tried this with three completely new passwords but the same thing comes up.
    Any suggestions please for how to get out of this loop?
    thank you

    Thanks to all who responded. You are all absolutely correct. However, this Ipad was a gift to my wife who was dying of cancer in the hospital and wanted some entertainment. So I started it out with her Apple ID. After she passed away I moved from Sacramento to Austin and eventually proceeded to get the Apple ID changed from my wife's to mine. Meanwhile when she was in the hospital I opened an Itunes account in my name to buy movies for her. That was the first mistake.
    Then during the move to Austin I lost track of the IPAD and later found it and tried to use support but could not remember the proper ID. Later the folks at the Apple store helped me create a new and novel Apple ID that was unfortunately unlike any other.
    The botom line is that I am stuck with three Apple IDs and three passwords. I am told by Apple there is nothing they can do about this as IDs cannot be changed or destroyed. I can quit using them or start a new account but when I try to do that the system keeps remembering too many things from the past and resists.
    Even if I sold this Ipad and bought a new one, the system memory is still there.
    I think the real problem is that destop and laptop computers are totally owned by an individual and that individual can control logins and passwords to his liking. IPADs and similar Apple products are different in that the corporation has built in their own intrusion detection schemes because of the relation to Itunes.
    One thing I thought about is to open a new Itunes account pretendding to be a new customer with my regular Apple ID. Perhaps I could do the same with Apple Support.
    Thanks for your comments.
    RAZ

  • DU differs over permissions after using Macjanitor

    Thanks Sig and others for help. I do prefer to run a non-automated maintenance program like MacJanitor because I shut down the computer at the end of the day (it's also only 144 kb). If it isn't doing any harm I'd prefer to keep using it, even if it differs with DU permissions. I've copied part of the thread which contains my unanswered question which seems to have gotten lost amid the responses to Jorge's posting (and now buried by a flurry of newer postings) . I've copied the relevant part of the thread here.
    Also are there any other, perhaps more up to date programs, which can be run manually? Thanks.
    "DU differs over permissions after using Macjanitor
    Posted: Mar 29, 2008 12:39 PM
    Reply Email
    I recently started using Macjanitor ("run all tasks"). When I've done this - several times now - and then run Permissions Repair, I get:
    Permissions differ on ./private/var/log/secure.log, should be -rw------- , they are -rw-r-----
    Owner and group corrected on ./private/var/log/secure.log
    Permissions corrected on ./private/var/log/secure.log
    Is Macjanitor creating a problem? DU restores the correct permissions afterward. Should I stop running Macjanitor? (I like to use it because it is non-automated). Thanks for help.
    Imac G3/ 400 (early 2001) Mac OS X (10.4.11)
    sig
    Posts: 4,306
    Registered: Sep 22, 2000
    Re: DU differs over permissions after using Macjanitor
    Posted: Mar 29, 2008 12:58 PM in response to: WZZZ
    Reply Email
    Yes that's perfectly normal and is what should happen. MacJanitor runs the cron scripts manually. You get the same result if you let your Mac run Friday night into Saturday. No problem.
    MacBook Pro 2.4 Ghz 15.4 / 2 Gb Ram Mac OS X (10.4.11)
    (UNANSWERED QUESTION)
    Thanks for quick reply.
    So, does that mean I shouldn't bother repairing permissions with DU after using Macjanitor?"

    So, does that mean I shouldn't bother repairing permissions with DU after using Macjanitor?"
    Yes, you needn't bother repairing permissions after using MacJanitor. But I still recommend using something different. If you must do this manually (I really don't see a reason why) then use one of the more current utilities such as TinkerTool System, Onyx, CockTail, etc.
    Although what happens with MacJanitor is innocuous, it's one of those items that shows that MacJanitor needs some revision, but the program seems to have long been abandoned by its author. I used it for a while, but by the time Tiger appeared it was completely unreliable on my systems, so I stopped using it. Since then I use Macaroni (shareware) but if it's $9.00 price tag is too high PseudoAnacron is freeware. Either completely automates the process by checking if the scripts have been run since the last time the computer was shut down. If not then they run the appropriate script. This assures the maintenance is performed whether your computer is turned off or left on. The choice is yours. I prefer not having to remember to run maintenance scripts.

  • 1131:Packages must not be nested

    Hai all,
    I m working on a Flex Application, in which I have to
    communicate with the server through TCP Socket. I am using
    XMLSocketClass. I got a code from help, but I am getting
    "1131:Packages must not be nested" error whenever I m trying to
    compile it. Pls tell me the reason for this error.
    ==========================================================================
    XMLSocketExample.as
    ==========================================================================
    package //ERROR// 1131:Packages must not be Nested
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.XMLSocket;
    public class XMLSocketExample extends Sprite {
    private var hostName:String = "localhost";
    private var port:uint = 8080;
    private var socket:XMLSocket;
    public function XMLSocketExample() {
    socket = new XMLSocket();
    configureListeners(socket);
    socket.connect(hostName, port);
    public function send(data:Object):void {
    socket.send(data);
    private function
    configureListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.CLOSE, closeHandler);
    dispatcher.addEventListener(Event.CONNECT, connectHandler);
    dispatcher.addEventListener(DataEvent.DATA, dataHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    dispatcher.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    private function closeHandler(event:Event):void {
    trace("closeHandler: " + event);
    private function connectHandler(event:Event):void {
    trace("connectHandler: " + event);
    private function dataHandler(event:DataEvent):void {
    trace("dataHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    trace("progressHandler loaded:" + event.bytesLoaded + "
    total: " + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    ============================================================================
    Flex File
    ============================================================================
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script source="XMLSocketExample.as"/>
    <mx:Button x="202" y="140" label="Button" id="sendButton"
    name="sendButton" />
    <mx:Label x="204" y="110" id="conn_txt"
    enabled="true"/>
    </mx:Application>

    Hi, Thanks for your help. I added the follwoing code in my
    Flex Application.
    <mx:Script>
    <![CDATA[
    private var aa:<ClassName> = new <ClassName>();
    ]]>
    </mx:Script>
    Thanks. No I am facing one more problem. I can't receive any
    reply messages from the server, when I am trying to get some
    responses through TCP Socket using XMLSocket Class.
    addEventListener(DataEvent.DATA, dataHandler) is not working.. I
    have posted the problem in the forum. Can u pls go through that??
    Thanks in advance,
    Sunil NaIR

  • Applying Effects After Using a  Color Key to Remove Greenscreen

    I want to apply an infrared effect to a character on some greenscreen footage after using keylight to remove the greenscreen. When I apply the effect, it of course effects the color key, making all the removed greenscreen come back. I'm sure there must be a way to keep the screen matte data, before the effect is added, but I haven't been able to figure out how to do this.

    Some effects will overwrite the Alpha channel. In that case the procedures you choose are correct, if you want to keep the layer count low. Still, you may wish to check the layer's internal blendmode controls just to make sure. For effects like Colorama, you can also explicitly disable Alpha processing, so the source transparency remains intact. You could of course also use the Alpha Matte or Stencil Alpha modes to do the cutout using duplicates of the source layer.
    Mylenium

Maybe you are looking for

  • Rebinding Backspace Key

    Is there anyway to rebind the backspace key so that it does something else other than what it is supposed to do (i.e. delete the character before the current carat position). I've tried doing the inputMap()/actionMap() method to rebind and it fails t

  • Runtime Error 1007 on a simple ProgressBar in Flex 4

    This is such a simple code that compiles correctly, but I'm getting the error below when running it TypeError: Error #1007: Instantiation attempted on a non-constructor.                 at mx.controls::ProgressBar/createChildren()[E:\dev\4.0.0\framew

  • Passwords in Finder

    Hi, A few days ago, I must have enabled something that I didn't mean to. All of a sudden, I am now getting password requests when I am moving things into the trash, moving in and out of folders, etc... I have looked under Finder prefs and system pref

  • Is it planned to add feature for creating tables and lists in Adobe Edge Reflow?

    First of all, thank you very much guys for all your work! In my opinion Adobe Edge Reflow is missing quite important features, like creating tables and lists. For me it's a reason why I can't switch to Reflow. Any plans for implementing these? Is the

  • HP Desktop Jet F4280 not scanning

    hey guys, this isn't actually my all-in-one, its my dads but i am trying to help him fix it. First i will give you my dads computer information. - HP Desktop Jet F4280 -Windows Vista (not sure if its home or whatever) -Norton 2009 - He uses HP soluti