Apex_util.get_blob function apex with unexpected behavior

Hi Experts.

I have been building a search application Apex and encountered an obstacle while testing the download url apex_util.get_blob.  It seems that the download url is valid only in the session that it was generated. Which means that this.  The url in step 2 below now returns a "500 - internal error Server error."  But when he was the first (i.e. Select download link generated in Apex app, right-click, and select Copy link location) the same url below has worked.  Is there a way to fix this?

Here are my steps:

(1) download a store a document by using the syntax of download: DOWNLOAD: GPAP_PROJECT_FILES:FILE_BLOB:ID:FILE_MIMETYPE:FILENAME: UPDATE: FILE_CHARSET:Inline:Download.

(2) with FF or IE, when I select to cfopy lijnk, for example

https://Apex.oraclecorp.com/pls/Apex/apex_util.get_blob?s=101780738579356 & a = 2853 & c = 35900184302057347654 & p = 19 & 307565788455977950718535285815317923965 = k1 & k2 = & ck = 23EE058993C510D8E30A6B23E12431E8 & rt = CR

(3) result: if I paste this url in another browser of the session window 'even' as the file, it works fine.  But if I start a new browser instance/session and paste the url, even a "500 - Internal Server Error" results  This would be possible, and if so, can you please share suggestions?

Thank you very much!

Mike

Hi Mike,.

I don't know about you really, but I see nothing you need to do as SYS, so I guess it works on apex.oracle.com

Kind regards

Joni

Tags: Database

