ashenchowthee / zaproxy

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

Deadlock on making manual request #1557

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sending manual HTTP requests (though the Resend... right-click menu) 
2. It's highly inconsistent. But it's happened to me lots.

What is the expected output? What do you see instead?

UI becomes unresponsive, deadlocked. (No CPU usage, so it's not simply 
processing)  I have to kill the process to kill zap.

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

Ubuntu 14.10 x64

java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~utopic1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Please provide any additional information below.

Stack trace:

209141 [AWT-EventQueue-0] ERROR org.zaproxy.zap.ZAP$UncaughtExceptionLogger  - 
Exception in thread "AWT-EventQueue-0"
java.lang.NullPointerException
    at org.fife.ui.rsyntaxtextarea.TokenMakerBase.addToken(TokenMakerBase.java:136)
    at org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker.addToken(AbstractJFlexTokenMaker.java:24)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.addToken(PlainTextTokenMaker.java:268)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.yylex(PlainTextTokenMaker.java:608)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.getTokenList(PlainTextTokenMaker.java:334)
    at org.fife.ui.rsyntaxtextarea.RSyntaxDocument.getTokenListForLine(RSyntaxDocument.java:366)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.calculateLineCount(WrappedSyntaxView.java:1088)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.getPreferredSpan(WrappedSyntaxView.java:1143)
    at javax.swing.text.View.getMinimumSpan(View.java:251)
    at javax.swing.text.BoxView.calculateMajorAxisRequirements(BoxView.java:871)
    at javax.swing.text.BoxView.checkRequests(BoxView.java:930)
    at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:329)
    at javax.swing.text.BoxView.layout(BoxView.java:709)
    at javax.swing.text.BoxView.setSize(BoxView.java:397)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.setSize(WrappedSyntaxView.java:935)
    at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1714)
    at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:912)
    at javax.swing.plaf.basic.BasicTextAreaUI.getPreferredSize(BasicTextAreaUI.java:120)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1652)
    at javax.swing.JTextArea.getPreferredSize(JTextArea.java:619)
    at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:790)
    at java.awt.Container.layout(Container.java:1503)
    at java.awt.Container.doLayout(Container.java:1492)
    at java.awt.Container.validateTree(Container.java:1688)
    at java.awt.Container.validate(Container.java:1623)
    at javax.swing.RepaintManager$2.run(RepaintManager.java:691)
    at javax.swing.RepaintManager$2.run(RepaintManager.java:689)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:688)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1676)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
    at java.awt.EventQueue.access$300(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:699)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
