Git Product home page Git Product logo

javashot's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

chycg taeir

javashot's Issues

Problem with class with same name in different packages

When instrumenting different package, if it happens that they contains a
class with the same short name, all those class will be represented by a
single node.
This is due to the fact that the class javashot.graph.Graph only uses
classShortName to keep track of the nodes.
Solution: Provide a mechanism to detect this situation and add a prefix id
to the class short name for another class than the one already handled.

Original issue reported on code.google.com by [email protected] on 22 Nov 2009 at 6:11

java.lang.VerifyError:Inconsistent stack height 2 != 1

What steps will reproduce the problem?
 following the tutorial


What is the expected output? What do you see instead?
Caused by: java.lang.VerifyError: (class: XXX$$EnhancerByCGLIB$$b6bb4cb0, 
method: XXX signature: ()[XXX;) Inconsistent stack height 2 != 1


What version of the product are you using? On what operating system?
1.2 , Windows

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Dec 2013 at 3:46

Multi-threaded applications

The instrumentation of multi-threaded application may produce a graph which
do not reflect the real execution.
This is due to the fact that the class javashot.graph.Graph uses static
attributes to keep track of the nodes.
Solution: Use ThreadLocal instead

Original issue reported on code.google.com by [email protected] on 22 Nov 2009 at 6:06

Profiling infos

Add the execution time of the method over the return arrow, the generated
graph will contains also some profiling data which can help in detecting
application's bottlenecks.

Original issue reported on code.google.com by [email protected] on 22 Nov 2009 at 6:14

javassitExtraClassPath is converted to lower case

What steps will reproduce the problem?
1. Add a folder containing upper case letters in javassitExtraClassPath : 
myFolderPath
2. Start javashot

You should get a stack trace like this:
javassist.NotFoundException: myfolderpath/myjar.jar
    at javassist.JarClassPath.<init>(ClassPoolTail.java:134)
    at javassist.ClassPoolTail.makePathObject(ClassPoolTail.java:258)
    at javassist.ClassPoolTail.insertClassPath(ClassPoolTail.java:244)
    at javassist.ClassPool.insertClassPath(ClassPool.java:867)
    at javashot.instrumentation.GraphAgent.<clinit>(GraphAgent.java:38)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Instrumenta
tionImpl.java:323)
    at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Instrument
ationImpl.java:338)
javassist.NotFoundException: myfolderpath/myjar.jar

Please notice that the path is all lower case!


I use version 1.2 on ubuntu 11.10. Unix systems are case sensitive!

The faulty code is in the javashot.util.Properties class:
public static ArrayList<String> getJavassitExtraClassPath() {
        String instrumentationClassPattern = (String) properties.get("javassitExtraClassPath");
        if (instrumentationClassPattern == null || instrumentationClassPattern.isEmpty()) {
            return null;
        }
        ArrayList<String> result = new ArrayList<String>();
        StringTokenizer tokens = new StringTokenizer(instrumentationClassPattern, ",");
        while (tokens.hasMoreElements()) {
            result.add(tokens.nextToken().trim().toLowerCase()); <---- HERE!
        }
        return result;
    }



Original issue reported on code.google.com by [email protected] on 14 Feb 2012 at 2:25

javassist: ClassNotFoundException

If a program is running on a web application server such as JBoss and
Tomcat, the javassit's ClassPool object may not be able to find user
classes since such a web application server uses multiple class loaders as
well as the system class loader.
Solution: Add an entry in "javashot.properties" where we can specify the
location of those classes or jars

Original issue reported on code.google.com by [email protected] on 10 Jan 2010 at 5:34

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.