Similar Questions

  • Unexpected behavior with the Option "record in the result.

    Hello

    I have unexpected behavior with the Option "record in the result.

    I have a few steps in the subsequence 'X', this subsequence passes a Boolean parameter. According to the value of the parameter I change the "Recorgind results" Option to report it or not. The thing is that if 'result Recorgind' set at race time I modofy by changing the value of Step.ResultRecordingOption to "Enable" and "Disable", the step is not reported until the same sous-suite 'X' is called for the second time (without changing the parameter passed).

    For example: (Preconditon: result Recorgind Option of all value sous-suite x are defined as Disable)

    1 CallSubsequenceX(Parameter: Enable)

    2 CallSubsequenceX(Parameter: Enable)

    3 CallSubsequenceX(Parameter: Disable)

    4 CallSubsequenceX(Parameter: Disable)

    Expected result:

    1. measures have been reported.

    2. measures have been reported.

    3. measures have not been reported.

    4. measures have not been reported.

    Result:

    1. measures would not same value Step.ResultRecordingOption has been changed to 'enable '. (Not Ok)

    2. measures have been reported. (Ok)

    3. measures reported same value Step.ResultRecordingOption has been changed to 'disable '. (Not Ok)

    4. measures have not been reported. (Ok)

    I use TestStand 2013 (5.1.0.226)

    Thanks in advance.

    -Josymar.

    Hi josymar_guzman,

    I just review the sequence and indeed we´re experience unexpected behavior with the Step.ResultRecordingOption callback. By a reason when you run the callback in the expression before each step section, the statement runs only until the next sequence is called, which is not what we want.

    To avoid this, you can place a statement before each step of the sequence, so you can change the State of the Option "record result" for the sequence running (and it is only the following). You can try something like this

    where the expression of the statement will be the recall "RunState.NextStep.ResultRecordingOption is YourCondition". With this, we guarantee that the results of the next step will be saved or not. I also remove the expression in the expression prior to each step section, because the condition is now on the statement before each step.

    I tried and it works fine. I´ll set the sequence that you share with me, with the changes. I hope this will help you and solve your problem.

  • Management of an APEX with walk-APIs - it APEX runtime environment?

    People,

    APEX Version: 4.2.1
    Database EE 11 GR 2
    Listener: EPG

    TLDR: Go at the end of the question for this thread in bold.

    I work in an environment where we have maintained by Oracle Forms applications and Oracle APEX on a database only internal production data. We want to take a redacted together these data (PII or personal Identifiable Information removal) and some applications of the APEX and put them on a separate external server for public consumption. The internal production environment is running APEX with the runtime and development environments. The external server runs APEX with just the execution with the query, only the applications environment. While two of the external applications are public applications without authentication (both work very well), there is an application that will have a relatively small number of users who authenticate with the application to access more detailed information than the general public. Still no PII or something like that, a little more information. Users are users of workspace APEX. The three applications are in the same workspace.

    I have to assume that I'm not the only person with the above configuration, but I had a moment difficult to work right. Although the documentation does not have the API, it is not always clear which API you would use and why.

    For example, in the internal production environment when a user connects to the authenticated application, they get access to the application (if they are in the right group) or they get an error page indicating that they have no access to the application. In the external runtime application that they will always have a ' ORA-06550: line 4, column 55: PLS-00201: identifier ' WWV_FLOW_F4000_PLUGINS.» ' INTERNAL_4155_SESSION_SENTRY' must be declared ORA-06550: line 4, column 1: PL/SQL: statement ignored ' error, which "sort of" makes sense because the application referenced (4155) is part of the installation of development and is not included as part of the runtime install only (either by the way, this seems like a bit of an oversight on the part of the APEX team). It is pretty obvious that the export and import of the workspace (and its users) 'something' got zero and some type of password reset is requested. Of course, end-user password reset request is not included in a single installation of runtime...

    So, off to the API to see if I can "reset" on the single runtime installation external users so that they do not have to reset their passwords when first connecting. Wow... Lots and lots of API. Understand that you must set the security with the APEX_UTIL group id. SET_SECURITY_GROUP_ID API takes some time. After much wandering around, I settled on the apex_util API and the WWV_FLOW_USERS view as a good place to study...

    However, when we query the view WWV_FLOW_USERS on each side, all of the columns "expected" that one would expect because of this behavior are identical between the installation of development / internal enforcement and the only external runtime installation. Things like CHANGE_PASSWORD_ON_FIRST_USE and FIRST_PASSWORD_USE_OCCURRED are identical (and btw, not the values that you expect them to be... FIRST_PASSWORD_USE_OCCURRED is N for all users except the user ADMIN). The only values that differ between the two environments are as CREATED_BY, CREATION_DATE, LAST_UPDATED_DATE, and LAST_UPDATED_BY columns.

    Things that work just great:

    < li > the installation itself! Very easy to move backward between each environment (runtime only or runtime and development).
    < Li > integration with SQL/Developer is fantastic. It is very cool to be able to right-click on an application in the internal environment and deploy it to the unique runtime environment. Ideally, it would be nice to be able to move workspaces APEX in the same way.

    Things that do not seem to be large:

    < Li > when that documentation tells you what each API, it doesn't tell you why you want to use it, or what you would use it for. Having a section "useful use case" in the documentation would be great. Yes, there is the example of code (which of course does not mention that you need to set the id of Group of security for most of them to work), but the code example is not really tell you why and what each of the attributes you can set with her (for the API set for example) will actually... For example the documentation does not really that many fields are not yet used, and even if the values are the exact opposite of what you would think they would be.

    So, my immediate question:

    What API will allow me to have users exported with a workspace to use applications that are authenticated in a single installation of runtime?

    And my follow-up question (s):

    You can actually use the API defined to manage a runtime environment and is at - it a good resource that explains the how and why rather than just the choice of the API.

    Well, after a lot of trying things, I finally had things to work.

    It seems that export and import a workspace "expires" users to your workspace. Despite the fact that, in the development environment / the ACCOUNT_EXPIRY (which is a date) has a whole bunch of different values and seems to work perfectly, when you import a workspace that the ACCOUNT_EXPIRY column is ready on the date you did import previous internal enforcement. For some reason, this is an indication that your account has expired at the time when you look at the WWV_FLOW_USERS table. Not one of the columns expected, but on the contrary this date column...

    So let's take a look at the [url http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_util.htm#autoId126]Unexpire account of the workspace of the documentation procedure:]

    UNEXPIRE_WORKSPACE_ACCOUNT Procedure
    
    Unexpires developer and workspace administrator accounts and the associated passwords, enabling the developer or administrator to log in to a workspace.
    
    Syntax
    
    APEX_UTIL.UNEXPIRE_WORKSPACE_ACCOUNT (
        p_user_name IN VARCHAR2);
    
    Parameters
    
    Table 21-107 describes the parameters available in the UNEXPIRE_WORKSPACE_ACCOUNT procedure.
    
    Table 21-107 UNEXPIRE_WORKSPACE_ACCOUNT Parameters
    Parameter           Description
    
    p_user_name  The user name of the user account
    
    Example
    
    The following example shows how to use the UNEXPIRE_WORKSPACE_ACCOUNT procedure. Use this procedure to renew (unexpire) an Application Express workspace administrator account in the current workspace. This action specifically renews the account for use by developers or administrators to login to a workspace and may also renew the account for its use by end users to authenticate to developed applications.
    
    This procedure must be run by a user having administration privileges in the current workspace.
    
    BEGIN
        FOR c1 IN (select user_name from wwv_flow_users) loop
            APEX_UTIL.UNEXPIRE_WORKSPACE_ACCOUNT(p_user_name => c1.user_name);
            htp.p('Workspace Account:'||c1.user_name||' is now valid.');
        END LOOP;
    END;   
    
    See Also:
    "EXPIRE_WORKSPACE_ACCOUNT Procedure" and "WORKSPACE_ACCOUNT_DAYS_LEFT Function"
    

    It's very nice and all, but there are some things missing in the example above:

    (1) you must call the procedure of apex_util.set_security_group_id with the ID of the workspace you want to unexpire accounts.
    (2) you will need to issue a COMMIT for steps to engage the unexpire.

    Question: How are you supposed to know you need to do the above two steps?

    Take a look at what the API documentation has for the description of the SET_SECURITY_GROUP_ID procedure:

    SET_SECURITY_GROUP_ID Procedure
    Use this procedure with apex_util.find_security_group_id to ease the use of the mail package in batch mode. This procedure is especially useful when a schema is associated with more than one workspace. For example, you might want to create a procedure that is run by a nightly job to email all outstanding tasks.
    

    Note that there is no mention that you will need to call the SET_SECURITY_GROUP_ID procedure for almost all other API calls in the APEX_UTIL package (or at least many of them)...

  • Results of increasing frequency generated unexpected behavior of the signal

    I'm generating a composite using a sawtooth wave, square, signal that produces the desired signal as shown on the left. Unfortunately, when the increase of the frequency beyond 1 Hz, I get undesirable results as shown on the right.

            

    I tried to edit the news of sampling with no luck. I have also tried different methods to produce the desired signal. I noticed that before one of partial components of the final signal enters a relay, the increase of the frequency doesn't create unexpected results. Although, after its passage through a relay, the error starts happening. It seems that the relay is not suitable for higher frequencies, but I can't fix this unexpected behavior.

    Frequency of 1 Hz:

    Frequency of 3 Hz:

    Another method that I tried was to use the "simulate arbitrary signals," even if I was unable to find a way to increase the frequency of the signal that results.

    In addition, the signal has this grainy nature that I would like to make it smooth and continuous. Is this possible? I would like finally to reach a frequency of a few kiloHertz.

    I have attached the VI.

    Any help would be greatly appreciated. Thank you.

    The problem has to do with the size of the block and when the relay actually sees the saw tooth cross the threshold.

    Solve it, to perform a point-by-point check and build our waveform personalized to each iteration.

  • Oracle text index - unexpected behavior

    We have a SEARCH_TABLE (in Oracle 12.1.0.1.0) with a couple of files (actually about 10,000,000 records):

    ID ADDRESS

    1     | WIMPEL | 57. 9733BK | GRONINGEN |

    2     | JOHAN WILSSTRAAT | 7 ||| 1333PV | ALMERE |

    3     | ABRAHAM KUYPERHOF | 10. 8091XN | WEZEP |


    To support research on the table addresses, we apply an Oracle text index:

    create index ST_CTX1 on SEARCH_TABLE (address)

    indexType is ctxsys.context

    parameters ("DATASTORE CTXSYS. DEFAULT_DATASTORE');


    Our research focuses on whole words (without jokers). When searching through the data, it usually comes back with the correct results.


    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'GRÖNING') > 0

    ;

    Returns nothing, that is correct. Once the search argument 'GRÖNING' is replaced by 'GRONINGEN', ID 1 is correctly selected. According to this behavior, the following query returns no records:

    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'ABR & KUYPERHOF') > 0

    ;


    Surprisingly, however, the following query returns record ID 3:

    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, ' A & KUYPERHOF ') > 0

    ;

    (Even if data does not contain the complete word 'A'). This unexpected behavior only seems to occur when you use "A" as the initial character.

    The following query (with the search starting with the character 'J' argument) returns no data. Which is the expected behavior.

    SELECT the ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'J & WILSSTRAAT') > 0

    ;

    Anyone has an idea why the text index returns with A situations? Any ideas on how to solve this problem are appreciated.

    Mark

    According to the list of empty words by default in 11.2, the letters a, d, i, s, and t are listed, so would be removed from the wanted list of tokens.  Thus, 'A & WILSSTRAAT' becomes '& WILSTRAAT' and search text line with a single word.  'j' is not an empty word, so it is considered to be a token is valid and is not in your tables.  Look in CTXSYS. CTX_STOPWORDS to see what you have.

  • apex_util.reset_pw at APEX 4.2

    I use apex_util.reset_pw procedure APEX 4.2. Works fine, but when the user log on with the new password change password on first use is required. I activated the account expiration and locking at the instance level. If you add a record to my code:

    apex_util.reset_pw (l_user, 'some message');
    apex_mail.push_queue;
    IF APEX_UTIL. CHANGE_PASSWORD_ON_FIRST_USE (p_user_name = > l_user) THEN
    l_message: = ' requires the password to be changed the first time it is used. "
    ON THE OTHER
    l_message: = 'Doesn' t ask for password to change the first time it is used.';
    END IF;

    IF APEX_UTIL. PASSWORD_FIRST_USE_OCCURRED (p_user_name = > l_user) THEN
    l_message: = l_message | "First use already took place";
    ON THE OTHER
    l_message: = l_message | "' Waiting for first use";
    END IF;

    As result l_message gets ' requires the password to be changed the first time it is used. First use already took place "."
    It seems that apex_util.reset_pw on APEX 4.2 don't reset password using number zero. I want that the user must change password from the first use after password reset. How to do this?

    What is Miro

    Hi Miro,

    We recently discussed internally and it is logical to reset the indicator "first use has occurred. This will be fixed soon.

    Kind regards
    Christian

  • Integration of apex with EBS R12 - javax.servlet.ServletException

    Morning,
    We are in the process of upgrading to 11i to R12 and we found that our launch Apex in 11i method no longer works in R12. We try to follow the following instructions: http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf and have created a .jsp file and compiled according to the document. When we try to start the apps function if we get:
    An exception occured.
    
    URL=XXX/OA_HTML/XXFND_LaunchApex.jsp?transactionid=1236782452&language_code=US&CallFromForm='Y'&p_application=112&p_page=101&oas=DScF2XdCwRRnxFePUKHOnQ..
    
    javax.servlet.ServletException: oracle.classloader.util.AnnotatedClassNotFoundException: 
    
           Missing class: _XXFND__LaunchApex
    
         Dependent class: oracle.jsp.runtimev2.JspPageInfo
                  Loader: oc4j:10.1.3
             Code-Source: XXX/apps/tech_st/10.1.3/j2ee/home/lib/ojsp.jar
           Configuration:  in META-INF/boot.xml in XXX/apps/tech_st/10.1.3/j2ee/home/oc4j.jar
    
    This load was initiated at oacore.web.html.jsp1603821464:0.0.0 using the loadClass() method.
    
    The missing class is not available from any code-source or loader in the system.
    I have XXX'ed on our field. Someone else has it, or anyone who has successfully integrated apex with EBS R12 can let me know what they were doing?

    Thank you

    Hello

    If the jsp is compiled successfully you can bounce your web server before you can use the jsp. See MOS notes 458338.1 for further details.

    In fact, now that Oracle have updated their FND gateway for integration Apex there are only a few situations (for example, if you want to pass parameters to the function of the form at the Apex) where you need to use a custom jsp page to launch the Apex. In most cases you can use the Oracle provided GWY.jsp to start your Page Apex. To use this jsp, you must apply the patch 12316083 EBS R12 (and the patch 12726556 if you launch in browser forms). How to use the GWY.jsp is described in 'Extending Oracle E-Business Suite Release 12 using Oracle Application Express' white paper.

    Rod West

  • Problems in using the APEX with glassfish server listener

    Hello
    I try to install APEX with listener application on my Oracle R12 application server. I installed glassfish 3.1 (zip file) and deployed my interlocutor on glassfish using the administration console
    http:// < Host >: 4848

    But I am not able to run the following links to get the status of the listener
    http:// < Host >: 8080/listenerStatus

    I get the following error when I try to connect using my user adminlistener who I defined under the Admin group, in accordance with the installation guide.
    HTTP status 403 - Access to the requested resource has been denied

    --------------------------------------------------------------------------------

    type of status report

    messageAccess to the requested resource has been denied

    descriptionAccess to the specified resource (access to the requested resource has been denied) was banned.


    --------------------------------------------------------------------------------
    Oracle GlassFish Server 3.1
    Also, when I try to start the administration console application using the link http:// < host >: 8080/apex
    I get the following error

    application = 4500 workspace = 10+.
    Error ERR - 1014 Application not found. +

    OK+


    Anyone know what could be the problem? Earlier, when I did the installtion even on my personal computer that runs on Windows OS I had faced some questions like this and was able to resolve by reinstalling glassfish with port 7878 place default 8080 HTTP and that solved the problem.

    But this time, I try to install on the Linux server and since I used the option of the glassfish server .zip file I don't have the option to configure during the installation. If you think that the problem is due to the conflict to port 8080, then can you please tell me how I can change the HTTP port without having to reinstall the glassfish Server?


    Thanks in advance!

    Hi reda,.

    http:// : 7878/apex/listenerStatus (I changed my HTTP port for 7878)

    But I have error which I run this URL below.

    HTTP status 403 - Access to the requested resource has been denied

    I'm sorry I have not answered your question 403, but I thought it should be a primary target in order to get your APEX installation up and running first.
    As you have moved this issue, it is logical to continue on other issues in your deployment.
    You say that you are trying to connect to listenerStatus as "adminlistener" with the group "Admin". You must use a user with the 'Manager' of the page group.
    However, if you have "Admin", you can access the 'status' tab in 'listenerAdmin' that contains exactly the information you see in 'listenerStatus '.

    Also, when I run the URL Listner Administrator page loads properly, but all fields are disabled. So I can only see the page, but not to make changes to the fields on tab 'connection '.

    You can change the JDBC settings in this tab? You must open the subform to display the fields.
    And you are able to change any settings on the other tabs?
    If so, everything works as expected. It is not possible to change the credentials of database using "listenerAdmin". The shape looks like the one you get in "listenerConfigure", but it is implemented differently, so what you see is the expected behavior.

    However, I can click on the 'Apply' button on this page and when I do that it takes me to the login user APEX screen. This is how it should be?

    Yes. What is this "Apply" button to reset the connection pool to use the current JDBC settings, which you should be able to edit as shown above. Therefore, when you apply the changed settings, the listenerAdmin will take you to the start APEX page to check that everything works (always) and continue to use APEX.

    -Udo

  • APEX with R12 e-business integration

    Hello

    In Oracle apps 11.5.10.2, we have developed a few pages in APEX (version4.0) and integrated into e-business (i.e. access pages of the apex of the responsibility of e-business-> menu-> function)

    now, we are trying to upgrade to R12 Oracle applications, where mod_plsql is no longer supported.

    I wanted to know what is the best option and the simple to integrate the apex with e-business pages? and the details of how integrate.

    1 http server separated with mod_plsql
    2 apex listner (AL)

    in the second option, we can install AL on tech-stack even as e-business or do we install on separate tech-battery?

    Rgds,
    -Kamal

    Hi Kamal,

    I think that the steps that you need to configure the integration are correct. Use of the gateway FND simply install the patch and then call the GWY.jsp of the function of the form with the profile that contains the URL of the Apex. With R12, you must use a jsp page to call Apex mod_plsql is not supported. Still, you need a listener OSH or separate Apex in support of mod_plsql for installation of the Apex.

    Rod West

  • Integration of APEX with EBS R12.1.1

    Dear all,

    As I need to integrate EBS R12.1.1 without SSO and APEX

    To do this, I followed the steps in the link below

    http://forums.Oracle.com/forums/thread.jspa?threadID=586011 & tstart = 0


    The steps are

    Implemented at the Apex:

    1. create a blank page in OAE application, for example P2.

    2. edit the page attribute and set the security - authentication "Page is Public.

    3. create a branch in this page, as follows:

    Direction of Type Page accept transformation (not common)
    On the linen branch point: before header
    Action - Page 101 (that's my login page id)

    Implemented in EBS:

    1. create a profile under the responsibility of the developer of the Application as follows:

    Name OAE_LAUNCHER
    Request < what >
    User profile name Oracle Application Express Launcher
    Oracle Application Express Launcher description

    2. the superior set to the value of profile system-> profile-> system administrator responsibility and look for the "OAE_LAUNCHER". Set the value to the level of the Site as:

    port http:// < hostname >: < apex >/pls/apex

    3 create a function under the responsibility of the administrator system-> Application-> function, as follows:

    Name of the function LAUNCH_APEX
    Application of ApEX launch user function name
    Property function plsql SSWA type
    OAE_PKG of HTML Web. LaunchOAE

    4. create a PL/SQL Web entry under the responsibility of the system-> Security-> PL/SQL Web administrator, as follows:

    Name OAE_PKG
    Type package

    5. create an entry in any menu that need to use this link, as follows:

    Application of quick launch ApEX
    Function start an ApEX Application
    Description start an ApEX Application

    * 6. Compile the package OAE_PKG in EBS database *.

    procedure LaunchOAE (varchar2 parameters) is

    l_apex_launcher varchar2 (2000);
    l_apex_launcher_profile varchar2 (2000);
    l_userid applsys. FND_USER.user_id%type;
    l_username applsys. FND_USER.user_name%type;
    l_launcher_params VARCHAR2 (2000);
    l_resp_id NUMBER;
    l_resp_appl_id NUMBER;
    l_security_group_id NUMBER;
    l_org_id NUMBER;

    Start

    l_apex_launcher_profile: = fnd_profile.value('OAE_LAUNCHER');

    If l_htmldb_launcher_profile IS NULL then
    HTP.p (' contact the system administrator.) ');
    HTP.p ("profile - OAE_LAUNCHER is null");
    return;
    end if;

    l_userid: = FND_GLOBAL. USER_ID;
    l_username: = FND_GLOBAL. USER_NAME;
    l_resp_id: = FND_GLOBAL. RESP_ID;
    l_resp_appl_id: = FND_GLOBAL. RESP_APPL_ID;
    l_security_group_id: = FND_GLOBAL. SECURITY_GROUP_ID;
    l_org_id: = FND_GLOBAL.ORG_ID;

    l_launcher_params: = l_launcher_uri: = ' / f? p = 101:2:NO:P101_USERNAME, P101_PASSWORD, P101_RESP_ID, P101_RESP_APPL_ID, P101_SECURITY_GROUP_ID, P101_ORG_ID:' | l_username | ',' || l_password | «, » || l_resp_id | «, » || l_resp_appl_id | «, » || l_security_group_id | «, » || l_org_id;
    l_apex_launcher: = l_apex_launcher_profile | l_launcher_params;

    owa_util. REDIRECT_URL (l_htmldb_launcher);

    end if;

    exception
    while others then
    HTP.p (SQLERRM);
    end LaunchOAE;


    I'm done up to 5 steps, but in step 6, during the compilation of the procedure, I get an error ORA-00900: invalid SQL statement

    could someone help me solve this error as I followed Rod West document

    If any other progressive documents available for Apex & EBS R12 integration please share.



    Kind regards
    Alexander

    Hi Serge,

    SSWA plsql function, is a property that you define everything by creating a FUNCTION under the RESPONSIBILITY of the SYSTEM ADMINISTRATOR...

    If you want to integrate the APEX with EBS 11i or R12...

    As in R12, the JSP that is given in the document West Rod call APEX page shortly after clicking the menu in EBS...

    Therefore compile the JSP correctly by following the steps in the document, if you have compiled successfully, while the APEX page will be redirected by clicking on the MENU of the EBS.

    Make sure that U compile it successfully...

    Izz all wells
    GTA...

    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

    Published by: GTA on 26 January 2011 22:01

    Published by: GTA on 26 January 2011 22:02

    Published by: GTA on 26 January 2011 22:43

  • Unexpected behavior of class constructor

    Hello world

    I came across an unexpected behavior with definitions of AS3 classes this morning. To tell him quickly, I can't create an instance of a class inside the same methods of the class. Too bad.

    Here is an example:

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    SerializableAttribute public class Test extends MovieClip {}

    private var _double:Boolean;

    _T:test private var;

    public void Test(double:Boolean_=_true):void { }

    This ._double = double;

    trace ("new test (" + the ._double + ")" ");

    this.addEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

              }

    private void _onAddedToStage(pEvt:Event) { }

        

    this.removeEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

    trace ("creating a double?");

    If (this ._double) { }

                        trace ("yes");

    this ._t = new Test (false);

    } else {}

                        trace("no");

                   }

              }

         }

    }

    What I'm trying to do seems a bit strange: when an instance is created, it generates a new one in him passing a parameter to stop treated duplication, so I shouldn't have infinite loop like that. Moinde I had a beautiful #2136 error when running (data not valid in the file SWF?):

    New Test (true)

    creating a double?

    Yes

    : Error #2136: blah blah blah

    Can someone explain to me what is happening here? I would like to understand the sub-process that prevents from doing.

    Thanks for the reply,

    Fran_cois

    Hello

    I changed your code in Test.as:

    package
    {
    import flash.display.MovieClip;
    import flash.events.Event;
    SerializableAttribute public class Test extends MovieClip
    {
    private var _double:Boolean;
    private var _t:Test;

    public void Test(double:Boolean_=_true):void
    {
    This ._double = double;
    trace ("new test (" + the ._double + ")" ");
    this.addEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

    }
    private void _onAddedToStage(pEvt:Event)
    {
    this.removeEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

    trace ("create a double?");

    If (this ._double)
    {
    trace ("Yes");
    This ._t = new Test (false);
    addChild (this._t);                      It's the new line!

    }
    on the other
    {
    trace ("no");
    }
    }
    }
    }

    and then used this class not as a document, as a class in the fla file:

    var ttt:Test = new Test();
    addChild (ttt);

    So, it does not work as expected...

  • Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    Not fully functional mouse with MacBook Pro 2010. I can scroll up and down, but can not move the cursor.  The mouse works with my new Macbook 12. No mouse problem but Macbook Pro?

    What specific mouse?

  • The database recovery/restore failed with unexpected error 509

    Hello

    The database recovery/restore failed with unexpected error 509

    In the Event Viewer, I had this error SEVERAL times every second.  He goes absolutely crazy.

    I don't know what to do with it.

    I'm with Windows 8 Pro running on a very stable computer with 8gig of ram, plenty of hard drive space.  Each single drivers updated Windows Update.  Everything is really clean except this error in Event Viewer

    Svchost SRUJet (1624): database recovery/restore failed with unexpected-509 error.

    Task category: registration/recovery

    Esentutl /p /r tried / everything but nothing wrong was found with those

    Thanks for any help.

    Exactly the same problem, nothing Microsoft recommended was the cause, scannow and DISM commands are returned without error.

    So I went to the event viewer and scrolled down to find, when these errors began to occur. So I found a few entries initially saying things like: an attempt to move the file 'C:\Users\xxxxx\AppData\Local\TileDataLayer\Database\EDB.log' to 'C:\Users\xxxxxxxx\AppData\Local\TileDataLayer\Database\EDB00008.log' failed indicating system 183 (0x000000b7) error: "cannot create a file when that file already exists.

    Then, I went to C:\Users\xxxxx\AppData\Local\TileDataLayer\Database\ and removed the files listed (e.g., EDB00008.log).

    Bingo, the errors will stop immediately.

  • How to connect my APEX with SQL Developer workspace?

    Hi all

    I am a new user of Oracle Apex. Is there a way to connect to my workspace created to http://apex.oracle.com/pls/apex with SQL Developer. If so, then let me know how. If someone has done successfully then please help me.

    Thank you

    Gerard

    Hi Gerard,

    It is not possible to do this on apex.oracle.com.

    Joel

  • {Error: MuseJSAssert: error calling the function switch: SyntaxError: unexpected token}

    I built my site for the last days, and that 30 minutes, I click on the "Preview in browser" option to check my progress. {On one of these controls, as soon as the page loaded, I got the MuseJSAssert error message: error calling the function switch: SyntaxError: unexpected token} in a pop-up window and all my viewers stopped working. I tried to restart the browser, muse, my computer and even tried to save as a new website to use instead, and none of these options worked. Any ideas on how I can fix?

    Screen Shot 2014-11-10 at 2.12.21 PM.png

    If you have added a custom HTML/CSS/JS code using Page Properties > section Metadata or by using the function insert HTML code, try to remove and then preview.

    If the problem persists after removing all of the custom code, please send your .muse file (saved after removing all custom code) at [email protected]. Make sure that you mention the link to this topic in the subject of the e-mail.

    See you soon,.

    Vikas

Maybe you are looking for

  • Satellite A660 - 11 M - update of the BIOS (Winflash) crashes every time

    Hi allI bought an A660 - 11 M a few months ago and thought I would update the BIOS to stop nagging Tempro and see if she helped no insidious problem, I tried to correct. I downloaded the zip, extracted and ran the .exe according to the instructions o

  • Silent installation for the support of the shortcut key?

    It is really a last resort for me to post here. I looked everywhere else I can. Can someone tell me please how to install the latest version of the assistance of hotkey HP softpaq silently and without a restart? The laptop I have is a Probook 6570 bT

  • Text values in Numerische umwandeln

  • Printer HP (photos in the little tray)

    I get an alert "in the paper" on the screen of the printer even with the photo in the little tray paper (there no paper in the main tray) how do I get it printing from paper tray (photo)?

  • Modem cable and gateway Question?

    We set begin to use a new supplier of internet services by cable. This provider requires you to use their modem. My question is, 'We already have a LinksSys WCG200 cable gateway', will be able to simply use the router function of cable without the bu