209141 [Thread-21] WARN 
org.parosproxy.paros.extension.manualrequest.ManualRequestEditorDialog  - 
java.lang.NullPointerException
    at org.fife.ui.rsyntaxtextarea.TokenMakerBase.addToken(TokenMakerBase.java:130)
    at org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker.addToken(AbstractJFlexTokenMaker.java:24)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.addToken(PlainTextTokenMaker.java:268)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.yylex(PlainTextTokenMaker.java:620)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.getTokenList(PlainTextTokenMaker.java:334)
    at org.fife.ui.rsyntaxtextarea.RSyntaxDocument.getTokenListForLine(RSyntaxDocument.java:366)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.calculateLineCount(WrappedSyntaxView.java:1088)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.getPreferredSpan(WrappedSyntaxView.java:1143)
    at javax.swing.text.View.getMinimumSpan(View.java:251)
    at javax.swing.text.BoxView.calculateMajorAxisRequirements(BoxView.java:871)
    at javax.swing.text.BoxView.checkRequests(BoxView.java:930)
    at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:329)
    at javax.swing.text.BoxView.layout(BoxView.java:709)
    at javax.swing.text.BoxView.setSize(BoxView.java:397)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.setSize(WrappedSyntaxView.java:935)
    at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1714)
    at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1046)
    at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1022)
    at javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1428)
    at org.fife.ui.rtextarea.RTextAreaBase.possiblyUpdateCurrentLineHighlightLocation(RTextAreaBase.java:719)
    at org.fife.ui.rtextarea.RTextArea.fireCaretUpdate(RTextArea.java:618)
    at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.fireCaretUpdate(RSyntaxTextArea.java:790)
    at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4415)
    at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4437)
    at javax.swing.text.DefaultCaret.fireStateChanged(DefaultCaret.java:802)
    at javax.swing.text.DefaultCaret.changeCaretPosition(DefaultCaret.java:1277)
    at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1173)
    at javax.swing.text.DefaultCaret$DefaultFilterBypass.setDot(DefaultCaret.java:1916)
    at javax.swing.text.NavigationFilter.setDot(NavigationFilter.java:64)
    at org.fife.ui.rtextarea.ConfigurableCaret$FoldAwareNavigationFilter.setDot(ConfigurableCaret.java:711)
    at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1151)
    at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1051)
    at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1680)
    at org.zaproxy.zap.extension.httppanel.view.syntaxhighlight.HttpPanelSyntaxHighlightTextView.dataChanged(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.DefaultHttpPanelViewModel.notifyAllListeners(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.DefaultHttpPanelViewModel.fireDataChanged(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.DefaultHttpPanelViewModel.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.impl.models.http.AbstractHttpStringHttpPanelViewModel.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.component.HttpPanelComponentViewsManager.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.component.split.request.RequestSplitComponent.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.HttpPanel.updateContent(Unknown Source)
    at org.parosproxy.paros.extension.manualrequest.ManualRequestEditorDialog.postSend(Unknown Source)
    at org.parosproxy.paros.extension.manualrequest.http.impl.ManualHttpRequestEditorDialog.postSend(Unknown Source)
    at org.parosproxy.paros.extension.manualrequest.ManualRequestEditorDialog$3.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)
283681 [AWT-EventQueue-0] ERROR org.zaproxy.zap.ZAP$UncaughtExceptionLogger  - 
Exception in thread "AWT-EventQueue-0"
java.lang.NullPointerException
    at org.fife.ui.rsyntaxtextarea.TokenMakerBase.addToken(TokenMakerBase.java:133)
    at org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker.addToken(AbstractJFlexTokenMaker.java:24)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.addToken(PlainTextTokenMaker.java:268)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.yylex(PlainTextTokenMaker.java:608)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.getTokenList(PlainTextTokenMaker.java:334)
    at org.fife.ui.rsyntaxtextarea.RSyntaxDocument.getTokenListForLine(RSyntaxDocument.java:366)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.drawView(WrappedSyntaxView.java:206)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.paint(WrappedSyntaxView.java:846)
    at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434)
    at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
    at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881)
    at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860)
    at org.fife.ui.rtextarea.RTextAreaBase.paintComponent(RTextAreaBase.java:693)
    at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.paintComponent(RSyntaxTextArea.java:1890)
    at javax.swing.JComponent.paint(JComponent.java:1046)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5212)
    at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1529)
    at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1452)
    at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:311)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1249)
    at javax.swing.JComponent._paintImmediately(JComponent.java:5160)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4971)
    at javax.swing.RepaintManager$3.run(RepaintManager.java:808)
    at javax.swing.RepaintManager$3.run(RepaintManager.java:796)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:796)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:769)
    at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:718)
    at javax.swing.RepaintManager.access$1100(RepaintManager.java:62)
    at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1677)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
    at java.awt.EventQueue.access$300(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:699)
    at java.awt.EventQueue$3.run(EventQueue.java:697)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:708)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
