Sequence setup incorrectly

Hi,
I have an entity, where its id is generated by a sequence. The sequence was created as follows, in an oracle DB
CREATE SEQUENCE SEQ_BITACORA INCREMENT BY 1 START WITH 1 MAXVALUE 999999999999 MINVALUE 1 ;
In the entity class I have set the generated value annotation very simple
@Id
@GeneratedValue(strategy= GenerationType.SEQUENCE, generator="SEQ_BITACORA")
@Column(name="CODIGO_BITACORA", nullable = false)
public Long getCodigoBitacora() {
return codigoBitacora;
But when I try to merge the entity, it throws the following exception
javax.ejb.EJBException: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException: returning error in transaction: Exception TOPLINK-7027 (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: The sequence named SEQ_BITACORA is setup incorrectly. Its increment does not match its pre-allocation size.
When I query the nextval using sqlplus it works fine
select SEQ_BITACORA.NEXTVAL from dual;
NEXTVAL
2
I have another id generated with another sequence, but has exactly the same configuration. What could be going wrong with this sequence?
Thanks in advance.

It´s fixed by adding
@SequenceGenerator(name="SEQ_BITACORA_GENERATOR", sequenceName="SEQ_BITACORA", allocationSize=1)

Similar Messages

  • [TOPLINK-7027] The sequence named X is setup incorrectly.  Its inc

    I am testing a SOA composite application, that with a DB adapter performs an INSERT against an Oracle DB 11g and I'm getting this exception, on which I am bit confused since on my opinion the sequence definition looks fine.
    ps: from sqlplus works fine
    Dec 28, 2009 1:49:39 PM oracle.j2ee.ws.server.ServerMessages severeMsgServletException
    SEVERE: An error occurred for port: FabricProvider: javax.xml.rpc.soap.SOAPFaultException: Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception.
    insert failed. Descriptor name: [AuditDB.Log].
    Caused by Exception [TOPLINK-7027] (Oracle TopLink - 11g Release 1 (11.1.1.1.0) (Build 090527)): oracle.toplink.exceptions.ValidationException
    Exception Description: The sequence named [LOG_SEQ1] is setup incorrectly. Its increment does not match its pre-allocation size..
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    CREATE TABLE "POC_AUDIT"."LOG"
    (     "ID" NUMBER NOT NULL ENABLE,
         "WHO" VARCHAR2(20 BYTE) NOT NULL ENABLE,
         "WHEN" DATE NOT NULL ENABLE,
         "WHICH_CLIENT" VARCHAR2(20 BYTE),
         "WHICH_SYS" VARCHAR2(20 BYTE) NOT NULL ENABLE,
         "IP_CLIENT" VARCHAR2(20 BYTE),
         "WS_OPERATION" VARCHAR2(20 BYTE),
         CONSTRAINT "LOG_PK" PRIMARY KEY ("ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE OR REPLACE TRIGGER "POC_AUDIT"."LOG_TRG"
    BEFORE INSERT ON LOG
    FOR EACH ROW
    BEGIN
    <<COLUMN_SEQUENCES>>
    BEGIN
    IF :NEW.ID IS NULL THEN
    SELECT LOG_SEQ1.NEXTVAL INTO :NEW.ID FROM DUAL;
    END IF;
    END COLUMN_SEQUENCES;
    END;
    ALTER TRIGGER "POC_AUDIT"."LOG_TRG" ENABLE;
    CREATE SEQUENCE "POC_AUDIT"."LOG_SEQ1" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 22 CACHE 20 NOORDER NOCYCLE ;

    I've found it. It is in the dbAdapter connection pool's configuration
    In the Weblogic's console:
    1) Deployments->dbAdapter
    2) Configuration's Tab
    3) Click on (+)
    4) Click on your ConnectionPoolFactory
    5) Properties' Tab
    6) Change 'sequencePreallocationSize' property's value to 1. Press ENTER to actually change it.
    7) Click Save button.
    8) Go to Deployments
    9) Check dbAdapter and click Update
    10) Click Finish
    Edited by: Neuquino2 on Jun 3, 2010 5:18 PM

  • The sequence named "sequence name" is setup incorrectly.

    Hi everyone , I am using a trigger on my database when inserting a records..
    when i persiste the entity i am getting this error
    Exception Description: The sequence named [SEQUENCE_PROJECT_ASSIGNMENT] is setup incorrectly. Its increment does not match its pre-allocation size.; nested exception is: oracle.oc4j.rmi.OracleRemoteException: javax.persistence.EntityExistsException:
    Can anyone help me please...
    I am using EJB 3.0
    Thank you for your kind cooperation
    Regards
    Lutchumaya

    Okay. Suppose we have a simple entity:
    @Entity
    public class Book implements Serializable {
        @Id
        @GeneratedValue(
            strategy = GenerationType.SEQUENCE,
            generator = "bookIdGen"
        @SequenceGenerator(
            name = "bookIdGen",
            sequenceName = "seq_books_id",
            allocationSize = 1
        private Long id;
        // some more code
    }This configuration tells EJB3 (namely JPA) to fill in the id from a sequence "seq_books_id". It is important that the sequence is defined like that:
    CREATE SEQUENCE seq_books_id START WITH 1 INCREMENT BY 1; -- it's the value of INCREMENT BY that really mattersThe value of INCREMENT BY in your sequence should match the value of allocationSize in the @SequenceGenerator annotation shown above. The approach with the sequence generator allows you to forget about triggers here - the id is filled in automatically by JPA.
    Janusz

  • TOPLINK-7027 The sequence named is setup incorrectly

    Oracle Fusion 11g
    Oracle DB 11g
    JDev 11g
    I'm testing a SOA composite application and I am getting this error. I am a bit confused since the sequence definition looks fine and from SQLPLUS I don't get any error. The trace here below came from WebLogic SOA server.
    Any suggestions on this are welcomed.
    ec 28, 2009 1:49:39 PM oracle.j2ee.ws.server.ServerMessages severeMsgServletException
    SEVERE: An error occurred for port: FabricProvider: javax.xml.rpc.soap.SOAPFaultException: Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception.
    insert failed. Descriptor name: [AuditDB.Log].
    Caused by Exception [TOPLINK-7027] (Oracle TopLink - 11g Release 1 (11.1.1.1.0) (Build 090527)): oracle.toplink.exceptions.ValidationException
    Exception Description: The sequence named [LOG_SEQ1] is setup incorrectly. Its increment does not match its pre-allocation size..
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    CREATE OR REPLACE TRIGGER "POC_AUDIT"."LOG_TRG"
    BEFORE INSERT ON LOG
    FOR EACH ROW
    BEGIN
    <<COLUMN_SEQUENCES>>
    BEGIN
    IF :NEW.ID IS NULL THEN
    SELECT LOG_SEQ1.NEXTVAL INTO :NEW.ID FROM DUAL;
    END IF;
    END COLUMN_SEQUENCES;
    END;
    ALTER TRIGGER "POC_AUDIT"."LOG_TRG" ENABLE;
    CREATE SEQUENCE "POC_AUDIT"."LOG_SEQ1" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 22 CACHE 20 NOORDER NOCYCLE ;
    Thanks in advance

    Hi,
    Error shows that preallocation size set is not correct.For example,
    you must specify the allocationSize to match the INCREMENT value of the database sequence object. For example, if you have a sequence object that you defined to INCREMENT BY 5, set the allocationSize to 5 in the sequence generator definition.
    Also provide the session.xml and tlmap.xml to look in to the details further.
    Regards,
    P.Vinay Kumar

  • Transfering Sequences (Setup- Financial- Tax- Sequence)Through Copy Express

    Hi Everyone,
    Could anyone suggest how to transfer Sequences set in 1 Database to another Database through Copy Express? I can't find the option for Sequence transfer in Copy Express.
    Thanks,
    William

    Hi Everyone,
    Is there any way to transfer Sequences (Setup->Financial->Tax->Sequence) to another Database? Cause I cannot find any template for Sequences in DTW and also cannot find the Sequence option in Copy Express.
    Thanks,
    William

  • Still sequence setup for max resolution

    Hi All,
    I am creating a still sequence with audio but no video using CS4 PrePro.  I would like to provide the end-product to someone to use on their computer at the highest possible resolution.  The sequence contains pan and zoom effects. Since there is no video what are the best parameters to use when setting up the PrePro project and for encoding? I can setup the photograph using Photoshop CS4 to fit the suggested PrePro parameters. It is my understanding that DVD does not support Hi Res.
    Thanks,
    Randy

    Randy,
    That is correct. DVD-Video is pretty limited. This ARTICLE will give you tips on resizing your images for the best possible results with DVD-Video.
    Good luck,
    Hunt

  • Setup incorrect apple id now i cant activate iphone 4

    Hi, i have setup my new iPhone 4 with an incorrect apple I.D. I thought it had activated but the email i put was .co.uk instead of .com. I then tried to erase all settings to try a clean install. It wouldn't let me because i needed to turn find my phone on or off in icloud settings, but i couldn't because the apple id wasn't activated. I then put phone into dfu mode, now when i try to activate it i cant because it knows the email address i set the phone up with.
    what can i do now??

    Send it back. That's the activation lock and it's a theft deterrant program. If the seller can't or won't give you that apple ID to unlock it, then you'll never be able to use it (and it's a very real possibility that the ipad wasn't theirs to sell in the first place)

  • Background jobs - AE session environment setup incorrect ?

    Hi,
    I am trying to accomplish a small email queue myself,
    as due to the current privileges I have no access to the
    HTML Mail queue myself.
    Thus I stored emails to be send in a regular table..
    Sofar so good.
    In order to really email the pending messages, I have created a
    procedure which loops through all the pending messages and pushes them into
    the HTML email queue using :
    htmldb_mail.send( p_to => '<'|| v_mail.eml_to ||'>',
    p_cc => '<'|| v_mail.eml_cc ||'>',
    p_from => '<'|| v_mail.eml_from ||'>',
    p_SUBJ => v_mail.eml_subject,
    p_body => v_mail.eml_body);
    htmldb_mail.push_queue();
    I have tested the procedure manually, and it works..
    To be user independent I have created a DBMS_JOB which call above procedure once an hour,
    but this will give me following error on all pending emails :
    ORA-20001: This procedure must be invoked from within an application session.
    So far I can interprete this message is that a specific session environment has to be setup,
    which ofcourse DMBS_JOB is not doing.
    Therefor I tried :
    declare
    v_job number;
    begin
    v_Job := htmldb_plsql_job.submit_process('mail_pkg.processMailQueue;');
    end;
    The job gets into the queue, and I suppose it will set the environment so that all will go ok.
    Unfortunatly I do not see any activity on the pending emails.. It appears not to be executed at all,
    and I do not see anything happening.
    Now my question is how to submit a job using the correct HTMLDB session being setup ?
    with kind regards,
    Fred

    Hi Jes,
    By 'not having access to the mail queue' I mean I do not have the priveleges to look at the mail queue using the regular HTML DB userinterface....
    HOME => Application Builder => Application Administration => Email configuration => Manage Email Queue
    result :
    You have requested access to a page which requires specific database privileges. Enter the credentials for a database account that has been granted the DBA role.
    I can however submit new emails into the HMTL queue programmatically as described by using the HTMLDB api calls.
    My programmed procedure just submits a new email to be send using the HTMLDB api calls.
    If I call the amentioned procedure from within a 'legal' HTML session
    HOME => SQL => SQL Commands
    it is executed just fine...
    Execution of amentioned procedure outside of a legal HTMLDB session, e.g. by a regular DBMS_JOB will give the amentioned error...
    The question now is :
    *) How to programmatically build or instate a valid HTMLDB session so the procedure being called will run as if it was called from within a legal session.
    My procedure submitting the emails must first setup a valid HTMLDB session before
    submitting any emails via the HTMLDB api.
    I was thinking in lines of :
    PROCEDURE myEmailProc IS
    BEGIN
    -- Instate session
    HTMLDB_pkg.createValidSession(p_user => 'FRED', p_password=>'MyPassword');
    -- Submit to the email queue
    ..................................... existing functionality comes here
    END;
    regards,
    Fred

  • Email setup incorrectly done now can't seem to change it

    I was looking at the email setup and checked the  BES to see what it was (big mistake for my curiosity) and  now I cannot see the normal option of setting up an email address.  My carrier seems to have no idea (in Australia).  I have tried the option of wiping hand held ( from Security/general settings and then menu key)   I was told that would set everything back to the original but this has not happened.  I have managed to do most other things so I can import my contacts and calendar from my computer but emails now seem a big problem.   Is there a simple solution?   I found somewhere something about have A GPRS on my home screen as mine is gprs.  Couldn't find the solution.
    Also tried registering host routing table (whatever that means) and nothing happens.

    Do you have a BlackBerry Data Plan enabled on your account with your carrier or mobile provider?
    You must, in order to get the RIM push email functions you are looking for, as well as addtional BlackBerry data services such as the internet browser, Facebook for BlackBerry, BlackBerry Messenger, and much more.
    So, call your carrier and inquire about having the BlackBerry Data Plan added to your account.
    Good luck.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • About the shift sequence setup in capacity categary

    Hi
    Harish here
    Can any body give me the technicality behind the planning, how shift sequence will consider.
    For ex: i have created the wc and for that i have created the capacity as machine. in the capacity header i have entered the factory calendar and start time as 9.00 am and end time 5.30 pm and break as 1h. also i have created the group of shift sequence in that i have taken as general shift. that is only one sequence ( 9AM-5.30PM no break consider) that has been assigned to above category
    How the system is selecting the sequence for the group (enter in capacity catagory) as well as calendar and arrives the dates of schedule.

    ...

  • Apple id setup incorrectly - can't access iPad

    My father has been given an iPad from my sister but she has set-up the iPad with the wrong iTunes account. She set-up the iTunes from my dad so I have the iTunes ID and password but she typed in the wrong email when setting it up. My father has an iTunes Account that he was using on another iPad but now the new one wants verification from an email address that doesn't exist and my father cannot access.
    Furthermore, she added the wrong date for the personal information so I can't reset via the user question!!!
    There must be a way I can my father back on his iPad?

    See Kappy’s great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities
    https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
    About Apple ID security questions
    http://support.apple.com/kb/HT5665
    If you forgot the answers to your Apple ID security questions
    http://support.apple.com/kb/HT6170
     Cheers, Tom

  • Problem with S001 - Key field Sequence in table

    Hi,
    We want to use the extractor 2LIS_01_S001 with Delta. But delta is not working with these extractor. When I checked LBW0, I am getting error "The LIS environment is setup incorrectly".
    According to note 115192, the key fields in tables S001, S001BIW1 and S001BIW2 have to be in the same sequence.
    But we are on 4.7 with following Support Packs:
    SAP_APPL 470 0025 SAPKH47025 Logistics and Accounting
    PI 2004_1_470 0007 SAPKIPZI57 R/3 Plug-In (PI) 2004.1 for
    R/3 Enterpri
    PI_BASIS 2004_1_620 0010 SAPKIPYI5A Basis Plug-In
    (PI_BASIS) 2004_1_620
    And according to this note, solution is delivered with this Support Packs.
    Can you please tell me that if this note is mandatory for all the releases..?
    Did any one encounter this issue before..?
    Thanks & Regards,
    Samay Mehta

    I changed my entity: unchecked the X column to be primary key added RowID as a primary key. Now it works.
    What's wrong with my CHAR(1) as a primary key ?
    I also tried to add a Refresh button:
      <af:commandButton text="Refresh" id="cb3"/>and in the table add a partialTarget to the button. Now when I add new row and press the Refresh button - then it works.
    So it seems that the problem is when I add new row and enter data, the table is not refreshed and the row is missing it's primary key.
    Any solutions?
    Edited by: a.gruev on Nov 26, 2009 4:18 PM

  • What easy setup for 1280x1080 workflow?

    Format I received: (Shot on HPX170)
    DVCPRO HD i1080 1280X1080 (1888X1062)
    fps: 23.98 (24pA pulldown)
    FCP Sequence setup is: HD (1280X1080) 16:9
    Compressor: DVCPRO HD 1080i60
    My timeline doesn't need to render and everything looks good.
    What I don't understand, when I export as current setting, I get 1920X1080. What's going on?
    I thought 1080 was referred as 1920x1080, 720 is referred as 1280X720. I thought 'i60' was for interlaced.
    Motion exports it out squeezed, FCP upsized it, Mocha is a pain, and After Effects laughed at me. I'm calling it a night.

    Sorry, but Jerry is mistaken. This doesn't happen often...but he is mistaken.
    You shot 1080i60 at 24PA. DVCPRO HD is an anamorphic format that doesn't shoot full raster 1920x1080. It shoots 1280x1080 (other anamorphic formats shoot 1440x1080...only DVCPRO HD is 1280x1080). And since you shot 24pA, that means that you need to have REMOVE ADVANCED PULLDOW checked in the Long and Transfer Preferences (that sprocket looking menu). Then you will end up with 1280x1080 at 23.98. The camera records the 24progressive frames in the 30 interlaced format...and removes the redundant frames and the interlacing when you import into FCP.
    You did not shoot 720p60...but FYI that is a 60 fps format that you can also shoot at 24PN. That format records 24 actual FCP, with no pulldown needing to be removed.
    Shane

  • How to define Tax Sequence

    Dear All,
    When I am trying to go to tax payment wizard, it is asking me for sequence. However, when I am trying to define sequence. After clicking on Sequence-Setup, I am trying to Assign Sequence to Document. For example I am on AR Invoice Sequence screen. There I am suppose to assign the Set As default tab, which is appearing grey. That is system is not allowing me to click on the tab.
    How to activate that tab...or some other process needs to be followed?

    Hi.......
    Go to Administration> Setup> Financials> Tax> Sequence.
    Open this window Double click on Tax Payment Wizard like in Numbering series and press CTRL+I and define sequence and select location for which you are going to do Tax Payment Wizard.....
    Set it as default and then try to do Tax Payment Wizard.....
    Check this thread also......
    Sequence No. not defined for the location [Message 80072-11]
    Regards,
    Rahul
    Edited by: RAHUL MOUNDEKAR on Aug 27, 2011 1:49 PM

  • Browse sequences in WebHelp Pro

    I publish my project to WebHelp Pro and the browse sequence
    buttons appear but they do not work. Do browse sequences work in
    WebHelp Pro. They work fine for the same project when published to
    WebHelp.
    Thanks for any help.
    I am using RoboHelp 7 and RoboHelp Server 7

    Has anyone found a fix for this? I'm having a similar
    problem. I have a browse sequence setup, but when I publish my
    project as WebHelp Pro the forward and back buttons do not show up
    at all. I'm also missing the search box next to the "Powered by
    RoboHelp" image.
    I'm using RoboHelp X5 and RoboEngine 4. This project was
    originally created with RoboInfo 5, then converted to RoboHelp X5.
    Both the browse buttons and search box were visible in the RoboInfo
    project.
    Thanks for any help!

Maybe you are looking for

  • Handling events in a while loop

    In a while loop, I need to stop the loop after a change of state from false to true or true to false or I can do this by detecting a certain string from the serial port. Seems like I should be able to do this simply by using a counter which is edge t

  • Error in infosetquery

    Hi, 1)i got error in sq01? when i execute the infosetquery in sq01,it showing error message is ther is nodevice space 2)but when i test the query in sq01 and next execute then it is working . here my Question is whethere i follow the 2 step in produc

  • Why does Logic Pro 9 add 0.3s silence at start of all my tracks when I "export all tracks as audio files"?

    OK - when I "export all tracks as audio files" it works fine - I get a load of exported tracks (annoyingly with the stupid "_bip" prefix at the end). But I find that they all have about 0.3s silence inserted at the start. WHY??!!! I checked, and on t

  • Message no. BRAIN133

    Hello, When i'm running a BEX query, i get the following warning error msg : Message no. BRAIN133 "You have activated presentation hierarchy [hierachy_name] on characteristic Calendar Day. This hierarchy has the attribute that the suppression of 'non

  • ORGNIZATION MODEL

    HI. How to add custom attributes to an org unit....?     Is there any transaction ?   Regards, sanjana