[jira] [Commented] (CXF-8042) doPrivileged block doesn't totally work in ProxyClassLoaderCache

2019-05-16 Thread Colm O hEigeartaigh (JIRA)


[ 
https://issues.apache.org/jira/browse/CXF-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16841150#comment-16841150
 ] 

Colm O hEigeartaigh commented on CXF-8042:
--

ProxyClassLoaderCache doesn't exist in CXF 3.2.x - should the fix-for version 
be updated?

> doPrivileged block doesn't totally work in ProxyClassLoaderCache
> 
>
> Key: CXF-8042
> URL: https://issues.apache.org/jira/browse/CXF-8042
> Project: CXF
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 3.2.9, 3.3.2
>Reporter: Jim Ma
>Assignee: Jim Ma
>Priority: Major
> Fix For: 3.3.3, 3.2.10
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> ProxyClassLoaderCache logs the classloader with  
> "currentInterface.getClassLoader()". This should use 
> getClassLoader(currentInterface) under a doPrivileged block.
> {code:java}
> private ClassLoader createProxyClassLoader(Class proxyInterface) {
>
> for (Class currentInterface : PROXY_INTERFACES.get()) {
> ret.addLoader(getClassLoader(currentInterface));
> LOG.log(Level.FINE, "interface for new created ProxyClassLoader 
> is "
> + currentInterface.getName());
> LOG.log(Level.FINE, "interface's classloader for new created 
> ProxyClassLoader is "
> + currentInterface.getClassLoader());
> }
> return ret;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CXF-8042) doPrivileged block doesn't totally work in ProxyClassLoaderCache

2019-05-16 Thread Jim Ma (JIRA)


 [ 
https://issues.apache.org/jira/browse/CXF-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jim Ma updated CXF-8042:

Affects Version/s: (was: 3.2.9)
Fix Version/s: (was: 3.2.10)

> doPrivileged block doesn't totally work in ProxyClassLoaderCache
> 
>
> Key: CXF-8042
> URL: https://issues.apache.org/jira/browse/CXF-8042
> Project: CXF
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 3.3.2
>Reporter: Jim Ma
>Assignee: Jim Ma
>Priority: Major
> Fix For: 3.3.3
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> ProxyClassLoaderCache logs the classloader with  
> "currentInterface.getClassLoader()". This should use 
> getClassLoader(currentInterface) under a doPrivileged block.
> {code:java}
> private ClassLoader createProxyClassLoader(Class proxyInterface) {
>
> for (Class currentInterface : PROXY_INTERFACES.get()) {
> ret.addLoader(getClassLoader(currentInterface));
> LOG.log(Level.FINE, "interface for new created ProxyClassLoader 
> is "
> + currentInterface.getName());
> LOG.log(Level.FINE, "interface's classloader for new created 
> ProxyClassLoader is "
> + currentInterface.getClassLoader());
> }
> return ret;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CXF-8042) doPrivileged block doesn't totally work in ProxyClassLoaderCache

2019-05-16 Thread Jim Ma (JIRA)


[ 
https://issues.apache.org/jira/browse/CXF-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16841210#comment-16841210
 ] 

Jim Ma commented on CXF-8042:
-

[~coheigea] You are right. These lines code doesn't exist in 3.2.x. I've 
updated the fix version. Thanks. 

> doPrivileged block doesn't totally work in ProxyClassLoaderCache
> 
>
> Key: CXF-8042
> URL: https://issues.apache.org/jira/browse/CXF-8042
> Project: CXF
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 3.3.2
>Reporter: Jim Ma
>Assignee: Jim Ma
>Priority: Major
> Fix For: 3.3.3
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> ProxyClassLoaderCache logs the classloader with  
> "currentInterface.getClassLoader()". This should use 
> getClassLoader(currentInterface) under a doPrivileged block.
> {code:java}
> private ClassLoader createProxyClassLoader(Class proxyInterface) {
>
> for (Class currentInterface : PROXY_INTERFACES.get()) {
> ret.addLoader(getClassLoader(currentInterface));
> LOG.log(Level.FINE, "interface for new created ProxyClassLoader 
> is "
> + currentInterface.getName());
> LOG.log(Level.FINE, "interface's classloader for new created 
> ProxyClassLoader is "
> + currentInterface.getClassLoader());
> }
> return ret;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Resolved] (CXF-8042) doPrivileged block doesn't totally work in ProxyClassLoaderCache

2019-05-16 Thread Jim Ma (JIRA)


 [ 
https://issues.apache.org/jira/browse/CXF-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jim Ma resolved CXF-8042.
-
Resolution: Fixed

> doPrivileged block doesn't totally work in ProxyClassLoaderCache
> 
>
> Key: CXF-8042
> URL: https://issues.apache.org/jira/browse/CXF-8042
> Project: CXF
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 3.3.2
>Reporter: Jim Ma
>Assignee: Jim Ma
>Priority: Major
> Fix For: 3.3.3
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> ProxyClassLoaderCache logs the classloader with  
> "currentInterface.getClassLoader()". This should use 
> getClassLoader(currentInterface) under a doPrivileged block.
> {code:java}
> private ClassLoader createProxyClassLoader(Class proxyInterface) {
>
> for (Class currentInterface : PROXY_INTERFACES.get()) {
> ret.addLoader(getClassLoader(currentInterface));
> LOG.log(Level.FINE, "interface for new created ProxyClassLoader 
> is "
> + currentInterface.getName());
> LOG.log(Level.FINE, "interface's classloader for new created 
> ProxyClassLoader is "
> + currentInterface.getClassLoader());
> }
> return ret;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (CXF-8044) Setting compiler-fork to true is causing problems with Dynamic client

2019-05-16 Thread Daniel Kulp (JIRA)
Daniel Kulp created CXF-8044:


 Summary: Setting compiler-fork to true is causing problems with 
Dynamic client
 Key: CXF-8044
 URL: https://issues.apache.org/jira/browse/CXF-8044
 Project: CXF
  Issue Type: Bug
  Components: Simple Frontend
Affects Versions: 3.3.2
Reporter: Daniel Kulp
Assignee: Daniel Kulp
 Fix For: 3.3.3


The simple frontend's DynamicClient, when it detects it is running on Java9+, 
sets the system property org.apache.cxf.common.util.Compiler-fork to true.   
This causes a variety of problems on Java 11 systems, in particularly on 
Windows.  There should be no need to set that and there isn't a way currently 
to NOT set it.





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)