Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when clicking automatic toggle button #3

Open
hubert3 opened this issue Jun 24, 2013 · 4 comments
Open

Error when clicking automatic toggle button #3

hubert3 opened this issue Jun 24, 2013 · 4 comments
Labels

Comments

@hubert3
Copy link

hubert3 commented Jun 24, 2013

$ Exception in thread "MainThread" Traceback (most recent call last):
File "/Users/xxx/burp_jsbeautifier/js-beautifier.py", line 139, in toggleOnOff
self._toogleButton.setPressed(self._replaceAll)
AttributeError: 'BurpExtender' object has no attribute '_toogleButton'
Exception in thread "MainThread" Traceback (most recent call last):
File "/Users/xxx/burp_jsbeautifier/js-beautifier.py", line 139, in toggleOnOff
self._toogleButton.setPressed(self._replaceAll)
AttributeError: 'BurpExtender' object has no attribute '_toogleButton'

Burp v1.5.12, jython-standalone-2.7-b1.jar

Meatballs1 added a commit that referenced this issue Jun 24, 2013
@Meatballs1
Copy link
Owner

Should be corrected now, thanks for the feedback :)

@hubert3
Copy link
Author

hubert3 commented Jun 24, 2013

Thanks but now getting a different error...

$ Exception in thread "AWT-EventQueue-0" Traceback (most recent call last):
File "/Users/xxx/burp_jsbeautifier/js-beautifier.py", line 139, in toggleOnOff
self._toggleButton.setPressed(self._replaceAll)
AttributeError: 'javax.swing.JToggleButton' object has no attribute 'setPressed'

$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)

Running on OSX.

Not actually sure what this button is supposed to do, I guess it does the beautifying automatically as soon as a response comes in and not just when you go to the tab?

@Meatballs1 Meatballs1 reopened this Jun 24, 2013
@Meatballs1
Copy link
Owner

That's the idea - so any browser plugins like firebug will see it in a neater fashion. But it causes significant slowdown if you have large js files coming in!

Hopefully fixed the issue with 28fb29e I guess its down to a different JRE or Jython.

@hubert3
Copy link
Author

hubert3 commented Jun 24, 2013

Toggle button now works without errors, thanks. Useful option, though it wasn't totally obvious that that's what it does. 'Beautify JS in burp proxy output' would be one way to explain it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants