What to do when javax.batch.operations.JobStartException occurs

--Environment --Windows 10 Pro 64bit version 1909 - Payara Server 5.194 - Eclipse Version 2020-03 - openjdk version 11

Event: Batch processing does not start and an error occurs

I'm not sure what's wrong with debugging.

log


javax.batch.operations.JobStartException: java.lang.NullPointerException  
    at com.ibm.jbatch.container.api.impl.JobOperatorImpl.start(JobOperatorImpl.java:92)  
...abridgement... 
Caused by: java.lang.NullPointerException: null  
    at com.ibm.jbatch.container.jobinstance.JobExecutionHelper.startJob(JobExecutionHelper.java:125)  
    at com.ibm.jbatch.container.impl.BatchKernelImpl.startJob(BatchKernelImpl.java:124)  
    at com.ibm.jbatch.container.api.impl.JobOperatorImpl.startInternal(JobOperatorImpl.java:123)  
    at com.ibm.jbatch.container.api.impl.JobOperatorImpl.start(JobOperatorImpl.java:88)  
    ... 161 common frames omitted 

Cause: Payara wasn't clean properly

Apparently, JobOperatorImpl was fixed because it was related to Payara. I used to do the same thing when I got an error that I didn't understand in GlassFish, but even if it became Payara ...

--Reference: JobOperatorImpl cannot be instantiated · Issue # 1103 · payara / Payara · GitHub --Reference: jakarta ee --NullPointerException running Batch job in WebLogic with managedScheduledExecutorService --Stack Overflow

Action: Delete the directory under Payara

#Delete these three directories. eclipseApps~I think that the directory must be Eclipse.
$ ls -la /c/apps/payara5/glassfish/domains/domain1/ | grep -e eclipse -e generated 
drwxr-xr-x 1 ponsuke 1049089 0 September 18 17:41 eclipseApps/ 
drwxr-xr-x 1 ponsuke 1049089 0 September 18 17:24 eclipseAppsTmp/ 
drwxr-xr-x 1 ponsuke 1049089 0 September 18 17:26 generated/
  1. Delete the above directory
  2. Remove the app deployed on Payara in Eclipse
  3. Clean Payara
  4. Clean the project
  5. Deploy and launch the app on Payara

Recommended Posts

What to do when javax.batch.operations.JobStartException occurs
What to do when a javax.el.PropertyNotWritableException occurs
What to do when IllegalStateException occurs in PlayFramework
What to do if ClassNotFoundException occurs when starting Tomcat
What to do when a null byte error occurs
Error ExecJS :: RuntimeUnavailable: What to do when it occurs
What to do when undefined method ʻuser_signed_in?'
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
What to do when debugging "Source not found"
What do you use when converting to String?
What to do and how to install when an error occurs in DXRuby 1.4.7
What to do if an error occurs when nokogiri enters when bundle install
Notes on what to do when a WebView ClassNotFoundException occurs in JavaFX 12
What to do when The SSL certificate has expired
What to do when JSF tags do not become HTML
What to do when rails creates a 〇〇 2.rb file
What to do when it becomes Unable to find CDI BeanManager.
What to do when you launch an application with rails
What to do when Cannot apply expression operators to method binding
What to do if a SAX Parser error occurs when using Liferay 7 / DXP on AWS
[Rails 6] What to do when a missing a template error occurs after introducing haml [Super easy]
What to do when the changes in the Servlet are not reflected
[Rails] What to do when rails s does not respond or does not stop
java.security.InvalidKeyException: What to do when Illegal key size or default parameters
What to do when you become a Problem During Content Assist
What to do when you run into a docker-compose node_modules problem
What to do after updating Dockerfile, docker-compose.yml
What to do if you install Ubuntu
What to do if an error occurs when doing npm install axios in React + Typescript project
[IOS] What to do when the image is filled with one color
What to do when CentOS cannot be started with VirtualBox on Catalina
What to do when "npm ERR! Code ENOSELF" is displayed after npm install
What to do when Blocked Host: "host name" appears in Ruby on Rails
no space left on device What to do if an error occurs
Notes on what to do when EC2 is set up with t2.micro
What to do if tomcat process remains when tomcat is stopped in eclipse
What to do when "call'Hoge.connection' to establish a connection" appears on rails c
What to do if the server tomcat dies
What to do if you push incorrect information
What to do if mvn archetype: generate fails
What I did when I converted java to Kotlin
What to do when you want to delete a migration file that is "NO FILE"
What to do when you think you can't do Groovy-> Java in IntelliJ IDEA CE
<f: ajax> Unable to attach <f: ajax> to non-ClientBehaviorHolder What to do when you become a parent
What to do when the value becomes null in the second getSubmittedValue () in JSF Validator
What to do when rails db: seed does not reflect in the database
[Grails] Error occurred running What to do when the Grails CLI does not start
wildflly10 java8 ERROR [org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl] (Periodic Recovery) IJ000906 What to do if an error occurs
What to do when "Nil location provided. Can't build URI." Appears on CarrierWave
What to do when is invalid because it does not start with a'-'
What to do if ffi installation fails when launching an application in Rails
[Ubuntu] What to do when MongoDB cannot be started due to a SocketException error
WELD-001408: What to do when Unsatisfied dependencies for type Bean with qualifiers @Default
What to do when booting Ubuntu on WSL2 and getting "Process terminated with code 1"
[React.useRef] What to do when the latest state cannot be referenced in the event listener
After installing'devise''bootstrap' of gemfile with rails, what to do when url is an error
What to do if the debug gem installation fails
What to do if the Rails server can't start
What to do when rbenv says that there is no readline or lib history
What to do if rails server can't be stopped
What to do if TextToSpeech doesn't work on Android 11