Problem with a sequence visibility...

Greetings, everybody
I have a problem:
In a Java application, there's a line that try to get a sequence value, as follows:
PreparedStatement stmt = conn.prepareStatement("select any_schema.SQ_WHATEVER.nextval as NEXTVAL from dual"); //where conn is a java.sql.Connection instance
rs = stmt.executeQuery(); //rs is a java.sql.ResultSet
When it runs, it raises the exception:
java.sql.SQLException: ORA-00942: table or view does not exist
...but the sequence EXISTS!!!
I've checked the return in SQL Plus, I've checked the permissions to access the sequence...
...and I couldn't find the root of this problem!
Could somebody help me???
Since now, I thank you!

Jeff,
Maybe I'm misunderstanding your question, but the following works for me, using Oracle 9i (9.2.0.4) database on SUN [sparc] Solaris 9, JDK 1.4.2_07 and "ojdbc14.jar" JDBC driver.
First I create the sequence and synonym (database objects) using SQL*Plus:
sqlplus avi/avi
SQL> create sequence AVI;
Sequence created.
SQL> create public synonym AVI for AVI;
Synonym created.And here is the java code:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class SqlQry00 {
  public static void main(String[] args) {
    Connection dbConn = null;
    ResultSet rs = null;
    Statement s = null;
    String url = "jdbc:oracle:thin:scott/tiger@host:1521:orcl";
    String sql = "select AVI.NEXTVAL from DUAL";
    System.out.println("\nSQL:\n" + sql + "\n");
    try {
      Class.forName("oracle.jdbc.driver.OracleDriver");
      dbConn = DriverManager.getConnection(url);
      s = dbConn.createStatement();
      rs = s.executeQuery(sql);
      if (rs.next()) {
        System.out.println(rs.getBigDecimal(1));
    catch (Exception x) {
      x.printStackTrace();
    finally {
      if (rs != null) {
        try {
          rs.close();
        catch (Exception x) {
          System.err.println("Failed to close result set.");
          x.printStackTrace();
      if (s != null) {
        try {
          s.close();
        catch (Exception x) {
          System.err.println("Failed to close statement.");
          x.printStackTrace();
      if (dbConn != null) {
        try {
          dbConn.close();
        catch (Exception x) {
          System.err.println("Failed to close database connection.");
          x.printStackTrace();
}Notice how (in the java code) I connect to the database as user SCOTT? (In other words, not as user AVI -- who owns the sequence.)
Good Luck,
Avi.

Similar Messages

  • Problem with a sequence

    Hello all,
    I have a problem with a basic sequence: it starts with 2 and y define "start with 1".
    Basic steps that I perform:
    1.- Create the sequence:
    CREATE SEQUENCE sec_empleado START WITH 1 NOCACHE ORDER; ------ also tried others configurations, (wiithout nocache order)
    2.- create table cliente
    SQL> CREATE TABLE CLIENTE (
    2 codigo_cliente NUMBER NOT NULL PRIMARY KEY ,
    3 nombre VARCHAR2(20) NOT NULL,
    4 apellido1 VARCHAR2(20) NOT NULL,
    5 apellido2 VARCHAR2(20) NULL,
    6 codigo_entidad NUMBER NOT NULL,
    7 dni NUMBER NOT NULL,
    8 letra_dni VARCHAR2(1) NOT NULL,
    9 fecha_nac DATE NOT NULL,
    10 domicilio VARCHAR2(30) NOT NULL,
    11 poblacion VARCHAR2(30) NOT NULL,
    12 codigo_postal NUMBER NULL,
    13 codigo_provincia NUMBER NULL
    14 );
    Table created.
    3.- insert a record:
    INSERT INTO CLIENTE VALUES (sec_cliente.nextval,'Nombre001','Apellido_1_1.........................);
    4.- check the table:
    select * from cliente;
    CODIGO_CLIENTE NOMBRE APELLIDO1 APELLIDO2 CODIGO_ENTIDAD .............................
    2 Nombre001 Apellido_1_1 Apellido_2_1 8765
    I can´t understand why it assigns the value 2 instead 1 to the first row.
    I know it looks really stupid, but i dont understand this behaivour.
    PS: Oracle RAC 11.2 database
    Thanks a lot
    Edited by: user3313344 on 14-Apr-2010 11:22
    Edited by: user3313344 on 14-Apr-2010 11:23

    Hi,
    it is normal behaviour, see also http://www.freelists.org/post/oracle-l/anyone-seen-this-weirdness-with-sequences-in-11gr2,6
    It is described in Metalink document 1050193.1 for 11.2.
    Herald ten Dam
    Superconsult.nl

  • Problem with creating sequence in procedure

    I am getting the following error when trying to create a sequence inside a procedure:
    ORA-01031: insufficient privileges
    But, I have no problem creating the sequence outside the procedure, by just issuing the create sequence command.
    How can I make this work?
    Thanks.

    I am getting different result for this:
    INSERT INTO DEPNODE.SEQ_MEID (proc_id, me_id, seq_id)
    SELECT 'tstamp' AS proc_id, M.MANAGED_ENTITY_ID AS ME_ID, ROW_NUMBER () OVER (ORDER BY M.MANAGED_ENTITY_ID) AS seq_id
    FROM FDM.MANAGED_ENTITIES M, FDM.PHYSICAL_ADDRESSES P
    WHERE M.MANAGED_ENTITY_ID = P.ME_MANAGED_ENTITY_ID
    AND M.MANAGED_ENTITY_ID < 5;
    If I ran this at the prompt, I get the correct result:
    tstamp     1     1
    tstamp     2     2
    tstamp     3     3
    tstamp     4     4
    But, if its part of the procedure, I get this:
    tstamp     1     1
    tstamp     1     2
    tstamp     1     3
    tstamp     1     4
    ** the middle row is the seq_id
    Thanks.

  • Problem with binding  sequences to attributes

    Hello everyone.
    [you may directly jump to the question at the bottom of this post and if you don't understand what the heck I'm asking, feel free to read the whole post ;)]
    I wanted to crate a table node where several attributes are for rows only.
    Because i want it to be a CustomNode, the table should be created dynamically (one should at least be able to define different amounts of rows and columns at the initialization).
    My problem is a combination of "creating dynamically" and binding attributes.
    To create an arbitrary amount of rows i use a "while(i < x) CustomNode{}" loop.
    To store the value of an attribute for a row i use sequences. So during the loop i do the following:
    someValue: bind sequenceValue[i]
    After quite some frustration i finally discovered that all the attributes will be bound to sequenceValue[last value of i].
    I don't find the right words right now, so here's some code to demonstrate the problem:
    package javafxtestbench;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.CustomNode;
    import javafx.scene.Node;
    import javafx.scene.Group;
    import javafx.scene.input.KeyEvent;
    var t1 = [true, true, false];
    Stage {
        title: "Application title"
        width: 250
        height: 500
        scene: Scene {
            content: [
                Text {
                    font : Font {
                        size : 16
                    x: 10
                    y: 30
                    content: "Application content"
                createFubar(),
    function createFubar(): Group{
        var grp : Group = Group{
            content:[         
                //this works
                /*b1{ blob: bind t1[0]}
                b1{ blob: bind t1[1]}
                b1{ blob: bind t1[2]}*/
                //this doesnt
                createSomeBs(),
            onKeyPressed: function( e: KeyEvent ):Void {
                println("=== KeyPressed ===");
                if (t1[2] == true) t1[2] = false
                else t1[2] = true;
                println("new sequence value: {t1}");
        grp.requestFocus();
        return grp;
    function createSomeBs(): Node[]{
        var i = 0;
        var grp : Node[];
        while(i < 3){
            insert b1{
                blob: bind t1[i]
            }into grp;
            i++;
        println("Sequence @ startup: {t1}");
        return grp;
    class b1 extends CustomNode{
        public var blob = true on replace{
                    println("attribute value b1.blob: {blob}");
        override function create():Node{
            Group{
    }As you can see i created a CustomNode (b1) and use two different methods to add it to the scene.
    First method: i add b1 thee times to the scene and set the attribute
    or
    2nd method: i use a loop (its index to bind the corresponding sequence entries to the attributes)
    finally i added a key listener, which changes the value of the last sequence value if an arbitrary key has been hit.
    output for using the "this works" block (1st method) after pressing some keys:
    === KeyPressed ===
    attribute value b1.blob: true
    new sequence value: truetruetrue  //contains {true, true, true}
    === KeyPressed ===
    attribute value b1.blob: false
    new sequence value: truetruefalse  //contains {true, true, false}and here for the "this doesnt" (2nd method) part:
    === KeyPressed ===
    attribute value b1.blob: false
    attribute value b1.blob: false
    attribute value b1.blob: false
    new sequence value: truetruetrueSo even though all elements in the sequence say "true", the attribute values of all CustomNodes will keep saying "false".
    Here it's due to the fact that "i" is in the end greater than the sequence (cause by the increment at the end of the loop).
    In the end all attributes will be bound to the same entry. So messing around with the index, so it doesn't get beyond the sequence size, won't help.
    So to finally bring this post to an end ;P, here's my question:
    How do you create an arbitrary amount of Nodes containing attributes which are bound to a list entries?
    Edited by: Mr._Moe on 08.09.2009 20:17

    HI
      May be  you can fetch the data from the table with  looping the table size  and catching the
    index of the elements .  To be more clear .
      1 . get the size of the table .
    int leadSelection=  wdcontext.node<TableName>.getLeadSelection();
        for (int i=0 ;i<n;i++)
          if(wdcontext.node<tablename>.isMultiselected(leadSelection))
            String name = wdcontext.node<tablename>.getelementatindex(leadSelection).getname();
             similarly fetch the size of the other elements from the table .
        and set to other RFC as
            ZClass  abc = new ZClass();
             abc.setName(name);
    wdcontext.node<NameName>.bind(abc);
    and othere thing is when  you use Abstract class you can insert only one element at a time .
    or may be you may want to set the values direclty to the RFC
           AbstractList  lst = new  ZClass.ZClassList();
           ZClass cls = new ZClass();
            clas.setName(name)
      lst.add(class);
    wdcontext.currentRFcNameElement.modelObject.setName(lst);
    and
    execute the RFC .
    murali

  • Problem with TabStrip  Tabs visible

    Hello Gurus,
    I have Tabstrip in my application and in that tabstrip i have 3 tabs called tab1, tab2 ,tab3.
    I have created above Tabstrip under
        DC->WebdynproComponent>View-> in view i have created Transparent Container of layout type GridLayout -
    > here i have created TabStrip with 3 Tabs like above mentioned names and  i have created UI elements(Like labels and input fields) each Tab.
    Once i deploy and run application, i am able to see only Tab1, remaing 2 Tabs are underlying with Tab1, i mean, unable to see all Tabs at a time, if i click on one Tab, remaining Tabs are underlying in that Tab.
       Could you please reply me back, how can i acheive this?
    Thanks
    Venkat.

    Hi Venkat,
    Check if the visible property of all the tabs within the tab strip is visible. Also, make sure thet in the tab strip properties you have selected the default tab to be visible in selectedTab property. Even if then it doesn't work, try increasing the overall width of the tabstrip.
    Let me know, if you still have any problem.
    Regards,
    Tushar Sinha

  • Problem with access sequence

    Hi guys,
    We have a typical problem.  When i verify a condition type 'A' through MM path, MM-->purchasing >conditions->define price determination process -->define condition types,the accesss sequence shown for the condition type is 'X'.  But when i go through the condition type through FI path, Financial Accointing --->Global settings -->Tax on sales and purchase -->Basic settings --> check calculation procedure it is showing the access sequence for the same condition type as 'Y'.
    Why is it happening like this?  Is it a standard thing?  When we use this condition type, which access sequence we should use for maintaining the condition record?
    Please suggest me
    chintu

    Hi Chintu,
    1. The condition that you see in MM customisation is purchasing side Pricing Condition.
    2. While the one you see in FI customisation is for Taxation Sale and Purchase.
    Both of the above have different pricing schemas.
    Incidentally you have a condition type with same name defined in both of them. Hence the access sequence which has to be picked will depend on whether the condition is used in Tax Procidure or Purchasing Pricing Procedure.
    So depending on your use of Condition type maintain the respective access sequence.
    Regards,
    Vishal

  • PLEASE HELP! problems with my sequence screen during paused playback

    my sequence screen has gone white with a black X in the upper right hand corner when I view my clips frame by frame, when it is paused or when i drag through the clips. I can only see my clips when i play them.
    powerbook g4   Mac OS X (10.4.6)  

    Welcome to the forum. Glad it solved your problem. This forum is one of the great resources for FCP users on the net. Come back often, read much and contribute.
    As a new user you may not be aware that the that people who ask questions reward people who answer them is to click on the or buttons over posts as appropriate...
    x

  • Problems with Ultrabeat sequencer

    Someone can tell me why before a jump in a playback cycle Ultrabeat sequencer lose the last notes i've prepared in the pattern? Before tho loop ends and starts again there is an empty bar of the drum sequence. Why? Can I solve the issue?
    Thank you.
    Luigi

    New girl taking her first bite of the apple,trying to post a question and cant figure it out (not blonde), but sense you guys are talking about the sequencer this might be a place to start
    my question is whne i finish a sequence and want to record it to my arrange and cant?, watched the ultrabeat tutorials and on the bottom left hand corner it says pattern with a button to the left of that, which maps the sequence to the matrix editor, Now the problem is that when i open ultrabeat on multi ch this magic button is not there and is replaced with a #sign so the very bottom left corner of ultrabeat it states pattern# .............could antone help me with ,not only enabling this feature, but actually finding it???, or any tips on recording my sequenes to my arrange?

  • Problem with DB sequences - Annoying

    Hi All,
    I have a target table and for one of the columns (which is not null), I am using a Db sequence as the mapping (abc_seq.nextval). It is set to Target.
    What happens is that sometimes when the interface runs, it runs without any issues..but sometimes, it simply cannot get a value for the sequence and hence tries to insert a NULL value and throws error.
    The column XXXXX cannot be null
    When I try to run the below in the DB, it works fine.
    select abc_seq.nextval from dual;
    This is very very annoying as when I think everything works fine, then this problem arises..Below are some of the ways that I am able to get rid of this problem so far...
    1. Restart ODI application.
    2. Open the interface again and then select : Execute on Target...
    This issue is happening for almost all the interfaces created.
    But these are not a permanent solution. Anyone can help me ?
    I am using ver - 11.1.1.6
    Edited by: 937825 on Jul 4, 2012 1:37 PM
    Edited by: 937825 on Jul 4, 2012 1:37 PM

    Hi,
    how you implemented mapping for sequence, using native sequence or any another way...
    Thanks,
    H

  • Having a problem with NavigatorContent and Visibility

    I have been working on this for more than a day, so it's time for some help...  I'm not a Flex/Flashbuilder expert, so any help is appreciated...
    I've got a NavigatorContent object that I want to set the visibility on based on the content of the object.  Bascially, if it is empty, I don't want to show it.  However, no matter what I do, I can't actually get the visibility to change.  It's ALWAYS visible.  I've checked the .visibile property and it IS set correctly, but I can still see the tab.  So, if I get the childNavReports.visible, it will say "false" but still display...
    Here's the code where it's built:
    var childNavReports:NavigatorContent = new NavigatorContent();
    childNavReports.name="assessment_reports"
    childNavReports.percentWidth = 100;
    childNavReports.percentHeight = 100;
    childNavReports.minWidth = 780;
    childNavReports.minHeight = 150;
    childNavReports.maxHeight = 170;
    childNavReports.visible=false;
    loadReportTree(childNavReports,graphic,layer); //this is where it's populated
    childNavReports.visible=false;
    childNavReports.enabled=false;
    childNavReports.includeInLayout=false;
    tabNavAssessment.addElement(childNavReports);
    I've even tried the following:
    childNavReports.setStyle("visibility", "hidden;");
    tabNavAssessment.getChildByName("assessment_reports").visible=false;
    tabNavAssessment.getTabAt(tabNavAssessment.getItemIndex(tabNavAssessment.getChildByName(" assessment_reports"))).visible=false;
    tabNavAssessment.getTabAt(tabNavAssessment.getItemIndex(tabNavAssessment.getChildByName(" assessment_reports"))).enabled=false;
    tabNavAssessment.getTabAt(tabNavAssessment.getItemIndex(tabNavAssessment.getChildByName(" assessment_reports"))).includeInLayout=false;
    Global.getLogger(this).info("childNavReports.visible added to tabs"+ childNavReports.visible.toString());
    tabNavAssessment.getChildByName("assessment_reports")
    tabNavAssessment.getTabAt(2).visible=false;  // 2 is the correct index
    tabNavAssessment.getTabAt(2).includeInLayout=false;
    tabNavAssessment.getTabAt(2).enabled=false;
    Any ideas?  Or work arounds?

    What model iMac do you have?
    What version of Mac OS is it running? If you don't know, try to give approximations on when it was set up and whether it was ever updated so we can take our best guess.
    How are you trying to boot from the install disc? Your description of 3 icons with x in a column' leads me to believe that you aren't booting from the install disc, but rather you are inserting the disc after booting from the OS that is installed on the hard drive. If that is what is happening you'll see something like this, although it will vary depending on the actual version of the Install Disc that you have and how you've chosen to view the files (icon, list, column, etc).
    What happens if you restart the system with the Install Disc inserted, then quickly hold down the 'c' key so that the system attempts to boot from the Install Disc. Do you still experience the same issue?

  • Message Mapping - problem with target sequence

    Hi, I hope somebody can help:
    I have already read lots of blog entries and help articles to find a solution but all the tricks with node functions and special conditions didn't help yet.
    I would like the sequence of A and B nodes just as is. In the source structure they are on the same level and in the target structure B is subnode of A.
    Thank you very much in advance.
    Source structure:
    Node A
    - source fields A
    Node A
    - source fields A
    Node A
    - source fields A
    Node B
    - source fields B
    Node A
    - source fields A
    Node B
    - source fields B
    Node B
    - source fields B
    Target structure (desired):
    A
    - fields A
    A
    - fields A
    A
    - fields A
       B
       - fields B
    A
    - fields A
       B
       - fields B
       B
       - fields B
    However, what I get is:
    A
    - fields A
       B
       - fields B
       B
       - fields B
       B
       - fields B
       B
       - fields B
    A
    - fields A
    A
    - fields A
    A
    - fields A

    Hi,
    Can u try like this.
    Map one to one.
    Dont use  any node function also dont change any conexts also af any node or element.
    But in target,make node B is under node A, and both are 0..unbounded occurence.
    Try with this....
    Let us know the result.
    Babu

  • Problem with subform (hidden & visible)

    I am new to Javascript but feel embarrassed to ask since I have some programming background. Putting my pride behind me. I am trying to use a drop down list ("A" & "B") that will hide or make visible two subforms ("Subform1" and "Subform2"). This is pretty basic but I can not get it to work. Any suggestions?
    if (this.rawValue == "A")
    Subform1.presence = "visible";
    Subform2.presence = "hidden";
    else if (this.rawValue == "B")
    Subform1.presence = "hidden";
    Subform2.presence = "visible";

    Hi,
    I have the same problem even the form is save as a dynamic form but I am using Switch case as below:
    var sNewSel = this.boundItem(xfa.event.newText);
    switch (sNewSel)
    // Option 1 - Out-of-Agency Training
    case "Out-of-Agency Training (Send to D/D/O Training Coordinator)":
    xfa.resolveNode("Form1750.MainPage.SubSignature.EmployeeSig").presence = "visible";
    xfa.resolveNode("Form1750.MainPage.SubSignature.EmpDate").presence = "visible";
    xfa.resolveNode("Form1750.MainPage.SubSignature.CommSig").presence = "invisible";
    xfa.resolveNode("Form1750.MainPage.SubSignature.CommDate").presence = "invisible";
    break;
    ... option 2
    .... option 3
    ..... option 4
    It works at first but it does not after the form is submitted as all of the fields are visible.
    Any help would be appreciated.
    Thanks in advance,
    Han Dao

  • Problem with access sequence display  in pricing Analysis:

    Hi
    We have a situation that seems to occur for a specific customer/material combination where there are missing key combinations in the pricing analysis screen.  In some instances, we will have 10 key combination for a condition type, but only the first 2 and the last 2 will be included, or in some cases, only the last 3 are shown.
    For ex. In the configuration ,Access sequence of the condition type ZXYZ , has  14  key combinations. But in the pricing analysis system shows only last 3 key combinations even though condition record is maintained for the first key combination.
    I want to understand why system is not showing all the key combinations in the pricing analysis and what is solution to resolve this problem?
    Looking forward or your valuable inputs.
    regards,
    Sachin Aher

    Hi
    We have a situation that seems to occur for a specific customer/material combination where there are missing key combinations in the pricing analysis screen.  In some instances, we will have 10 key combination for a condition type, but only the first 2 and the last 2 will be included, or in some cases, only the last 3 are shown.
    For ex. In the configuration ,Access sequence of the condition type ZXYZ , has  14  key combinations. But in the pricing analysis system shows only last 3 key combinations even though condition record is maintained for the first key combination.
    I want to understand why system is not showing all the key combinations in the pricing analysis and what is solution to resolve this problem?
    Looking forward or your valuable inputs.
    regards,
    Sachin Aher

  • XSLT-problem with sequence attributes

    Hi,
    in my XSLT-program (i'm a real newbie!) i'm adding dynamically attributes and their values to a tag, by using the following code :
    <SUPPLIER>
      <xsl:attribute name="FUNLOC">
        <xsl:value-of select="SUPPLIER_FUNLOC" />
      </xsl:attribute>
      <xsl:attribute name="NAME">
        <xsl:value-of select="SUPPLIER_NAME" />
      </xsl:attribute>
      <xsl:attribute name="LOCATION">
        <xsl:value-of select="SUPPLIER_LOCATION" />
      </xsl:attribute>
      </SUPPLIER>
    The problem is that the attributes in the resulting xml-file are alphabetically ordered. For instance :
    <SUPPLIER FUNLOC="9522222" LOCATION="NL" NAME="Test vendor VMOI">
    How can i arrange that the result of the xml-file is a sequence of entrance is taken, so
    <SUPPLIER FUNLOC="9522222" NAME="Test vendor VMOI" LOCATION="NL" >
    regards,
    Hans
    [email protected]

    Hi Hans,
    I think you're using ABAP-XSLT?!
    If you do so, you can solve the sorting problem by using a 1:1 Message mapping after the ABAP-XSLT mapping. This resolves the problem that the nodes are not in the correct order.
    In your interface mapping you have to configure 2 mappings:
    1: ABAP-XSLT
    2: Message mapping.
    Of course this means that the total processing time increases a little bit.
    I had the same problem with the sequence of my (ACC_DOCUMENT) idoc nodes, the ABAP-XSLT screwed up the idoc, but the 1:1 message mapping solved the problem.
    Regards,
    Mark

  • Sql Developer 1.5.5 bug with large sequence start values.

    We have a small table in our sql server 2005 schema (~700) rows. Its primary key is a bigint. We randomly generate ids for this table (don't ask). We have ids for this table which are larger than 2147483647. (java.lang.Integer.MAX_VALUE). I'm using a Windows 10g instance as the repository:
    SQL> select * from v$version
    2 ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Capturing this model works fine.
    Converting this model works fine.
    When the converted model is "Generated", Sql Developer stops generating the script before the worksheet window is opened with the generated sql. If run from sqldeveloper/bin, this exception is output to the console:
    java.lang.Exception: java.util.NoSuchElementException
    at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.start(AbstractMigrationProgressRunnable.java:141)
    at oracle.dbtools.migration.workbench.core.GenerateInitiator.launch(GenerateInitiator.java:42)
    at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:149)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:524)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:855)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:496)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
    at java.awt.Component.processMouseEvent(Component.java:6134)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5899)
    at java.awt.Container.processEvent(Container.java:2023)
    at java.awt.Component.dispatchEventImpl(Component.java:4501)
    at java.awt.Container.dispatchEventImpl(Container.java:2081)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
    at java.awt.Container.dispatchEventImpl(Container.java:2067)
    at java.awt.Window.dispatchEventImpl(Window.java:2458)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.util.NoSuchElementException
    at oracle.dbtools.metadata.persistence.PersistableObjectIterator.next(PersistableObjectIterator.java:131)
    at oracle.dbtools.migration.generate.GenerateWorker.generateSequences(GenerateWorker.java:862)
    at oracle.dbtools.migration.generate.GenerateWorker.generateIndividualSchema(GenerateWorker.java:456)
    at oracle.dbtools.migration.generate.GenerateWorker.generateSchema(GenerateWorker.java:365)
    at oracle.dbtools.migration.generate.GenerateWorker.runGenerate(GenerateWorker.java:220)
    at oracle.dbtools.migration.workbench.core.ui.GenerateRunner.doWork(GenerateRunner.java:71)
    at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.run(AbstractMigrationProgressRunnable.java:161)
    at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.run(MigrationProgressBar.java:569)
    at java.lang.Thread.run(Thread.java:619)
    A problem row can be viewed by issuing this query against the repository:
    select * from md_sequences where seq_start > 2147483647;
    We have one row returned. The oracle.dbtools.metadata.persistence.MdSequence class uses a java.lang.Integer value to store the start value for the sequence. The value stored in the repository's MD_SEQUENCE table overflows the Integer type.
    Updating the SEQ_START column in the MD_SEQUENCE table fixed our problem. (Well, I can now generate the schema. I may have other problems with the sequence being off).
    I've written this post to save someone else the day it took me to diagnose this problem with Sql Developer 1.5.5. At the very least Sql Developer should inform the user that it could not generate the script because of the large sequence start value. It basically swallows any error and terminates script generation without any type of feedback.

    Update: I was able to recreate the problem!
    1. Create a new table (I used TEST).
    2. Mark first column af primary key.
    3. Save the table.
    Notice the name of the primary key index created: (TEST_PK in my case)
    4. Edit the table.
    5. Under constraints change the name of the primary key constraint.
    6. Save the table.
    Notice that the index still has its original name.
    7. Edit the table.
    8. Change something.
    9. Attempt to save changes (Fails).
    Conclusion:
    Either SQL Developer should be aware of indexes with different name than a constraint,
    or when SQL Developer changes the name of a constraint with an index, both the constraint and the index should be renamed.

Maybe you are looking for