GithubHelp home page GithubHelp logo

Comments (4)

smillidge avatar smillidge commented on June 12, 2024

Was this GlassFish 4.0, 4.1 or Payara 4.1.144?

from payara.

smillidge avatar smillidge commented on June 12, 2024

Apologies I just realised you are on Payara 4.1.
I tried your steps and didn't have a problem. The error you are getting is caused by the failure to autocreate the required JBatch tables.

Could you tell me whether you are using Payara 4.1.144 or a build of the current Master branch?

from payara.

maxlam79 avatar maxlam79 commented on June 12, 2024

Hi Steve,

I'm running on Payara 4.1.144, the one which I've downloaded from payara.co's website. When I posted this, I too have self doubts if this error could actually be reproduced, in fact, I have tried to wipe out the whole payara directory, unzip the payara.zip file again and re-setup the server as I use to have, run my app and...surprisingly the error is gone...

My code previously which triggered the error stated above is something like this:
StatelessBeanA
@TransactionAttribute( TransactionAttributeType.REQUIRED)
:- someMethod() which calls the below
-> StatelessBeanB
@TransactionAttribute( TransactionAttributeType.MANDATORY)
batchMethod(), which calls the below
-> batchJob.start()

With this, I wouldn't know if the transaction (which involves the application DB, which in my case is MariaDB) and Payara's Java DB) or the Executor Service (e.g. concurrent/__defaultManagedExecutorService) for the batch job is the cause of the issue here...

Anyway, we can mark this as unable to reproduce for now, but if I could find a consistent way of reproducing it, I'll drop you a comment. Sorry to have taken your time on this.

from payara.

smillidge avatar smillidge commented on June 12, 2024

No problem, the error is from the JBatch code and is because for some reason the tables haven't been created in your Derby database. These should be autocreated the first time JBatch is initialised. Deleting the whole directory will delete the Derby database as well so I suspect this time the database has been initialised correctly.

There may be a stack trace in the log indicating why creation of the tables failed.

from payara.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.