I tried attach bytebuddy agent to the old applet. In some runtime stage, that old applet receives a signed jar file from the other host and load them dynamically.
The problem is that the agent doesn't work in that dynamic loading stage. I think
that in such a case, Rafael Winterhalter told that with(ProtectionDomain) and AgentBuilder.Transformer.ForAdvice are just solution. But how to apply them? I tried as far as possible I can to get nothing. And there are no usecase on the web. Anyone help me.
Thank in advance.
How to attach bytebuddy agent to the dynamic class, especially, when dynamic class are loaded from signed jar file
357 Views Asked by boun At
1
There are 1 best solutions below
Related Questions in BYTE-BUDDY
- How do I use byte buddy to create a lazy loading class?
- Android : load(getClass().getClassLoader(),classLoadingStrategy) throws java.lang.IllegalStateException
- Display generated bytebuddy bytecode
- How can I create a proxy when the class having only one private constructor?
- MethodDelegation with Passing Object Array to Specific Parameters Using ByteBuddy
- How to use ByteBuddy @Pipe annotation with @FieldValue to implement delegate pattern?
- how to intercept a method with specific parameters with bytebuddy
- How to serialize runtime created class in Apache Beam
- Is there any method in ByteBuddy to convert a TypeDescription.Generic into an appropriate java.lang.reflect.Type?
- Byte Buddy with JBOSS / Wildfly EJB 3 classes
- Failing to change the argument value using bytebuddy
- How to read a Java class method annotation with ByteBuddy
- How do I install and use a constant MethodHandle in ByteBuddy?
- How to add a source code file as a build dependency and/or access definitions in a source file?
- What is the difference between ByteBuddy's Implementation.Composable and Implementation.Compound?
Related Questions in JAVAAGENTS
- Jolokia agent config using Spring
- Spring: add Spring instrument as an library rather than javaagent
- Setting javaagent for particular task in Gradle
- Any way on starting an agent without the attach libary?
- ASM Objectweb visitors without transformation
- What are the parameters that prove Obfuscated code is better than simple code in java.
- How to provide jar as javaagent in properties file?
- Alter value of a static field during class loading using a Java agent
- classPool.get(className) throws RuntimeException cannot find class
- Eclipse jar packing doesn't accept correct MANIFEST.MF attributes
- Does Java Instrumentation Agent support New Method Definition in a class?
- pass my javaagent to tomcat-maven-plugin NOT Tomcat Server
- How to add vm option to jetty?
- How can I display the result of an LDAP query (in my case a list of OUs), done with some Java code, in a IBM Notes Dialog List?
- Failing to change the argument value using bytebuddy
Related Questions in CLASSLOADING
- How to force jboss to load classes from jars in webapp's lib
- How does Spring parse Annotations to load the Application Context
- How can I set a delegation parentLast when using open liberty-maven-plugin?
- Restrict class usage in classloaded classes
- How can I identify classes which will be used in java class file
- Class Loading Leak with Hibernate/Spring
- When creating lots of ByteBuddy classes, do I need to acquire locks of any kind?
- Load project class within maven mojo
- How do I obtain classpaths from a VirtualMachine?
- load class in war into global classpath (Wildfly)
- When is ClassLoader checkPackageAccess method called
- How jvm checks a class is loaded or not when a class is used first time
- static initialization in Java EE differs between parentfirst/parentlast classloading policy, at least in Websphere Liberty
- Web application hosted in OpenLiberty cannot find classes through system class loader
- ClassCastException with spring-data-jpa
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
A Java agent should be notified on any class loading activity. With applets, there is however a chance that a security manager blocks the instrumentation if Byte Buddy uses any privileged action without having it permitted.
When using advice, there should not be any difference wether a jar is loaded at runtime or if the application is an applet. Do you get any error message? Register an
AgentBuilder.Listener.StreamWriting.toSystemOut()listener to debug such problems.