Error in adding a Tab to a JFrame

Hi.. I am getting this error when I compile the following piece of code.. Could anyone help me with the error plz..
C:\Documents and Settings\Ravaboli\Desktop\new testing\CopyDetectionFrame.java:24: addTab(java.lang.String,javax.swing.JPanel) in CopyDetectionFrame cannot be applied to (java.lang.String,InternetPlagiarismTab)
          addTab("Internet Plagiarism Detector", new InternetPlagiarismTab());
^
C:\Documents and Settings\Ravaboli\Desktop\new testing\CopyDetectionFrame.java:25: addTab(java.lang.String,javax.swing.JPanel) in CopyDetectionFrame cannot be applied to (java.lang.String,CollusionDetectorTab)
          addTab("Collusion Detection", new CollusionDetectorTab());
^
2 errors
Tool completed with exit code 1
CollusionDetectorTab and InternetPlagiarismTab are already functioning..which I have already created
The code:
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
public class CopyDetectionFrame extends JFrame
     private ArrayList tabs;
     private JTabbedPane jtb;
     public CopyDetectionFrame()
          // set JFrame stuff
          setLocation(200,200);
          setSize(800, 600);
          setTitle("Copy Detector");
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          // Make tabs
          jtb = new JTabbedPane();
          tabs = new ArrayList();
          if("true".equals(Config.read("showhome")))
          addTab("Internet Plagiarism Detector", new InternetPlagiarismTab());
          addTab("Collusion Detection", new CollusionDetectorTab());
          getContentPane().add(jtb);
          // create some basic menus
          JMenuBar jmb = new JMenuBar();
          setJMenuBar(jmb);
          JMenu file = new JMenu("File");
          JMenuItem quit = new JMenuItem("Quit");
          quit.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent ae) {
                    cleanup();
                    System.exit(0);
          file.add(quit);
          jmb.add(file);
          addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent we) {
                    cleanup();
     public void addTab(String title, JPanel ot)
          jtb.add(title, ot);
          tabs.add(ot);
     private void cleanup()
          for(int i = 0; i < tabs.size(); i++)
          try
//               ((OptionTab)tabs.get(i)).cleanup();
          catch(Exception e) {}
     public static void main(String[] args)
          JFrame.setDefaultLookAndFeelDecorated(true);
          JDialog.setDefaultLookAndFeelDecorated(true);
          try
               UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
          catch (Exception ex)
               System.out.println("Failed loading L&F: ");
               System.out.println(ex);
          new CopyDetectionFrame().show();
}

For that code to work, your two Tabs (InternetPlagiarismTab and CollusionDetectionTab) would need to extend JPanel. Do they?
i.e.:
class InternetPlagiarismTab extends JPanel { ... }

