Error in 'Context of creating objects' aid - dpost_imp.pl error in 'create '.

Hi guys,.

I am in the process of migration and upgrade of EBS 11i to EBS 12.1.3 on a secure server, x 86-64 bit using Notes ULN 1377213.1 & 557738.1 - Import/Export.

On Note 557738.1 - Import/export, Section 5, step 4, I ran 'perl dpost_imp.pl dpost_imp.drv' on the source server and created the driver required. Moved to the target and when applying with adpatch, it failed with:
AutoPatch error:
adprdf(): line 62 of file dpost_imp.drv:
Line recordpatch error extension missing in driver patch file.
You must check the file

I opened a SR yesterday and after many hours, I was told:
(a) Save current file dpostimpl.drv
(b) editing driver dpostimpl.drv of the file and make the following changes

# dpost_imp.drv generated by dpost_imp.pl
Start fix_postimp aru
compatible version 12.0.0
start the bug to the fix_postimp
start actions

TO

# dpost_imp.drv generated by dpost_imp.pl
Start fix_postimp aru
compatible version 12.0.0
registration of the extension patch 6924477 US
start the bug to the fix_postimp
start actions

(c) Save and try again to apply driv dpostimpl.drv via autopatch.

I made the changes, ran adpatch and the error is still there:
workers driver = dpost_imp.drv = / EBS_12i_downloads/patches adpatch logfile = dpost_imp.drv2.log patchtop = 8

AutoPatch error:
adprdf(): line 68 in the dpost_imp.drv file:
'end the fix_ctxsys bug' met 'bug in the fix_postimp' is open

Line 68 is:
end of the fix_ctxsys bug

Does anyone have knowledge of what is needed here?

Thank you
Mathias

To confirm, you said if the 11i application layer a migration to Server 64 bit - which is what I do, then this step is not taken in charge and so I should jump?

Yes, you must ignore it as you do not need. You can simply set the R12 software using a fast installation on 64-bit servers, and you don't need to migrate these servers the 11i application layer.

Thank you
Hussein

Tags: Oracle Applications

Similar Questions

  • Help with error 1061

    I am a beginner in flash and I am trying to create a simple maze that is content to show 'Yes' when you press the edges, but I get the error "1061: call to a method perhaps hitTestPoint undefined, through a reference with static type class." whenever I try to test it. Yes, I searched on several pages of Google for a solution and good for you if you found it in five seconds. That's what I have so far:

    addEventListener (Event.ENTER_FRAME, checkCollision);

    function checkCollision(event:Event) {}

    If (maze.hitTestPoint (mouseX, mouseY, true)) {}
    messageText1.text = "hitTestPoint: YES;
    } else {}
    messageText1.text = "hitTestPoint: No.";
    }

    }

    I think that what you describe explained.  You add the maze to the stage dynamically or manually planted on the scene?  In the code, "maze" is the name of the instance of the object, not what you've done with it.  Assign you instance names in the properties panel if the object is planted on the scene manually.  But because you have created a class named maze. using the code as instance name will cause a problem.

    Just as an exercise, start a new file and draw a quick maze (just a rectangle is sufficient).  Just right click and select Convert to symbol - just check the option make a Movieclip and then on OK.  With the object still selected, in the properties panel enter "maze" entry there is in it.

    Then add a textfield that has an instance name 'messageText1 '.

    Then, copy and paste your code into a layer actions in the same context as the object (same, another layer)

    It should work.

  • Right-click menu objects

    Hello.. I had a problem with the context menu, creating graphic objects that remain in Office until another window passes over it.

    This only happens when the browser window is not available to the bottom of the screen. If I call the menu at the bottom of the browser, and the menu fills down from my position of the mouse, then no matter what part of the menu that extends below the browser window, will be visible... until I have spend another window on the desktop area.

    It does not affect performance, but in 20 minutes of work, the bottom of my desk looks like a collage of context menu.

    Is this just right click in Firefox, or right-click in the whole of Windows? If the latter, I've seen before, and it is either a problem with your graphics driver or with Windows itself. Try updating your graphic driver, update your drivers graphics to use hardware acceleration and WebGL

  • Encompassing not aligned with the object

    Hi all

    I've been using Illustrator CS6 and during the transition to the 2015.3 CC I had the following problem: when I create an object, it's bounding box does not align, it is impossible to turn the object easily. I suspected, I just pressed accidentally a few keyboard shortcuts, but reset settings and even move the file didn't help. I looked all over the forums, but it seems that only a few people experience the same problem, and their questions remain unanswered I will be very grateful for any advice how to solve this problem, because I come to CS6 because of this problem. Thank you very much!

    bounding box.jpg

    Object > shape > expand shape

    Context menu click object > transform > reset Bounding box

  • Error in database export EBS


    Hello

    Current context:

    OS: 32-bit Windows 2003 R2 server

    Database: 11.2.0.2 32-bit

    EBS: R12.1.3 32-bit

    RAM: 7,80 GB

    Currently I am doing EBS R12.1.3/11.2.0.2 migration of 32-bit windows to 64-bit Linux following the below document oracle,.

    Process import/export for 12.0 or 12.1 using 11 GR 1 material or 11 GR 2 (Doc ID 741818.1()

    According to the document according to "' Section 3: export the source Release 12-> database instance the instance of database applications to export ' get the error below"

    E:\oracle\expimp > expdp parfile = auexpdp.dat "" / as sysdba "

    Export: Release 11.2.0.2.0 - Production on Sun Sep 16 16:35:29 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    Departure 'SYS '. "' SYS_EXPORT_FULL_06 ': ' / * AS SYSDBA ' parfile = auexpdp.dat

    Current estimation using BLOCKS method...
    Treatment of DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA object type
    Total estimation using BLOCKS method: 24,70 GB
    Object DATABASE_EXPORT/TABLESPACE of treatment type
    Type of object DATABASE_EXPORT/PROFILE of treatment
    Treatment of DATABASE_EXPORT/SYS_USER/USER object type
    Treatment of DATABASE_EXPORT/SCHEMA/USER object type
    Type of object DATABASE_EXPORT/ROLE of treatment
    Treatment of type of object DATABASE_EXPORT, GRANT, SYSTEM_GRANT, PROC_SYSTEM_GRANT
    DATABASE_EXPORT/SCHEMA/SCHOLARSHIP/SYSTEM_GRANT processing object type
    DATABASE_EXPORT/SCHEMA/ROLE_GRANT processing object type
    DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE processing object type
    DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA processing object type
    DATABASE_EXPORT/RESOURCE_COST processing object type
    Treatment of DATABASE_EXPORT/SCHEMA/DB_LINK object type
    DATABASE_EXPORT/TRUSTED_DB_LINK processing object type
    DATABASE_EXPORT/PATTERN/SEQUENCE/SEQUENCE processing object type
    Treatment of type of object DATABASE_EXPORT/PATTERN/SEQUENCE/EXCHANGE/OWNER_GRANT/OBJECT_GRANT
    DATABASE_EXPORT/DIRECTORY/DIRECTORY of processing object type
    Treatment of type of object DATABASE_EXPORT/DIRECTORY/EXCHANGE/OWNER_GRANT/OBJECT_GRANT
    Treatment of type of object DATABASE_EXPORT/DIRECTORY/EXCHANGE/CROSS_SCHEMA/OBJECT_GRANT

    Type of object DATABASE_EXPORT/CONTEXT of transformation
    Object DATABASE_EXPORT/SCHEMA/LIBRARY/LIBRARY of treatment type
    Treatment of type of object DATABASE_EXPORT/SCHEMA/LIBRARY/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT
    Object DATABASE_EXPORT/SCHEMA/PUBLIC_SYNONYM/SYNONYM of treatment type
    Object DATABASE_EXPORT/SCHEMA/SYNONYM of treatment type
    DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC processing object type
    Treatment of type of object DATABASE_EXPORT/SCHEMA/TYPE/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT
    Treatment of type of object DATABASE_EXPORT/SCHEMA/TYPE/SCHOLARSHIP/CROSS_SCHEMA/OBJECT_GRANT
    Treatment of type of object DATABASE_EXPORT, SYSTEM_PROCOBJACT, PRE_SYSTEM_ACTIONS, PROCACT_SYSTEM
    Treatment of type of object DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ
    Treatment of type of object DATABASE_EXPORT, SYSTEM_PROCOBJACT, POST_SYSTEM_ACTIONS, PROCACT_SYSTEM
    DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA processing object type
    Treatment of DATABASE_EXPORT, SCHEMA, XMLSCHEMA, XMLSCHEMA object type
    DATABASE_EXPORT/SCHEMA/TABLE/TABLE processing object type
    Treatment of type of object DATABASE_EXPORT, SCHEMA, TABLE, PRE_TABLE_ACTION
    Treatment of type of object DATABASE_EXPORT/SCHEMA/TABLE/SCHOLARSHIP/OWNER_GRANT/OBJECT_GRANT
    Treatment of type of object DATABASE_EXPORT/SCHEMA/TABLE/SCHOLARSHIP/WITH_GRANT_OPTION/OBJECT_GRANT
    Treatment of type of object DATABASE_EXPORT/SCHEMA/TABLE/SCHOLARSHIP/CROSS_SCHEMA/OBJECT_GRANT
    ORA-39014: one or more workers have left prematurely.
    ORA-39029: worker 1 with the process name 'DW00' end prematurely
    ORA-31671: work DW00 process had an unhandled exception.
    ORA-04030: memory of process when trying to allocate of 8204 byte (koh-kghu is)
    SSI, kgmtlbdl)
    ORA-06512: at "SYS." "MAIN$ WORKER", line 1751
    ORA-06512: at line 2

    Treatment of type of object DATABASE_EXPORT/SCHEMA/TABLE/SCHOLARSHIP/CROSS_SCHEMA/OBJECT_GR
    ANT
    ORA-39014: one or more workers have left prematurely.
    ORA-39029: worker 2 with the name of process 'DW00' end prematurely
    ORA-31671: work DW00 process had an unhandled exception.
    ORA-04030: memory of process when trying to allocate of 8204 byte (koh-kghu is)
    SSI, kgmtlbdl)
    ORA-06512: at "SYS." "MAIN$ WORKER", line 1751
    ORA-06512: at line 2

    Job 'SYS '. "' SYS_EXPORT_FULL_06 ' stopped because of the fatal 17:48:58

    Error in the alerts log:

    Errors in the E:\ORACLE\MHDEV\DB\TECH_ST\11.2.0\ADMIN\MHDEV_WDEVORDB03\diag\rdbms\mhdev\mhdev\trace\mhdev_dw00_1176.trc file (incident = 24179):

    ORA-04030: memory of process when trying to allocate of 8204 byte (sessi koh-kghu, kgmtlbdl)

    ORA-06512: at "SYS." "MAIN$ WORKER", line 1751

    ORA-06512: at line 2

    Use ADRCI or Support established for the packaging of the incident.

    See Note 411,1 to My Oracle Support to error and packaging details.

    DW00 ending with fatal err = 4030, pid = 20, wid = 2, use SYS. SYS_EXPORT_FULL_06

    Mon Sep 16 16:25:27 2013

    Boot process failed, error of the battery:

    Errors in the E:\ORACLE\MHDEV\DB\TECH_ST\11.2.0\ADMIN\MHDEV_WDEVORDB03\diag\rdbms\mhdev\mhdev\trace\mhdev_psp0_5192.trc file:

    ORA-27300: OS dependent operating system: CreateThread failed with status: 8

    ORA-27301: OS Error Message: not enough memory is available to process this command.

    ORA-27302: an error occurred at: ssthrddcr

    Mon Sep 16 16:25:28 2013

    Process m000 died, see his trace file

    Mon Sep 16 16:25:30 2013

    Errors in the E:\ORACLE\MHDEV\DB\TECH_ST\11.2.0\ADMIN\MHDEV_WDEVORDB03\diag\rdbms\mhdev\mhdev\trace\mhdev_dm00_5516.trc file (incident = 24167):

    ORA-31671: work DW00 process had an unhandled exception.

    ORA-04030: memory of process when trying to allocate of 8204 byte (sessi koh-kghu, kgmtlbdl)

    ORA-06512: at "SYS." "MAIN$ WORKER", line 1751

    ORA-06512: at line 2

    Please suggest me to fix this problem.

    Concerning

    Flo

    Hi all

    Thanks for the update,

    Currently, we have solved the problem, please find below the solution suggested by Oracle in the demand for services.

    Now, we have made the process of exporting with success,

    Please find below the solutions that have been performed in our environment in order to solve this problem.

    Step 1:

    How to cleaning DataPump orphan jobs in DBA_DATAPUMP_JOBS? (Doc ID 336014.1)

    Step 2:

    Remove the SGA_TARGET and the PGA_AGGREGATE_TARGET

    Instead of SGA and PGA, they asked MEMORY_TARGET update = 1200 M
    and STREAMS_POOL_SIZE = 40 M

    Step 3:

    Restart of the database

    Step 4:

    Run the export process again and completed successfully.

    Thanks for the support,

    Concerning
    Flo

  • Conversion of a delete using the context statement and policies MEV

    Hello

    I'm trying to convert a delete statement in an update statement using the context and political MEV.

    + / * Assumes that the "user1" user already exists. This is a user of the application * / +.

    Conn User1/pwd

    create table user1.test_a)
    ID number 4,
    Description varchar2 (100),
    number (1) deleted
    +);+

    ALTER table user1.test_a add the primary key constraint test_a_pk (id);

    insert into user1.test_a (1, 'abc', 0);
    insert into user1.test_a (2, 'def', 0);
    commit;

    I would like to convert each physical deletion a logical removal: instructions such as "delete from user1.test_a where id = 1" must be converted to "day all deleted user1.test_a = 1 where id = 1".»

    I found the following way: I create a policy to avoid the physical deletion. In addition, the political function should update the deletion indicator too.

    Conn User1/pwd

    + / * Create package context * / +.
    create or replace package user1.pkg_security_context is
    p_set_ctx of the procedure)
    i_test_a_id in % user1.test_a.id type
    +);+
    end;
    +/+

    create or replace package body is user1.pkg_security_context
    procedure p_set_ctx)
    i_test_a_id in % user1.test_a.id type
    +) is +.
    Start
    DBMS_SESSION.set_Context ("user1_ctx", "test_a_id", i_test_a_id);
    end;
    end;
    +/+
    display errors

    + / * Create the trigger to put into context before deleting * / +.
    create or replace trigger user1.test_a_bef_trg
    before you delete the user1.test_a
    for each line
    declare
    pragma autonomous_transaction;
    Start
    -does not validate the previous update, not deletion that fired the trigger.
    commit;

    User1.pkg_security_context.p_set_ctx (: old.id);
    end;
    +/+
    display errors

    user1_ctx context to create using user1.pkg_security_context;

    + / * Political * / +.
    create or replace function user1.f_policy_chk_dels)
    object_schema in varchar2,
    object_name in varchar2
    +) return varchar2 +.
    is
    out_string varchar2 (400) by default, 1 = 2 ';

    +/*+
    * out_string is the return value.
    *-' WHERE 1 = 2' ' doesn't mean anything for access to.
    */
    Start
    If (loc_logged_usr_authorized > 0) then
    +/*+
    * Set the flag removed 1
    */
    update of the game user1.test_a deleted = 1 where id = sys_context ('user1_ctx', 'test_a_id');

    out_string: = out_string. 'or 1 = 1 ';
    end if;

    Return out_string.
    end;
    +/+
    display errors

    +/*+
    Create policies
    */
    Start
    () dbms_rls.add_policy
    object_schema = > 'user1 ',.
    object_name = > "test_a"
    POLICY_NAME = > "policy_chk_dels"
    function_schema = > 'user1',-function scheme
    policy_function = > 'f_policy_chk_dels', - function policy
    statement_types = > 'DELETE '.
    +);+
    end;
    +/+

    When I try to delete a record from the table test_a:

    Conn User1/pwd

    SQL > delete sim ilogdia.oplsimulaciones where sim.id = 9999;

    + 0 rows deleted.

    No row has been deleted, but the update stmt does not work. This means that the 'deleted' flag has not been updated.

    Any ideas?

    Thank you in advance.

    Marco A. Serrano

    Published by: albrotar on October 15, 2012 08:42

    Published by: albrotar on October 15, 2012 08:42

    Published by: albrotar on October 15, 2012 08:43

    The policy function is applied once per execution of the statement. The political function executes first, and the UPDATE statement updates probably, no line because the context is not yet filled. The level of the line fills the frame (I'm assuming that your session may even see context values populated by autonomous transaction - I guess it's possible, but I have to test this) after the UPDATE statement is already complete. VALIDATION in the row-level trigger is also useless - it does that to changes made by the current transaction that is independent, of which there is none--it cannot apply to changes made in the other autonomous transactions. Declaring the level line trigger to use autonomous transactions does not seem to do anything other than to open the question of whether the values defined under the autonomous transaction are visible in the transactions of the appellant.

    Even if, somehow, did not work, the use of transactions autonomous would be a very bad idea because Oracle is free to roll back a partially executed query (and the work done by its triggers) and re - run. Oracle does with some regularity to maintain the consistency of Scripture.

    Justin

  • Error while executing the code as user sys

    Hello
    The following code creates a procedure. Although the proc is created successfully, as he tried to run, I get the below error

    ORA-01031: insufficient privileges
    ORA-06512: at "SYS." DBMS_SESSION", line 101
    ORA-06512: at "SYS." MY_TEST_PROC', line 20
    ORA-06512: at line 1


    The proc is created by sys and executed by sys too

    create or replace procedure my_test_proc as
    TYPE CUR1 IS REF CURSOR;
    CURSOR c1 is
    Select ename from SCOTT.emp where rownum < 2;
    v_Name varchar2 (30);
    MY_CUR CUR1;
    STRQRY VARCHAR2 (2000);
    L_PARAM DBMS_SQL. VARCHAR2S;
    THE CNT NUMBER;
    SCOTT V_DATA. EMP % ROWTYPE;
    BEGIN
    STRQRY: = ' SELECT * FROM SCOTT. EMP WHERE 1 = 1 and ((1 = 1) ';)
    CNT: = 0;
    Open c1;
    loop
    Fetch c1 into v_name;
    When exit c1% notfound;
    CNT: = CNT + 1;

    DBMS_SESSION.set_Context ('MY_CTX', 'ENAME_' |) CNT V_NAME);
    STRQRY: STRQRY = | "OR (ENAME = SYS_CONTEXT ("MY_CTX","ENAME_1")';)"

    end loop;
    DBMS_OUTPUT. PUT_LINE(STRQRY ||) ')');

    CLOSE C1;
    END my_test_proc;

    ============================================================

    EXEC my_test_proc;

    Help, please.

    >
    STRQRY: = ' SELECT * FROM SCOTT. EMP WHERE 1 = 1 and ((1 = 1) ';)
    >
    The query above will not work because there is a syntax error.
    Count the number of left and right parentheses.

    Edit your post and use the code and tell us who is line #20.

    My guess is that it's this line

    dbms_session.set_context('MY_CTX','ENAME_' || CNT, V_NAME); 
    

    You don't show any CONTEXT procedure code. DBMS_SESSION. SET_CONTEXT in doc PL/SQL Packages and Types
    See http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_sessio.htm#i1010942
    >
    SET_CONTEXT caller must be in the call stack of a procedure that has been associated with the context namespace via a statement of CONTEXT to CREATE. The call stack checking does not reach a limit of DBMS.

  • tag PT. Core.html generating an error

    Hello

    I have a custom header portlet (WCI 10.3.0.1.) that generates an error in ptspy. The error does not cause a problem in the application and is ignored. He however entered into portalserver - log.spy by the service of the recorder. As this happens whenever a user presses on a page then the diary became massive over time and we must keep stopping the service and delete the file. We can handle this by the presence of the log files more small crash etc. (can't really configure ptLogger.xml to ignore the errors we want mistakes Records) but ideally I would like to correct the code, so it doesn't because it can't be great for performance in all cases.

    The code is to post a link to admin if the administrator user id:

    < pt:core.comm tent > <!-get the link of the Administration; If we do not have access to the admin page, the variable does not exist-> < /pt:core.comment >
    < pt:ptdata.administrationdata pt:id = "adminLink" / >
    < pt:logic.existexpr pt: data = "adminLink" pt:key = "canAccessAdmin" / >
    < pt:logic.if pt:expr = "$canAccessAdmin" >
    < pt:logic.iftrue >
    < pt:core.comment > <!-there should only be 1-> < /pt:core.comment >
    < pt:logic.foreach pt: data = "adminLink" pt:var = "link" >
    < pt:core.html pt:tag = "a" href = "$link.url" > < pt:logic.value pt: value = "$link.title" / > < /pt:core.html >
    < td align = "left" valign = "middle" nowrap = "nowrap" colspan = "1" class = "haTopBarText" > | < table >
    < /pt:logic.foreach >
    < /pt:logic.iftrue >
    < /pt:logic.if >

    The error is:

    "Cannot find onclick variable to use in replacement of value attribute in the html tag.

    The tag documentation, there is no element onclick so I don't know what is the cause of the error and the admin is a link generated works very well.

    Spy output below:

    13 the portal. HAWBBPPRT521.xeasacj 05/25/2010 13:46:00.880 Portal_Tags .NET #1 com.plumtree.portaluiinfrastructure.tags.helper.TagHelper error cannot find onclick variable to use in replacement of value attribute in the html tag
    Portal 14. HAWBBPPRT521.xeasacj 05/25/2010 13:46:00.880 Portal_Tags .NET #1 com.plumtree.portaluiinfrastructure.tags.helper.TagHelper Ignoring error has no transformation for the html tag attribute and the attribute onclick.
    com.plumtree.openfoundation.util.XPIllegalArgumentException: cannot perform the replacement of value attribute $onclick attribute.
    com.plumtree.openfoundation.util.XPIllegalArgumentException: cannot perform the replacement of value attribute $onclick attribute.
    at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessAttribute (String _strAttribute) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\helper\TagHelper.cs:line 772
    to com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessAllXMLAttributes () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\helper\TagHelper.cs:line 693
    to com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.GetXMLAttributeNames () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\helper\TagHelper.cs:line 575
    to com.plumtree.portaluiinfrastructure.tags.ATag.GetXMLTagAttributeNames () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\ATag.cs:line 1069
    to com.plumtree.taglib.core.HTMLTag.GetXMLAttributes () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\taglibCore\dotnet\prod\src\com\plumtree\taglib\core\HTMLTag.cs:line 83
    to com.plumtree.taglib.core.HTMLTag.DisplayTag () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\taglibCore\dotnet\prod\src\com\plumtree\taglib\core\HTMLTag.cs:line 45
    to com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\helper\TagHelper.cs:line 986
    at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display (TagVisitor _tagVisitor) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\displaytree\TagDisplayElement.cs:line 114
    at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display (TagVisitor _tagVisitor) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\displaytree\CompositeDisplayElement.cs:line 61
    to com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\helper\TagHelper.cs:line 111
    to com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\ATag.cs:line 385
    to com.plumtree.taglib.ptui.SearchFormTag.DisplayTag () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\taglibPTUI\dotnet\prod\src\com\plumtree\taglib\ptui\SearchFormTag.cs:line 134
    to com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\helper\TagHelper.cs:line 986
    at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display (TagVisitor _tagVisitor) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\displaytree\TagDisplayElement.cs:line 114
    at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display (TagVisitor _tagVisitor) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\displaytree\CompositeDisplayElement.cs:line 61
    at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags (IDisplayElement tagTree, AActivitySpace aSpace) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\displaytree\DisplayTree.cs:line 185
    at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup (AActivitySpace aSpace, Object [] [] objArrMarkup) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portaluiinfrastructure\dotnet\prod\src\com\plumtree\portaluiinfrastructure\tags\displaytree\DisplayTree.cs:line 33
    at com.plumtree.portalpages.browsing.gateway.GatewayUtils.AddMarkupToElement (AActivitySpace asOwner, Object [] [] objArrMarkup) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portalpages\dotnet\prod\src\com\plumtree\portalpages\browsing\gateway\GatewayUtils.cs:line 167
    at com.plumtree.portalpages.browsing.myportal.MyPortalModel.MyPortalModelTempData.InitializePortletContent (MyPortalModel _topSpeed, Int32 [] nPortletIds) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portalpages\dotnet\prod\src\com\plumtree\portalpages\browsing\myportal\MyPortalModel.cs:line 1988
    to com.plumtree.portalpages.browsing.myportal.MyPortalModel.InitializePortletContent () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portalpages\dotnet\prod\src\com\plumtree\portalpages\browsing\myportal\MyPortalModel.cs:line 1508
    to com.plumtree.portalpages.common.uiparts.NavigationModel.InitializePortletContent () in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portalpages\dotnet\prod\src\com\plumtree\portalpages\common\uiparts\NavigationModel.cs:line 911
    at com.plumtree.portalpages.common.uiparts.PlumtreeDP.Display (IWebData pageData) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portalpages\dotnet\prod\src\com\plumtree\portalpages\common\uiparts\PlumtreeDP.cs:line 107
    at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage (myRedirect, RequestData tempData redirect) in 1909 e:\buildroot\Release\portalui\10.3.0.x\ptwebui\uiinfrastructure\dotnet\prod\src\com\plumtree\uiinfrastructure\interpreter\Interpreter.cs:line
    at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest (IXPRequest ask, answer IXPResponse, ISessionManager session, IApplication application) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\uiinfrastructure\dotnet\prod\src\com\plumtree\uiinfrastructure\interpreter\Interpreter.cs:line 600
    at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService (IXPRequest ask, answer IXPResponse, ISessionManager session, IApplication application) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\uiinfrastructure\dotnet\prod\src\com\plumtree\uiinfrastructure\interpreter\Interpreter.cs:line 200
    to com.plumtree.uiinfrastructure.web.XPPage.Service (HttpRequest httpRequest, HttpResponse httpResponse, HttpSessionState httpSession, HttpApplicationState httpApplication) in e:\buildroot\Release\httpmemorymanagement\10.3.0.x\dotNET\src\com\plumtree\uiinfrastructure\web\XPPage.cs:line 78
    at com.plumtree.portaluiinfrastructure.activityspace.PlumHandler.ProcessRequest (HttpContext context) in e:\buildroot\Release\portalui\10.3.0.x\ptwebui\portal\dotnet\prod\src\web\PlumHandler.cs:line 36
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute)
    at System.Web.HttpApplication.ExecuteStep (IExecutionStep step, Boolean & completedSynchronously)
    at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps (Exception error)
    at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest (HttpContext context, AsyncCallback cb, Object extraData)
    at System.Web.HttpRuntime.ProcessRequestInternal (HttpWorkerRequest wr)
    to System.Web.HttpRuntime.ProcessRequestNoDemand (HttpWorkerRequest wr)
    to System.Web.Hosting.ISAPIRuntime.ProcessRequest (ecb As IntPtr, Int32 iWRType)

    I'd be happy to spend some tried and tested admin link display code as an alternative to fixing what I use so if anyone has an alternative solution so please let me know.

    Thank you very much
    Chris

    Edited by: user10594442 may 25, 2010 06:45

    I think that Yes, its been a while that. have you tried it?

    I was going to say, you don't need to use the tag code.html because you can just use a regular anchor tag and use pt:logic.value to fill the good bits

  • Passage of a JAVA workflow plugin objects

    I'm trying to understand how to move objects to the Orchestrator API from JAVA code example found in the centre of Documentation VMware Vsphere 5.5 in order to run the workflow (in the end of web pages).

    Are there examples of the creation of the execution context that use object (other than 'chain') input parameters?

    For example, to enable or disable an AD, the workflow user "toggle a user" requires an input parameter of "AD: USE.  How would pass this parameter to the workflow in the line of JAVA code:

    'ExecutionContext context is new ExecutionContextBuilder () .addParam (...). Build(); »

    Scott,

    To call your workflow that has an entry of type AD: User, you do not need to instantiate an actual user object and its properties. You need to add to the execution context is an instance of SdkObject, which is a kind of "proxy" for no primitive objects coming from plug-ins (in your case, AD: use). To instantiate the SdkObject you need only an object type and an object ID.

    I don't have a job AD environment, but here's a code example illustrating how to prepare an execution context of a workflow that has an input parameter VC:Datacenter:

                SdkObject sdkObj = new SdkObject();
                sdkObj.setType("VC:Datacenter"); // in your case, the type will be "AD:User"
                sdkObj.setId("sof2-lab3-dhcp629.eng.vmware.com/datacenter-2"); // replace this with your user ID
                ExecutionContext ec = new ExecutionContextBuilder()
                    .addParam("dc", sdkObj) // replace "dc" with the name of the input parameter of type AD:User in your workflow
                    .build();
    

    For your case, you must understand how resemble the user ID. The easiest way would be to list existing users by opening the following URL in a browser (or a client of REST) and looking at the data returned:

    https://your-VCO-IP:8281 / vco/api/catalogue/AD/user

    I hope this helps.

  • Another syntax for creating primary key


    Hello


    I have a question about the right way to create primary keys.
    Earlier, we were on Oracle 9i and we have upgraded to Oracle 10 g. The question is when creating primary key is allowed to create the unique index and then to create the primary key constraint? or directly create the first key is better? or are there ways to both the same?


    for example:
    one way:


    SQL & gt; CONN u2/u2@db1
    Connected.
    SQL & gt; create table a (a1, b1 varchar2 number (2), the date c1);


    Table created.


    SQL & gt; create an index on a (a1) tablespace unique pk_a t1;


    The index is created.



    SQL & gt; ALTER table a Add (constraint primary key (a1) using index pk_a);


    Modified table.
    Another way:
    SQL & gt; CONN u1/u1@db1
    Connected.
    SQL & gt; create table a (a1, b1 varchar2 number (2), the date c1)
    2.


    Table created.


    SQL & gt;
    SQL & gt; ALTER table a Add (constraint primary key (a1) using index tablespace t1 pk_a)
    2.


    Modified table.
    Which of the two approach is better? or are they the same?


    Thank you
    Cedric

    Oracle will attempt to create the index to apply the constraint. Of course, it is certainly possible that the creation of the index will fail, but you would be just to move the point of failure of the CREATE INDEX statement to the ALTER TABLE statement, assuming that everything else is equal (that is, you create the index in the same tablespace, quotas and tablespace sizes are the same, permissions are not changed, etc.)

    It may be preferable in some contexts to create a non-unique index before the creation of the constraint and instruct Oracle to use the non-unique index to apply the constraint. If you decide in the future to make the primary key constraint can be delayed, for example, have a non-unique index allows you to make this change without having to (implicitly), drop and re-create the index. A separate CREATE INDEX statement also influences when you go to remove a constraint / index. If the index was created before the constraint, you can remove the constraint without affecting the index. If the index was created after the constraint, deleting the constraint implicitly removes the index. Normally, particularly with OLTP applications, this doesn't buy you much. Sometimes, however, there are ETL process benefiting from such things.

    Justin

  • Windows XP does not recognize my passwords

    I have windows XP home installed on my PC.  Recently, windows froze so I restarted the pc and after the regular windows picture message, I get an error about the lsass.exe file... Sorry I don't have the exact message, but there (000005) in the text.
    -tried safe mode and get the same message before I can connect.
    -recovery mode I tried, when asked to enter the admin password, windows does not recognize it
    -tried net 'user' at the command prompt to change the password, windows does not recognize this command is
    -installed windows on another hard drive (D :), created a new user, not asked to create a password when I boot this - version of windows, I am required to enter a password, but none of my passwords for this new user or admin user, or empty, seem to work)
    -I is not an option to choose about aid
    Is there something I can do to get into windows?
    I need to access some personal files before I format and reinstall - last resort

    I posted the Question below, but I found the solution to my problem.

    I've used 'control userpasswords2' from start - RUN then unchecked the box who says:

    "Users must enter a user name and password to use this computer."

    I thought this would prevent user account to request a password.

    IN FACT, THIS CAUSED MY PROBLEM.

    It might work for XP Pro, but it does not work in XP Home Edition. In the publishing house it still ask for a password or it could give you this message at startup.

    "Unable to log on because of an account restriction"

    After finally getting back to my account. (I got lucky in after the restart of some).  I also had a lot of error messages in the error log (use start-help & - aid) which reads:

    "The entry in the hash map cannot be updated. Context: Application, creates catalog Details: a device attached to the system is not functioning. (0x8007001f).

    I have no idea what it means.

    Anyway,.

    "I had to go back and double checked the box to start - run -" control userpassword2 ' for users to enter a user name and password.  After that, I went to start - settings control panel, then user accounts. I clicked on each user account under account to change and delete the user password.  Now I have to enter a password everytime I log in, or if I change my USER account.

    I hope you find this useful and should not lose a day on this problem.

    See you soon,.

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

    I also have windows XP home installed on my PC with 2 user accounts. I use to be able to click on each user account and access my programs. There are about 4-6 months then asked me for a password. This must happen after an MS updated because I haven't changed anything on my PC for years.  I could not agree to 'nothing' as password, so I created one and it worked.

    After a MS recent update access (last week), whenever I want to a user account, I wonder the password. If it times out at the Welcome screen or I want to change my user account, it asks for my password, but then it says sorry... You forgot your password?  I have to restart every time I want to access my accounts or access the second user account.

    First of all, why is - what happens when it's never happened before?

    Second, how to fix?

    I want to connect to a user without password (initial configuration) account

    Or I want to connect and stay connected with a password.

    I DON'T want to restart my PC whenever I want to use my computer.

    Thanks in advance.

  • camera / snapshot...

    I scoured the forums, found several "solutions" to this problem, but not a single 'solution' of the works of threaded discussion. Because I'm new, I have the newest of the current SDK to run on Eclipse, the steps that I'm trying to figure is as follows:

    (1) display of the user interface, initialize the object camera full screen (not in a domain)

    (2) that the user can take a picture, then immediately close the camera after taking the photo

    (3) add a thumbnail preview to the current form of screen UI (FIELD), which is simple and shows the photo

    (4) save the captured image in the memory of the device in a folder that I created or on the SD card in a folder that I created

    (5) get the name of this file when it has been recorded in the folder, the file name must be unique similar GUID and returned at the time where the file was saved

    I worked on this for the past few days, the code I still does not work as follows:

    private void initCamera()
    {
      try
       {
         //Create a player for the Blackberry's camera.
         Player player = javax.microedition.media.Manager.createPlayer( "capture://video" );
    
         //Set the player to the REALIZED state (see Player docs.)
         player.realize();
    
         //Grab the video control and set it to the current display.
         vc = (VideoControl)player.getControl( "VideoControl" );
    
         if (vc != null)
         {
              //Create the video field as a GUI primitive (as opposed to a
              //direct video, which can only be used on platforms with
              //LCDUI support.)
              _videofeed = (Field) vc.initDisplayMode (VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");
              //Display the video control
              vc.setVisible(true);
          }
    
          //Set the player to the STARTED state (see Player docs.)
          player.start();
      }
      catch(Exception e)
      {
          log( "ERROR " + e.getClass() + ":  " + e.getMessage() );
      }
    }
    
    private void setupSnapshot()
    {
      encoding = "encoding=jpeg&width=640&height=480&quality=normal";
    
      snapshotButton = new ButtonField("Capture", ButtonField.CONSUME_CLICK | ButtonField.NEVER_DIRTY | ButtonField.HCENTER);
      listenerSnapshot = new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
             log(encoding);
                 snapShot();
        }
      };
      snapshotButton.setChangeListener(listenerSnapshot);
      add(snapshotButton);
    }
    
    private void cleanSnapshot()
    {
      Manager m;
      try
      {
        if(snapshotButton != null)
        {
          m=snapshotButton.getManager();
          if(m != null)
            m.delete(snapshotButton);
        }
      }
      catch(Exception ex)
      {
        log("Error: " + ex.toString());
      }
    }
    

    When you capture instant, it will not create an image file and save it to memory. It returns an array of raw image data and you will need to create image from data line and save it in the file system. You already create image of row data.

    byte[] imageBytes = vc.getSnapshot(encoding);
          Bitmap image = Bitmap.createBitmapFromBytes(imageBytes, 0, imageBytes.length, 5);
    

    Now you need to save this image using the FileConnection API to the memory of the device or SD card. Here you must assign the unique image name which may be the current date & time.

    public static String dateFormat()
    {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        return sdf.format(Calendar.getInstance().getTime());
    }
    

    Here is Snap from sample RIM, which saves the image.

    /**
        * A listener used for the "Save" button
        */
        private class SaveListener implements FieldChangeListener
        {
            /** A byte array representing an image */
            private byte[] _raw;
    
           /**
            * Constructor.
            * @param raw A byte array representing an image
            */
            SaveListener(byte[] raw)
            {
                _raw = raw;
            }
    
           /**
            * Saves the image as a file in the BlackBerry filesystem
            */
            public void fieldChanged(Field field, int context)
            {
                try
                {
                    // Create the connection to a file that may or
                    // may not exist.
                    FileConnection file = (FileConnection)Connector.open( FILE_NAME + _counter + EXTENSION );
    
                    // If the file exists, increment the counter until we find
                    // one that hasn't been created yet.
                    while( file.exists() )
                    {
                        file.close();
                        ++_counter;
                        file = (FileConnection)Connector.open( FILE_NAME + _counter + EXTENSION );
                    }
    
                    // We know the file doesn't exist yet, so create it
                    file.create();
    
                    // Write the image to the file
                    OutputStream out = file.openOutputStream();
                    out.write(_raw);
    
                    // Close the connections
                    out.close();
                    file.close();
                }
                catch(Exception e)
                {
                    CameraDemo.errorDialog("ERROR " + e.getClass() + ":  " + e.getMessage());
                }
    
                // Inform the user where the file has been saved
                Dialog.inform( "Saved to " + FILE_NAME + _counter + EXTENSION );
    
                // Increment the image counter
                ++_counter;
    
                // Return to the main camera screen
                UiApplication.getUiApplication().popScreen( _imageScreen );
            }
        }
    

    in your case, you can replace

    FILE_NAME + _counter + EXTENSION
    

    with

    String fileName = dateFormat + EXTENSION;
    

    that will give the unique name of the image.

    I hope this will solve your problem, if not you can always come here

  • Overlap two images, ordinary java works, and not in BlackBerry JDE 5

    I have an application for swing of simple java that takes two images and overlaps the other. While trying to this port in JDE5, I got out there is no class BufferedImage in the api of BB, but a similar class of the Bitmap. It's brought to BB mixing function is unable to produce an image that overlap. It shows a blank white screen.

    Here's the plain java function

    public BufferedImage blend( BufferedImage bi1, BufferedImage bi2,            double weight )   {     if (bi1 == null)          throw new NullPointerException("bi1 is null");
    
          if (bi2 == null)          throw new NullPointerException("bi2 is null");
    
          int width = bi1.getWidth();       if (width != bi2.getWidth())          throw new IllegalArgumentException("widths not equal");
    
         int height = bi1.getHeight();     if (height != bi2.getHeight())
    
              throw new IllegalArgumentException("heights not equal");
    
            BufferedImage bi3 = new BufferedImage(width, height,              BufferedImage.TYPE_INT_RGB);      int[] rgbim1 = new int[width];        int[] rgbim2 = new int[width];        int[] rgbim3 = new int[width];
    
          for (int row = 0; row < height; row++)     {         bi1.getRGB(0, row, width, 1, rgbim1, 0, width);           bi2.getRGB(0, row, width, 1, rgbim2, 0, width);
    
             for (int col = 0; col < width; col++)          {             int rgb1 = rgbim1[col];               int r1 = (rgb1 >> 16) & 255;                int g1 = (rgb1 >> 8) & 255;             int b1 = rgb1 & 255;
    
                    int rgb2 = rgbim2[col];               int r2 = (rgb2 >> 16) & 255;                int g2 = (rgb2 >> 8) & 255;             int b2 = rgb2 & 255;
    
                    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));               int g3 = (int) (g1 * weight + g2 * (1.0 - weight));               int b3 = (int) (b1 * weight + b2 * (1.0 - weight));               rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;            }
    
               bi3.setRGB(0, row, width, 1, rgbim3, 0, width);       }
    
           return bi3;   } 
    

    Here's the java function of BB

      public Bitmap blend( Bitmap bi1, Bitmap  bi2,                      double weight )        {
    
                  if (bi1 == null)                       throw new NullPointerException("bi1 is null");
    
                    if (bi2 == null)                       throw new NullPointerException("bi2 is null");
    
                    int width = bi1.getWidth();            if (width != bi2.getWidth())                   throw new IllegalArgumentException("widths not equal");
    
                   int height = bi1.getHeight();          if (height != bi2.getHeight())
    
                            throw new IllegalArgumentException("heights not equal");
    
             Bitmap bi3 = new Bitmap(width, height);         int[] rgbim1 = new int[width];         int[] rgbim2 = new int[width];         int[] rgbim3 = new int[width];
    
                    for (int row = 0; row < height; row++)         {
    
                           bi1.getARGB(rgbim1,0,width,0,row, width,1);                       bi2.getARGB(rgbim2,0,width,0,row, width,1); 
    
                           for (int col = 0; col < width; col++)                  {                              int rgb1 = rgbim1[col];                                int r1 = (rgb1 >> 16) & 255;                           int g1 = (rgb1 >> 8) & 255;                            int b1 = rgb1 & 255;
    
                              int rgb2 = rgbim2[col];                                int r2 = (rgb2 >> 16) & 255;                           int g2 = (rgb2 >> 8) & 255;                            int b2 = rgb2 & 255;
    
                              int r3 = (int) (r1 * weight + r2 * (1.0 - weight));                            int g3 = (int) (g1 * weight + g2 * (1.0 - weight));                            int b3 = (int) (b1 * weight + b2 * (1.0 - weight));                            rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;                     }
    
                         bi3.setARGB(rgbim3, 0, width, 0,  row,width, 1);
    
                    }
    
                 return bi3;    }
    

    The weight of the arg is a value from 1 to 100.

    For reference, the full plain java source

    /* * To change this template, choose Tools | Templates * and open the template in the editor. */
    
    package imagetest;
    
    /** * * @author COMPUTER */// Blender1.java
    
    import java.awt.*;import java.awt.image.*;
    
    import javax.swing.*;import javax.swing.event.*;
    
    /** * This class describes and contains the entry point to an application that * demonstrates the blending transition. */
    
    public class Blender1 extends JFrame{  /**    *     */   private static final long serialVersionUID = 1L;
    
        /**    * Construct Blender1 GUI.     */
    
     public Blender1() {     super("Blender #1");      setDefaultCloseOperation(EXIT_ON_CLOSE);
    
            // Load first image from JAR file and draw image into a buffered image.
    
         ImageIcon ii1 = new ImageIcon(getClass().getResource("x.png"));       final BufferedImage bi1;      bi1 = new BufferedImage(ii1.getIconWidth(), ii1.getIconHeight(),              BufferedImage.TYPE_INT_RGB);      Graphics2D g2d = bi1.createGraphics();        int h = ii1.getImage().getHeight(null);       System.out.println("Blender1.Blender1()--------> height :" + h);       g2d.drawImage(ii1.getImage(), 0, 0, null);        g2d.dispose();
    
          // Load second image from JAR file and draw image into a buffered image.
    
            ImageIcon ii2 = new ImageIcon(getClass().getResource("y.png"));       final BufferedImage bi2;      bi2 = new BufferedImage(ii2.getIconWidth(), ii2.getIconHeight(),              BufferedImage.TYPE_INT_RGB);      g2d = bi2.createGraphics();       int h2 = ii2.getImage().getHeight(null);      System.out.println("Blender1.Blender1()--------> height :" + h2);      g2d.drawImage(ii2.getImage(), 0, 0, null);        g2d.dispose();
    
          // Create an image panel capable of displaying entire image. The widths       // of both images and the heights of both images must be identical.
    
         final ImagePanel ip = new ImagePanel();       ip.setPreferredSize(new Dimension(ii1.getIconWidth(), ii1             .getIconHeight()));       getContentPane().add(ip, BorderLayout.NORTH);
    
           // Create a slider for selecting the blending percentage: 100% means      // show all of first image; 0% means show all of second image.
    
          final JSlider slider = new JSlider(JSlider.HORIZONTAL, 0, 100, 100);      slider.setMinorTickSpacing(5);        slider.setMajorTickSpacing(10);       slider.setPaintTicks(true);       slider.setPaintLabels(true);      slider.setLabelTable(slider.createStandardLabels(10));        slider.setInverted(true);     ChangeListener cl;        cl = new ChangeListener()     {         public void stateChanged( ChangeEvent e )         {             // Each time the user adjusts the slider, obtain the new              // blend percentage value and use it to blend the images.
    
                   int value = slider.getValue();                ip.setImage(blend(bi1, bi2, value / 100.0));          }     };        slider.addChangeListener(cl);     getContentPane().add(slider, BorderLayout.SOUTH);
    
           // Display the first image, which corresponds to a 100% blend     // percentage.
    
          ip.setImage(bi1);
    
           pack();       setVisible(true); }
    
       /**    * Blend the contents of two BufferedImages according to a specified weight.   *     * @param bi1  *            first BufferedImage  * @param bi2  *            second BufferedImage     * @param weight   *            the fractional percentage of the first image to keep     *     * @return new BufferedImage containing blended contents of BufferedImage  *         arguments   */
    
     public BufferedImage blend( BufferedImage bi1, BufferedImage bi2,         double weight )   {     if (bi1 == null)          throw new NullPointerException("bi1 is null");
    
          if (bi2 == null)          throw new NullPointerException("bi2 is null");
    
          int width = bi1.getWidth();       if (width != bi2.getWidth())          throw new IllegalArgumentException("widths not equal");
    
         int height = bi1.getHeight();     if (height != bi2.getHeight())
    
              throw new IllegalArgumentException("heights not equal");
    
            BufferedImage bi3 = new BufferedImage(width, height,              BufferedImage.TYPE_INT_RGB);      int[] rgbim1 = new int[width];        int[] rgbim2 = new int[width];        int[] rgbim3 = new int[width];
    
          for (int row = 0; row < height; row++)     {         bi1.getRGB(0, row, width, 1, rgbim1, 0, width);           bi2.getRGB(0, row, width, 1, rgbim2, 0, width);
    
             for (int col = 0; col < width; col++)          {             int rgb1 = rgbim1[col];               int r1 = (rgb1 >> 16) & 255;                int g1 = (rgb1 >> 8) & 255;             int b1 = rgb1 & 255;
    
                    int rgb2 = rgbim2[col];               int r2 = (rgb2 >> 16) & 255;                int g2 = (rgb2 >> 8) & 255;             int b2 = rgb2 & 255;
    
                    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));               int g3 = (int) (g1 * weight + g2 * (1.0 - weight));               int b3 = (int) (b1 * weight + b2 * (1.0 - weight));               rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;            }
    
               bi3.setRGB(0, row, width, 1, rgbim3, 0, width);       }
    
           return bi3;   }
    
       /**    * Application entry point.    *     * @param args     *            array of command-line arguments  */
    
     public static void main( String[] args )  {     Runnable r = new Runnable()       {         public void run()         {             // Create Blender1's GUI on the event-dispatching             // thread.
    
                  new Blender1();           }     };        EventQueue.invokeLater(r);    }}
    
    /** * This class describes a panel that displays a BufferedImage's contents. */
    
    class ImagePanel extends JPanel{ /**    *     */   private static final long serialVersionUID = 4977990666209629996L;    private BufferedImage bi;
    
       /**    * Specify and paint a new BufferedImage.  *     * @param bi   *            BufferedImage whose contents are to be painted   */
    
     void setImage( BufferedImage bi ) {     this.bi = bi;     repaint();    }
    
       /**    * Paint the image panel.  *     * @param g    *            graphics context used to paint the contents of the current   *            BufferedImage    */
    
     public void paintComponent( Graphics g )  {     if (bi != null)       {         Graphics2D g2d = (Graphics2D) g;          g2d.drawImage(bi, null, 0, 0);        } }}
    

    Full java BB source

    /* * ImageScreen.java * * © ,  * Confidential and proprietary. */
    
    package src;
    
    /** *  */
    
    import java.io.OutputStream;import javax.microedition.io.Connector;import javax.microedition.io.file.FileConnection;import net.rim.device.api.system.Bitmap;import net.rim.device.api.ui.Field;import net.rim.device.api.ui.FieldChangeListener;import net.rim.device.api.ui.UiApplication;import net.rim.device.api.ui.component.BitmapField;import net.rim.device.api.ui.component.ButtonField;import net.rim.device.api.ui.component.Dialog;import net.rim.device.api.ui.component.LabelField;import net.rim.device.api.ui.container.HorizontalFieldManager;import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.ui.component.GaugeField;/** * The main screen to display an image taken from the camera demo. */public final class ImageScreen extends MainScreen{    /** The down-scaling ratio applied to the snapshot Bitmap */    private static final int IMAGE_SCALING = 7;
    
        /** The base file name used to store pictures */    private static final String FILE_NAME = System.getProperty("fileconn.dir.photos") + "IMAGE";
    
        /** The extension of the pictures to be saved */    private static final String EXTENSION = ".bmp";
    
        /** A counter for the number of snapshots taken */    private static int _counter;    Bitmap image1,image2; BitmapField imageField;     /** A reference to the current screen for listeners */    private ImageScreen _imageScreen;
    
       /**    * Constructor    * @param raw A byte array representing an image    */    public ImageScreen( final byte[] raw1,final byte[] raw2 )    {        // A reference to this object, to be used in listeners        _imageScreen = this;
    
            setTitle("Blend and Save");
    
            // Convert the byte array to a Bitmap image        image1 = Bitmap.createBitmapFromBytes( raw1, 0, -1, 1 );        image2 = Bitmap.createBitmapFromBytes( raw2, 0, -1, 1 );        // Create two field managers to center the screen's contents        HorizontalFieldManager hfm1 = new HorizontalFieldManager( Field.FIELD_HCENTER );        HorizontalFieldManager hfm2 = new HorizontalFieldManager( Field.FIELD_HCENTER );        HorizontalFieldManager hfm3 = new HorizontalFieldManager( Field.FIELD_HCENTER );        // Create the field that contains the image//blend(image1, image2, 50/ 100.0)        imageField = new BitmapField(blend(image1, image2, 50/ 100.0) ){
    
               public int getPreferredWidth(){ return 250;}           public int getPreferredHeight(){ return 150;}
    
             };
    
            hfm1.add( imageField ); 
    
            GaugeField scroller = new GaugeField("Adjust (alt + < >)",0,100,50,Field.EDITABLE | Field.FOCUSABLE);        //scroller.setBackground( net.rim.device.api.ui.decor.BackgroundFactory.createSolidBackground(0x00000000));          scroller.setChangeListener( new GaugeFieldListener() );         hfm2.add(scroller);         // Create the SAVE button which returns the user to the main camera        // screen and saves the picture as a file.        ButtonField photoButton = new ButtonField( "Save" );        photoButton.setChangeListener( new SaveListener(raw1,raw2) );        hfm3.add(photoButton);
    
            // Create the CANCEL button which returns the user to the main camera        // screen without saving the picture.        ButtonField cancelButton = new ButtonField( "Cancel" );        cancelButton.setChangeListener( new CancelListener() );        hfm3.add(cancelButton);
    
            // Add the field managers to the screen        add( hfm1 );        add( hfm2 );        add( hfm3 );scroller.setFocus();//scroller.setValue(50);    }    public Bitmap blend( Bitmap bi1, Bitmap  bi2,                      double weight )        {
    
                  if (bi1 == null)                       throw new NullPointerException("bi1 is null");
    
                    if (bi2 == null)                       throw new NullPointerException("bi2 is null");
    
                    int width = bi1.getWidth();            if (width != bi2.getWidth())                   throw new IllegalArgumentException("widths not equal");
    
                   int height = bi1.getHeight();          if (height != bi2.getHeight())
    
                            throw new IllegalArgumentException("heights not equal");
    
             Bitmap bi3 = new Bitmap(width, height);         int[] rgbim1 = new int[width];         int[] rgbim2 = new int[width];         int[] rgbim3 = new int[width];
    
                    for (int row = 0; row < height; row++)         {            // bi -> int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) 
    
                 // bit - > int[] argbData, int offset, int scanLength, int x, int y, int width, int height) 
    
                           bi1.getARGB(rgbim1,0,width,0,row, width,1);//  row, width, 1, , 0, width);                       bi2.getARGB(rgbim2,0,width,0,row, width,1); 
    
                           //bi1.getRGB(0, row, width, 1, rgbim1, 0, width);                       //bi2.getRGB(0, row, width, 1, rgbim2, 0, width);
    
                           for (int col = 0; col < width; col++)                  {                              int rgb1 = rgbim1[col];                                int r1 = (rgb1 >> 16) & 255;                           int g1 = (rgb1 >> 8) & 255;                            int b1 = rgb1 & 255;
    
                              int rgb2 = rgbim2[col];                                int r2 = (rgb2 >> 16) & 255;                           int g2 = (rgb2 >> 8) & 255;                            int b2 = rgb2 & 255;
    
                              int r3 = (int) (r1 * weight + r2 * (1.0 - weight));                            int g3 = (int) (g1 * weight + g2 * (1.0 - weight));                            int b3 = (int) (b1 * weight + b2 * (1.0 - weight));                            rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;                     }                    //bi -> int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)                     //bit -> (int[] data, int offset, int scanLength, int left, int top, int width, int height)                      bi3.setARGB(rgbim3, 0, width, 0,  row,width, 1);
    
                        // bi3.setRGB(0, row, width, 1, rgbim3, 0, width);                }
    
                 return bi3;    }
    
       /**    * Handles trackball click events    * @see net.rim.device.api.ui.Screen#invokeAction(int)    */       protected boolean invokeAction(int action)    {        boolean handled = super.invokeAction(action); 
    
            if(!handled)        {            switch(action)            {                case ACTION_INVOKE: // Trackball click.                {                                 return true;                }            }        }                return handled;              }
    
     /**    * A listener used for the "Save" button    */    private class GaugeFieldListener implements FieldChangeListener    {        public void fieldChanged(Field field, int context)        {          int value =  ((GaugeField)field).getValue(); if (value==0){return;}          imageField.setBitmap( blend(image1, image2, value/ 100.0) );          ((GaugeField)field).setLabel("Adjust (alt + < >)"+value);        }    }   /**    * A listener used for the "Save" button    */    private class SaveListener implements FieldChangeListener    {        /** A byte array representing an image */        private byte[] _raw1,_raw2;
    
           /**        * Constructor.        * @param raw A byte array representing an image        */        SaveListener(byte[] raw1,byte[] raw2)        {            _raw1 = raw1;            _raw2 = raw2;        }
    
           /**        * Saves the image as a file in the BlackBerry filesystem        */        public void fieldChanged(Field field, int context)        {            try            {                       // Create the connection to a file that may or                // may not exist.                FileConnection file = (FileConnection)Connector.open( FILE_NAME + _counter + EXTENSION );
    
                    // If the file exists, increment the counter until we find                // one that hasn't been created yet.                while( file.exists() )                {                    file.close();                    ++_counter;                    file = (FileConnection)Connector.open( FILE_NAME + _counter + EXTENSION );                }
    
                    // We know the file doesn't exist yet, so create it                file.create();
    
                    // Write the image to the file                OutputStream out = file.openOutputStream();                out.write(_raw1);
    
                    // Close the connections                out.close();                file.close();            }            catch(Exception e)            {                Dialog.alert( "ERROR " + e.getClass() + ":  " + e.getMessage() );            }
    
                // Inform the user where the file has been saved            Dialog.inform( "Saved to " + FILE_NAME + _counter + EXTENSION );
    
                // Increment the image counter            ++_counter;
    
                // Return to the main camera screen            UiApplication.getUiApplication().popScreen( _imageScreen );        }    }
    
       /**    * A listener used for the "Cancel" button    */    private class CancelListener implements FieldChangeListener    {       /**        * Return to the main camera screen        */        public void fieldChanged(Field field, int context)        {            UiApplication.getUiApplication().popScreen( _imageScreen );        }    }}
    

    Yes, your original code:

    for (int col = 0; col < width; col++){int rgb1 = rgbim1[col];int r1 = (rgb1 >> 16) & 255;int g1 = (rgb1 >> 8) & 255;int b1 = rgb1 & 255;
    
    int rgb2 = rgbim2[col];int r2 = (rgb2 >> 16) & 255;int g2 = (rgb2 >> 8) & 255;int b2 = rgb2 & 255;
    
    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));int g3 = (int) (g1 * weight + g2 * (1.0 - weight));int b3 = (int) (b1 * weight + b2 * (1.0 - weight));rgbim3[col] = (r3 << 16) | (g3 << 8) | b3;}
    

    Labour Code:

    for (int col = 0; col < width; col++)
    {
    int rgb1 = rgbim1[col];
    int a1 = (rgb1 >> 24) & 255;
    int r1 = (rgb1 >> 16) & 255;
    int g1 = (rgb1 >> 8) & 255;
    int b1 = rgb1 & 255;
    
    int rgb2 = rgbim2[col];
    int a2 = (rgb2 >> 24) & 255;
    int r2 = (rgb2 >> 16) & 255;
    int g2 = (rgb2 >> 8) & 255;
    int b2 = rgb2 & 255;
    
    int a3 = (int) (a1 * weight + a2 * (1.0 - weight));
    int r3 = (int) (r1 * weight + r2 * (1.0 - weight));
    int g3 = (int) (g1 * weight + g2 * (1.0 - weight));
    int b3 = (int) (b1 * weight + b2 * (1.0 - weight));
    rgbim3[col] = (a3 << 24) | (r3 << 16) | (g3 << 8) | b3;
    }
    
  • Authentication via Active Directory (11 GR 2) Oracle

    I want authenticate Oracle users through their Active Directory credentials. I followed the whole process step by step Oracle Support Communitycommunity "How to manually create an Oracle in Active Directory [820134.1 ID] context"

    OracleContext object appears in Active Directory users and computers.

    In addition, I recorded my database with domain name with the database Configuration Wizard.

    I gave any special permissions and privileges to the respective users.

    I created for Oracle users by IDENTIFIED worldwide as "cn = xx, xx = dc, dc = xx"

    When I try to log-in good sqlplus with newly created users I get the error of:

    ORA-28044: unsupported directory type

    I need to create Oracle Internet Directory, or of the foregoing is possible?

    So just use Active Directory directly without any OID/synchronization integration?

    Any ideas?

    The answer given by the Oracle Support:

    "You cannot use AD directly for authentication. You need an OID / OVD in the middle. AD cannot be used directly for Enterprise User Security. "

  • Searches for a string in a pdf BLOB

    Hello

    My requirement is to find a string in the data blob. I use
    DBMS_LOB. INSTR (FILE_DATA, utl_raw.cast_to_raw ('Tag Switch'), 1, 1) approach > 0.
    It does not work for doc htm, text formats. But when we try to search in pdf blobs, it does not work.

    Can anyone suggest a solution for this problem?

    You can use Oracle Text for your search words in pdf files.

    SQL> SELECT * FROM v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    SQL> /* Creating my demo table */
    SQL> CREATE TABLE pdm(id_pk INTEGER,fname VARCHAR2(30),pdf_file BLOB);
    
    Table created.
    
    SQL> /* Creating the directory object for latter use */
    SQL> CREATE OR REPLACE DIRECTORY TEMP AS 'c:\';
    
    Directory created.
    
    SQL> /* Creating a procedure which will load the BLOBs (pdf files) into the table */
    SQL> CREATE OR REPLACE PROCEDURE load_file(pi_id IN INTEGER, pfname IN VARCHAR2) IS
      2    src_file BFILE;
      3    dst_file BLOB;
      4    lgh_file BINARY_INTEGER;
      5  BEGIN
      6    src_file := bfilename('TEMP', pfname);
      7
      8    INSERT INTO pdm
      9      (id_pk, fname, pdf_file)
     10    VALUES
     11      (pi_id, pfname, EMPTY_BLOB())
     12    RETURNING pdf_file INTO dst_file;
     13
     14    DBMS_LOB.OPEN(src_file, dbms_lob.file_readonly);
     15    lgh_file := dbms_lob.getlength(src_file);
     16    DBMS_LOB.LOADFROMFILE(dst_file, src_file, lgh_file);
     17    dbms_lob.close(src_file);
     18    COMMIT;
     19  END load_file;
     20  /
    
    Procedure created.
    
    SQL> EXECUTE load_file(1,'plsql_new_in_11gr1.pdf');
    
    PL/SQL procedure successfully completed.
    
    SQL> EXECUTE load_file(2,'Model clause.pdf');
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> SELECT id_pk,fname,DBMS_LOB.getlength(pdf_file)
      2  FROM pdm;
    
         ID_PK FNAME                          DBMS_LOB.GETLENGTH(PDF_FILE)
    ---------- ------------------------------ ----------------------------
             1 plsql_new_in_11gr1.pdf                               170264
             2 Model clause.pdf                                    4288164
    
    SQL> /* Creating the index */
    SQL> CREATE INDEX pdm_pdf_idx ON pdm(pdf_file) INDEXTYPE IS CTXSYS.CONTEXT;
    
    Index created.
    
    SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS(USER, 'PDM', cascade=>TRUE);
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT id_pk,fname
      2  FROM pdm
      3  WHERE CONTAINS(pdf_file,'PL/SQL')>0;
    
         ID_PK FNAME
    ---------- ------------------------------
             1 plsql_new_in_11gr1.pdf
    
    SQL> SELECT id_pk,fname
      2  FROM pdm
      3  WHERE CONTAINS(pdf_file,'Fine-grained access control')>0;
    
         ID_PK FNAME
    ---------- ------------------------------
             1 plsql_new_in_11gr1.pdf
    
    SQL> SELECT id_pk,fname,DBMS_LOB.getlength(pdf_file)
      2  FROM pdm;
    
         ID_PK FNAME                          DBMS_LOB.GETLENGTH(PDF_FILE)
    ---------- ------------------------------ ----------------------------
             1 plsql_new_in_11gr1.pdf                               170264
             2 Model clause.pdf                                    4288164
    
    SQL> SELECT id_pk,fname
      2  FROM pdm
      3  WHERE CONTAINS(pdf_file,'Saubhik')>0;
    
    no rows selected
    
    SQL> EXECUTE load_file(3,'plsql_conditional_compilation.pdf');
    BEGIN load_file(3,'plsql_conditional_compilation.pdf'); END;
    
    *
    ERROR at line 1:
    ORA-12899: value too large for column "SCOTT"."PDM"."FNAME" (actual: 33,
    maximum: 30)
    ORA-06512: at "SCOTT.LOAD_FILE", line 8
    ORA-06512: at line 1
    
    SQL> EXECUTE load_file(3,'conditional_compilation.pdf');
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT id_pk,fname,DBMS_LOB.getlength(pdf_file)
      2  FROM pdm;
    
         ID_PK FNAME                          DBMS_LOB.GETLENGTH(PDF_FILE)
    ---------- ------------------------------ ----------------------------
             1 plsql_new_in_11gr1.pdf                               170264
             2 Model clause.pdf                                    4288164
             3 conditional_compilation.pdf                          540594
    
    SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS(USER, 'PDM', cascade=>TRUE);
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT id_pk,fname
      2  FROM pdm
      3  WHERE CONTAINS(pdf_file,'conditional')>0;
    
         ID_PK FNAME
    ---------- ------------------------------
             1 plsql_new_in_11gr1.pdf
             3 conditional_compilation.pdf
    
    SQL> SELECT id_pk,fname
      2  FROM pdm
      3  WHERE CONTAINS(pdf_file,'The Catch 22')>0;
    
         ID_PK FNAME
    ---------- ------------------------------
             3 conditional_compilation.pdf
    
    SQL> 
    

Maybe you are looking for