Targeting dynamic instance

Hello, just a quick levels issue (maybe) or me being out of
me depth as usual - quick summary, Im creating several movieclips
on the fly and adding external images to them. These mcs then
become moveable and I want the user to drag them into a preference
dropbox "Good","Not Sure" etc.. which are other movieclips -
because the user can drag several mcs into any one dropbox I'll
need a routine to scale and position the selected mcs - because of
this my approach thus far has been to remove the mcs from the main
timeline and add them to the dropbox with the same name and image
etc. and give that dropbox a function to scale and postion (have'nt
thought of that one yet...) I am adding and removing the mc with
this function
function isindropbox(mc:MovieClip){ //mc is the name of the
mc to add
for(var z in dropboxArry) {
if ((eval(dropboxArry[z])).hitTest(_xmouse, _ymouse, false))
{ //checks if mouse is released in dropbox
var pic_mcchosen:MovieClipLoader = new MovieClipLoader();
pic_mcchosen.loadClip("images/"+mc._name+".jpg",
(eval(dropboxArry[z])).createEmptyMovieClip(mc._name+"A",
this.getNextHighestDepth()));
deleteThis = eval(mc._name);
removeMovieClip(_root.deleteThis);
all this works fine and I can see the mc in this scenario
"MarsA" being generated in the selected dropbox, but I can't within
the same function reference it i.e.
trace(this.holder_ins1["MarsA"]._width); // or
trace(_root.holder_ins1["MarsA"]._width);// returns 0
yet if I have a button on the stage elsewhere calling this:
tempbutt_mc.onPress = function () {
trace(_root.holder_ins1["MarsA"]._width);
} // returns the correct width
does a dynamically created instance not get registered with a
player until the function that made it finishes??
Thanks in advance

MikeLB,
> I'm creating the mc on a mousedown/event/function and
> then scaling the mc on a mousemove as follows
> mouseListener.onMouseDown = function() {
> var mc:MovieClip = _root.attachMovie("my etc...
> isdrawing = true;
> }
Aha.
> and then:-
> mouseListener.onMouseMove = function() {
> if (isDrawing) {
> mc._xscale = etc
Okay, this is a scope issue. In your onMouseDown event,
you've assigned
a function literal that declares a variable mc. That variable
is scoped to
the function only, as is the case any time you declare a
variable inside a
function. As soon as the function completes execution, the
variable is
gone. That's why the onMouseMove-assigned function isn't able
to see it.
Declare the variable outside the scope of either function
first, then it
will be available to both.
var mc:MovieClip;
var isDrawing:Boolean;
mouseListener.onMouseDown = function() {
mc = _root.attachMovie(//etc.);
isDrawing = true;
mouseListener.onMouseMove = function() {
if (isDrawing) { // etc.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Targeting Dynamically Attached MC's (2-3 Levels Deep) From Root????

    I am in the process of building an application where all of
    the functions will be eventually exported into seperate AS files. I
    am having issues with a Sub Navigation that is attached and managed
    dynamically.
    The Sub Navigation is in an MC which contains a mask (which
    has a tween animation to add a fade in effect), and a blank MC
    which will contain all of the navigation items.
    Upon load of an XML file, the navigation items are extracted
    and buttons are created within the blank MC. Each button is
    inserted using the blank MC instance name at the next highest
    depth.
    All of the actions associated with the above need to be
    issued from the root timeline but when I call the dynamically
    attached clips (full target path) it cannot seem to find the clips.
    I have checked the target path numerous times and used a variety of
    debugging techniques but no luck.
    Has anyone else had issued targeting dynamically attached
    MC's that are nested two - three levels deep?
    Thank you so much in advance!

    Here is what is being returned by the output when the Sub
    Navigation is displayed:
    Level #0:
    Variable _level0.$version = "MAC 8,0,22,0"
    Variable _level0.NAV_Active = false
    Variable _level0.NAV_ActiveButton = 0
    Variable _level0.NAV_MaximumButtons = 7
    Variable _level0.NAV_EaseSpeed = 1.5
    Variable _level0.Navigation_ActiveButton = 0
    Variable _level0.SubNavigation_XML =
    "_xml/DestinationDetails.xml"
    Variable _level0.SubNavigation_ItemCount = 0
    Variable _level0.SubNavigation_ItemsXPositioning = 10
    Variable _level0.SubNavigation_ItemsYPositioning = 12
    Movie Clip: Target="_level0.instance1"
    Movie Clip: Target="_level0.instance2"
    Movie Clip: Target="_level0.instance3"
    Movie Clip: Target="_level0.instance4"
    Movie Clip: Target="_level0.instance5"
    Movie Clip: Target="_level0.instance6"
    Movie Clip: Target="_level0.NAV_Master"
    Movie Clip: Target="_level0.NAV_Master.instance7"
    Movie Clip: Target="_level0.NAV_Master.SNAV_Master"
    Movie Clip: Target="_level0.NAV_Master.SNAV_Master.instance8"
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Button_Container"
    Movie Clip: Target="_level0.NAV_Master.SNAV_Master.instance9"
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Scroll_Down"
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Scroll_Down.States"
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Scroll_Down.States.instance10"
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Scroll_Down.instance11"
    Movie Clip: Target="_level0.NAV_Master.SNAV_Master.Scroll_Up"
    Variable _level0.NAV_Master.SNAV_Master.Scroll_Up.onRollOver
    = [function 'onRollOver']
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Scroll_Up.States"
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Scroll_Up.States.instance12"
    Movie Clip:
    Target="_level0.NAV_Master.SNAV_Master.Scroll_Up.instance13"
    Movie Clip: Target="_level0.NAV_Master.PNB_6"
    Variable _level0.NAV_Master.PNB_6.onRollOver = [function
    'onRollOver']
    Variable _level0.NAV_Master.PNB_6.onRollOut = [function
    'onRollOut']
    Variable _level0.NAV_Master.PNB_6.onRelease = [function
    'onRelease']
    Movie Clip: Target="_level0.NAV_Master.PNB_6.PNBS_6"
    Movie Clip: Target="_level0.NAV_Master.PNB_5"
    Variable _level0.NAV_Master.PNB_5.onRollOver = [function
    'onRollOver']
    Variable _level0.NAV_Master.PNB_5.onRollOut = [function
    'onRollOut']
    Variable _level0.NAV_Master.PNB_5.onRelease = [function
    'onRelease']
    Movie Clip: Target="_level0.NAV_Master.PNB_5.PNBS_5"
    Movie Clip: Target="_level0.NAV_Master.PNB_4"
    Variable _level0.NAV_Master.PNB_4.onRollOver = [function
    'onRollOver']
    Variable _level0.NAV_Master.PNB_4.onRollOut = [function
    'onRollOut']
    Variable _level0.NAV_Master.PNB_4.onRelease = [function
    'onRelease']
    Movie Clip: Target="_level0.NAV_Master.PNB_4.PNBS_4"
    Movie Clip: Target="_level0.NAV_Master.PNB_3"
    Variable _level0.NAV_Master.PNB_3.onRollOver = [function
    'onRollOver']
    Variable _level0.NAV_Master.PNB_3.onRollOut = [function
    'onRollOut']
    Variable _level0.NAV_Master.PNB_3.onRelease = [function
    'onRelease']
    Movie Clip: Target="_level0.NAV_Master.PNB_3.PNBS_3"
    Movie Clip: Target="_level0.NAV_Master.PNB_2"
    Variable _level0.NAV_Master.PNB_2.onRollOver = [function
    'onRollOver']
    Variable _level0.NAV_Master.PNB_2.onRollOut = [function
    'onRollOut']
    Variable _level0.NAV_Master.PNB_2.onRelease = [function
    'onRelease']
    Movie Clip: Target="_level0.NAV_Master.PNB_2.PNBS_2"
    Movie Clip: Target="_level0.NAV_Master.PNB_1"
    Variable _level0.NAV_Master.PNB_1.onRollOver = [function
    'onRollOver']
    Variable _level0.NAV_Master.PNB_1.onRollOut = [function
    'onRollOut']
    Variable _level0.NAV_Master.PNB_1.onRelease = [function
    'onRelease']
    Movie Clip: Target="_level0.NAV_Master.PNB_1.PNBS_1"
    Movie Clip: Target="_level0.NAV_Master.PNB_0"
    Variable _level0.NAV_Master.PNB_0.onRollOver = [function
    'onRollOver']
    Variable _level0.NAV_Master.PNB_0.onRollOut = [function
    'onRollOut']
    Variable _level0.NAV_Master.PNB_0.onRelease = [function
    'onRelease']
    Movie Clip: Target="_level0.NAV_Master.PNB_0.PNBS_0"

  • Dynamic  Instance for a MOVIE CLIP

    Hi Please help me!!!!!!!!!!
    I am creating dynamic Movie Clip using as3, but I don't have
    any idea about dynamic Instance name, please give me some idea that
    how I can assign Instance name for a movie clip.
    I am waiting your reply.
    Thanks
    Sushil Kumar

    You can assign a value to the name property of the MovieClip,
    but refering to the variable name of your MovieClip instance is
    preferable. This code illustrates the difference:

  • Setting dynamically instance id

    Hello
    Is this possible to set dynamically instance id for bpel process instance?
    I would like to implement following scenario: bpel process listen on aq/jms queue. Every message dequeued from this queue creates new bpel process instance. Message payload is XML element containing i.a. unique id which I would like to set as bpel process instance id. Is this possible? Is this possible to set dynamically instance id using Java API to create new BPEL process instances?
    Thanks
    Jarek

    you can't change the instance id but the engine allows you to assign an application id (or many application ids) to an bpel process instance.
    In the NormalizedMessage you could do:
    nm.setProperty(NormalizedMessage.CONVERSATION_ID, your-application-id)

  • Targeting Dynamic Text Box inside moviecip with variable

    Hi,
    How does one target a dynamic text box to change the border
    color inside of a movie clip? Example below which does not work
    theName = ("answerPrint" + arryCount);
    boxName = ("box" + (arryCount+1));
    _root.pagePrintPartA[theName][boxName].border = true;
    _root.pagePrintPartA[theName][boxName].borderColor =
    0x00cc66;

    Thanks for the reinforcement, but I should of indicated what
    was what:
    theName = ("answerPrint" + arryCount);// Name of Variable
    inside Dynamic Text Box Inside MovieClip
    boxName = ("box" + (arryCount+1));// Instance Name of Actual
    Dynamic Text Box Inside MovieClip
    _root.pagePrintPartA[theName][boxName].border = true;
    _root.pagePrintPartA[theName][boxName].borderColor =
    0xFF0000;
    By certifying this script you showed me wher I went wron (not
    seeing the forest from the trees). The last two lines should be:
    _root.pagePrintPartA[boxName].border = true;
    _root.pagePrintPartA[boxName].borderColor = 0xFF0000;
    I was targeting backwards. Thanks alot DazFaz.

  • Targetting an instance of a mc

    hello
    With AS2 I u sed to do  createEmptyMovieClip("name"+i, ..... ) to create multiple instances of an mc. I ocuuld then target these individual instances
    I am trying to do a similar thing in AS3 but am stuck.
    I can create movieclips (easy!) thus;
    var linkHolder:MovieClip = new MovieClip();
    var linkText:TextField = new TextField();
    and then add a reference thus:
    linkHolder.ref=i
    I can then get the "i" value when I roll over the link with a listener
    However, I want to target back to the link when I roll over it so I can change its formatting. How do I get at the moveclip/textfield that I just rolled over?
    I have tried various versions of:
    function overHandler(event:MouseEvent):void {
      all sorts of things go here so I can target the link I just rolled over - but none work!;
    Would really appreciate any pointers
    Thanks
    Edward

    Thanks for reply - am getting closer but still not there.
    I can trace (event.currentTarge) and it says object MovieClip and I can manipulate that clip. Now I want to get at the text that is inside the movieclip. I thought that would be...
    event.currentTarget.textHolder.defaultTextFormat=mTitle_fmt;
    but it generates the error shown below - any more ideas please?
    E
    function createVideoLinks():void{
    for (var i:int=0; i<externalXML.videoClip.length();i++){
    //build the arrays of link text and link destination
    trace (108+i*20);
    vidText=externalXML.videoClip.vTitle;
    vidLink=externalXML.videoClip.@vurl;
    var linkHolder:MovieClip = new MovieClip();
    var linkText:TextField = new TextField();
    linkText.defaultTextFormat=lInact_fmt;
    linkText.embedFonts=true;
    linkText.antiAliasType=AntiAliasType.ADVANCED;
    linkText.text=vidText+;
    linkText.height=19; linkText.autoSize=TextFieldAutoSize.LEFT;
    linkHolder.addChild(linkText);
    addChild(linkHolder);
    linkHolder.x=1; linkHolder.y=(108+i*21);
    linkHolder.buttonMode=true; //appears to give me back the correct cursor for links
    linkHolder.ref=i;
    //linkHolder.id=i;
    linkHolder.mouseChildren = false;
    linkHolder.addEventListener(MouseEvent.CLICK, clickHandler);
    linkHolder.addEventListener(MouseEvent.MOUSE_OVER, overHandler);
    function overHandler(event:MouseEvent):void {
    event.currentTarget.textHolder.defaultTextFormat=mTitle_fmt;
    I get this error code
    TypeError: Error #1010: A term is undefined and has no properties.
    at index001_fla::MainTimeline/overHandler()

  • Dynamic instance using subform

    Hi all,
      My requirement is to have a set of fields that needs to grow dynamically based on the input (at runtime). I wrapped those fields in a subform and in initialise event, i wrote a following logic.
    <subformname>.instanceManager.setInstances(variable)
    Variable will hold the no. of instance, which i am passing from context node. I have one more requirement, i am having a button in the form, if the user press the button, then the set of fields (wrapped in subform) needs to be add one more time in the form. I wrote a logic in Click event as,
    <subformname>.instanceManager.addInstance(1).
    My problem is, the form is showing as many instances (initially) and if i press the button, i am not able to get one more set of fields. If i remove the coding in initialise event (in subform), then if i press the button, its adding one more set of fields. Please help where i am going wrong.
    P.S.: I am using Formcalc and run at client
    Regards
    V Kumar

    Hi Norbert,
    I am using WDY Abap and not calling the form using FM. Whether i need to change the script coding. Please help in this regard.
    Regards,
    V Kumar

  • Reg dynamic instance

    hi guys,
    what ever you guys told is correct but in the create object the instance name of which type.
    CREATE OBJECT L_INST_ASY_CALL
    TYPE
    (LV_CONTROL).
    data: L_INST_ASY_CALL type <?>.
    reg,
    hari

    hi guys,
    what you told is working fine, after the creation of object when i call the method then its throwing error saying method does not exit in object class.
      DATA : LV_CONTROL   TYPE SEOCLSNAME,
            L_INST_ASY_CALL TYPE REF TO OBJECT,
            EXTERNAL_ID type /BOPF/CONF_KEY.
                CREATE OBJECT L_INST_ASY_CALL
                  TYPE
                  (LV_CONTROL).
                CALL METHOD L_INST_ASY_CALL->/A1SSPC/ITP_IF_TASKAUTO~ASYNC_START
                  EXPORTING
                    PROCESSID   = UUID_PARAMETER
                    TASKUUID    = UUID_TASK
                 IMPORTING
                   BAPIRETURN  = BAPIRETURN
                   EXTERNAL_ID = EXTERNAL_ID
                  CHANGING
                    PARAM_LIST  = ITAB_TEMP
    Error: method does not contain any method like ASYNC_START
    reg,
    hari

  • Change form target dynamically

    Hi all,
    I have a Struts form, declared as:
    <html:form method="POST" action="myaction" target="_top">
    This form uses the ActionForm validate. When the validate method returns no errors I need the Struts action to display the result page in the "_top" frame.
    BUT, when the validate method returns error(s), I need to re-display the same page in the SAME frame and let the Struts tag <errors/> display the error message(s). So target should be "_self".
    Does anyone can tell me how I should work this out, please!
    Thank you very much in advance!!

    Or another thought... (btw, the top frame shouldn't be named _top, as that is supposed to be a default target name meaning the top level window).. You could probably submit the frame to the top level window replacing both frames with another page that, based on the input, shows either the errored form in the bottom, or the success results in the top.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

  • Parallel Split Dynamic Instances

    HI,
    I have a requirement as below
    1)Requester will be having options to select the list of roles out of 10. If he selects 6 roles  from requester form and he submits ,BPM starts and it has to generate the  task (same UI) to all the  6 roles as selected by requester
    2)All the 6 roles users has to submit the form and final report has to go for approver.
    3) Now approver will decide whether to approve or reject.
    Now My concern is ,if it is standard fixed roles I will model all the related UI to all these 6 roles and end with parallel Join.So that it only send the task to approver only once all the roles users has submitted.
    But during run time if I pass those role names as a sting to use expression, will parallel split will send the tasks to all the roles? Will parallel join will wait till all the parallel task has been submitted and then it will send final task to approver. I know this is possible using CE 7.2 by selecting parallel loop option for the task. But our version is CE 7.1 EPH1.
    Can some suggest me whether we can meet this requirement in CE 7.1 or not.
    Regards,
    krishna

    hi,
    In that case ,if i have sent 10 roles as an use expression to one human activity and if any one role (user )  submits his task, all the 9 remaining tasks which is lying in different roles will disappear???
    In that case, cant tasks remain in there queue for 9 individual roles to submit there own task(instead of disappear there tasks,if one submits).So that once all the 10 roles completes there task Parallel join will merge and proceeds for another task. Please help me on this.
    regards,
    Krishnam

  • Dynamic instances

    Hi,
    Is it possible to create n JTextFields with the component name stored in String name[].?
    That is if i have the String arry name with the following elements,
    name[]
    tf1
    tf2
    tf3
    tf4
    tf5
    i want to create
    JTextField tf1 = new JTextField(20);
    JTextField tf2 = new JTextField(20);
    JTextField tf3 = new JTextField(20);
    JTextField tf4 = new JTextField(20);
    JTextField tf5 = new JTextField(20);
    But,
    i have written like
    JTextField name[0] = new JTextField(20);
    JTextField name[1] = new JTextField(20);
    JTextField name[2] = new JTextField(20);
    JTextField name[3] = new JTextField(20);
    JTextField name[4] = new JTextField(20);and this willnot work.
    Ganesh

    I wat a pgm like this, not for printing the component.
    import java.util.Vector;
    import javax.swing.*;
    import java.awt.*;
    class Ganesh extends JFrame
         Container con;
         Vector v ;
         public static void main(String[] s)
              new Ganesh();
    //System.out.println(v.get(9));
         Ganesh(){
              con = getContentPane();
              v= new Vector(1,1);
              for( int i = 0; i < 10; i++){
                   v.add( new JTextField(20));
              for( int i = 0; i < 10; i++){
                   con.add(v.get(i));
              setVisible(true);
    }

  • EM console error java.lang.exception no such target ?

    My database oracle 10g EM console getting error message java.lang.exception no such target.
    How to solve this error ?

    Hi,
    I have the same problem, and when looking for the sysman/log files I found the following erros reported:
    [oracle@dbserver log]$ tail emdb.nohup
    10/09/08 12:59:19 ## 1. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:19 ## 2. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:23 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:23 ## 1. newPage = /database/instance/sitemap/health
    10/09/08 12:59:23 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:23 ## 1. newPage = /database/instance/sitemap/health
    10/09/08 12:59:23 ## 2. newPage = /database/instance/sitemap/health
    10/09/08 12:59:28 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:28 ## 1. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:28 ## 2. newPage = /database/instance/sitemap/sitemap
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emoms.log
    2010-09-08 12:51:31,094 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2010-09-08 12:51:31,097 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2010-09-08 12:51:31,099 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2010-09-08 12:51:31,101 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.reports.em.RepIntg
    2010-09-08 12:51:31,102 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2010-09-08 12:51:31,135 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2010-09-08 12:51:31,137 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2010-09-08 12:51:31,139 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2010-09-08 12:51:31,141 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2010-09-08 12:51:31,143 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emoms.trc
    2010-09-08 12:51:31,094 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2010-09-08 12:51:31,097 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2010-09-08 12:51:31,099 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2010-09-08 12:51:31,101 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.reports.em.RepIntg
    2010-09-08 12:51:31,102 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2010-09-08 12:51:31,135 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2010-09-08 12:51:31,137 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2010-09-08 12:51:31,139 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2010-09-08 12:51:31,141 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2010-09-08 12:51:31,143 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emagent.trc
    2010-09-08 12:49:32 Thread-47082384 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2010-09-08 12:49:35 Thread-126417808 ERROR : (nmedmtm.c,626):Memory 0x0 encountered, expect struct_id=10502
    2010-09-08 12:49:35 Thread-126417808 ERROR emSDK.xml: ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist
    2010-09-08 12:49:35 Thread-126417808 WARN collector: putTgtColl aborted - null type or name
    2010-09-08 12:49:35 Thread-126417808 ERROR recvlets: Failed to remove target ORACLE_SID oracle_database (key BA9A34B2AFFFC3FA92AB311F36350213) from hashtable for recvlet tnmevr
    2010-09-08 12:49:35 Thread-126417808 ERROR recvlets: Failed to remove target ORACLE_SID oracle_database (key BA9A34B2AFFFC3FA92AB311F36350213) from hashtable for recvlet AQMetrics
    2010-09-08 12:49:35 Thread-126417808 WARN upload: Upload manager has no Failure script: disabled
    2010-09-08 12:49:35 Thread-40782736 ERROR upload: Error in uploadXMLFiles. Trying again in 123.00 seconds.
    2010-09-08 12:50:32 Thread-40782736 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2010-09-08 12:51:02 Thread-40782736 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emagent.log
    2010-09-08 11:35:15 Thread-58100624 target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2010-09-08 11:35:15 Thread-58100624 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 11:37:57 Thread-46816144 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 12:43:52 Thread-3336784 EMAgent normal shutdown (00703)
    2010-09-08 12:45:32 Thread-8911408 Starting Agent 10.1.0.6.0 from /oracle/product/102/db_1 (00701)
    2010-09-08 12:47:02 Thread-8911408 target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2010-09-08 12:47:02 Thread-8911408 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 12:47:02 Thread-8911408 fatal error parsing /oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, will be ignored (00405)
    2010-09-08 12:47:02 Thread-8911408 EMAgent started successfully (00702)
    2010-09-08 12:49:35 Thread-126417808 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    And when looking for this error on ML : "target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)"
    I found this document: "Target {database instance, oracle_database} is broken: cannot compute dynamic properties in time [ID 739993.1]"
    Which said:
    1. Stop the dbconsole
    ./emctl stop dbconsole
    2. Have a back up of the emd.properties file which is in <ORACLE_HOME>/Hostname_SID/sysman/config
    Increase the value of
    dynamicPropsComputeTimeout=60
    to
    dynamicPropsComputeTimeout=120
    3. Start the dbconsole
    ./emctl start dbconsole
    I follow the instructions and the problem was solved.
    post results
    Regards

  • EM Error : java.lang.Exception: No Such Target

    Hi All
    I have 10 databses in the server and getting this error only for the one database " java.lang.Exception: No Such Target "
    When i stop dbconsole and start it again then the problem will solve but the within a day or two again the same message is appearing.
    What would be the best solution for this?

    Hi,
    I have the same problem, and when looking for the sysman/log files I found the following erros reported:
    [oracle@dbserver log]$ tail emdb.nohup
    10/09/08 12:59:19 ## 1. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:19 ## 2. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:23 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:23 ## 1. newPage = /database/instance/sitemap/health
    10/09/08 12:59:23 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:23 ## 1. newPage = /database/instance/sitemap/health
    10/09/08 12:59:23 ## 2. newPage = /database/instance/sitemap/health
    10/09/08 12:59:28 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:28 ## 1. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:28 ## 2. newPage = /database/instance/sitemap/sitemap
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emoms.log
    2010-09-08 12:51:31,094 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2010-09-08 12:51:31,097 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2010-09-08 12:51:31,099 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2010-09-08 12:51:31,101 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.reports.em.RepIntg
    2010-09-08 12:51:31,102 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2010-09-08 12:51:31,135 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2010-09-08 12:51:31,137 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2010-09-08 12:51:31,139 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2010-09-08 12:51:31,141 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2010-09-08 12:51:31,143 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emoms.trc
    2010-09-08 12:51:31,094 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2010-09-08 12:51:31,097 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2010-09-08 12:51:31,099 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2010-09-08 12:51:31,101 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.reports.em.RepIntg
    2010-09-08 12:51:31,102 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2010-09-08 12:51:31,135 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2010-09-08 12:51:31,137 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2010-09-08 12:51:31,139 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2010-09-08 12:51:31,141 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2010-09-08 12:51:31,143 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emagent.trc
    2010-09-08 12:49:32 Thread-47082384 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2010-09-08 12:49:35 Thread-126417808 ERROR : (nmedmtm.c,626):Memory 0x0 encountered, expect struct_id=10502
    2010-09-08 12:49:35 Thread-126417808 ERROR emSDK.xml: ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist
    2010-09-08 12:49:35 Thread-126417808 WARN collector: putTgtColl aborted - null type or name
    2010-09-08 12:49:35 Thread-126417808 ERROR recvlets: Failed to remove target ORACLE_SID oracle_database (key BA9A34B2AFFFC3FA92AB311F36350213) from hashtable for recvlet tnmevr
    2010-09-08 12:49:35 Thread-126417808 ERROR recvlets: Failed to remove target ORACLE_SID oracle_database (key BA9A34B2AFFFC3FA92AB311F36350213) from hashtable for recvlet AQMetrics
    2010-09-08 12:49:35 Thread-126417808 WARN upload: Upload manager has no Failure script: disabled
    2010-09-08 12:49:35 Thread-40782736 ERROR upload: Error in uploadXMLFiles. Trying again in 123.00 seconds.
    2010-09-08 12:50:32 Thread-40782736 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2010-09-08 12:51:02 Thread-40782736 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emagent.log
    2010-09-08 11:35:15 Thread-58100624 target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2010-09-08 11:35:15 Thread-58100624 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 11:37:57 Thread-46816144 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 12:43:52 Thread-3336784 EMAgent normal shutdown (00703)
    2010-09-08 12:45:32 Thread-8911408 Starting Agent 10.1.0.6.0 from /oracle/product/102/db_1 (00701)
    2010-09-08 12:47:02 Thread-8911408 target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2010-09-08 12:47:02 Thread-8911408 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 12:47:02 Thread-8911408 fatal error parsing /oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, will be ignored (00405)
    2010-09-08 12:47:02 Thread-8911408 EMAgent started successfully (00702)
    2010-09-08 12:49:35 Thread-126417808 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    And when looking for this error on ML : "target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)"
    I found this document: "Target {database instance, oracle_database} is broken: cannot compute dynamic properties in time [ID 739993.1]"
    Which said:
    1. Stop the dbconsole
    ./emctl stop dbconsole
    2. Have a back up of the emd.properties file which is in <ORACLE_HOME>/Hostname_SID/sysman/config
    Increase the value of
    dynamicPropsComputeTimeout=60
    to
    dynamicPropsComputeTimeout=120
    3. Start the dbconsole
    ./emctl start dbconsole
    I follow the instructions and the problem was solved.
    post results
    Regards

  • ORA-12535: TNS:operation timed out on a win2000 Oracle instance

    Hi,
    i have a Oracle 8.1.5 instance on a WIN2000 PC.
    I can connect me to this database with sqlplus
    as long i stay on the PC (means i started the sqlplus
    on the same machine).
    When i try to connect from an other (unix-)system
    i get after a while (ca. 90 sec.) the error:
    ORA-12535: TNS:operation timed out
    tnsping works fine (answer comes back in one second)
    There are no firewalls or other "strange" things between
    the database and the failing client (on an other PC,
    also win2000, Oracle 8.1.5 everything works fine).
    Below you see the log with debug of the listener.
    I have also a trace on level SUPPORT but this is more
    than 1000 lines for just 1 or 2 TNSPINGs and one SQLPLUS
    connect. Due to this volume i decided not to attach it to
    this initial mail.
    Does any one have some advice or experiences ?
    Please advice.
    Best regards,
    [email protected]
    ======================================================================
    TNSLSNR for 32-bit Windows: Version 8.1.5.0.0 - Production on 19-APR-01 09:07:26
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Die System-Parameterdatei ist D:\Oracle81\network\admin\listener.ora
    Log-Meldungen wurden geschrieben in: D:\Oracle81\network\log\listener.log
    Listen auf: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    19-APR-01 09:07:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
    19-APR-01 09:08:04 * service_register * MDR50 * 0
    19-APR-01 09:08:11 * trc_level * 0
    19-APR-01 09:08:16 * trc_level * 0
    ---------------- BEGIN TNSLSNR DEBUG ---------------------
    *** ENDPOINT #1 **
    Name:
    Address: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
    Presentation: ttc
    Session: NS
    Info = <none>
    Display: <none>
    Load: 0
    Handler ID = 80FFE377148D-41F8-AAC2-09A8BD4BE682
    Oracle SID = <none>
    Flags:
    ** INSTANCE #1 **
    INSTANCE_NAME: MDR50
    SERVICE_NAMEs: MDR50
    INSTANCE LOAD: 0
    INSTANCE ID: 4CC2FCDA6819-40D2-839D-F1628CC0BCA2
    FLAGS: LOCAL
    VERSION: 81500
    NUM. HANDLERS: 2
    Handler Matrix: (NS):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 2
    Handler Matrix: (RAW):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 0
    SERVICE HANDLERS:
    Name: DEDICATED
    Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=oracle)(ENVS=)(ARGV0=oracleMDR50)(ARGS='(LOCAL=NO)'))
    Presentation: <none>
    Session: <none>
    Info = LOCAL SERVER
    Display: DEDICATED SERVER
    Load: 0
    Handler ID = 83CB008C17A3-4E48-94DA-2765A62AAD7E
    Oracle SID = <none>
    Flags: BEQUEATH
    Name: DEDICATED
    Address: (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleMDR50)(ARGS='(DESCRIPTION=(LOCAL=no)(ADDRESS=(PROTOCOL=BEQ)))'))
    Presentation: <none>
    Session: NS
    Info = LOCAL SERVER
    Display: DEDICATED SERVER
    Load: 0
    Handler ID = D9E0EC298D16-40FA-935F-7B989D139666
    Oracle SID = MDR50
    Flags: BEQUEATH CONNECTED DYNAMIC
    ** INSTANCE #2 **
    INSTANCE_NAME: PLSExtProc
    SERVICE_NAMEs: PLSExtProc
    INSTANCE LOAD: 0
    INSTANCE ID: 000000000000-0000-0000-000000000000
    FLAGS: LOCAL
    NUM. HANDLERS: 1
    Handler Matrix: (NS):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 1
    Handler Matrix: (RAW):
    tcp nmp spx raw ipc beq lu62 tcps ANY
    ttc 0 0 0 0 0 0 0 0 0
    giop 0 0 0 0 0 0 0 0 0
    http 0 0 0 0 0 0 0 0 0
    ro 0 0 0 0 0 0 0 0 0
    ANY 0 0 0 0 0 0 0 0 0
    SERVICE HANDLERS:
    Name: DEDICATED
    Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=extproc)(ENVS=)(ARGV0=extprocPLSExtProc)(ARGS='(LOCAL=NO)'))
    Presentation: <none>
    Session: <none>
    Info = LOCAL SERVER
    Display: DEDICATED SERVER
    Load: 0
    Handler ID = 56D4DAD11082-4097-992C-AF7F8067D858
    Oracle SID = <none>
    Flags: BEQUEATH
    ---------------- END TNSLSNR DEBUG ---------------------
    19-APR-01 09:08:28 * debug * 0
    19-APR-01 09:08:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
    19-APR-01 09:09:57 * ping * 0
    19-APR-01 09:10:16 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55678)) * establish * MDR50 * 0
    19-APR-01 09:14:39 * trc_level * 0
    19-APR-01 09:14:58 * trc_level * 0
    19-APR-01 09:15:06 * trc_level * 0
    19-APR-01 09:16:16 * trc_level * 0
    19-APR-01 09:16:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
    19-APR-01 09:16:33 * trc_level * 0
    19-APR-01 09:17:09 * ping * 0
    19-APR-01 09:17:51 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * establish * MDR50 * 0
    19-APR-01 09:18:06 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * service_update * MDR50 * 0
    19-APR-01 09:23:33 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=deep-thought)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * establish * MDR50 * 0
    19-APR-01 09:28:09 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * service_update * MDR50 * 0
    19-APR-01 09:28:25 * ping * 0
    null

    Rather than
    MyDB.10gXE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    why not go with the bulk standard tnsnames entry as follows:-
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    I don't think the qualified MyDB.10gXE name is adding any value and may well confuse things.
    Although setting it for my environment does work
    C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
    005 18:06:48
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen
    -lap.us.oracle.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_
    NAME = XE)))
    OK (40 msec)
    OK - when I use your entry pasted directly from the above, with my server name, I get the following problem:-
    C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
    005 18:07:43
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION =
    TNS-12533: TNS:illegal ADDRESS parameters
    I added back some spaces, as indicated by the . below, and it works fine
    MyDB.10gXE =
    (DESCRIPTION =
    .(ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen-lap.us.oracle.com)(PORT = 1521))
    .(CONNECT_DATA =
    .(SERVER = DEDICATED)
    .(SERVICE_NAME = XE)
    .)

  • Dynamic creation of ComponentUsage

    Hi people,
    I want to reuse a view (ViewA) in different views (ViewB, ViewC, ViewD).ViewA has a quite complex logic, so it is necessary to outsource this view.  Not only the logic, but also the count of UIElements and contextelements is quite large, for this I don't want to implement this part redundant in the views A, C and D.
    I have to use ViewA in a table in  the TablePopin UIElement. Every line of the table should have its own instance of ViewA. Is that possible?
    My idea is it, to put the view in an own component. For every tableline I need an instance of the componentUsage. My problem is now, that I'm not able to create at runtime a ComponentUsage and at designtime I don't know how many instances I need. Is it possible in webdynpro to create dynamic instances of ComponentUsage?
    If you know an other way, that prevents me from implementing the view and its logic more times, please tell me!
    Thanks in  advance,
    Thomas Morandell

    Hi Thomas,
    just for clarification. Principally it is possible in Web Dynpro to dynamically create new component usages of the same type like an existing, statically declared one. This means after having defined a component usage of type ISomeComp (component interface definition) you can dynamically create new component usages which all point to the same component interface definition ISomeComp:
    wdThis.wdGetISomeCompUsage().createComponentUsageOfSameType();
    But this dynamic creation approach implies, that you must also embed the component interface view of this component usage to the view composition dynamically; and this is (unfortunately) quite cumbersome and complicated based on the existing Web Dynpro Java API (it is not yet optimized for a simple dynamic view composition modification.
    Additionally, like Valery pointed out, the dynamic creation of new component usages is not compatible with table popins.
    Regards, Bertram

Maybe you are looking for