You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "L-Angel (GitHub)" <gi...@apache.org> on 2019/01/13 13:51:45 UTC

[GitHub] [incubator-dubbo] L-Angel opened issue #3219: Tomcat 7.0.74 ForkJoin线程池创建的线程ClassLoader设置为SystemClassLoader

### Environment

* Dubbo version: xxx
* Operating System version: xxx
* Java version: 1.8

What actually happens?
使用ForkJoin线程池+Tomcat7.0.74+ReferenceConfig API调用
[https://bz.apache.org/bugzilla/show_bug.cgi?id=60620]https://bz.apache.org/bugzilla/show_bug.cgi?id=60620

```
(System.getProperty(FORK_JOIN_POOL_THREAD_FACTORY_PROPERTY) == null) {
                        System.setProperty(FORK_JOIN_POOL_THREAD_FACTORY_PROPERTY,
                                "org.apache.catalina.startup.SafeForkJoinWorkerThreadFactory");
                    }


@Override // to always report system loader
public ClassLoader getContextClassLoader() {
    return ClassLoader.getSystemClassLoader();
}
```


[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3219 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo] L-Angel commented on issue #3219: Tomcat 7.0.74 ForkJoin线程池创建的线程ClassLoader设置为SystemClassLoader

Posted by "L-Angel (GitHub)" <gi...@apache.org>.
In tomcat 7.0.74, modify the default threadfactory used create threads in forkjoin threadpool to safeForkJoinThreadFactory. And the the thread context classloader in SafeForkJoinThread that force set to SystemClassLoader.So when i use ReferenceConfig init in ForkJoinPool,will not load all use customzie class include created by proxy.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3219 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] ralf0131 commented on issue #3219: Tomcat 7.0.74 ForkJoin线程池创建的线程ClassLoader设置为SystemClassLoader

Posted by "ralf0131 (GitHub)" <gi...@apache.org>.
Hi, please describe your issue properly. What problem did you have?

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3219 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] L-Angel commented on issue #3219: Tomcat 7.0.74 ForkJoin线程池创建的线程ClassLoader设置为SystemClassLoader

Posted by "L-Angel (GitHub)" <gi...@apache.org>.
In tomcat 7.0.74, modify the default threadfactory used create threads in forkjoin threadpoll to safeForkJoinThreadFactory. And the the thread classloader in SafeForkJoinThread that force set to SystemClassLoader.So when i use ReferenceConfig init in ForkJoinPool,will not load all use customzie class include created with proxy.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3219 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] L-Angel commented on issue #3219: Tomcat 7.0.74 ForkJoin线程池创建的线程ClassLoader设置为SystemClassLoader

Posted by "L-Angel (GitHub)" <gi...@apache.org>.
In tomcat 7.0.74, modify the default threadfactory used create threads in forkjoin threadpool to safeForkJoinThreadFactory. And the the thread classloader in SafeForkJoinThread that force set to SystemClassLoader.So when i use ReferenceConfig init in ForkJoinPool,will not load all use customzie class include created with proxy.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3219 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] L-Angel commented on issue #3219: Tomcat 7.0.74 ForkJoin线程池创建的线程ClassLoader设置为SystemClassLoader

Posted by "L-Angel (GitHub)" <gi...@apache.org>.
In tomcat 7.0.74, modify the default threadfactory used create threads in forkjoin threadpool to safeForkJoinThreadFactory. And the the thread context classloader in SafeForkJoinThread that force set to SystemClassLoader.So when i use ReferenceConfig init in ForkJoinPool,will not load all use customzie class include created with proxy.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3219 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] L-Angel commented on issue #3219: Tomcat 7.0.74 ForkJoin线程池创建的线程ClassLoader设置为SystemClassLoader

Posted by "L-Angel (GitHub)" <gi...@apache.org>.
In tomcat 7.0.74, modify the default threadfactory used create threads in forkjoin threadpool to safeForkJoinThreadFactory. And the the thread context classloader in SafeForkJoinThread that force set to SystemClassLoader.So when i use ReferenceConfig init in ForkJoinPool,will not load all use customzie class include created by proxy. @ralf0131 

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3219 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org