283681 [Thread-33] WARN 
org.parosproxy.paros.extension.manualrequest.ManualRequestEditorDialog  - 
java.lang.NullPointerException
    at org.fife.ui.rsyntaxtextarea.TokenMakerBase.addToken(TokenMakerBase.java:136)
    at org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker.addToken(AbstractJFlexTokenMaker.java:24)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.addToken(PlainTextTokenMaker.java:268)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.yylex(PlainTextTokenMaker.java:620)
    at org.fife.ui.rsyntaxtextarea.modes.PlainTextTokenMaker.getTokenList(PlainTextTokenMaker.java:334)
    at org.fife.ui.rsyntaxtextarea.RSyntaxDocument.getTokenListForLine(RSyntaxDocument.java:366)
    at org.fife.ui.rsyntaxtextarea.RSyntaxUtilities.getLineWidthUpTo(RSyntaxUtilities.java:348)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.modelToView(WrappedSyntaxView.java:1202)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.modelToView(WrappedSyntaxView.java:685)
    at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.yForLineContaining(WrappedSyntaxView.java:1040)
    at org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaUI.yForLineContaining(RSyntaxTextAreaUI.java:250)
    at org.fife.ui.rtextarea.RTextAreaBase.yForLineContaining(RTextAreaBase.java:1144)
    at org.fife.ui.rtextarea.RTextArea.yForLineContaining(RTextArea.java:80)
    at org.fife.ui.rtextarea.LineNumberList$Listener.caretUpdate(LineNumberList.java:662)
    at javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:407)
    at org.fife.ui.rtextarea.RTextArea.fireCaretUpdate(RTextArea.java:636)
    at org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.fireCaretUpdate(RSyntaxTextArea.java:790)
    at javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:4415)
    at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:4437)
    at javax.swing.text.DefaultCaret.fireStateChanged(DefaultCaret.java:802)
    at javax.swing.text.DefaultCaret.changeCaretPosition(DefaultCaret.java:1277)
    at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java:1173)
    at javax.swing.text.DefaultCaret$DefaultFilterBypass.setDot(DefaultCaret.java:1916)
    at javax.swing.text.NavigationFilter.setDot(NavigationFilter.java:64)
    at org.fife.ui.rtextarea.ConfigurableCaret$FoldAwareNavigationFilter.setDot(ConfigurableCaret.java:711)
    at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1151)
    at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:1051)
    at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1680)
    at org.zaproxy.zap.extension.httppanel.view.syntaxhighlight.HttpPanelSyntaxHighlightTextView.dataChanged(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.DefaultHttpPanelViewModel.notifyAllListeners(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.DefaultHttpPanelViewModel.fireDataChanged(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.DefaultHttpPanelViewModel.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.view.impl.models.http.AbstractHttpStringHttpPanelViewModel.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.component.HttpPanelComponentViewsManager.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.component.split.request.RequestSplitComponent.setMessage(Unknown Source)
    at org.zaproxy.zap.extension.httppanel.HttpPanel.updateContent(Unknown Source)
    at org.parosproxy.paros.extension.manualrequest.ManualRequestEditorDialog.postSend(Unknown Source)
    at org.parosproxy.paros.extension.manualrequest.http.impl.ManualHttpRequestEditorDialog.postSend(Unknown Source)
    at org.parosproxy.paros.extension.manualrequest.ManualRequestEditorDialog$3.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)

Original issue reported on code.google.com by al...@phx2600.org on 9 Mar 2015 at 2:57

GoogleCodeExporter commented 9 years ago
Are you using ZAP 2.3.1?

Original comment by THC...@gmail.com on 9 Mar 2015 at 3:05

GoogleCodeExporter commented 9 years ago
Oh, yea. I should have mentioned the ZAP version, sorry. It's 2.3.1. 

Original comment by al...@phx2600.org on 9 Mar 2015 at 4:44

GoogleCodeExporter commented 9 years ago
r6013

Original comment by THC...@gmail.com on 9 Apr 2015 at 3:46

GoogleCodeExporter commented 9 years ago
Fixed in 2.4.0

Original comment by psii...@gmail.com on 14 Apr 2015 at 11:03