-
Notifications
You must be signed in to change notification settings - Fork 942
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
1.r.57 IocBean初始化,存在并发安全性问题? #1108
Comments
@ansjsun 是不是之前那个修改的问题 |
可否给出请求时的日志, 更好的推测原因 |
1.r.57是根据name加锁, 仔细思考了一下, 不可行
第一个问题无法解决,因为引用的bean无法直接推断, 按name解锁无法解决. 为了解决第一个问题, 必须还原全局锁 |
出错的过程是这样:
|
不好意思..这个bug有点大了...ioc过程的确得全局锁..应该是 @wendal 改的上一个版本...是好的...当时考虑不完全... |
我是从1.b.52直接升级过去的,不用临时解决,暂不升级即可,另外1.b.53没有问题。 |
@wqmain 麻烦你稍后试一下快照版,如果一切ok的话,我发布个1.r.57.r3 |
@wendal 兽总,快照版本没有问题了。 |
@wqmain ok,我下午或晚上发布个1.r.57.r3 |
Wizzercn
added a commit
to Wizzercn/NutzWk
that referenced
this issue
Aug 2, 2016
andrey-lazarevx
added a commit
to andrey-lazarevx/BoLaMNn
that referenced
this issue
Apr 22, 2022
ma496781333c
added a commit
to ma496781333c/originallyus
that referenced
this issue
Apr 22, 2022
hiperbolt9
added a commit
to hiperbolt9/MortenSchenkb
that referenced
this issue
Apr 22, 2022
Yacwamyunuanm
added a commit
to Yacwamyunuanm/lewang
that referenced
this issue
Apr 23, 2022
MonsterDOGzp
added a commit
to MonsterDOGzp/chrislim2888
that referenced
this issue
Apr 23, 2022
Zeniten2
added a commit
to Zeniten2/iTXTechl
that referenced
this issue
Apr 23, 2022
jwhy89d
added a commit
to jwhy89d/loresoftf
that referenced
this issue
Apr 23, 2022
AudunVN1
added a commit
to AudunVN1/parc-ccnx-archiveh
that referenced
this issue
Apr 23, 2022
fabrizzio-gzb
added a commit
to fabrizzio-gzb/DingHanyang9
that referenced
this issue
Apr 23, 2022
zhangzujian6
added a commit
to zhangzujian6/GleasonK4
that referenced
this issue
Apr 23, 2022
tspringky
added a commit
to tspringky/bizz84s
that referenced
this issue
Apr 23, 2022
JohnDDuncanIIIj
added a commit
to JohnDDuncanIIIj/ory
that referenced
this issue
Apr 23, 2022
ffinlyo
added a commit
to ffinlyo/ReptarKb
that referenced
this issue
Apr 23, 2022
authsolu
added a commit
to authsolu/NYAN-x-CATy
that referenced
this issue
Apr 23, 2022
authsolu
added a commit
to authsolu/NYAN-x-CATy
that referenced
this issue
Apr 23, 2022
dream7983
added a commit
to dream7983/lowRISCl
that referenced
this issue
Apr 23, 2022
MarynaPRa
added a commit
to MarynaPRa/log4cplusq
that referenced
this issue
Apr 24, 2022
libcgr
added a commit
to libcgr/alanshawb
that referenced
this issue
Apr 24, 2022
leeokdkpvv5c
added a commit
to leeokdkpvv5c/volevol9
that referenced
this issue
Apr 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
首先我是从1.b.52直接升级到1.r.57版本出现问题的(注,又试过1.b.53版本没问题),描述如下:
Action中@Inject注入一个声明了@IocBean的Service,Action中有三个方法分别调用了该Service的业务方法,前台通过3个ajax分别且同时提交请求到后台Action这三个方法,第1个ajax请求,Service正常初始化,但第2、3个ajax请求,报NPE,控制台在方法中可以打印出来Service为null。代码结构类似:
`@IocBean
@at("/index")
public class IndexAction extends BaseAction {
@Inject
private IndexService indexService;
}`
The text was updated successfully, but these errors were encountered: