Circular Dependencies Question

I want to see if anybody has some good ideas on how to solve this.
I have about 20,000 slocs in one main package and about 5 sub-packages.
All of the dialogs in the system originally set the parent component to null(i.e JOptionPane.showConfirmDialog(null,blah...). Which can create problems on some platforms of "loosing" the dialog...
The class that is the frame is in the main package, and it uses things in all of the sub-packages, the sub packages currently do not import the main package. Is there a way set the main frame as the parent of all the dialogs in the sub packages without creating a circular dependecy?
My idea was to make the main frame a singleton, so MainFrame.getInstance() can be the parent, but this doesn't eliminate the circular dependency. Same thing with passing a reference through the sub packages(which I would like to avoid).
Any ideas?

Depending on where you're constructing your dialogs, you may be able to loop on Component.parent() until you find a Dialog or Frame.

Similar Messages

  • Circular dependencies reference in Java

    Hi all,
    I would liek to ask that if there were aome effective way of overcoming the circular reference problem is Java ... that is I hav e a class A which has a reference to class B, whereas class B has a reference to class A too, it seems like a "deadlock" situation....class B does not know class A can not compile, whereas class A also know nothing about class B .
    I used to over come this by a stupid trick, that is out comment the class A reference is classB first let it compiled and produce a class file ... after that compile class A, add in class A reference in class B again...seems work :)
    public class classB{
    private classA clsA;
         public classB(classA clsA){
              this.clsA = clsA;
    public class classA{
         private classB clsB;
         public classA(){
              clsB = new classB(this);
    }I used to overcome this this C++ by the class forward method like using pointer to declare the reference....
    But in Java is there an effective way ??? Plz help !!!
    p.s. It is said that we should never let circular dependency occurs (bad programming ) ??? but in some situation we really need that....

    Isn't a doubly linked list implemented with just a
    Node class that has references to previous and next
    node? I.e. it's not a case where class A knows about
    B, and B knows about A??My point is that circular dependencies are quite common in computer science and I've never heard they're intrinsically bad and should be avoided.
    Regarding the A knows about B, and B knows about A case. If you can avoid it basically you've lowered the complexity which is good. But it can also be a question of A is defined in terms of B, and B is defined in terms of A and that could be an elegant recursive definition with low complexity which is good.

  • Linux JVM: How to load shared libraries with mutual/circular dependencies

    Hi,
    I am using the API
    System.loadLibrary(String name)
    to dynamically link shared libaries to Linux JVM.
    The shared libraries has complex circular symbol dependencies among them.
    I am not able to load shared libraries due to java.lang.UnsatisfiedLinkError.
    Any ideas on how a number of shared libraries with interdependent realtionships
    could be successfully linked in to the Linux JVM?
    Thanks,
    Soumen.
    Background
    ===========
    Successful execution of native code within Java virtual machine in a
    host platform, has two necessary prerequisites:
    Prerequisite 1: The native code is written to the JNI specification
    Prerequisite 2: The native code is dynamically linked with Java virtual
    machine.
    The second step is achieved via simple Java interface, System.loadLibrary:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#loadLibrary(java.lang.String)
    However, implementation of this interface is highly platform dependent
    in regards to exact nature of dynamic linking process.
    Tests
    =====
    I made three shared libraries libfeatureA.so, libfeatureB.so and libfeatureC.so.
    Feature A and Feature B are mutually dependent on each other (i.e cicular
    dependencies between libfeatureA.so, libfeatureB.so) whereas libfeatureC.so
    has no external dependencies.
    Case 1
    I could link libfeatureC.so with java.
    Case 2
    Java failed to resolve circular dependency between libfeatureA.so, libfeatureB.so
    resulting in linking failure. There may be repackaging workarounds which I have
    not yet explored.
    Java source code
    ================
    class TestLoadLibrary
    static
    System.loadLibrary("featureB");
    System.loadLibrary("featureA");
    System.loadLibrary("featureB");
    public static void main(String[] args)
    System.out.println("In TestLoadLibrary.main()");
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /homes/soumen/work/event/featureB/libfeatureB.so.1.0: /homes/soumen/work/ev B.so.1.0: undefined symbol: featureA_func2
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1737)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1662)
    at java.lang.Runtime.loadLibrary0(Runtime.java:817)
    at java.lang.System.loadLibrary(System.java:986)
    at TestLoadLibrary.<clinit>(TestLoadLibrary.java:5)

    The use of "dlopen() application programming" to achieve dynamic link closure works if there are
    no circular dependencies. For example, I have the following dependency:
    libfeatureD.so ==> libfeatureC.so
    Even if I call Java APIs in correct dependency order, i.e.,
    System.loadLibrary("featureC");
    System.loadLibrary("featureD");
    there would be java.lang.UnsatisfiedLinkError for call System.loadLibrary("featureD").
    Now, I have a JNI method implementation, which makes native API call in same dependency order:
    dlopen("libfeatureC.so", RTLD_LAZY|RTLD_GLOBAL);
    dlopen("libfeatureD.so", RTLD_LAZY|RTLD_GLOBAL);
    and now System.loadLibrary calls succeed. Note that I had to set environment
    variable LD_LIBRARY_PATH so that dlopen call would find libraries to load.
    In other words, from a JNI programming point of view, "linking chasm" has been crossed.
    I am looking at circular dependency issue, i.e.,
    libfeatureA.so <==> libfeatureB.so
    There may be library repackaging workaround.
    If anybody knows any workaround, please post.
    -Soumen Sarkar
    JNI code
    ========
    #include <jni.h>
    #include "TestLoadLibrary.h"
    #include <stdio.h>
    #include <string.h>
    #include <dlfcn.h>
    JNIEXPORT void JNICALL Java_TestLoadLibrary_libLoadNative
    (JNIEnv * jenv, jclass class, jobjectArray libNames)
    printf("native: In TestLoadLibrary.libLoadNative()\n");
    char linuxLibName[1024];
    jsize idx = 0;
    jsize nLibs = (*jenv)->GetArrayLength(jenv, libNames);
    for(idx = 0; idx < nLibs; ++idx)
    /* obtain the current object from the object array */
    jobject myObject = (*jenv)->GetObjectArrayElement(jenv, libNames, idx);
    /* Convert the object just obtained into a String */
    const char libName = (jenv)->GetStringUTFChars(jenv,myObject,0);
    strcpy(linuxLibName, "lib");
    strcat(linuxLibName, libName);
    strcat(linuxLibName, ".so");
    printf("\nnative: Trying to open lib with name %s\n", linuxLibName);
    void* handle = dlopen(linuxLibName, RTLD_LAZY|RTLD_GLOBAL);
    if(handle == 0)
    fputs ("\nnative: Could not load lib\n", stderr);
    fputs (dlerror(), stderr);
    else
    printf("\nnative: Loaded lib %s\n", linuxLibName);
    /* Free up memory to prevent memory leaks */
    (*jenv)->ReleaseStringUTFChars(jenv, myObject, libName);
    return;

  • Circular dependencies and structure

    lots of performance problems are caused by convoluted code. circular dependencies between classes, especially large loops lead to problems during the runtime and maintenance. there were no tools on the market that would focus on structural stability of Java software before Small Worlds. it was just released a few weeks ago. check out www.thesmallworlds.com - there is nothing quite like it

    Well, it seems he has got an email address:
    [email protected]
    Could everybody please send thousand copies of an email to this address?

  • Circular dependencies in managed beans

    Hi,
    I have been using JSF for a couple of weeks now and am wondering about an IoC specific issue that arises when using managed beans. The basic problem is that, when I create a circular dependency between two managed beans, I get StackOverflow errors. My beans are declared in the JSF configuration as both having one managed-property of which the value contains an EL expression pointing to the other bean. (BTW: the two beans each back a page in a Master-Detail scenario and need to pass some information to each other)
    The stack trace seems to denote that the cause of this problem is the separation of the EL lookup and the ManagedBeanBuilder. As this seems to be a pretty basic configuration, I am a bit flabbergast that JSF trips on this. How should I solve this?
    -mik
    PS: Just to cut of that path: I do not want to call FacesContext.getCurrentContext() to fill up the dependencies after the setup was done. Apart from really hurting my Karma, it would also destroy the POJO-ness of these components and make unit testing a whole lot more difficult�

    Use SessionMap to communicate between beans in one session.
    Also see http://balusc.xs4all.nl/srv/dev-j2p-com.html

  • Loadjava error with circular dependencies?

    I attempted to load an in-house jar file and several errors were generated. The majority of them are similar to the following:
    ORA-29534: referenced object YYYORA8I.com/osi/nx/fw/asn/AbstractType could not be resolved
    I tried to load some of the classes outside of the jar file and have recieved the following:
    loadjava -user yyyOra8i/xyz -r -v -f ComponentId.class
    initialization complete
    loading : com/osi/nx/fw/asn/ComponentId
    creating : com/osi/nx/fw/asn/ComponentId
    resolver :
    resolving: com/osi/nx/fw/asn/ComponentId
    errors : com/osi/nx/fw/asn/ComponentId
    ORA-29534: referenced object YYYORA8I.com/osi/nx/fw/asn/AbstractType could not be resolved
    loadjava: 1 errors
    So I tried to load AbstractType.class and got:
    loadjava -user yyyOra8i/xyz -r -v -f AbstractType.class
    initialization complete
    loading : com/osi/nx/fw/asn/AbstractType
    creating : com/osi/nx/fw/asn/AbstractType
    resolver :
    resolving: com/osi/nx/fw/asn/AbstractType
    errors : com/osi/nx/fw/asn/AbstractType
    ORA-29534: referenced object YYYORA8I.com/osi/nx/fw/asn/ComponentId could not be resolved
    loadjava: 1 errors
    ComponentId.class fails to load because of AbstractType.class. AbstractType.class fails to load because of ComponentId.class. Both these classes reside in the jar file.
    Any thoughts?
    Thanks.

    Give javasyspriv role to scott and execute next command: loadjava -u scott/tiger@instance -v -resolve iText-2.1.3.jar

  • Questions on using a SOAP web service's data in a Crystal Reports report

    I'm attempting to create a report using CR 2008, accessing data from a SOAP web service. I've run into a few problems, and need some advice.
    1) CR doesn't seem to support WSDL files that use relative URI imports (for example, I have a relatively complicated WSDL file that imports other WSDL files and schemas using relative URI locations). To solve this problem, I have downloaded all of the files to my local hard drive, and changed the "location" attributes to point to local files. Is there any other solution to this problem?
    2) CR doesn't seem to support circular references within schema files. To solve this problem, I have removed circular references from my local schema files. Of course, my actual web service will still potentially return data structures with these circular dependencies. Is there any other solution to this problem?
    3) CR doesn't seem to support request documents that allow for arrays of elements. For example, my schema allows the user to specify an array of Instruments that should be returned by the web service. In the meantime, I have changed the schema to only specify single instances of the Instrument element in the request. Is there any other solution to this problem?
    4) CR doesn't seem to support empty values for optional attributes that are specified in the schema. So, when the "Enter Values" parameter form appears, I am required to enter values for these attributes, even though they are listed as optional in the schema. To avoid this problem, I have commented out the optional attribute values in the schema. Is there any other solution to this problem?
    5) When the schema specifies that a value is based on a restricted simple (string) type, the CR parameter form shows a drop list with ellipses (...), but the drop list does not contain the enumerated types specified in my schema. Instead, I must manually enter a value. Do you know of any reason why the drop list is not populated?
    6) The SOAP response document from my web service is relatively complicated. So, in the "Data" page of the Standard Report Creation Wizard, each and every XML element level of the response document listed in the schema is shown as a separate entry. If I choose just the top level element ("fetchInstrumentSetResponse"), then very little data is shown on the next page of the wizard (only the ID attribute). But, if I select each and every element type from the response document, CR prompts me for the request document parameters for each row I have selected (I see the same form 30+ times), even though there really should only be a single SOAP request to the web service to return this response document. It seems to be treating each of these elements as a separate "database table", with a different query string for each. Am I using this feature incorrectly?
    If you can point me to somewhere in the documentation that handles this in more detail, that would be great (all I could find were the step-by-step instructions on how to connect to a web service as a data source).
    Thanks!

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with your directly

  • How to check circular reference in data of millions of rows

    Hi all,
    I am new as an oracle developer.
    I have a table(say table1) of hierarchical data with columns child_id and parent_id. The table has around 0.5 million records. There are around 0.2 million root level records are present.
    I need to update some (the number variies on different conditions, might differ from 50K to 0.4 million) of the parent_ids from other table only if that do not cause any circular reference in data of table1.
    I am using Oracle9i.
    The approach I have tried is:
    I copied all data from table1 to a work table table3. Update the parent_id on columns that matches the condition and updated a column source_table to table2.
    I copied all the child_id from table2 that are to be updated into another table table4 and built tree for each of those childs. If it builds the tree successfully updated a column is_circular in the table3 to 0 and then deleted the child_id from table4.
    This whole process needs to run recursively until no tree is built successfully in an iteration.
    But this process is running slow and at the rate it is executing it would run for days for the 0.3 million records.
    Please suggest a better way to do this.
    The code I am using is :
    INSERT /*+ append parallel (target,5) */
    INTO table3 target
    select /*+ parallel (src,5) */
    child_id, parent_id, 'table1' source_table,null
    from table1 src;
    INSERT INTO table4
    select distinct child_id, parent_id
    from table2
    where status_cd is null;
    commit;
    Update dtable3 a
    set (parent_id,source_table) = (select parent_id,'table2' source_table
    from table4 b
    where b.child_id = a.child_id);
    WHILE v_loop_limit<>v_new_count
    LOOP
    select count(1)
    into v_loop_limit
         from table4;
    -+-----------------------------------------------------------
    --| You need to actually traverse the tree in order to
    --| detect circular dependencies.
    +-----------------------------------------------------------           
    For i in 1 .. v_new_count
    BEGIN
    select child_id
    into v_child_id from(
    select child_id, row_number() over (order by child_id) pri from table4)
    where pri = i;
    SELECT COUNT (*) cnt
    INTO v_cnt
    FROM table3 dl
    START WITH dl.child_id = v_child_id
    CONNECT BY PRIOR dl.child_id = dl.parent_id ;
    UPDATE table3SET is_circular = '0'
    where child_id= v_child_id
    and source_table = 'table2';
    delete from table3
    where child_id = v_child_id;
    select count(1)
    into v_new_count
         from table4;
    COMMIT;
    EXCEPTION WHEN e_infinite_loop
    THEN dbms_output.put_line ('Loop detected!'||v_child_id);
    WHEN OTHERS THEN
         dbms_output.put_line ('Other Exceptions!');
    END;
    END LOOP;
    END LOOP;
    Thanks & Regards,
    Ruchira

    Hello,
    First off, if you're so new to a technology why do you brush off the first thing an experienced, recognized "guru" tells you? Take out that WHEN OTHERS ! It is a bug in your code, period.
    Secondly, here is some code to try. Notice that the result depends on what order you do the updates, that's why I run the same code twice but in ASCENDING or DESCENDING order. You can get a circular reference from a PAIR of updates, and whichever comes second is the "bad" one.drop table tab1;
    create table TAB1(PARENT_ID number, CHILD_ID number);
    create index I1 on TAB1(CHILD_ID);
    create index I2 on TAB1(PARENT_ID);
    drop table tab2;
    create table TAB2(PARENT_NEW number, CHILD_ID number);
    insert into TAB1 values (1,2);
    insert into TAB1 values (1,3);
    insert into tab1 values (2,4);
    insert into TAB1 values (3,5);
    commit;
    insert into TAB2 values(4,3);
    insert into TAB2 values(3,2);
    commit;
    begin
    for REC in (select * from TAB2 order by child_id ASC) LOOP
      merge into TAB1 O
      using (select rec.child_id child_id, rec.parent_new parent_new from dual) n
      on (O.CHILD_ID = N.CHILD_ID)
      when matched then update set PARENT_ID = PARENT_NEW
      where (select COUNT(*) from TAB1
        where PARENT_ID = n.CHILD_ID
        start with CHILD_ID = n.PARENT_NEW
        connect by CHILD_ID = prior PARENT_ID
        and prior PARENT_ID <> n.CHILD_ID) = 0;
    end LOOP;
    end;
    select distinct * from TAB1
    connect by PARENT_ID = prior CHILD_ID
    order by 1, 2;
    rollback;
    begin
    for REC in (select * from TAB2 order by child_id DESC) LOOP
      merge into TAB1 O
      using (select rec.child_id child_id, rec.parent_new parent_new from dual) n
      on (O.CHILD_ID = N.CHILD_ID)
      when matched then update set PARENT_ID = PARENT_NEW
      where (select COUNT(*) from TAB1
        where PARENT_ID = n.CHILD_ID
        start with CHILD_ID = n.PARENT_NEW
        connect by CHILD_ID = prior PARENT_ID
        and prior PARENT_ID <> n.CHILD_ID) = 0;
    end LOOP;
    end;
    select distinct * from TAB1
    connect by PARENT_ID = prior CHILD_ID
    order by 1, 2;One last thing, be sure and have indexes on child_id and parent_id in your main table!

  • Software Component Dependencies PI 7.1

    Hi experts,
    I'm work with SAP NetWeaver PI 7.1 and I have two scenarios with ccBPM to implement an interface from SCV B to SCV A, and another interface from SCV B to SCV A.
    For the visibility of metadata between SCV have defined a dependency in SCV A from SCV B. In this way there is no problem to implement BPM Service Interfaces in the SCV A. But now I need to define the dependency of SCV B from SVC A, to implement BPM services interfaces of the SCV B.
    The problem when defining the dependence of the SVC B for SVC A the following error message:
    Creating dependency from //SXD061/sld/active:SAP_SoftwareComponent.ElementTypeID="01200615320200007523",Name="SAP_APPL",Vendor="sap.com",Version="600" to //SXD061/sld/active:SAP_SoftwareComponent.ElementTypeID="0",Name="SIP",Vendor="roca",Version="2.0" of type InstallationTime would create a circle. Circular dependencies are not allowed.
    Any ideas?
    Thanks,
    Jose.

    Hi Patrek,
    How could redesign the SWC structures?
    My scenario is:
    (SWC A is 3rt Party system)
    (SWC B is SAP ERP system)
    1 - Create Sales Order from SWC A to SWC B with ccBPM (file to BAPI, with file for acknowledge from BAPI response). By convention, the integration process developed in the destination SWC.
    --> For not duplicate the metadata in SWC B, define SWC dependecy with SWC A. Perfect, don't create data type's and message type's in SWC B.
    2 - Create Invoice from SWC B to SWC A with RFC Lookup in mapping. By convention, the mapping developed in the destination SWC.
    --> For not duplicate the metadata in SWC A, define SWC dependency with SWC B... Bad, "Circular dependencies are not allowed". The workaround is import RFC in SWC A that is not SAP System.
    I would like to find a consistent organization and that facilitate the maintenance, but I could not. Any ideas?
    Thanks,
    Jose.

  • Circular reference during serialization error

    I am getting the following error when invoking an operation on my web service that returns a 'Make' object:
    ERROR OWS-04046 circular reference detected while serializing: com.edmunds.vehicle.definition.Make circular reference detected while serializing: com.edmunds.vehicle.definition.Make
    I am running oc4j-101310.
    I can successfully call a 'createMake' operation as it returns 'void' so i know the WS is deployed correctly. The only values I am using to create the make are "Make.name" & "Manufacturer.name" so there isn't much to it. I know there are object graphs with 'models' and a parent reference to 'Manufacturer so I don't know if this has anything to do with it.
    One weird thing is that this worked the first time i deployed it but then started breaking on subsequent re-deployments (maybe I'm smoking crack)...
    Any help is appreciated!!
    Make object:
    public class Make implements Serializable {
    private Long id;
    private Set models;
    private String name;
    private Manufacturer manufacturer;
    public Set getModels() {
    return models;
    public void setModels(Set models) {
    this.models = models;
    public void setName(String name) {
    this.name = name;
    public String getName() {
    return name;
    public void setManufacturer(Manufacturer manufacturer) {
    this.manufacturer = manufacturer;
    public Manufacturer getManufacturer() {
    return manufacturer;
    public void setId(Long id) {
    this.id = id;
    public Long getId() {
    return id;
    Here is the SOAP request:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.matchbox.edmunds.com/">
    <soapenv:Header/>
    <soapenv:Body>
    <ws:findMakeElement>
    <ws:Long_1>22</ws:Long_1>
    </ws:findMakeElement>
    </soapenv:Body>
    </soapenv:Envelope>
    Here is the SOAP response:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://ws.matchbox.edmunds.com/" xmlns:ns1="http://definition.vehicle.edmunds.com/" xmlns:ns2="http://www.oracle.com/webservices/internal/literal" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (circular reference detected while serializing: com.edmunds.vehicle.definition.Make)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Here is my WSDL:
    <?xml version="1.0" encoding="UTF-8" ?>
    <definitions
    name="VehicleService"
    targetNamespace="http://ws.matchbox.edmunds.com/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://ws.matchbox.edmunds.com/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:tns0="http://definition.vehicle.edmunds.com/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns1="http://www.oracle.com/webservices/internal/literal"
    >
    <types>
    <schema elementFormDefault="qualified" targetNamespace="http://definition.vehicle.edmunds.com/"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.oracle.com/webservices/internal/literal"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://definition.vehicle.edmunds.com/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <import namespace="http://ws.matchbox.edmunds.com/"/>
    <import namespace="http://www.oracle.com/webservices/internal/literal"/>
    <complexType name="Make">
    <sequence>
    <element name="manufacturer" nillable="true" type="tns:Manufacturer"/>
    <element name="models" nillable="true" type="ns1:set"/>
    <element name="name" nillable="true" type="string"/>
    <element name="id" nillable="true" type="long"/>
    </sequence>
    </complexType>
    <complexType name="Manufacturer">
    <sequence>
    <element name="makes" nillable="true" type="ns1:set"/>
    <element name="name" nillable="true" type="string"/>
    <element name="id" nillable="true" type="long"/>
    </sequence>
    </complexType>
    </schema>
    <schema elementFormDefault="qualified" targetNamespace="http://www.oracle.com/webservices/internal/literal"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:tns="http://www.oracle.com/webservices/internal/literal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <import namespace="http://ws.matchbox.edmunds.com/"/>
    <import namespace="http://definition.vehicle.edmunds.com/"/>
    <complexType name="set">
    <complexContent>
    <extension base="tns:collection">
    <sequence/>
    </extension>
    </complexContent>
    </complexType>
    <complexType name="collection">
    <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item" type="anyType"/>
    </sequence>
    </complexType>
    </schema>
    <schema elementFormDefault="qualified" targetNamespace="http://ws.matchbox.edmunds.com/"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://definition.vehicle.edmunds.com/"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://ws.matchbox.edmunds.com/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <import namespace="http://www.oracle.com/webservices/internal/literal"/>
    <import namespace="http://definition.vehicle.edmunds.com/"/>
    <element name="createMakeElement">
    <complexType>
    <sequence>
    <element name="String_1" nillable="true" type="string"/>
    <element name="String_2" nillable="true" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="createMakeResponseElement">
    <complexType>
    <sequence/>
    </complexType>
    </element>
    <element name="findMakeElement">
    <complexType>
    <sequence>
    <element name="Long_1" nillable="true" type="long"/>
    </sequence>
    </complexType>
    </element>
    <element name="findMakeResponseElement">
    <complexType>
    <sequence>
    <element name="result" nillable="true" type="ns1:Make"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="RemoteTestVehicleServiceWS_createMake">
    <part name="parameters" element="tns:createMakeElement"/>
    </message>
    <message name="RemoteTestVehicleServiceWS_createMakeResponse">
    <part name="parameters" element="tns:createMakeResponseElement"/>
    </message>
    <message name="RemoteTestVehicleServiceWS_findMake">
    <part name="parameters" element="tns:findMakeElement"/>
    </message>
    <message name="RemoteTestVehicleServiceWS_findMakeResponse">
    <part name="parameters" element="tns:findMakeResponseElement"/>
    </message>
    <portType name="RemoteTestVehicleServiceWS">
    <operation name="createMake">
    <input message="tns:RemoteTestVehicleServiceWS_createMake"/>
    <output message="tns:RemoteTestVehicleServiceWS_createMakeResponse"/>
    </operation>
    <operation name="findMake">
    <input message="tns:RemoteTestVehicleServiceWS_findMake"/>
    <output message="tns:RemoteTestVehicleServiceWS_findMakeResponse"/>
    </operation>
    </portType>
    <binding name="HttpSoap11Binding" type="tns:RemoteTestVehicleServiceWS">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="createMake">
    <soap:operation soapAction="http://ws.matchbox.edmunds.com//createMake"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="findMake">
    <soap:operation soapAction="http://ws.matchbox.edmunds.com//findMake"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="VehicleService">
    <port name="HttpSoap11" binding="tns:HttpSoap11Binding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>

    Graph and Circular dependencies cannot be model with document-literal message format with POJO development style. You will need to invent your own model to break the cycle and uses a mechanism similar to href, as with RPC-encoded message format.
    All the best,
    -Eric

  • SQL to find the object dependencies

    Is there any sql that can fetch all the dependencies information for any given object ++recursively++. The example given by oracle creates some storedproc/tables to get this info. But i believe that some oracle-gurus should be able to accomplish this using sql only.
    thanks in advance.

    But i believe that some oracle-gurus should be able to accomplish this using sql only.Interesting. Why do you believe this? Do you think we know more about the Oracle database than Oracle itself?
    The problem is, Java. The introduction of Java into the database also introduced circular dependencies. These are not resolvable by tree-walking the DBA_DEPENDENCIES view. So, if you're not using Java then you're laughing. But if you are using Java in the database then I'm afraid you'll just have to build those tables.
    Cheers, APC

  • Locale problem with circular dependancies

    locale -a output
    $ locale -a
    C
    POSIX
    el_GR
    el_GR.iso88597
    el_GR.utf8
    greek
    locale output
    $ locale
    locale: Cannot set LC_ALL to default locale: No such file or directory
    LANG=C
    LC_CTYPE="C"
    LC_NUMERIC=en_US.utf8
    LC_TIME=en_US.utf8
    LC_COLLATE=C
    LC_MONETARY=en_US.utf8
    LC_MESSAGES="C"
    LC_PAPER="C"
    LC_NAME="C"
    LC_ADDRESS="C"
    LC_TELEPHONE="C"
    LC_MEASUREMENT=en_US.utf8
    LC_IDENTIFICATION="C"
    LC_ALL=
    locale-gen output
    # locale-gen
    Generating locales...
    el_GR.UTF-8... done
    el_GR.ISO-8859-7... done
    en_US.UTF-8...circular dependencies between locale definitions
    In /etc/locale.gen i have uncomment these 4: "el_GR.UTF-8", "el_GR ISO-8859-7", "en_US.UTF-8" and "en_US ISO-8859-1" (i have triple check that)
    and in /etc/locale.conf i have these 2 lines:
    LANG="en_US"
    LC_COLLATE="C"
    I'm searching in forums here and googling for about 2 days now, i would appreciate some help.
    I haven't notice any real problem yet, i can write and read in both languages, but i think i surelly will.
    Last edited by s0lid7 (2013-03-07 12:55:39)

    Had not see that but it didn't help. I don't want to change LC_ALL=
    As it seems the problem is only with en_US whatever other language i uncomment in /etc/locale.conf works propertly.
    I remember myself editing the /usr/share/i18n/locales/en_US file when trying to change "workday 2" in order to have monday first in calendar but i'm not sure if that causes the issue since i'm pretty sure that i changed it to default values again anyway.
    I tried LC_ALL="" in /etc/locale.conf but it didn't work either.
    Last edited by s0lid7 (2013-03-07 13:48:37)

  • System.loadLibrary() for libraries with dependencies?

    Hi,
    Given an application that depends upon JNI library "jniLibrary.dll" which in turn depends upon "otherLibrary.dll" when one invokes System.loadLibrary("jniLibrary") two things happen:
    1) Under normal applications, the system will complain it can't find dependent library "otherLibrary" because it isn't in the PATH. You can work around this by invoking System.loadLibrary("otherLibrary") first but I've been told System.loadLibrary() is only meant for JNI libraries and invoking it on any other library is not guaranteed to work.
    2) Under Webstart applications, if you try loading "otherLibrary" first it will fail because of http://bugs.sun.com/view_bug.do?bug_id=6191612
    There doesn't seem to be a "correct" way to fix this problem under all environments. Can someone please explain what the application should be doing in this case to ensure that "jniLibrary" loads correctly? Modifying the PATH is not an option because of the Webstart use-case (besides which, users don't appreciate it).
    Thank you,
    Gili

    2) Under Webstart applications, if you try loading "otherLibrary" first it will fail because of http://bugs.sun.com/view_bug.do?bug_id=6191612
    That is a little weird.
    Far as I know you can't stop the OS from loading dependent libraries. Thus when the OS attempts to load library B, if it explicitly depends on library A then the OS (not java) will attempt to load it.
    Now if the OS can't load it then it will throw a system exception.
    So the only way that bug makes sense is if the jws is parsing the shared library to find dependencies and then checking the process space for them and throwing if they are not there. Seems like a lot of work. When it could just load it. (But maybe it is actually loading them from another source)
    At any rate that isn't what that bug says. It says that if you don't in fact load library A, then it will fail. So load it.I filed that bug so I'll try filling in the holes.
    Problem 1: Webstart uses a custom ClassLoader that only unpacks DLLs from their JAR file on-demand. So if you try loading A the class-loader will extract it from the JAR file into a temporary directory and invoke win32's LoadLibrary on it. Of course it will never find any dependent libraries because they haven't been extracted.
    Problem 2: If you use a manifest file (also packed in the JAR file) you have no way to tell Webstart to unpack it alongside the DLL. Loading the DLL without it will fail.
    If I remember correctly (this is off the top of my mind) you can work around problem #1 by loading the dependent libraries first but this won't work if you have circular dependencies. You can work around problem #2 by embedding the manifest file into the DLL file. I'm fairly sure I tried working around #1 as mentioned but it still broke (maybe another problem beyond circular dependencies that I don't recall).
    This is a lot of cryptic work one needs to do just to get things up and running. We're spending most of our time trying to hack the JVM to do what we want instead of it doing what we mean (the spirit of System.loadLibrary()).

  • OBIA -'Financials_Oracle R12'

    After installation of OBIA we are trying to run out of box 'Financials_Oracle R12' execution plan. And it failed right at the start with following error.
    Error while loading nodes.
    ERROR: Circular Dependency detected. Check server log for details.
    'TASK_GROUP_Load_PartyDimension' Has circular dependency with 'SIL_PositionDimensionHierarchy_Softdelete'
    'TASK_GROUP_Load_PartyDimension' Has circular dependency with 'SIL_PositionDimensionHierarchy_Type1Update'
    ABORTING BECAUSE OF CIRCULAR DEPENDENCIES.
    Does anyone know how to resolve this?
    Please note we were able to execute "Procurement and Spend: Oracle R12".
    Thansk,
    Avdhut

    Hi Naeem,
    For me, the only way to sizing OBIA with your requirements is to do a sizing review with Oracle. They analyze your requirement, preconize architecture and do an estimation of the size of your database.
    Oracle provide minimum requirement for hardware with the installation of OBIA but it is only pre-requisite (http://docs.oracle.com/cd/E35287_01/bia.7964/e22970.pdf).
    With your suggestions, I have some questions :
    - Why there are 2 Informatica / DAC server ?
    - For me, your Database configuration is under-estimate compared your OBIEE server.
    The minimum prerequisite is :
    - Oracle Business Analytics Warehouse :
    CPU:2 GHz or better, 8 CPU cores minimum - RAM:8 GB
    - ETL Server (Oracle Business Intelligence DataWarehouse Administration Console Server and Informatica PowerCenter Services) :
    CPU:2 GHz or better, 4 CPU cores minimum - RAM:8 GB - Storage Space:100 GB free space
    Regards,
    Benoit

  • Idea about garbage collector

    Hi,
    I'm working in finance area and there are a lot of talks about latency last years though I never saw system that had guaranteed GC STW spikes < 2 ms
    so my question why its not possible to implement smart pointer GC (like in C++) so every reference assignment would increment counter in object
    and every reference removing decrement - this would add additional cost but 99 % of objects can be safely collected concurrently - sure it does not deal with circular dependencies but I suppose on some applications it would be just great so it can be used with CMS GC

    It's certainly possible to use "smart pointers" to implement reference counting garbage collection. It's just that no one has figured out how to make it performant. Yet. All the counter updates have to be atomic, which hurts performance and scalability on multi-processor boxes. There are schemes to avoid the atomic counter updates, for example for pointer stores to thread stacks, but they start to get really complicated and hard to debug. How much of a performance hit are you willing to take to eliminate the stop-the-world pauses?
    As you say, you still need something global to clean up cycles.
    <2ms is a fairly stringent target for stop-the-world pauses, but not unthinkable. "Guaranteeing" those pauses is unthinkable, without some limitiations on what you do with your heap. You should work with your Oracle support engineers to tune your collector settings. Or post your GC logs and likely someone can come up with ideas to reduce your pause times.

Maybe you are looking for