Failed to define class
by Sam Thomas
Hi guys!
Through the Instrumentation object that I receive when I register an agent
I can obtain all the loaded classes.
Now each of these loaded classes (Class objects) I use getClasses() and
getDeclaredClasses() to get the list of classes that are referred to within
the loaded class as well as the Method equivalents to get methods of that
loaded class.
The thing is those methods fail sometimes for reasons I am not sure of. I
catch the NoClassDefFoundError in my code, but Jboss still dumps a warn
message in console for the same.
How can I prevent Jboss from dumping this log - since this error was
already caught by my code - or is there a way of avoiding this somehow.
As an example,
On the class object for
org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator
when
I call getClasses(), it fails with the below stack - which I do catch for
NoClassDefFoundError.
java.lang.NoClassDefFoundError: Failed to link
org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
(Module "deployment.spring-greeter.war" from Service Module Loader):
org/aspectj/util/PartialOrder$PartialComparable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:839)
at
org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:424)
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:519)
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
at org.jboss.modules.Module.loadModuleClass(Module.java:731)
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at java.lang.Class.getDeclaredClasses0(Native Method)
at java.lang.Class.getDeclaredClasses(Class.java:1867)
at java.lang.Class$2.run(Class.java:1504)
at java.lang.Class$2.run(Class.java:1499)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.Class.getClasses(Class.java:1498)
But i see this warn message on the console from jboss
2020-01-24 20:37:32,458 WARN [org.jboss.modules.define] (Agent-Thread)
Failed to define class
org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
in Module "deployment.spring-greeter.war" from Service Module Loader:
java.lang.NoClassDefFoundError: Failed to link
org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
(Module "deployment.spring-greeter.war" from Service Module Loader):
org/aspectj/util/PartialOrder$PartialComparable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:839)
at
org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:424)
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:519)
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
at org.jboss.modules.Module.loadModuleClass(Module.java:731)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at java.lang.Class.getDeclaredClasses0(Native Method)
at java.lang.Class.getDeclaredClasses(Class.java:1867)
at java.lang.Class$2.run(Class.java:1504)
at java.lang.Class$2.run(Class.java:1499)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.Class.getClasses(Class.java:1498)
Thanks
./Sam
4 years, 10 months
Possible component upgrades report - Wildfly
by thofman@redhat.com
Generated at 01:49:17 SGT 2020-01-19
Searched in following repositories:
* Central: https://repo1.maven.org/maven2/
* JBossPublic: https://repository.jboss.org/nexus/content/repositories/public/
Possible upgrades:
com.fasterxml.jackson.core:jackson-annotations:2.10.1 -> 2.10.2 (Central)
com.google.code.gson:gson:2.8.2 -> 2.8.6 (Central)
com.netflix.hystrix:hystrix-core:1.5.12 -> 1.5.18 (Central)
com.squareup.okhttp3:okhttp:3.9.0 -> 3.9.1 (Central)
com.sun.xml.fastinfoset:FastInfoset:1.2.13 -> 1.2.17 (Central)
io.jaegertracing:jaeger-client:0.34.1 -> 0.34.2 (Central)
io.netty:netty-all:4.1.42.Final -> 4.1.45.Final (Central)
io.opentracing.contrib:opentracing-interceptors:0.0.4 -> 0.0.5 (Central)
io.opentracing.contrib:opentracing-tracerresolver:0.1.5 -> 0.1.8 (Central)
io.reactivex:rxjava:1.2.0 -> 1.2.10 (Central)
io.reactivex.rxjava2:rxjava:2.2.5 -> 2.2.17 (Central)
io.smallrye:smallrye-fault-tolerance:2.1.4 -> 2.1.5 (Central)
io.smallrye:smallrye-jwt:2.0.11 -> 2.0.12 (Central)
io.smallrye:smallrye-opentracing:1.3.0 -> 1.3.2 (Central)
io.undertow.js:undertow-js:1.0.2.Final -> 1.0.3.Final (Central)
joda-time:joda-time:2.9.7 -> 2.9.9 (Central)
net.bytebuddy:byte-buddy:1.9.11 -> 1.9.16 (Central)
org.apache.activemq:activemq-artemis-native:1.0.0 -> 1.0.1 (Central)
org.apache.avro:avro:1.7.6 -> 1.7.7 (Central)
org.apache.cxf:cxf-core:3.3.4 -> 3.3.5 (Central)
org.apache.cxf.xjc-utils:cxf-xjc-runtime:3.3.0 -> 3.3.1 (Central)
org.apache.james:apache-mime4j:0.6 -> 0.6.1 (Central)
org.apache.myfaces.core:myfaces-api:2.3.1 -> 2.3.6 (Central)
org.apache.openjpa:openjpa-kernel:2.4.2 -> 2.4.3 (Central)
org.apache.qpid:proton-j:0.33.2 -> 0.33.3 (Central)
org.apache.ws.xmlschema:xmlschema-core:2.2.4 -> 2.2.5 (Central)
org.cryptacular:cryptacular:1.2.0 -> 1.2.3 (Central)
org.eclipse:yasson:1.0.5 -> 1.0.6 (Central)
org.eclipse.microprofile.rest.client:microprofile-rest-client-api:1.3.2 -> 1.3.4 (Central)
org.eclipse.persistence:eclipselink:2.7.3 -> 2.7.5 (Central)
org.hdrhistogram:HdrHistogram:2.1.9 -> 2.1.12 (Central)
org.hibernate:hibernate-search-backend-jms:5.10.7.Final -> 5.10.8.Final (Central)
org.jasypt:jasypt:1.9.2 -> 1.9.3 (Central)
org.jboss.activemq.artemis.integration:artemis-wildfly-integration:1.0.2 -> 1.0.2-wildfly-1 (JBossPublic)
org.jboss.arquillian.container:arquillian-container-test-spi:1.4.0.Final -> 1.4.1.Final (Central)
org.jboss.security:jbossxacml:2.0.8.Final -> 2.0.9.Final (JBossPublic)
org.jboss.spec.javax.faces:jboss-jsf-api_2.3_spec:3.0.0.SP01 -> 3.0.0.SP1 (Central)
org.jgroups:jgroups:4.1.6.Final -> 4.1.9.Final (Central)
org.jgroups.kubernetes:jgroups-kubernetes:1.0.13.Final -> 1.0.14.Final (Central)
org.opensaml:opensaml-core:3.3.0 -> 3.3.1 (Central)
org.reactivestreams:reactive-streams:1.0.2 -> 1.0.3 (Central)
org.wildfly:wildfly-naming-client:1.0.11.Final -> 1.0.12.Final (JBossPublic)
org.wildfly.wildfly-http-client:wildfly-http-client-common:1.0.18.Final -> 1.0.20.Final (Central)
xalan:serializer:2.7.1.jbossorg-4 -> 2.7.2 (Central)
44 items
Report generated by Maven Dependency Updater
https://github.com/jboss-set/maven-dependency-updater
4 years, 10 months
WildFly news: 19.0.0.Beta1 release; new MicroProfile 3.2 Features; Schedule notes
by Brian Stansberry
They say not to publish news on a Friday afternoon, but here it is:
WildFly 19 Beta1 & MP 3.2
--------------------------------
I'm pleased to announce that WildFly 19.0.0.Beta1 zip has been released!
Get it at https://wildfly.org/downloads.
Lots of good stuff in this release but the big news is that we've
implemented MicroProfile Fault Tolerance, MicroProfile JWT Authentication
and MicroProfile OpenAPI. This means WildFly 19 will provide all the specs
in the MicroProfile 3.2 platform! Kudos everyone involved from the WildFly
community for a great job in getting this done.
I go into further details in my post at
https://wildfly.org/news/2020/01/17/WildFly19-Beta-Released/
Please check out the release and give us your feedback.
WildFly 19 Schedule
------------------------
We've been targeting January 30 as the release date for WildFly
19.0.0.Final, but there's a decent chance we'll delay that a couple weeks.
The contents of the various MicroProfile 3.3 specs are expected to be
finalized in early February and it's interesting to see whether the changes
will be both small enough and useful enough to make it worthwhile to pull
them into WF 19. And, TBH I don't mind having a bit more time for release
polishing for 19. ;)
Have a great weekend!
Best regards,
Brian
4 years, 10 months
JDK 14 is now in Rampdown Phase Two
by Rory O'Donnell
Hi David & Richard,
*Per the JDK 14 schedule , we are now in Rampdown Phase Two
*
*Please advise if you have any open high priority issues.*
**
* The overall feature set is frozen.
o No further JEPs will be targeted to this release
o Per the JDK Release Process [1] we now turn our focus to P1 and
P2 bugs.
o For more details , see Mark Reinhold's email to jdk-dev mailing
list [2]
JDK 14 Early Access build 32 is availableat : - jdk.java.net/14/
* These early-access , open-source builds are provided under the
o GNU General Public License, version 2, with the Classpath
Exception <http://openjdk.java.net/legal/gplv2+ce.html>.
* Recent fixes that maybe of interest:
o Build 32
+ JDK-8230318: Better trust store usage
+ JDK-8225773: jdeps --check produces NPE if there is any
missing module dependence
# reported by JUnit5
+ JDK-8235870: C2 crashes in
IdealLoopTree::est_loop_flow_merge_sz()
# duplicate of Apache Lucene's bug.
o Build 31
+ JDK-8235984: C2: assert(out->in(PhiNode::Region) == head ||
out->in(PhiNode::Region) == slow_head) failed: phi must be
either part of the slow or the fast loop
# duplicate of JDK-8236412 reported by Apache Lucene.
+ JDK-8236695: java.lang.Record should be declared with an
explicit constructor
JDK 15 Early Access build 6 is availableat : - jdk.java.net/15/
* These early-access , open-source builds are provided under the
o GNU General Public License, version 2, with the Classpath
Exception <http://openjdk.java.net/legal/gplv2+ce.html>.
* Release notes
o http://jdk.java.net/15/release-notes
* Recent fixes that maybe of interest :
o Build 6
+ JDK-7143743: Potential memory leak with zip provider
# Contributed by Jaikiran!
+ JDK-8213222: remove RMIConnectorServer.CREDENTIAL_TYPES
+ JDK-8235870: C2 crashes in
IdealLoopTree::est_loop_flow_merge_sz()
# duplicate of Apache Lucene's bug.
o Build 5
+ JDK-8227313: Support monetary grouping separator in
DecimalFormat/DecimalFormatSymbols
+ JDK-8236695: java.lang.Record should be declared with an
explicit constructor
*Invitation to Project Skara update and demo, January 22, 2020, 8:30 am PST
*
* See Joe Darcy's email [3]*
*
**
Rgds, Rory
[1] http://openjdk.java.net/jeps/3
[2] https://mail.openjdk.java.net/pipermail/jdk-dev/2020-January/003846.html
[3] https://mail.openjdk.java.net/pipermail/discuss/2020-January/005274.html
--
Rgds, Rory O'Donnell
Quality Engineering Manager
Oracle EMEA, Dublin, Ireland
4 years, 10 months