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

Lattice demo throws IllegalStateException #29

Open
corem96 opened this issue Jun 13, 2024 · 0 comments
Open

Lattice demo throws IllegalStateException #29

corem96 opened this issue Jun 13, 2024 · 0 comments

Comments

@corem96
Copy link

corem96 commented Jun 13, 2024

I tried run the bade-lattice module example but this exception is thrown. Here is the full stacktrace:

Connected to the target VM, address: '127.0.0.1:51577', transport: 'socket'
2024/06/12 18:02:56  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : app.env          => default
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : app.pid          => 9748
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : app.devMode      => true
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : jdk.version      => 17.0.8
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : user.dir         => E:\Programas\Labs\java\Frameworks\Blade\blade-demos
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : java.io.tmpdir   => C:\Users\user\AppData\Local\Temp\
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : user.timezone    => America/Mexico_City
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : file.encoding    => UTF-8
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : app.classpath    => E:/Programas/Labs/java/Frameworks/Blade/blade-demos/blade-lattice/target/classes/

                                         __, _,   _, __, __,
                                         |_) |   /_\ | \ |_
                                         |_) | , | | |_/ |
                                         ~   ~~~ ~ ~ ~   ~~~
                                     :: Blade :: (v2.1.1.RELEASE) 

2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]          c.h.b.m.r.RouteMatcher : Add route  POST    /admin/deleteUser
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]          c.h.b.m.r.RouteMatcher : Add route  GET     /admin/deleteUser
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]          c.h.b.m.r.RouteMatcher : Add route  GET     /
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]          c.h.b.m.r.RouteMatcher : Add route  GET     /login
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]          c.h.b.m.r.RouteMatcher : Add route  GET     /admin/index
2024/06/12 18:02:57  INFO [          _(:3」∠)_ ]             c.h.b.s.NettyServer : Register bean: [com.bladejava.lattice.controller.IndexController@715a8342, com.hellokaton.blade.Environment@4ed2e7e9, com.hellokaton.lattice.LatticeMiddleware@1f998488, com.bladejava.lattice.controller.AdminController@5b43cc49, com.hellokaton.lattice.LatticeMiddleware@1f998488, com.bladejava.lattice.bootstrap.Bootstrap@7ea604f0, com.bladejava.lattice.bootstrap.Bootstrap@7ea604f0]
2024/06/12 18:02:57 ERROR [          _(:3」∠)_ ]                     c.h.b.Blade : Start blade failed java.lang.RuntimeException: java.lang.IllegalStateException: Can't inject bean: com.hellokaton.lattice.Lattice for field: private com.hellokaton.lattice.Lattice com.hellokaton.lattice.LatticeMiddleware.lattice
	at com.hellokaton.blade.ioc.bean.FieldInjector.injection(FieldInjector.java:43)
	at com.hellokaton.blade.kit.IocKit.lambda$initInjection$4(IocKit.java:113)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at com.hellokaton.blade.kit.IocKit.initInjection(IocKit.java:111)
	at com.hellokaton.blade.server.NettyServer.lambda$initIoc$1(NettyServer.java:169)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at com.hellokaton.blade.server.NettyServer.initIoc(NettyServer.java:168)
	at com.hellokaton.blade.server.NettyServer.start(NettyServer.java:128)
	at com.hellokaton.blade.Blade.lambda$start$2(Blade.java:707)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: Can't inject bean: com.hellokaton.lattice.Lattice for field: private com.hellokaton.lattice.Lattice com.hellokaton.lattice.LatticeMiddleware.lattice
	at com.hellokaton.blade.ioc.bean.FieldInjector.injection(FieldInjector.java:39)
	... 9 more

Disconnected from the target VM, address: '127.0.0.1:51577', transport: 'socket'

I did not modify anything just cloned the repo and run the LatticeApplication class

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

1 participant