natzDev / javasnoop

Automatically exported from code.google.com/p/javasnoop
0 stars 0 forks source link

Encountered exception during PrintParameters communication #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
JavaSnoop 1.0 RC4, Win7 x86, JDK 1.6.0_21 (32-bit), starting using startup.bat.

What steps will reproduce the problem?
1. Launch jEdit
2. Launch JavaSnoop, attach to jedit.jar process
3. Add function hook on 
org.gjt.sp.jedit.search.SearchAndReplace.setSearchString (or any function)
4. Enable [x] Print parameters and [x] ...to console options for hook
5. Trigger function by running a search in jEdit. Observe [SNOOP ERROR] as 
below.

This seems to happen regardless of what I try to use JavaSnoop on (tried 
applets too).

---

[SNOOP ERROR] Encountered exception during PrintParameters communication: 
com.aspect.snoop.agent.AgentCommunicationException: Couldn't tell home base to 
print parameters: null
java.lang.NullPointerException
    at com.aspect.snoop.ui.JavaSnoopView.printParameters(JavaSnoopView.java:2012)
    at com.aspect.snoop.agent.SnoopServerThread.processCommand(SnoopServerThread.java:104)
    at com.aspect.snoop.agent.AbstractServerThread.run(AbstractServerThread.java:82)

    at com.aspect.snoop.agent.AgentToSnoopClient.printParameters(AgentToSnoopClient.java:307)
    at org.gjt.sp.jedit.search.SearchAndReplace.setSearchString(SearchAndReplace.java)
    at org.gjt.sp.jedit.search.SearchDialog.save(SearchDialog.java:816)
    at org.gjt.sp.jedit.search.SearchDialog.ok(SearchDialog.java:206)
    at org.gjt.sp.jedit.search.SearchDialog$ButtonActionHandler.actionPerformed(SearchDialog.java:1030)
    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 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)

Original issue reported on code.google.com by hubert...@gmail.com on 2 Aug 2010 at 12:45

GoogleCodeExporter commented 9 years ago
Windows Firewall disabled for test purposes.

Original comment by hubert...@gmail.com on 2 Aug 2010 at 12:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Having trouble replicating. Can you load a console for the jEdit process and 
show the output of that and the output from the startup.bat cmd window?

The steps for showing a console for every Java program in Windows:
1. Open up Control Panel
2. Open up Java settings
3. Go to "Advanced"
4. Go to "Java console"
5. Enable "Show console"

Original comment by arshan.d...@gmail.com on 2 Aug 2010 at 2:34

GoogleCodeExporter commented 9 years ago
It's working on Vista/32-bit/1.6.0_21. Also, did you start jEdit first or 
JavaSnoop? JavaSnoop should always be started first (it turns off security). 
Here's my output from a quick test:

[2010/08/01 22:44:24] Print parameter request from: 
org.gjt.sp.jedit.search.SearchAndReplace.setSearchString(String): 
Parameter 1 (type: String): test

Original comment by arshan.d...@gmail.com on 2 Aug 2010 at 2:44

GoogleCodeExporter commented 9 years ago
Reproduced with the patient help of submitter Hubert Seiwert. Fixed in RC5 
which was just released. RC10 will be 1.0 unless a happy place is found before 
then.

Original comment by arshan.d...@gmail.com on 2 Aug 2010 at 6:25