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

weixin.popular.util.XMLConverUtil#convertToXML 或 weixin.popular.util.XMLConverUtil#convertToObject(java.lang.Class<T>, java.lang.String) #175

Closed
kayuu0810 opened this issue Aug 27, 2018 · 0 comments

Comments

@kayuu0810
Copy link

该方法多个线程调用后,会出现空指针异常。
下面是测试用例:
public class Demo {
public static void main(String[] args) {
for (int i=0 ; i<1000; i++){
test1();
}
}
public static void test1(){
Thread thread = new Thread(new Runnable() {
@OverRide
public void run() {
MchBaseResult baseResult = new MchBaseResult();
baseResult.setReturn_code("SUCCESS");
baseResult.setReturn_msg("OK");
String s = XMLConverUtil.convertToXML(baseResult);
System.out.println(s);
}
});
thread.start();
}
}

@kayuu0810 kayuu0810 changed the title weixin.popular.util.XMLConverUtil#convertToXML weixin.popular.util.XMLConverUtil#convertToXML 或 weixin.popular.util.XMLConverUtil#convertToObject(java.lang.Class<T>, java.lang.String) Aug 27, 2018
liyiorg pushed a commit that referenced this issue Aug 29, 2018
@liyiorg liyiorg closed this as completed Sep 12, 2018
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