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

Add slow fallback map for odd class loading cases, and associated fixes #213

Merged
merged 3 commits into from
Feb 17, 2017

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Feb 16, 2017

…to avoid mismatch on deserialize and other possible scenarios involving creation of a proxy under differing class loaders than expected

@wildfly-ci
Copy link

Build 363 outcome was FAILURE using a merge of 57c43fb
Summary: Tests failed: 2 (2 new), passed: 1 Build time: 00:00:06

Failed tests

org.jboss.ejb.client.ProxyEqualityTestCase.testClientProxyEquality: java.lang.IllegalArgumentException: com.sun.proxy.$Proxy2 is not an interface
	at org.jboss.ejb.client.EJBProxyInformation$1.doCompute(EJBProxyInformation.java:77)
	at org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:72)
	at org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:66)
	at java.lang.ClassValue.getFromHashMap(ClassValue.java:227)
	at java.lang.ClassValue.getFromBackup(ClassValue.java:209)
	at java.lang.ClassValue.get(ClassValue.java:115)
	at org.jboss.ejb.client.EJBProxyInformation.forViewType(EJBProxyInformation.java:213)
	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:99)
	at com.sun.proxy.$Proxy2.equals(Unknown Source)
	at org.jboss.ejb.client.ProxyEqualityTestCase.testClientProxyEquality(ProxyEqualityTestCase.java:43)
------- Stdout: -------
15:08:06,872 INFO  [org.jboss.ejb.client] (main) JBoss EJB Client version 4.0.0.Beta16-SNAPSHOT


org.jboss.ejb.client.serialization.ProxySerializationTestCase.testProxySerialization: java.lang.IllegalArgumentException: com.sun.proxy.$Proxy2 is not an interface
	at org.jboss.ejb.client.EJBProxyInformation$1.doCompute(EJBProxyInformation.java:77)
	at org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:72)
	at org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:66)
	at java.lang.ClassValue.getFromHashMap(ClassValue.java:227)
	at java.lang.ClassValue.getFromBackup(ClassValue.java:209)
	at java.lang.ClassValue.get(ClassValue.java:115)
	at org.jboss.ejb.client.EJBProxyInformation.forViewType(EJBProxyInformation.java:213)
	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:99)
	at com.sun.proxy.$Proxy2.equals(Unknown Source)
	at org.jboss.ejb.client.serialization.ProxySerializationTestCase.testProxySerialization(ProxySerializationTestCase.java:63)


@dmlloyd dmlloyd changed the title Use the literal proxy instance class to get proxy method information … Add slow fallback map for odd class loading cases, and associated fixes Feb 17, 2017
@dmlloyd dmlloyd merged commit 7583c49 into wildfly:master Feb 17, 2017
@dmlloyd dmlloyd deleted the proxy branch February 17, 2017 03:12
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

Successfully merging this pull request may close these issues.

2 participants