Code Monkey home page Code Monkey logo

Invocation of init method failed; nested exception is tech.powerjob.common.exception.PowerJobException: can't load CSInitializer[HTTP], ensure your package name start with 'tech.powerjob' and import the dependencies! about powerjob HOT 3 CLOSED

MartinKayJr avatar MartinKayJr commented on June 2, 2024
Invocation of init method failed; nested exception is tech.powerjob.common.exception.PowerJobException: can't load CSInitializer[HTTP], ensure your package name start with 'tech.powerjob' and import the dependencies!

from powerjob.

Comments (3)

lvhjean avatar lvhjean commented on June 2, 2024

这个问题有解决方案吗?

from powerjob.

lvhjean avatar lvhjean commented on June 2, 2024

@MartinKayJr
这个排查好长时间,发现是打包问题不支持;可能war包和jar包机制还是不一样的(这个再研究不在这里说);
将包类型war改为jar即可;

  • 看有说reflections版本低的我看已经是最新版了;
  • 还有说没有加过滤Scanner,这回不懂就查了下reflections的github库的例子,大佬写的也没问题虽然是0.9.X的方式,但是还是被支持的;
  • 最后采用尝试的太多,试了一下将war改为jar,居然Ok了。

from powerjob.

KFCFans avatar KFCFans commented on June 2, 2024

5.0.1 版本的 worker 官方组件加载不再依赖 reflections 了,这个问题应该已经被解决了。

from powerjob.

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.