Jensor Not Loading

Alex
2012-12-04
2013-08-22
  • Alex

    Alex - 2012-12-04

    I have tried this application on two machines and both fail with "uncaught exceptions and a null pointer exception in the Project UI"   It is hard to believe this product has been very well tested

     
  • chetan phalak

    chetan phalak - 2012-12-04

    Request you to mention the exact action of Jensor when you received this error.
    Also please let us know, the JDK version and two different OS on which you tried Jensor.

     
  • Amol Khanapurkar

    @uandme314 - The product is still beta. Also it would be nicer if you qualify your post with some details instead of being judgemental. Also feel free to file bug reports if you find things failing, but not without posting details. Your input right now is hardly useful in helping us help you.

     
  • Alex

    Alex - 2012-12-09

    Here is the error messages that I am receiving.   Both machines Dell, Windows 7.  One 32 bit, one 64 bit  JDK 1.7 and 1.6 available.

    java.lang.NullPointerException
    at com.tcs.perc.jensor.UI.JensorProjectUI.<init>(JensorProjectUI.java:148)
    at com.tcs.perc.jensor.UI.JensorProjectUI.main(JensorProjectUI.java:633)

     
  • Alex

    Alex - 2012-12-09

    Hi, strange thing is that I have it running under eclipse - and when running the following directories/configs are identified:

    Finding Platform info …
    Current platform is Windows 7
    JC-006: JENSOR_HOME : C:\Program Files\Jensor\
    Project is not selected.

    so as you can see it is identifying the JENSOR_HOME directory okay.   I haven't done a great deal of investigation, but the only difference I can see so far is that I am using glazedlists 1.8.0_javva15.jar and jfreechart-1.0.14.jar

    I hope that helps

     
  • Alex

    Alex - 2012-12-09

    Okay, here is how I got it working, I edited the programme properties to all the shortcut to execute the startup.bat file in the Jensor bin directory.

    It appears to work okay, but the Demo programme reports a stack trace exception AWT-EventQueue-0 Illegal Argument Exception Comparison Method violates its general contract (line 408) in TimSort.class, i.e.  mergeAt(n); in the code below

    private void mergeCollapse() {
            while (stackSize > 1) {
                int n = stackSize - 2;
                if (n > 0 && runLen <= runLen + runLen) {
                    if (runLen < runLen)
                        n-;
                    mergeAt(n);
                } else if (runLen <= runLen) {
                    mergeAt(n);
                } else {
                    break; // Invariant is established
                }
            }
        }

     
  • Amol Khanapurkar

    The breaking of TimSort is a JDK issue. It is documented in Jensor Troubleshooting Guide on page 8. Breaking of TimSort is a known issue. Google for it.

    Really speaking there is no need to change the executable path to point to startup.bat, but since that works for your environment, so be it. There are plenty of Jensor users who dont have to modify anything and it just works.

     
  • Mastan Reddy

    Mastan Reddy - 2012-12-20

    I did installed V2.1 and able to run Demo application successfully.

    When I try to instrument a new class or demo project I am getting below error. I followed the steps as per Manual and I am using Java 1.6.

    Any help appreciated. Thanks in advance.

    java.lang.NullPointerException

            at com.tcs.perc.jensor.core.TCSPerfMethodAdapter.<init>(TCSPerfMethodAda

    pter.java:72)

            at com.tcs.perc.jensor.core.TCSPerfClassAdapter.visitMethod(TCSPerfClass

    Adapter.java:112)

            at org.objectweb.asm.jensor.ClassReader.accept(ClassReader.java:743)

            at org.objectweb.asm.jensor.ClassReader.accept(ClassReader.java:394)

            at com.tcs.perc.jensor.instrument.InstrumentationListener.actionPerforme

    d(InstrumentationListener.java:246)

            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

    ce)

            at java.awt.Component.processMouseEvent(Unknown Source)

            at javax.swing.JComponent.processMouseEvent(Unknown Source)

            at java.awt.Component.processEvent(Unknown Source)

            at java.awt.Container.processEvent(Unknown Source)

            at java.awt.Component.dispatchEventImpl(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Window.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.EventQueue.dispatchEvent(Unknown Source)

            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.Dialog$1.run(Unknown Source)

            at java.awt.Dialog$3.run(Unknown Source)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.awt.Dialog.show(Unknown Source)

            at java.awt.Component.show(Unknown Source)

            at java.awt.Component.setVisible(Unknown Source)

            at java.awt.Window.setVisible(Unknown Source)

            at java.awt.Dialog.setVisible(Unknown Source)

            at com.tcs.perc.jensor.instrument.writeEntireSelectionListener.getUserPe

    rmission(writeEntireSelectionListener.java:191)

            at com.tcs.perc.jensor.instrument.writeEntireSelectionListener.actionPer

    formed(writeEntireSelectionListener.java:264)

            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

    ce)

            at java.awt.Component.processMouseEvent(Unknown Source)

            at javax.swing.JComponent.processMouseEvent(Unknown Source)

            at java.awt.Component.processEvent(Unknown Source)

            at java.awt.Container.processEvent(Unknown Source)

            at java.awt.Component.dispatchEventImpl(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Window.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.EventQueue.dispatchEvent(Unknown Source)

            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.Dialog$1.run(Unknown Source)

            at java.awt.Dialog$3.run(Unknown Source)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.awt.Dialog.show(Unknown Source)

            at java.awt.Component.show(Unknown Source)

            at java.awt.Component.setVisible(Unknown Source)

            at java.awt.Window.setVisible(Unknown Source)

            at java.awt.Dialog.setVisible(Unknown Source)

            at com.tcs.perc.jensor.instrument.Instrumenter.getUserSelection(Instrume

    nter.java:476)

            at com.tcs.perc.jensor.UI.ModeInstrument.actionPerformed(ModeInstrument.

    java:135)

            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

            at javax.swing.AbstractButton.doClick(Unknown Source)

            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

            at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown

    Source)

            at java.awt.Component.processMouseEvent(Unknown Source)

            at javax.swing.JComponent.processMouseEvent(Unknown Source)

            at java.awt.Component.processEvent(Unknown Source)

            at java.awt.Container.processEvent(Unknown Source)

            at java.awt.Component.dispatchEventImpl(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Window.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.EventQueue.dispatchEvent(Unknown Source)

            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

            at java.awt.EventDispatchThread.run(Unknown Source)

    Exception occurred during event dispatching:

    java.lang.RuntimeException: java.lang.NullPointerException

            at com.tcs.perc.jensor.instrument.InstrumentationListener.actionPerforme

    d(InstrumentationListener.java:253)

            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

    ce)

            at java.awt.Component.processMouseEvent(Unknown Source)

            at javax.swing.JComponent.processMouseEvent(Unknown Source)

            at java.awt.Component.processEvent(Unknown Source)

            at java.awt.Container.processEvent(Unknown Source)

            at java.awt.Component.dispatchEventImpl(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Window.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.EventQueue.dispatchEvent(Unknown Source)

            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.Dialog$1.run(Unknown Source)

            at java.awt.Dialog$3.run(Unknown Source)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.awt.Dialog.show(Unknown Source)

            at java.awt.Component.show(Unknown Source)

            at java.awt.Component.setVisible(Unknown Source)

            at java.awt.Window.setVisible(Unknown Source)

            at java.awt.Dialog.setVisible(Unknown Source)

            at com.tcs.perc.jensor.instrument.writeEntireSelectionListener.getUserPe

    rmission(writeEntireSelectionListener.java:191)

            at com.tcs.perc.jensor.instrument.writeEntireSelectionListener.actionPer

    formed(writeEntireSelectionListener.java:264)

            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

    ce)

            at java.awt.Component.processMouseEvent(Unknown Source)

            at javax.swing.JComponent.processMouseEvent(Unknown Source)

            at java.awt.Component.processEvent(Unknown Source)

            at java.awt.Container.processEvent(Unknown Source)

            at java.awt.Component.dispatchEventImpl(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Window.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.EventQueue.dispatchEvent(Unknown Source)

            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.Dialog$1.run(Unknown Source)

            at java.awt.Dialog$3.run(Unknown Source)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.awt.Dialog.show(Unknown Source)

            at java.awt.Component.show(Unknown Source)

            at java.awt.Component.setVisible(Unknown Source)

            at java.awt.Window.setVisible(Unknown Source)

            at java.awt.Dialog.setVisible(Unknown Source)

            at com.tcs.perc.jensor.instrument.Instrumenter.getUserSelection(Instrume

    nter.java:476)

            at com.tcs.perc.jensor.UI.ModeInstrument.actionPerformed(ModeInstrument.

    java:135)

            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

            at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

            at javax.swing.AbstractButton.doClick(Unknown Source)

            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

            at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown

    Source)

            at java.awt.Component.processMouseEvent(Unknown Source)

            at javax.swing.JComponent.processMouseEvent(Unknown Source)

            at java.awt.Component.processEvent(Unknown Source)

            at java.awt.Container.processEvent(Unknown Source)

            at java.awt.Component.dispatchEventImpl(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

            at java.awt.Container.dispatchEventImpl(Unknown Source)

            at java.awt.Window.dispatchEventImpl(Unknown Source)

            at java.awt.Component.dispatchEvent(Unknown Source)

            at java.awt.EventQueue.dispatchEvent(Unknown Source)

            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

            at java.awt.EventDispatchThread.run(Unknown Source)

    Caused by: java.lang.NullPointerException

            at com.tcs.perc.jensor.core.TCSPerfMethodAdapter.<init>(TCSPerfMethodAda

    pter.java:72)

            at com.tcs.perc.jensor.core.TCSPerfClassAdapter.visitMethod(TCSPerfClass

    Adapter.java:112)

            at org.objectweb.asm.jensor.ClassReader.accept(ClassReader.java:743)

            at org.objectweb.asm.jensor.ClassReader.accept(ClassReader.java:394)

            at com.tcs.perc.jensor.instrument.InstrumentationListener.actionPerforme

    d(InstrumentationListener.java:246)

            … 91 more

     
  • chetan phalak

    chetan phalak - 2012-12-24

    User need not to instrument class manually for Jensor version 2.x.
    If you are using V2.1, don't go for manual instrument, Jensor v2.x onwards Jensor supports automatic instrumentation. Refer section 6.2.1 from User Manual of Jensor V2.1.

     
  • Bhavyesh Shah

    Bhavyesh Shah - 2013-08-22

    I was also facing the same issue on Windows 7 premium - 64 bit. Tried running it in compatibility mode and it worked :)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks