My Oracle Support Banner

WebLogic Throws "NoSuchMethodException: weblogic.rmi.internal.CollocatedRemoteRef.<init>()" with Java Agent "spring-loaded" (Doc ID 2891457.1)

Last updated on AUGUST 23, 2024

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

WebLogic Throws "NoSuchMethodException: weblogic.rmi.internal.CollocatedRemoteRef.<init>()" with Java Agent "spring-loaded" enabled.

Changes

Enabling Java agent "spring-loaded" to WebLogic JVM

[oracle@sandbox ~]$ wget https://github.com/spring-projects/spring-loaded/archive/refs/heads/master.zip
[oracle@sandbox ~]$ unzip -qo master.zip
[oracle@sandbox ~]$ cd spring-loaded-master/
[oracle@sandbox spring-loaded-master]$ ./gradlew build -x test

Build with fail with error or hang @
<===----------> 30% EXECUTING [33s]
> :testdata-aspectj:aspectJ > Resolve dependencies of :testdata-aspectj:tools > aspectjtools-1.8.0.M1.pom

Ctrl + C
[oracle@sandbox spring-loaded-master]$ grep -ir 1.8.0.M1 .
./testdata-aspectj/build.gradle:def aspectjVersion = "1.8.0.M1"

change it to 1.8.0, since milestone repository can't be accessed!

Run again,
[oracle@sandbox spring-loaded-master]$ ./gradlew build -x test
[oracle@sandbox spring-loaded-master]$ find . -name 'springloaded*.jar'
./springloaded/build/libs/springloaded-1.3.0.BUILD-SNAPSHOT-sources.jar
./springloaded/build/libs/springloaded-1.3.0.BUILD-SNAPSHOT.jar
./springloaded/build/libs/springloaded-1.3.0.BUILD-SNAPSHOT-javadoc.jar

[oracle@sandbox spring-loaded-master]$ pwd
/home/oracle/spring-loaded-master

Create one WLS 14.1.1 domain with Oracle Jdk 1.8.0+,
JAVA_OPTS="${JAVA_OPTS} -javaagent:/home/oracle/spring-loaded-master/springloaded/build/libs/springloaded-1.3.0.BUILD-SNAPSHOT.jar -noverify"

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.