History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-7494
Type: Exception Exception
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Peter Gromov
Reporter: Exception Analyzer
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

[#2096] NPE: WebUtil.findServlet

Created: 24 Jul 06 15:06   Updated: 23 Oct 06 20:06
Component/s: None
Fix Version/s: Demetra 5561, Demetra 5745 (RC2)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 5,380
Fixed in build: 5,737


 Description  « Hide
exception://2096/
Last updated by Dmitry Jemerov
User description: tried to rename a managed bean (jsf)
Error message: No message
java.lang.NullPointerException
at com.intellij.javaee.web.WebUtil.findServlet(WebUtil.java:124)
at com.intellij.javaee.module.view.web.servlet.ServletRenameHandler.getServlet(ServletRenameHandler.java:58)
at com.intellij.javaee.module.view.web.servlet.ServletRenameHandler.isRenaming(ServletRenameHandler.java:82)
at com.intellij.javaee.module.view.web.servlet.ServletRenameHandler.isRenaming(ServletRenameHandler.java:111)
at com.intellij.refactoring.rename.RenameHandlerRegistry.getRenameHandler(RenameHandlerRegistry.java:33)
at com.intellij.refactoring.actions.RenameElementAction.getHandler(RenameElementAction.java:40)
at com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:32)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.<unknown>(IdeKeyEventDispatcher.java:358)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.<unknown>(IdeKeyEventDispatcher.java:284)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:110)
at com.intellij.ide.IdeEventQueue.<unknown>(IdeEventQueue.java:351)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:274)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

 All   Comments   Work Log   Change History      Sort Order:
Exception Analyzer - 22 Sep 06 20:10
Build 5734
Reported by Steve Wardell
!!! not unscrambled: C:\Builds\5734\logs\zkm5734.log (The system cannot find the file specified)
User description: selected find usages on an item in an XML file
Error message: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(96,189),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###

java.lang.NullPointerException
at com.intellij.javaee.web.WebUtil.findServlet(WebUtil.java:125)
at com.intellij.javaee.module.view.web.servlet.ServletRefactoringSupport.getServlet(ServletRefactoringSupport.java:11)
at com.intellij.javaee.module.view.web.servlet.ServletRefactoringSupport.getJavaeeElementFromMetaData(ServletRefactoringSupport.java:1)
at com.intellij.javaee.module.view.web.servlet.ServletRefactoringSupport.getJavaeeElementFromMetaData(ServletRefactoringSupport.java:24)
at com.intellij.javaee.module.view.JavaeeRefactoringSupport$1.fun(JavaeeRefactoringSupport.java:4)
at com.intellij.javaee.module.view.JavaeeRefactoringSupport$1.fun(JavaeeRefactoringSupport.java:0)
at com.intellij.find.findUsages.FindUsagesManager$2.fun(FindUsagesManager.java:2)
at com.intellij.find.findUsages.FindUsagesManager$2.fun(FindUsagesManager.java:0)
at com.intellij.util.containers.ContainerUtil.mapNotNull(ContainerUtil.java:374)
at com.intellij.find.findUsages.FindUsagesManager.canFindUsages(FindUsagesManager.java:199)
at com.intellij.find.impl.FindManagerImpl.canFindUsages(FindManagerImpl.java:136)
at com.intellij.ide.impl.dataRules.UsageTargetsRule.getData(UsageTargetsRule.java:0)
at com.intellij.ide.impl.DataManagerImpl$2.getData(DataManagerImpl.java:1)
at com.intellij.ide.impl.DataManagerImpl.a(DataManagerImpl.java:79)
at com.intellij.ide.impl.DataManagerImpl.a(DataManagerImpl.java:63)
at com.intellij.ide.impl.DataManagerImpl.access$200(DataManagerImpl.java:39)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.getData(DataManagerImpl.java:10)
at com.intellij.openapi.actionSystem.AnActionEvent$1.getData(AnActionEvent.java:106)
at com.intellij.find.actions.FindUsagesAction.actionPerformed(FindUsagesAction.java:5)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:13)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:72)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:209)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:70)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:7)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:5)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:160)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:10)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


Steve Wardell - 22 Sep 06 20:22
This item happened to me in build 5734 as shown in my stack trace. This would seem to indicate that my stack was not fixed in 5561. I seem to be able to reliably reproduce this by selecting find usages on some item in an XML file.

Exception Analyzer - 23 Oct 06 20:06
Build 5594
Reported by Daniel Kreutzer
!!! not unscrambled: C:\Builds\5594\logs\zkm5594.log (The system cannot find the file specified)
Error message: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(89,187),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###

java.lang.NullPointerException
at com.intellij.javaee.web.WebUtil.findServlet(WebUtil.java:125)
at com.intellij.javaee.module.view.web.servlet.ServletRefactoringSupport.getServlet(ServletRefactoringSupport.java:13)
at com.intellij.javaee.module.view.web.servlet.ServletRefactoringSupport.getJavaeeElementFromMetaData(ServletRefactoringSupport.java:3)
at com.intellij.javaee.module.view.web.servlet.ServletRefactoringSupport.getJavaeeElementFromMetaData(ServletRefactoringSupport.java:20)
at com.intellij.javaee.module.view.JavaeeRefactoringSupport$1.fun(JavaeeRefactoringSupport.java:2)
at com.intellij.javaee.module.view.JavaeeRefactoringSupport$1.fun(JavaeeRefactoringSupport.java:8)
at com.intellij.find.findUsages.FindUsagesManager$2.fun(FindUsagesManager.java:1)
at com.intellij.find.findUsages.FindUsagesManager$2.fun(FindUsagesManager.java:2)
at com.intellij.util.containers.ContainerUtil.mapNotNull(ContainerUtil.java:357)
at com.intellij.find.findUsages.FindUsagesManager.canFindUsages(FindUsagesManager.java:89)
at com.intellij.find.impl.FindManagerImpl.canFindUsages(FindManagerImpl.java:155)
at com.intellij.ide.impl.dataRules.UsageTargetsRule.getData(UsageTargetsRule.java:0)
at com.intellij.ide.impl.DataManagerImpl$2.getData(DataManagerImpl.java:1)
at com.intellij.ide.impl.DataManagerImpl.a(DataManagerImpl.java:90)
at com.intellij.ide.impl.DataManagerImpl.a(DataManagerImpl.java:1)
at com.intellij.ide.impl.DataManagerImpl.access$200(DataManagerImpl.java:35)
at com.intellij.ide.impl.DataManagerImpl$MyDataContext.getData(DataManagerImpl.java:13)
at com.intellij.openapi.actionSystem.AnActionEvent$1.getData(AnActionEvent.java:113)
at com.intellij.find.actions.FindUsagesAction.actionPerformed(FindUsagesAction.java:3)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:3)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:3)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:199)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:66)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:3)
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 com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:9)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:39)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:57)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)