ANT Help: Can rmic ignore circular references?

I have two projects: m and s. One depends on the other.
For s, I use my IDE's regular build and it's compiling just fine.
For s, the build is also done by the IDE, but I am using Ant to rmic 3 classes.
As far as the regular compilation goes, I have the IDE set up to ignore the circular references. But the rmic> in the ant script for the m project is complaining.
Is it possible to ignore the circular reference for the rmic? Or maybe some other idea...
Thanks a lot in advance
- Eduardo

¡Hola, Marcos!
If the procedures are in packages (or the same package), you can compile the package specs first, and then the package bodies.
It's simpler if both procedures are in the same package:
CREATE OR REPLACE PACKAGE     pk_fubar
AS
PROCEDURE ciclico1;
PROCEDURE ciclico2;
END       pk_fubar;
SHOW ERRORS
CREATE OR REPLACE PACKAGE BODY     pk_fubar
AS
PROCEDURE ciclico1
IS
BEGIN
        ciclico2;
END        ciclico1
PROCEDURE ciclico2
IS
BEGIN
        ciclico1;
END        ciclico2
END     pk_fubar
SHOW ERRORSOr you could put just one of them in a package.
The important thing is that you can compile a package spec and a package body separately.
You can compile anything that references a function in a package if a valid package spec exists; the package body may be invalid, or it may not exist at all. The package body has to exist and be valid before you run the procedure that calls it, of course, but not necessarily when you compile it.

