Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalAccessError when instantiate StepBuilder #68

Closed
arturgaleno opened this issue Dec 17, 2015 · 2 comments
Closed

IllegalAccessError when instantiate StepBuilder #68

arturgaleno opened this issue Dec 17, 2015 · 2 comments
Assignees

Comments

@arturgaleno
Copy link

Hi there!

I'm facing issues when trying instantiate a StepBuilder.

StepBuilder stepBuilder = new StepBuilder("foo" + i);

Then I recieve the following stack trace:

16:44:44,158 ERROR [org.quartz.core.JobRunShell] (DefaultQuartzScheduler_Worker-1) Job DEFAULT.Foo threw an unhandled Exception: : java.lang.IllegalAccessError: tried to access method org.jberet.job.model.Chunk.<init>()V from class org.jberet.job.model.StepBuilder
    at org.jberet.job.model.StepBuilder.<init>(StepBuilder.java:97) [jberet-core-1.2.0.Final.jar:1.2.0.Final]
    at footasks.Foo.execute(Foo.java:50) [classes:]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.1.jar:]
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.2.1.jar:]

16:44:44,160 ERROR [org.quartz.core.ErrorLogger] (DefaultQuartzScheduler_Worker-1) Job (DEFAULT.Foo threw an exception.: org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IllegalAccessError: tried to access method org.jberet.job.model.Chunk.<init>()V from class org.jberet.job.model.StepBuilder]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz-2.2.1.jar:]
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.2.1.jar:]
Caused by: java.lang.IllegalAccessError: tried to access method org.jberet.job.model.Chunk.<init>()V from class org.jberet.job.model.StepBuilder
    at org.jberet.job.model.StepBuilder.<init>(StepBuilder.java:97) [jberet-core-1.2.0.Final.jar:1.2.0.Final]
    at footasks.Foo.execute(Foo.java:50) [classes:]
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.1.jar:]
    ... 1 more

It's seens very strange, because, the constructor of Chunk have package modifier, and the StepBuilder is in the same package.

Can anyone help me?

Ps.: I'm running in Wildfly 8.1.0

@chengfang chengfang self-assigned this Dec 17, 2015
@chengfang
Copy link
Contributor

StepBuilder was introduced in JBeret 1.2.0, which was integrated into WildFly 10.

WildFly 8.1.0 version contains jberet-core 1.x, so will not work with newer version of jberet. Can you try WildFly 10 build?

@arturgaleno
Copy link
Author

Saddly, I can't try Wildfly 10. I will try update jbatch module on Wildfly manually, or downgrade jberet version.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants