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

NoClassDefFoundError: sun/reflect/ReflectionFactory (JAX-RS Client + Mybatis) #369

Closed
dhaalves opened this issue Sep 2, 2020 · 1 comment
Labels

Comments

@dhaalves
Copy link

dhaalves commented Sep 2, 2020

The error occur whenever I try to call a JAX-RS endpoint on Application A, using JAX-RS Client from Application B

  • Both Applications are deployed on same server (Wildfly 18).
  • On the Application A, I have Mybatis dependency for DB operations
  • Tested with: Dcevm-11.0.8+1 (2020-07-27), Dcevm-11.0.7+4 (2020-06-27),dcevm-11.0.8+1-staged, dcevm-11.0.7+4-staged.
  • If I let Hotswapagent disabled no error occur.

Caused by: java.lang.NoClassDefFoundError: sun/reflect/ReflectionFactory
at deployment.financeiro-api.war//org.hotswap.agent.plugin.mybatis.proxy.ConfigurationProxy.proxy(ConfigurationProxy.java:89)
at deployment.financeiro-api.war//org.apache.ibatis.builder.xml.XMLConfigBuilder.(XMLConfigBuilder.java:92)
at deployment.financeiro-api.war//org.apache.ibatis.builder.xml.XMLConfigBuilder.(XMLConfigBuilder.java:82)
at deployment.financeiro-api.war//org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:77)
at deployment.financeiro-api.war//org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:64)
at deployment.financeiro-api.war//br.uel.ati.core.api.mybatis.SqlSessionFactoryProvider.produceFactory(SqlSessionFactoryProvider.java:27)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jboss.weld.core@3.1.2.Final-redhat-00001//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
... 110 more

@skybber skybber added the bug label Oct 2, 2020
@skybber skybber closed this as completed in 2e224f6 Oct 6, 2020
@skybber
Copy link
Contributor

skybber commented Oct 6, 2020

Should be fixed now in 1.4.2-SNAPSHOT. I've updated release packages, could you please check it and let me know if it helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants