Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8106951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:37:12+00:00 2026-06-06T00:37:12+00:00

Hi So I have created a quick table: package models; import javax.persistence.*; import play.db.ebean.Model;

  • 0

Hi So I have created a quick table:

package models;
import javax.persistence.*;
import play.db.ebean.Model;

@Entity
public class Phone extends Model {
@Id
public Long phoneID;
public String group;
public String name;
}

and i get the following error:

PersistenceException: Error getting sequence nextval
javax.persistence.PersistenceException: Error getting sequence nextval
com.avaje.ebean.config.dbplatform.SequenceIdGenerator.getMoreIds(SequenceIdGenerator.java:213)
com.avaje.ebean.config.dbplatform.SequenceIdGenerator.loadMoreIds(SequenceIdGenerator.java:163)
com.avaje.ebean.config.dbplatform.SequenceIdGenerator.nextId(SequenceIdGenerator.java:118)
com.avaje.ebeaninternal.server.deploy.BeanDescriptor.nextId(BeanDescriptor.java:1218)
com.avaje.ebeaninternal.server.persist.DefaultPersister.setIdGenValue(DefaultPersister.java:1304)
com.avaje.ebeaninternal.server.persist.DefaultPersister.insert(DefaultPersister.java:403)
com.avaje.ebeaninternal.server.persist.DefaultPersister.saveEnhanced(DefaultPersister.java:345)
com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:315)
com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:282)
com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1577)
com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1567)
com.avaje.ebean.Ebean.save(Ebean.java:538) play.db.ebean.Model.save(Model.java:76)
models.Command.createCommand(Command.java:100)
models.Command.populateCommands(Command.java:68)
Global.onStart(Global.java:22) play.core.j.JavaGlobalSettingsAdapter.onStart(JavaGlobalSettingsAdapter.scala:15)
play.api.GlobalPlugin.onStart(Global.scala:134)
play.api.Play$$anonfun$start$1.apply(Play.scala:60)
play.api.Play$$anonfun$start$1.apply(Play.scala:60)
scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
scala.collection.immutable.List.foreach(List.scala:45)
play.api.Play$.start(Play.scala:60)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:125)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3$$anonfun$1.apply(ApplicationProvider.scala:112)
scala.Option.map(Option.scala:133)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:112)
play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$3.apply(ApplicationProvider.scala:110)
scala.Either$RightProjection.flatMap(Either.scala:277)
play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110)
play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:110)
akka.dispatch.Future$$anon$3.liftedTree1$1(Future.scala:195)
akka.dispatch.Future$$anon$3.run(Future.scala:194)
akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:83)
akka.jsr166y.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1381)
akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259)
akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1478)
akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

is there a maximum number of tables I’m allowed using the h2 memory database? I don’t really understand where this error comes from. If i remove this line it works fine, but it looks like another class is causing the issues: createCommand, which just has the following:

public static void create(Command data) {
    data.save();
}
public static void populateCommands() {
    createCommand(0x00, "Cmd1");
    createCommand(0x02, "Cmd2");
    createCommand(0x03, "Cmd3");
}

Any help appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:37:13+00:00Added an answer on June 6, 2026 at 12:37 am

    I think the problem was that I had eclipse open.
    I have noticed some problems with eclipse and play running at the same time.
    I needed to close eclipse run the play framework and the open eclipse again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have created a simple public ref class in the vc++ project, which is
I have created one table using the below command: create table Table1( Id int
I have created an ActiveX dll using VB6 and packaged it using the Package
I have a table which is created dynamically. Sometimes it can have two columns
We have a table called Contracts. These contract records are created by users on
I have a quick question - is there a best practice in SQL Table
I have previously created localhost-only RoR applications where models were created manually with scaffolds
If I have a table in MySQL which represents a base class, and I
Good evening everyone, I have a quick question on a homework assignment my class
I have created the following C library for reading an image: typedef struct {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.