Similar Messages

  • Applescript help - can't pass file reference

    Hi - This is doing my head in !
    I have an Automator script that encrypts a PDF and then runs an AppleScript within the Automator workflow. The result of this workflow is a filename I need within another calling Applescript.
    So in the Automator workflow I have the following code:
    set the new_item to (move item target_name of the temp_folder to container of the source_item)
    end tell
    return new_item as alias
    When I view the response in the calling Applescript I see this:
    "{alias \"Macintosh HD:Support:test-28 (encrypted).pdf\"}"
    How do I consume this in my Applescript ?? I need to get it into a POSIX format or something I can use.
    Can anyone help ??

    Sorry - I posted this in the wrong forum. I have reposted in Applescript. Apologies.

  • 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!

  • Phantom circular reference errors in spreadsheet

    I'm getting phantom circular reference errors in one of my Appleworks spreadsheets.
    I'm trying to compute the average of several sets of pairs of numbers, I have max of three pairs per line, and I'm using COUNT to determine how many pairs are present. I'm getting "can't resolve circular reference" errors occasionally when I fill down and add data for a new line, even though there aren't any circular references.
    Columns
    A= date, B=average X, C=averageY, D=number of pairs for this line
    E F = first pair, G H = second pair, I J = third pair.
    The second and third pair don't occur every day.
    These are the formulas I'm using,
    B average_X =(E_line# + G_line# + Iline#)/Dline#
    C average_Y =(F_line# + H_line# + Jline#)/Dline#
    D numPairs =COUNT(Eline#...Jline#)/2
    I add a new line each day.
    Its worked just fine until I went over 100 lines and now I occasionally get "can't resolve circular reference" erros, and the calculation cells, but there AREN'T any circular references.
    Anyone have any idea whats going on?

    I'm using AW 6.2.7 I'm on OS X 10.3.9
    I tried it with removing the AVERAGE and COUNT functions and it still happens.
    Seems like its somehow related to any references to columns J and K, even if there's no data in those cells, and no references to other cells.
    Its related to the COUNT function.
    If I drop off the last two columns it all seems to work ok.
    =(F153+H153)/(E153/2)
    where E153 is =COUNT(F153..I153)
    But if I try to use the last pair (columns J and K) it gets errors
    =(F153H153I153)/(E153/2)
    where E153 is =COUNT(F153..K153)
    DOES the COUNT function have a limitation to how many cells it can reference?
    It seems like for some reason the J column is corrupted. sometimes if there is any number in colum J it gets "circular reference error" EVEN though there is NO circulare reference only a number.
    BUT when I delete the number from Column J the error goes away.

  • Why can't I clear a spreadsheet cell marked as having a circular reference?

    I have a spreadsheet cell, FH67, with the formula " =30*FG67/sum(FG38..FG670) " that is marked as a circular reference. All cells referred to are either numbers or are the formula " = FD40*FE40 ". This should not be a circular reference! This same formula occurs in about every 5th column without any circular reference being noted.
    The real problem is that I cannot alter that cell in any way without the rotating round ball appearing and then nothing can be done until I force quit AppleWorks.
    I assume that something has corrupted the cell. How can I correct the problem?
    iBook   Mac OS X (10.3.9)  
    iBook   Mac OS X (10.3.9)  

    Welcome to Apple Discussions
    It looks like a circular reference to me. The cell FG67 to be divided is also in the sum (FG38 through FG670). But I'll let you sort that out.
    I don't get the spinning beach ball/lollipop when I accidentally create a circular reference, so I doubt that's the cause. The usual cause of that is a full Recent Items folder. Of course, any time you force quit AppleWorks, some corruption of the preferences is likely. First I suggest you check the Recent Items & then delete the AppleWorks preferences before trying that spreadsheet again.
    Some user tips for more information on Recent Items & AppleWorks preferences:
    AppleWorks slow? Spinning ball appears?
    Recent items not visible/updated
    AppleWorks has stopped working correctly

  • Circular reference detected while serializing

    I have been trying hard to get this resolved this, but haven't reached to any conclusion.
    Here is my situation.
    I have two entities called Parent and Child, where parent has a refernce to many child and child has one parent so inturn there is OneToMany(Bidirectional) relationship between them. When i expose this as a webservice I get the following exception :
    <faultstring>Internal Server Error (circular reference detected while serializing: com.thoughtclicks.Parent)</faultstring>
    This error occurs incase i expose the service as Document/Literal, incase i expose this service as RPC Encoded then this exception doesn�t occurs and everything is fine, but Axis2 doesn;t support client generation for RPC/Encoded so again a problem.
    Also, I have already tried putting @XMLTransient annotation on getChild() of the Parent class, but it doesn�t help and i continue getting the same error.
    Let me know if there is a work around for this solution.
    Any pointers are highly appreciated.
    Thanks,
    Rahul

    Hello,
    You might want to post this in the JDev/ADF forum, as it is not related to TopLink/JPA. The error seems to indicate that you are getting the problem because it is finding Location has a reference to an association that has a reference back to the same location, causing a problem when creating the copies for serialization. I am not familar with this problem, but there is likely a way to mark one of these references as transient to the serialization process so that it is no longer a loop - yet can still be used in your object model and in JPA. Something like @XmlTransient for JAXB.
    Best Regards,
    Chris

  • 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

  • Circular references between stored procedures

    Hi, i need help about circular references. I have two stored procedures that references like that:
    create or replace
    procedure ciclico2 as
    begin
    ciclico1;
    end;
    create or replace
    procedure ciclico1 as
    begin
    ciclico2;
    end;
    I can't compile both... so i want to know if there are ways to do that...
    Thanks
    Marcos (from Argentina... with a medium level english)

    ¡Hola, Marcos!
    If the procedures are in packages (or the same package), you can compile the package specs first, and then the package bodies.
    It's simpler if both procedures are in the same package:
    CREATE OR REPLACE PACKAGE     pk_fubar
    AS
    PROCEDURE ciclico1;
    PROCEDURE ciclico2;
    END       pk_fubar;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY     pk_fubar
    AS
    PROCEDURE ciclico1
    IS
    BEGIN
            ciclico2;
    END        ciclico1
    PROCEDURE ciclico2
    IS
    BEGIN
            ciclico1;
    END        ciclico2
    END     pk_fubar
    SHOW ERRORSOr you could put just one of them in a package.
    The important thing is that you can compile a package spec and a package body separately.
    You can compile anything that references a function in a package if a valid package spec exists; the package body may be invalid, or it may not exist at all. The package body has to exist and be valid before you run the procedure that calls it, of course, but not necessarily when you compile it.

  • Find and remove circular references.

    The reason I want to find these is that I want to minimise full GCs.
    Incremental GCs can remove object with no references, but objects with circular references require a full GC which comes at a high cost for the project I am working on and to be avoided if possible.
    So is there is a tool to help find these (so they can be broken on resources disposal or refactored out)
    It should be possible to write such a tool with refection, but I was wondering if there was one already. (google didn't help much)

    http://www.amazon.com/Garbage-Collection-Algorithms-Automatic-Management/dp/0471941484/ref=sr_1_2?ie=UTF8&s=books&qid=1223338239&sr=1-2

  • Can't make static reference to method while it is static

    Hello, can somebody please help me with my problem. I created a jsp page wich includes a .java file I wrote. In this JSP I called a method in the class I created. It worked but when I made the method static and adjusted the calling of the method it started to complain while i didnt make an instance of the class. the error is:Can't make static reference to method
    here is the code for the class and jsp:
    public class PhoneCheckHelper {
    public static String checkPhoneNumber(String phoneNumber) {
    String newPhoneNumber ="";
    for(int i=0; i<phoneNumber.length(); i++) {
    char ch = phoneNumber.charAt(i);
    if(Character.isDigit(ch)) {
    newPhoneNumber += String.valueOf(ch);
    return newPhoneNumber;
    <html>
    <head>
    <title>phonecheck_handler jsp pagina</title>
    <%@page import="java.util.*,com.twofoldmedia.text.*, java.lang.*" %>
    </head>
    <body>
    <input type="text" value="<%= PhoneCheckHelper.checkPhoneNumber(request.getParameter("phonenumberfield")) %>">
    </body>
    </html>

    Go over to the "New to Java" forum where that message is frequently explained. Do a search if you don't see it in the first page of posts.

  • Can't make static reference to method

    hi all,
    pls help me in the code i'm getting
    " can't make static reference to method....."
    kindly help me
    the following code gives the error:
    import java.rmi.*;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.io.*;
    import java.io.IOException;
    import java.io.LineNumberReader;
    public class client
    static String vcno;
    static String vpin;
    static String vamt;
    static String vordid;
    static String vptype;
    //static String vreq;
    static String vreq = "1";
    static String vorgid;
    static String vm1;
    static String vs1;
    static String vqty1;
    static String vm2;
    static String vs2;
    static String vqty2;
    static String vm3;
    static String vs3;
    static String vqty3;
    static String vm4;
    static String vs4;
    static String vqty4;
    public static void main(String args[])
    try
    ServerIntf serverintf=(ServerIntf)Naming.lookup("rmi://shafeeq/server");
    int c;
    StringBuffer sb;
    FileReader f1=new FileReader("c:/testin.txt");
    sb=new StringBuffer();
    int line=0;
    while ((c=f1.read())!=-1) {
    sb.append((char)c);
    LineNumberReader inLines = new LineNumberReader(f1);
    String inputline;
    String test;
    while((inputline=inLines.readLine())!=null)
    line=inLines.getLineNumber();
    switch(line)
    case 1: {
    vcno = inLines.readLine();
    System.out.println(vcno);
    case 2: {
    vpin = inLines.readLine();
    System.out.println(vpin);
    case 3: {
    vptype = inLines.readLine();
    System.out.println(vptype);
    case 4: {
    vamt = inLines.readLine();
    System.out.println(vamt);
    case 5: {
    vordid = inLines.readLine();
    System.out.println(vordid);
    case 6: {
    vorgid = inLines.readLine();
    System.out.println(vorgid);
         case 7: {
    vm1 = inLines.readLine();
    System.out.println(vm1);
         case 8: {
    vs1 = inLines.readLine();
    System.out.println(vs1);
         case 9: {
    vqty1 = inLines.readLine();
    System.out.println(vqty1);
         case 10: {
    vm2 = inLines.readLine();
    System.out.println(vm2);
         case 11: {
    vs2 = inLines.readLine();
    System.out.println(vs2);
    case 12: {
    vqty2 = inLines.readLine();
    System.out.println(vqty2);
    case 13: {
    vm3 = inLines.readLine();
    System.out.println(vm3);
         case 14: {
    vs3 = inLines.readLine();
    System.out.println(vs3);
    case 15: {
    vqty3 = inLines.readLine();
    System.out.println(vqty3);
    case 16: {
    vm4 = inLines.readLine();
    System.out.println(vm4);
    case 17: {
    vs4 = inLines.readLine();
    System.out.println(vs4);
    case 18: {
    vqty4 = inLines.readLine();
    System.out.println(vqty4);
    f1.close();
    FileWriter f2=new FileWriter("c:/testout.txt");
    String t;
    t=ServerIntf.add(vcno,vpin,vamt,vordid,vptype,vreq,vorgid,vm1,vs1,vqty1,vm2,vs2, vqty2,vm3,vs3,vqty3,vm4,vs4,vqty4);
    String str1 = " >>";
    str1 = t + str1;
    f2.write(str1);
    System.out.println('\n'+"c:/testout.txt File updated");
    f2.close();
    catch(Exception e)
    System.out.println("Error " +e);

    Yes, ServerIntf is the interface type. The instance serverIntf. You declared it somewhere at the top of the routine.
    So what you must do is call t=serverIntf.add(...)This is probably just a mistype.

  • How can I get a reference to ApplicationModule in a servlet

    I know that I can easily get the reference to my ApplicationModule in any JSP using the tags but I need to use a servlet instead of a JSP.
    Would you please let me know how I can a reference to my ApplicationModule in my Servlet? Every function that I am trying to use has been depricated.
    I appreciate any help.

    The following code will instantiate a module for you...
    public static ApplicationModule getGenericApplicationModule(String sAppModule, String sConnection)
    throws Exception {
    if (am != null)
    return am;
    sName = sAppModule;
    sConn = sConnection;
    Hashtable env = new Hashtable(2);
    env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
    Context ic = new InitialContext(env);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(sName);
    am = home.create();
    am.getTransaction().connect(sConn);
    return am;
    Problem in a servlet environment is that this is not pooled so you want to use the pool manager like this...
    public static EDMSMgrImpl getPooledApplicationModule(String sPoolName) throws BaseBc4jException
    ApplicationPool aPool = getApplicationPool(sPoolName);
    try
    return (EDMSMgrImpl)aPool.checkout();
    catch (Exception e)
    String message = "Exception checking out pool: "+sPoolName+" : "+e.getMessage();
    LogBroker.getInstance().severe(_instance,message ,e);
    throw new BaseBc4jException(message, e);
    protected static ApplicationPool getApplicationPool(String sPoolName) throws BaseBc4jException
    ApplicationPool aPool = PoolMgr.getInstance().getPool(sPoolName);
    if (aPool == null)
    try
    createPools();
    aPool = PoolMgr.getInstance().getPool(sPoolName);
    catch(IOException ioe)
    String message = "IOException thrown in EDMSAppModuleHelper.createPools" + ioe.getMessage();
    LogBroker.getInstance().severe(_instance,message, ioe);
    throw new BaseBc4jException(message, ioe);
    if (aPool == null)
    String message = "got a null result when getting pool: "+sPoolName;
    BaseBc4jException e = new BaseBc4jException(message);
    LogBroker.getInstance().severe(_instance, message, e);
    throw e;
    return aPool;
    Where a pool is created like this...
    sPoolName = poolElem.getAttribute(POOL_NAME_ATTRIBUTE);
    sAppModule = poolElem.getAttribute(APP_MODULE_ATTRIBUTE);
    sConnection = poolElem.getAttribute(CONNECTION_ATTRIBUTE);
    stateFull = poolElem.getAttribute(STATEFULL_ATTRIBUTE);
    sClass = getPoolClass(poolElem);
    if(PoolMgr.getInstance().getPool(sPoolName) == null) {
    Hashtable info = new Hashtable();
    info.put(JboContext.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    info.put(JboContext.DEPLOY_PLATFORM, "LOCAL");
    info.put("IsStateLessRuntime", stateFull);
    PoolMgr.getInstance().createPool(sPoolName, sClass, sAppModule , sConnection, info);

  • Use of CR, how can we ignore the cutting information?

    Olympus's ORF file with a clipping information (such as when shooting 16:9), CS5 Camera Raw 6.5 can not ignore this information to obtain the original image (4:3) it?

    Hai,
    ST05 is used for Performance Trace.
    There are diffrent traces avaliable.
    - SQL Trace
    - Enque Trace
    - RFC Trace
    - Table buffer Trace
    ST05 Is transaction code to get the initial screen of the Performance Trace.
    You have to activate the Trace using Activate Trace pushbutton.
    Go to SE38 Transaction and Select Your Program Name and Execute it.
    Come Back to ST05 Screen and Deactivate The trace using Deactivate Trace button on Intial screen.
    For the performance reasons , You should switch off the Traces.
    The Result of the trace stored in one or more Trace Files.
    you can use Display Trace option to Analyzing the Performance Data.
    I hope it will help you.
    With Regards,
    Bala Murali

  • JPA: mapping circular references

    Hi all,
    I'm trying to map a simple parent-to-children-knows-parent scenario, which contains circular references, using JPA annotations. Here is the current code:
    @Entity
    public class Assortment implements Identifiable {
         @Id
         @GeneratedValue
         private long id;
         @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "parent")
         private Set<Assortment> subAssortments = new HashSet<Assortment>();
         @ManyToOne(fetch = FetchType.LAZY)
         private Assortment parent = null;
    }The DDL for the table is the following:
    CREATE TABLE ASSORTMENT (ID BIGINT PRIMARY KEY, CODE VARCHAR(5) NOT NULL, NAME VARCHAR(50) NOT NULL, STATUS TINYINT NOT NULL, PARENT_ID BIGINT, CONSTRAINT FK_ASMT_PARENT FOREIGN KEY (PARENT_ID) REFERENCES ASSORTMENT(ID));When creating a basic tree (one root to which two children were added) and persisting this object using a simple entityManager.persist(root) call, I get the following (shortened) exception:
    org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]; nested exception is javax.persistence.EntityExistsException: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]
    Caused by: javax.persistence.EntityExistsException: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]
         at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:555)
    Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [core.model.goods.Assortment]
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
    Caused by: java.sql.SQLException: Attempt to insert null into a non-nullable column: column: ID table: ASSORTMENT in statement [insert into Assortment (id, code, name, status, parent_id) values (null, ?, ?, ?, ?)]
         at org.hsqldb.jdbc.Util.throwError(Unknown Source)
         ...It looks like the Hibernate EntityManager (the JPA implementation) is trying to insert a null value in the table's primary key (id). This understandable, since saving an object requires first knowing what the parent's ID is - although here the root has no parent and hence the parent's ID must be null.
    How must I adapt my code to handle this particular scenario? Are my annotations correct? Should I change the data structure definition instead?
    Thanks a lot,
    GB

    Two things:
    First, the Assortment.parent attribute needed to be annotated with @JoinColumn(name="parent_id")Second, the SQL query sent by Hibernate used an HSQLDB specificity, the identity column, to generate the primary key. By setting hibernate.hbm2ddl.auto=true in my persistence.xml file and setting the log level to debug, I could see that the table was generated using this (approximate) statement:
    CREATE TABLE ASSORTMENT (ID BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, CODE VARCHAR(5), NAME VARCHAR(50), STATUS TINYINT NOT NULL, PARENT_ID BIGINT, CONSTRAINT FK_ASMT_PARENT FOREIGN KEY (PARENT_ID) REFERENCES ASSORTMENT(ID))The "GENERATED BY DEFAULT AS IDENTITY" seems to be the key here.
    Hope this helps someone out there.
    Cheers,
    GB

  • Circular reference on VPD

    Hi All,
    I have implemented a VPD and added policies to Table_A and Table_B.
    The policy function of Table_A returns a predicate like this: EXISTS (SELECT 1 FROM TABLE_B WHERE TABLE_B.COLUMN_1 = TABLE_A.COLUMN_1)
    And the policy function of Table_B returns a predicate like this: EXISTS (SELECT 1 FROM USER_POSSIBLE_VALUES WHERE USER_POSSIBLE_VALUES.USER = sys_context('ctxA','user') AND USER_POSSIBLE_VALUES.CD_VALUE = TABLE_B.CD_VALUE)
    So, when I make a query on Table_A, its policy activates Table_B policy and it filters the result.
    And when I make a query on Table_B, its own policy filters the result.
    The problem is that I had to change the predicate of table_B policy and put a reference to table_A in it, and now I have a problem of circular reference.
    I need this reference to table_A in Table_B policy. Is there a way to prevent Table_A policy from being activated when Table_A is used inside Table_B policy?
    I dont want to drop the policy, I just want to bypass Table_A policy when used in Table_B policy.
    I'm using Oracle 9i.
    Thank you!

    We ran into the same issues. Basically you need to design policies that depend only on columns in the table the policy is written against, on contexts, and/or on global variables (package spec variables) or you can run into the issue where the filter condition depends on a table with a policy that is already in the chain of table policies involved in the query when you use queries on other tables in the policy. Unless the target table of the policy is pretty much not involved in joins to any of the tables you are restricting via policies.
    We managed to replace a detail table with a view that did the filtering of the detail rows based on the join condition to the header which was filtered by a polciy. That is, if you eliminate the header rows via a policy and then join to the detail you have probably already filted the detail rows since detail rows will not be returned to header rows that have already been filtered out of the query.
    HTH -- Mark D Powell --

Maybe you are looking for

  • .Mac Email Address Going into Junk Folder

    Hi, I have an original .mac email address and when I send emails they are going into peoples junk folder, regardless of their email provider. Any ideas why, and how i can fix this? Important emails are getting missed as a result. Appreciate any help.

  • Icloud storage space for Mac book

    Will I get any extra icloud storage space , when I buy mac book pro. I am already using iPhone and ipad, so my 5GB icloud storage is almost finished. I know creating one more icloud I'd can give 5GB more , but I don't want too much ID and password.

  • Missing objects within database

    Hello, I'm fairly new to Oracle but have extensive knowledge with all versions of SQL Server. I was given the task to refresh our training environment with production data. The traning database was corrupt and couldn't be recovered so I needed to sta

  • Why can't I use word, excel etc after upgrading OS X lion ?

    Why can´t I use word,excel etc after upgrading too OS X Lion ?

  • HT204150 how to associate an ipad with a windows 7 homegroup?

    I am trying to print using an HP Officejet 6500A Plus.  My wireless router is a Netgear model WNDR3400v2.  Somewhere in my trying to setup airprint, I think that I read that the IPAD and the PC have to be in the same group.The network map indicates t