Similar Messages

  • Everytime i open Mozilla Firefox appears several messages saying that there were errors on adding toolbar element or menu element.How can i get rid of this?

    I changed my operative system in my computer to windows 7 and add several plugins to my mozilla firefox, and after that i couldn´t find the plus signal to open a new page in a new tab.So, everytime i opened a new page it oppened a new firefox window, and this was very boring.So, i tryed to open mozila in safe mode and tryed to add some extras and i think it was because of this that i started to have several boxes from java script application opening and telling about several errors everytime i open a new window in mozilla.The errors are the following:
    "error on adding toolbar element:NS_error Unexected, component returned failure code:0x8000fff (NS_Error_Unexpected)...id:places-New Place
    or:id:Plus-Circles
    or:id:Plus-Profile
    or:id:Wallet
    or:id:Web fonts
    error on adding menu element:NS_Error_Unexpected, component returned failure code:0x8000fff(NS_Error_unexpected) id:Places-New Place
    id:Plus-Circles
    id:Plus-Profile
    id:Wallet
    id:Web fonts
    id:"
    The problem now is that despite the errors appears all the time i open firefox, the good thing is that the plus signal now appears and i can open a new page in a new tab but that page opens at the same time in a new window!!! I mean the page appears in a new tab and in a new window and the errors are appearing all the time i open mozilla!What can i do to get rid of this???

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Portal error on KM Content tab

    Hi Friends,
      We added new patch nw2004s sp10.then we got error in km content tab.Plz help regarding this
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/super_admin/com.sap.portal.content_administration/com.sap.portal.content_admin_ws/com.sap.km.AdminContent/com.sap.km.AdminContentExplorer/com.sap.km.AdminExplorer
    Component Name : com.sap.km.cm.navigation
    com.sapportals.wcm.repository.PropertyName.getPN(Ljava/lang/String;Ljava/lang/String;)Lcom/sapportals/wcm/repository/PropertyName;.
    Thanks,
    santhosh

    Hi Santhosh,
    I was hrtting A KM error which was similar so I uploaded the latest serveice pack (11) which solved the problem.
    Nick

  • Error while adding A/P Credit Memo!

    Error while adding A/P Credit Memo..........
    'G/L Accounts' (OACT) (ODBC-2028) Message - 131-183
    Please advice me .....
    Thanks...

    Hi
    Check this thread this may help you.
    [Re: AP Invoice - No Matching Account Error]
    Regards
    Balaji

  • Error while adding a connector for SSL..help!!!

    i'm getting this error when i added a connector for SSL and restarted tomcat
    my connector tag is
    <Connector keystorePass="kalima" scheme="https" port="8443" sslProtocol="TLS" redirectPort="-1" enableLookups="true" keystoreFile="Mykeystore" protocol="TLS" keystore="C:\Documents and Settings\santhoshyma\Mykeystore" clientauth="false" algorithm="SunX509" keypass="changeit" secure="true" keytype="JKS">
          <Factory className="org.apache.coyote.tomcat5.CoyoteServerSocketFactory" keystorePass="kalima" keystoreFile="C:\SSLTest\Mykeystore"/>
        </Connector>
    LifecycleException:  Protocol handler instantiation failed: java.lang.NullPointe
    rException
            at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
    java:1368)
            at org.apache.catalina.core.StandardService.initialize(StandardService.j
    ava:609)
            at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
    a:2384)
            at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
            at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Error while adding a custom field with Input help via AET

    Hi All,
    I need to add two custom field under Service orders at Item level in component BT140I_SRVP.
    One field is required to have the input search help f4 and autopopulates the second field
    I am able to add one field(not requiring help) successfully through AET .
    I have created one Zsearch_help in se11 and its successfully running  and Autopopulating seocnd field while I am testing it
    While adding second field through AET,I need to enter following details as -
    field label,search relevant ,serach help etc.
    When I type the name of my 'Zsearch_help' against field search help it gives me following error
    'Search help is not compatible'.
    Secondly,not getting getter and setter methods for the attrributes in BTAdminI.
    Last,please tell me if i create zhelp and activate it,would it automatically appear in the list on AETwhile assiging it to input field?
    Please help me out.Kindly be detailed as I am new to SAP CRM.
    Thanks,
    Shivani

    The question is answered in CRM 7.0 forum:
    Getting error while adding a custom field (with input help) through AET

  • Error while adding a record

    I am getting the following error while adding record into the table CM_RECIPE_ITEM :
    <h4> Error </h4>
    ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T3_AFTER", line 11 ORA-04088: error during execution of trigger 'COSTMAN.CM_RECIPE_ITEM_T3_AFTER'
         Error      Unable to process row of table CM_RECIPE_ITEM.
    Kindly suggest if the problem is because of the Global temporary table or the triggers given below. Also suggest the solution.
    Thanking You,
    Yogesh
    <h4> CM_RECIPE_ITEM Table </h4>
    CRI_ID------CRI_CR_ID--------CRI_BOM_CODE--------CRI_CIFG_CODE---------CRI_CIRM_CODE--------CRI_SEQ--------CRI_QTY--------CRI_RM_COST
    625----------464-----------------PRODUCT3001----------FG003----------------------10---------------------------1-------------------60-----------------10
    626----------464-----------------PRODUCT3001----------FG003----------------------12---------------------------2-------------------40------------------10
    <h4>Global temporary table</h4>
    DROP TABLE COSTMAN.INTERIM CASCADE CONSTRAINTS;
    CREATE GLOBAL TEMPORARY TABLE COSTMAN.INTERIM
    ROW_ID ROWID
    ON COMMIT PRESERVE ROWS
    NOCACHE;
    CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3"
    BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
    BEGIN
    INSERT INTO interim VALUES (:new.rowid);
    END;
    <h4>Trigger to update data on CM_RECIPE table </h4>
    CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3_AFTER"
    AFTER INSERT OR UPDATE ON "CM_RECIPE_ITEM"
    BEGIN
    FOR ds IN (SELECT row_id FROM interim) LOOP
    UPDATE CM_RECIPE
    SET CR_RMC = (
    SELECT SUM(CRI_QTY * CRI_RM_COST)/SUM(CR_QUANTITY)
    FROM CM_RECIPE_ITEM
    WHERE CRI_BOM_CODE = CR_BOM_CODE
    AND rowid = ds.row_id
    UPDATE CM_RECIPE
    SET CR_TOTAL_COST = (
    SELECT CIFG_PACKING + CIFG_OVERHEAD +CIFG_OTHERS
    FROM CM_ITEM_FG
    WHERE CIFG_CODE = CR_CIFG_CODE
    AND rowid = ds.row_id
    ) + CR_RMC;
    UPDATE CM_RECIPE
    SET CR_GROSS_MARGIN =
    (SELECT CIFG_DP_RATE
    FROM CM_ITEM_FG
    WHERE CIFG_CODE = CR_CIFG_CODE
    AND rowid = ds.row_id) - CR_TOTAL_COST) / CR_TOTAL_COST;
    END LOOP;
    END;
    /

    The scripts of the tables CM_ITEM_FG, CM_RECIPE, CM_RECIPE_ITEM are as follows :
    <h4>CM_ITEM_FG</h4>
    ALTER TABLE COSTMAN.CM_ITEM_FG
    DROP PRIMARY KEY CASCADE;
    DROP TABLE COSTMAN.CM_ITEM_FG CASCADE CONSTRAINTS;
    CREATE TABLE COSTMAN.CM_ITEM_FG
    CIFG_CODE VARCHAR2(13 BYTE) NOT NULL,
    CIFG_CCG_ID NUMBER NOT NULL,
    CIFG_NAME VARCHAR2(50 BYTE) NOT NULL,
    CIFG_PACKING NUMBER NOT NULL,
    CIFG_OVERHEAD NUMBER NOT NULL,
    CIFG_OTHERS NUMBER NOT NULL,
    CIFG_DP_RATE NUMBER NOT NULL,
    CIFG_CR_BY VARCHAR2(32 BYTE),
    CIFG_CR_ON DATE,
    CIFG_UPD_BY VARCHAR2(32 BYTE),
    CIFG_UPD_ON DATE
    TABLESPACE COST_MANAGER
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    CREATE UNIQUE INDEX COSTMAN.CM_ITEM_FG_PK_001 ON COSTMAN.CM_ITEM_FG
    (CIFG_CODE, CIFG_CCG_ID)
    LOGGING
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE UNIQUE INDEX COSTMAN.CM_ITEM_FG_UK_001 ON COSTMAN.CM_ITEM_FG
    (CIFG_CODE)
    LOGGING
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE OR REPLACE TRIGGER COSTMAN."CM_ITEM_FG_T1"
    BEFORE UPDATE ON "CM_ITEM_FG"
    FOR EACH ROW
    BEGIN
    BEGIN
    UPDATE CM_RECIPE
    SET CR_TOTAL_COST = (CR_RMC + :NEW.CIFG_PACKING + :NEW.CIFG_OVERHEAD + :NEW.CIFG_OTHERS);
    END;
    BEGIN
    UPDATE CM_RECIPE
    SET CR_GROSS_MARGIN = (:NEW.CIFG_DP_RATE - CR_TOTAL_COST) / CR_TOTAL_COST;
    END;
    END;
    ALTER TABLE COSTMAN.CM_ITEM_FG ADD (
    CONSTRAINT CM_ITEM_FG_PK_001
    PRIMARY KEY
    (CIFG_CODE, CIFG_CCG_ID)
    USING INDEX
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    CONSTRAINT CM_ITEM_FG_UK_001
    UNIQUE (CIFG_CODE)
    USING INDEX
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    ALTER TABLE COSTMAN.CM_ITEM_FG ADD (
    CONSTRAINT CM_ITEM_FG_FK_001
    FOREIGN KEY (CIFG_CCG_ID)
    REFERENCES COSTMAN.CM_COST_GROUP (CCG_ID));
    <h4>CM_RECIPE</H4>
    ALTER TABLE COSTMAN.CM_RECIPE
    DROP PRIMARY KEY CASCADE;
    DROP TABLE COSTMAN.CM_RECIPE CASCADE CONSTRAINTS;
    CREATE TABLE COSTMAN.CM_RECIPE
    CR_ID NUMBER NOT NULL,
    CR_CCG_ID NUMBER,
    CR_EFF_FROM DATE,
    CR_CIFG_CODE VARCHAR2(10 BYTE) NOT NULL,
    CR_BOM_CODE VARCHAR2(50 BYTE),
    CR_QUANTITY NUMBER,
    CR_RMC NUMBER,
    CR_TOTAL_COST NUMBER,
    CR_GROSS_MARGIN NUMBER,
    CR_CR_BY VARCHAR2(32 BYTE),
    CR_CR_ON DATE,
    CR_UPD_BY VARCHAR2(32 BYTE),
    CR_UPD_ON DATE
    TABLESPACE COST_MANAGER
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_PK_001 ON COSTMAN.CM_RECIPE
    (CR_CCG_ID, CR_ID, CR_CIFG_CODE)
    LOGGING
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_UK_001 ON COSTMAN.CM_RECIPE
    (CR_ID)
    LOGGING
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_UK_002 ON COSTMAN.CM_RECIPE
    (CR_BOM_CODE)
    LOGGING
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_T1"
    BEFORE INSERT ON "CM_RECIPE"
    FOR EACH ROW
    DECLARE
    L_ID NUMBER;
    BEGIN
    IF INSERTING THEN
    IF :NEW.CR_ID IS NULL THEN
    --SELECT CM_RECIPE_SEQ.NEXTVAL INTO L_ID FROM DUAL;
    :NEW.CR_ID := CM_RECIPE_SEQ.NEXTVAL; --L_ID;
    END IF;
    :NEW.CR_CR_ON := SYSDATE;
    :NEW.CR_CR_BY := nvl(v('APP_USER'),USER);
    END IF;
    IF UPDATING THEN
    :NEW.CR_UPD_ON := SYSDATE;
    :NEW.CR_UPD_BY := nvl(v('APP_USER'),USER);
    END IF;
    END;
    ALTER TABLE COSTMAN.CM_RECIPE ADD (
    CHECK ("CR_EFF_FROM" IS NOT NULL) DISABLE,
    CHECK ("CR_CCG_ID" IS NOT NULL) DISABLE,
    CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
    CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
    CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
    CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
    CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
    CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
    CONSTRAINT CM_RECIPE_PK_001
    PRIMARY KEY
    (CR_ID)
    USING INDEX
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    CONSTRAINT CM_RECIPE_UK_002
    UNIQUE (CR_BOM_CODE)
    USING INDEX
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    <h4>CM_RECIPE_ITEM</H4>
    ALTER TABLE COSTMAN.CM_RECIPE_ITEM
    DROP PRIMARY KEY CASCADE;
    DROP TABLE COSTMAN.CM_RECIPE_ITEM CASCADE CONSTRAINTS;
    CREATE TABLE COSTMAN.CM_RECIPE_ITEM
    CRI_ID NUMBER NOT NULL,
    CRI_CR_ID NUMBER NOT NULL,
    CRI_BOM_CODE VARCHAR2(50 BYTE) NOT NULL,
    CRI_CIFG_CODE VARCHAR2(10 BYTE) NOT NULL,
    CRI_CIRM_CODE VARCHAR2(10 BYTE) NOT NULL,
    CRI_SEQ NUMBER,
    CRI_QTY NUMBER,
    CRI_RM_COST NUMBER,
    CRI_CR_BY VARCHAR2(32 BYTE),
    CRI_CR_ON DATE,
    CRI_UPD_BY VARCHAR2(32 BYTE),
    CRI_UPD_ON DATE
    TABLESPACE COST_MANAGER
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_ITEM_PK_001 ON COSTMAN.CM_RECIPE_ITEM
    (CRI_ID)
    LOGGING
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T2"
    BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM"
    FOR EACH ROW
    BEGIN
    IF :NEW.CRI_CR_ID IS NULL THEN
    SELECT CR_ID INTO :NEW.CRI_CR_ID
    FROM CM_RECIPE
    WHERE CR_BOM_CODE = :NEW.CRI_BOM_CODE;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T1" BEFORE
    INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
    DECLARE
    L_ID NUMBER;
    SEQ NUMBER;
    BEGIN
    IF INSERTING THEN
    IF :NEW.CRI_ID IS NULL THEN
    SELECT CM_RECIPE_ITEM_SEQ.NEXTVAL
    INTO :NEW.CRI_ID
    FROM dual;
    END IF;
    :NEW.CRI_CR_ON := SYSDATE;
    :NEW.CRI_CR_BY := NVL(v('APP_USER'),USER);
    SELECT (NVL(MAX(CRI_SEQ),0)+1)
    INTO SEQ
    FROM CM_RECIPE_ITEM
    WHERE CRI_BOM_CODE = :NEW.CRI_BOM_CODE;
    :NEW.CRI_SEQ := SEQ;
    END IF;
    IF UPDATING THEN
    :NEW.CRI_UPD_ON := SYSDATE;
    :NEW.CRI_UPD_BY := NVL(v('APP_USER'),USER);
    END IF;
    END;
    ALTER TABLE COSTMAN.CM_RECIPE_ITEM ADD (
    CHECK ("CRI_RM_COST" IS NOT NULL) DISABLE,
    CHECK ("CRI_QTY" IS NOT NULL) DISABLE,
    CHECK ("CRI_SEQ" IS NOT NULL) DISABLE,
    CONSTRAINT CM_RECIPE_ITEM_PK_001
    PRIMARY KEY
    (CRI_ID)
    USING INDEX
    TABLESPACE COST_MANAGER
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    ALTER TABLE COSTMAN.CM_RECIPE_ITEM ADD (
    CONSTRAINT CM_RECIPE_FK_002
    FOREIGN KEY (CRI_CIRM_CODE)
    REFERENCES COSTMAN.CM_ITEM_RM (CIRM_CODE),
    CONSTRAINT CM_RECIPE_ITEM_FK_001
    FOREIGN KEY (CRI_CR_ID)
    REFERENCES COSTMAN.CM_RECIPE (CR_ID));
    Yogesh

  • Error while adding a job to scheduler

    Hello,
    I have a batch job that is running fine in both DEV and QA environment. In DEV, I am able to schedule and run it daily. I created a similar schedule in QA environment using BODS Mgmt Console/Administrator. However, upon Activating the schedule, I am getting the following error message. Would someone know why would this error be thrown and steps to troubleshoot this error?
    Thanks.
    [Repository:AECON_DW_REPOSITORY Schedule:Daily_Run_QA Error:Error while adding a job to scheduler]
    When contacting the server above exception was encountered, so it will be assumed the schedule is not active anymore.

    Hi Rizwan Tahir  ,
    Delete the job server associated with the current batch job and recreate it.
    Then try creating a new schedule using the new job server.
    And take care that job server is created in QA environment.
    Hope this should work.
    Regards,

  • Error while adding Image: ORA-00001: unique constraint

    Dear all,
    I have an error while adding images to MDM I can´t explain. I want to add 7231 images. About 6983 run fine. The rest throws this error.
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8078_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8078.gif; ArraySize=0; NullInd=0;
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8085_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8085.gif; ArraySize=0; NullInd=0;
    I checked all data. There is no such dataset in the database. Can anybody give me a hint how to avoid this error.
    One thing I wonder: The PermanentId is allways the same but I can´t do anything here.
    BR
    Roman
    Edited by: Roman Becker on Jan 13, 2009 12:59 AM

    Hi Ritam,
    For such issues, can you please create a new thread or directly email the author rather than dragging back up a very old thread, it is unlikely that the resolution would be the same as the database/application/etc releases would most probably be very different.
    For now I will close this thread as unanswered.
    SAP SRM Moderators.

  • DI API error while adding AP Invoice (Using serial Nos.)

    Hi,
    Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.
    " [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "
    If anybody has encountered this error and found a solution kindly let me know.

    Hi Vivek,
    Are you trying to add same document number, serial number or so on?
    "entry exist " means like "duplicate key problem", I guess.
    Basically, whscode column in PCH1 table allows duplicating.
    So, I think serial number is duplicated among same item code.
    Hope this useful for you.
    Regards,
    Hyunil Choi.

  • The external credentials in the SSO database are more recent --- Receiving this error while adding entries to SSO database.

    We are getting this error while adding entries to SSO database. Its working in other environments and failing in only environment. Please advice.
    error MSB4018: The "BizTalk.BuildGenerator.Tasks.SSO.PopulateApplicationProperty" task fa
    iled unexpectedly.\r
    : error MSB4018: System.Runtime.InteropServices.COMException (0xC0002A40): The external cre
    dentials in the SSO database are more recent.\r
     error MSB4018: \r
     error MSB4018:    at Microsoft.BizTalk.SSOClient.Interop.ISSOConfigStore.SetConfigInfo(St
    ring applicationName, String identifier, IPropertyBag properties)\r
     error MSB4
    018:    at BizTalk.BuildGenerator.Tasks.SSO.SSOConfiguration.Write(String appNa
    me, String propName, String propValue)\r
     error MSB4018:    at BizTalk.BuildGenerator.Tasks.SSO.PopulateApplicationProperty.Execute
    ()\r
     error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.IT
    askExecutionHost.Execute()\r
     error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExe
    cutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost t
    askHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskRe
    sult)
    Thanks, Pavan MCTS-Microsoft Biztalk Windows Server 2010

    Hi,
    This error generally arises when your system datetime is not in sync with the Domain Controller datetime. Try following steps:
    1. Check if the Windows Time Service is running on your machine or not. Try restarting this service and then restart host instances. Then run your script.
    2. If this does not works, have a look at this
    link
    Hope this will help.
    HTH,
    Sumit
    Sumit Verma - MCTS BizTalk 2006/2010 - Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question

  • Getting an error while adding the user in Sharepoint foundation 2010 environment.

    Hi,
    I am having full control access to SharePoint site. Then i tried add user for that site.
    But i am getting following error while adding the user to the site.
    An unexpected error has occurred.
    Troubleshoot issues with microsoft SharePoint Foundation.
    Correlation ID:3035B777-1B7C-4463-B35E-06657B72C2E4
    Can you please help me anyone on this.
    Thanks,
    Ashok

    This could be any one of a number of things.  You need to lookup the Correlation ID in the ULS logs on the SharePoint server.  That should provide the additional information necessary to diagnose and solve the problem.  Here's a blog post
    on how to find the error.
    http://habaneroconsulting.com/Blog/Posts/Get_the_Real_SharePoint_Error_using_the_ULS_Logs.aspx#.UvEuffldWik 
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Error in adding the deployfile to the archive

    Hi,
    I am trying to activate a J2EE library but the CBS build fails with the exception:
    error in adding the deployfile to the archive (Error adding file to archive. Can't read file: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/META-INF/sda-dd.xml)
    An ideas of what is wrong? Created a new activity which contained sda-dd.xml , but still same problem.
    complete CBS log
    Development Component Build (2006-03-27 07:02:55)
      Component name: UserIntegrityLibrary
      Component vendor: bouvet.com
      SC compartment: bouvet.com_JAAS_LOGIN_MODULES_1
      Configuration: JDI_ZEPJAAS_D
      Location: JDI_ZEPJAAS_D
      Source code location: http://sapJDI.st.bouvet.no:50300/dtr/ws/ZEPJAAS/bouvet.com_JAAS_LOGIN_MODULES/dev/active/DCs/bouvet.com/UserIntegrityLibrary/_comp/
      DC root folder: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/
      DC type: J2EE Server Component
      DC subtype: Library
      Host: sap06.st.bouvet.no
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/addLib"
              [dcmake] validating dependency to used DC "bouvet.com/UserIntegrityLoginModule"
              [dcmake] validating dependency to used DC "sap.com/security_api"
              [dcmake] validating dependency to used DC "sap.com/com.sap.security.api.sda"
              [dcmake] validating entity reference from public part "defLib" to public part "api" of DC "bouvet.com/UserIntegrityLoginModule"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/addLib
              [dcmake] starting build plugin from : /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/sap.com/tc/bi/bp/addLib/_comp/gen/default/public/addLib/
    Build Plugins Version 6.40.0.111  (AdditionaLibraryPlugin, 630_VAL_REL ) from 04 July 2005 11:31:30
    Building development component 'UserIntegrityLibrary', vendor 'bouvet.com', type 'J2EE Server Component', subtype 'Library'
             software component 'JAAS_LOGIN_MODULES', vendor 'bouvet.com'.
             location 'JDI_ZEPJAAS_D'.
             source code location 'http://sapJDI.st.bouvet.no:50300/dtr/ws/ZEPJAAS/bouvet.com_JAAS_LOGIN_MODULES/dev/active/'.
    Options:
    convert *.xlf to *.properties: yes
    include sources for debugging: yes
    run JLin tests is available  : no
    Creating Ant build file..
    No 'default' JDK_HOME_PATH defined, will use running VM. Please update your configuration.
    Redefining context object 'dc_depend_allDirs' from '[com.sap.tc.buildplugin.util.ComponentDependencies@1570945, com.sap.tc.buildplugin.util.ComponentDependencies@121b59a, com.sap.tc.buildplugin.util.ComponentDependencies@19a37a]' to '[com.sap.tc.buildplugin.util.ComponentDependencies@13bdd36, com.sap.tc.buildplugin.util.ComponentDependencies@1381960, com.sap.tc.buildplugin.util.ComponentDependencies@9fa8f]'
    Generating provider.xml
    Using velocity macro file: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/sap.com/tc/bi/bp/addLib/_comp/gen/default/public/addLib/macros/build.vm
    Creating Ant build file /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/logs/build.xml
    Ant build file created in 0.374 seconds
    Starting Ant with build file /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/logs/build.xml, target build
    Using temporary directory /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/t/4DEAF5E55DDD90D1E9FC40123D749AEB
    Ant build started at 2006-03-27 07:02:56 GMT-05:00 (EST)
    prepare:
         [mkdir] Created dir: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/deploy
    build:
          [echo] Generating public part defLib [compilation]
      [pppacker] Packing compilation public part 'defLib'
      [pppacker] Packing entity bouvet.com~UserIntegrityLibrary (SERVER_COMPONENTS)
      [pppacker] Packing entity reference UserIntegrityLoginModule (bouvet.com), api
      [pppacker] Packed 1 entity and 1 entity reference for compilation public part 'defLib'
         [timer] Public part packaging finished in 0.138 seconds
          [copy] Copying 1 file to /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/t/4DEAF5E55DDD90D1E9FC40123D749AEB
          [echo] creating source code archive
         [mkdir] Created dir: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/src/java
           [zip] Building zip: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/src/java/src.zip
          [echo] Creating bouvet.com~UserIntegrityLibrary.sda
        [jarsap] Info: JarSAP version 20041217.1600
        [jarsap] Info: JarSAPProcessing version 20050426.1600 / JarSL version 20050426.1600
        [jarsap] Property jarsap.info.dir is not set.
        [jarsap] Building: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/deploy/bouvet.com~UserIntegrityLibrary.sda with compression
    Ant build finished with ERRORS
    file:/usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/gen/default/logs/build.xml:69: error in adding the deployfile to the archive (Error adding file to archive. Can't read file: /usr/sap/JDI/JC03/j2ee/cluster/server0/temp/CBS/29/.B/8827/DCs/bouvet.com/UserIntegrityLibrary/_comp/META-INF/sda-dd.xml)
    Ant build finished at 2006-03-27 07:02:56 GMT-05:00 (EST), Duration: 0.386 seconds
    Build finished with ERROR
    Cleaning up.

    Did a space modification (since the DTR actually check diff for difference before checkin) and activated the new activity.

  • HELP --- Error while adding Portlets to the Page. (WWC-44012)

    Hi all,
    I have a pl/sql portlet. It compiles fine and shows up perfectly in portlet repository. But when i add this to the page, I get following error
    Error while adding Portlets to the Page. (WWC-44012)
    An unexpected error occurred: User-Defined Exception (WWC-43000)
    An unexpected error occurred: User-Defined Exception (WWC-43000)
    An unexpected error occurred: User-Defined Exception (WWC-51004)
    (WWC-00000)
    I checked the portlet specification file (.pks) and body file (.pkb) for any mistakes but they seems fine.
    Does anyone know what can cause this error?
    Any pointers in this regards will be highly appreciated.
    Thanks!!!
    Rajesh

    Rajesh,
    Could you provide some more details about your code? I will try to look into possible causes of the error. One thing you may try is subscribing to the Knowledge Exchange on http://portalcenter.oracle.com. Then you could post your code in your community folder and everyone would be able to test it out.
    Of course, this means you must be willing to share your code with everyone.
    James

  • Error while adding portlets

    Error: Internal error (WWC-00006)
    An unexpected error has occurred in pages: ORA-06502: PL/SQL: numeric or value error: character to number conversion error (WWC-44847)
    Couldn't save attribute Content_Owner. (WWV-03005)
    Couldn't save attribute Content_Author. (WWV-03005)
    Hi,
    I am getting this error while adding portlets to my page group..any suggestions?
    Thanks in advance

    No, This is happening with oracle defined portlets. But , I am also not able to add any navigation page as a portlet to any of my page. Is it any database back up issue? as I am testing something in UAT , in dev environment everything is fine.

Maybe you are looking for

  • MacBook Pro: Weird spontaneous wake up

    My Wife's MBP (Core 2 late 2006 model) had been asleep for 4 days when it suddenly woke up yesterday. We were not at home at the time, but this morning the machine was running (steady light, warm, but not hot), but opening the lid did not wake up the

  • Dashboard not saving preferences, I think?

    So my problem is simple but I have not found a solution. When I open a widget, say Weather. It comes up with Cupertino weather. I put in my zip, it gives me my weather and I close the widget. If I re-open it instead of remembering my weather it gives

  • SOLARIS9 internet setup

    I have following setup and ethernet card. But can't setup my internet. sooooo diffcult to do for so simple thing compare to WINDOWS. 1. ethernet card:d-link, compatible to realtek rtl8139 H/W assistant show DMA 1186,1400 installed driver/alias and re

  • Help with a purchase

    My nephew made a purchase and it wasnt what he wanted is there anyway I could get my money back

  • How do I set  keyboard shortcut for 'Get Mail'?

    Went to system preferences - keyboard - shortcuts - App shortcuts and added Mail.app Get Mail        cmd  G However, it doesn't work.  It just makes a nasty noise when I'm in mail and use the shortcut.