This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 87807 - [55cat] Debugging Problems Java EE 5 Project With NetBeans 5.5 RC2
Summary: [55cat] Debugging Problems Java EE 5 Project With NetBeans 5.5 RC2
Status: VERIFIED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 21:42 UTC by byteme
Modified: 2006-10-25 15:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description byteme 2006-10-23 21:42:29 UTC
[ JDK VERSION : 1.5.0_06 ]

Mac OS X Intel (10.4.8)
JDK 1.5
NetBeans RC2


1. Build a Java EE5 Project with EJBs, Web Services, Servlets.

Issue 1: 

When you have the project already deployed.  The IDE/AppServer integration will not correctly undeploy and re-deploy when you try to debug the project.  You get errors stating the xxxxx.ear file exists and have to manuall undeploy the project.


Issue 2:

When you have an ear deployed to the SJAS that comes with RC2 it doesn't consistently overwrite the ear with when you finish a debug cycle and begin a new one.

Issue 3:

The debugger doesn't consistently hit the set breakpoints when you step debug in the J2EE Project.  The debug session errors out and you need to do a complete rebuild and re-deploy.
Comment 1 Jiri Skrivanek 2006-10-24 09:32:00 UTC
Everything is working for me. Please, could you provide step-by-step description
how to get into the error state? Also attach log messages both from Application
server and IDE, as well as error messages from the output window. Thank you in
advance.
Comment 2 byteme 2006-10-24 21:33:43 UTC
1. Projects
   I have 3 projects in the EAR file 1 EJB project, 1 Web Projects, 1 library
project.

2.  Call pattern: Servlet --> EJB3 --> DAO --> JDDBC lookup from SJAS

3.  As I debug thru the DAO: get a conection --> prepare a statement --> execute
statements --> call next on result sets --> replace code start over in the same
session. The IDE will intermittently skip breakpoints and/or not do a step by
step walk thru the code.  Today it froze all together and I had to force quit it.

I cleared the logs and re-ran, I got zero information in SJAS but info in NetBeans.

Database Driver: DB2 8.2

Exception from logs below (I am doing more runs as well):

NetBeans Log Info:
*********** Exception occurred ************ at 1:18 PM on Oct 24, 2006
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
	at
org.netbeans.modules.debugger.localsviewenhancements.ui.models.LocalsViewActionsProviderFilter.getActions(LocalsViewActionsProviderFilter.java:95)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.modules.debugger.jpda.ui.FixedWatchesManager.getActions(FixedWatchesManager.java:181)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getActions(NumericDisplayFilter.java:115)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.spi.debugger.jpda.VariablesFilterAdapter.getActions(VariablesFilterAdapter.java:175)
	at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getActions(VariablesTreeModelFilter.java:356)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at org.netbeans.spi.viewmodel.Models$CompoundModel.getActions(Models.java:2292)
	at org.netbeans.modules.viewmodel.TreeModelNode.canDestroy(TreeModelNode.java:189)
	at
org.openide.explorer.ExplorerActionsImpl.updateActions(ExplorerActionsImpl.java:239)
	at org.openide.explorer.ExplorerActionsImpl.attach(ExplorerActionsImpl.java:146)
	at org.openide.explorer.ExplorerUtils.activateActions(ExplorerUtils.java:185)
	at org.netbeans.modules.viewmodel.TreeTable.propertyChange(TreeTable.java:172)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
	at
org.netbeans.core.windows.RegistryImpl.doFirePropertyChange(RegistryImpl.java:255)
	at org.netbeans.core.windows.RegistryImpl.tryFireChanges(RegistryImpl.java:228)
	at
org.netbeans.core.windows.RegistryImpl.selectedNodesChanged(RegistryImpl.java:192)
	at
org.netbeans.core.windows.WindowManagerImpl.notifyRegistrySelectedNodesChanged(WindowManagerImpl.java:942)
	at
org.netbeans.core.windows.WindowManagerImpl.topComponentActivatedNodesChanged(WindowManagerImpl.java:1068)
	at org.openide.windows.TopComponent.setActivatedNodes(TopComponent.java:277)
	at org.netbeans.modules.viewmodel.TreeTable.propertyChange(TreeTable.java:175)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
	at org.openide.explorer.ExplorerManager$2.run(ExplorerManager.java:776)
	at org.openide.util.Mutex.doEvent(Mutex.java:1158)
	at org.openide.util.Mutex.readAccess(Mutex.java:284)
	at org.openide.explorer.ExplorerManager.fireInAWT(ExplorerManager.java:773)
	at org.openide.explorer.ExplorerManager.access$600(ExplorerManager.java:58)
	at
org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.updateSelection(ExplorerManager.java:248)
	at
org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.run(ExplorerManager.java:253)
	at org.openide.util.Mutex.readAccess(Mutex.java:293)
	at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:259)
	at
org.openide.explorer.ExplorerManager$1SetExploredContextAndSelection.run(ExplorerManager.java:334)
	at org.openide.util.Mutex.readAccess(Mutex.java:293)
	at
org.openide.explorer.ExplorerManager.setExploredContextAndSelection(ExplorerManager.java:353)
	at org.openide.explorer.view.BeanTreeView.selectionChanged(BeanTreeView.java:103)
	at org.openide.explorer.view.TreeView.callSelectionChanged(TreeView.java:711)
	at org.openide.explorer.view.TreeView$TreePropertyListener.run(TreeView.java:1270)
	at org.openide.util.Mutex.postRequest(Mutex.java:1119)
	at org.openide.util.Mutex.postReadRequest(Mutex.java:472)
	at
org.openide.explorer.view.TreeView$TreePropertyListener.valueChanged(TreeView.java:1241)
	at
javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)
	at
javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078)
	at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287)
	at javax.swing.JTree.setSelectionPaths(JTree.java:1187)
	at javax.swing.JTree.setSelectionRows(JTree.java:1260)
	at
org.openide.explorer.view.TreeTable$ListToTreeSelectionModelWrapper.updateSelectedPathsFromSelectedRows(TreeTable.java:1423)
	at
org.openide.explorer.view.TreeTable$ListToTreeSelectionModelWrapper$ListSelectionHandler.valueChanged(TreeTable.java:1442)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:157)
	at
javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:619)
	at
org.openide.explorer.view.TreeTable$TreeTableUI$TreeTableMouseInputHandler.setValueIsAdjusting(TreeTable.java:1527)
	at
org.openide.explorer.view.TreeTable$TreeTableUI$TreeTableMouseInputHandler.mouseReleased(TreeTable.java:1497)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5554)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5319)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4021)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3869)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
	at java.awt.Container.dispatchEventImpl(Container.java:2054)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3869)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
*********** Exception occurred ************ at 1:18 PM on Oct 24, 2006
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
	at
org.netbeans.modules.debugger.localsviewenhancements.ui.models.LocalsViewActionsProviderFilter.getActions(LocalsViewActionsProviderFilter.java:95)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.modules.debugger.jpda.ui.FixedWatchesManager.getActions(FixedWatchesManager.java:181)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getActions(NumericDisplayFilter.java:115)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.spi.debugger.jpda.VariablesFilterAdapter.getActions(VariablesFilterAdapter.java:175)
	at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getActions(VariablesTreeModelFilter.java:356)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at org.netbeans.spi.viewmodel.Models$CompoundModel.getActions(Models.java:2292)
	at org.netbeans.modules.viewmodel.TreeModelNode.canDestroy(TreeModelNode.java:189)
	at
org.openide.explorer.ExplorerActionsImpl.updateActions(ExplorerActionsImpl.java:239)
	at org.openide.explorer.ExplorerActionsImpl.access$400(ExplorerActionsImpl.java:65)
	at
org.openide.explorer.ExplorerActionsImpl$ActionStateUpdater.actionPerformed(ExplorerActionsImpl.java:667)
	at javax.swing.Timer.fireActionPerformed(Timer.java:271)
	at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
*********** Exception occurred ************ at 1:19 PM on Oct 24, 2006
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
	at
org.netbeans.modules.debugger.localsviewenhancements.ui.models.LocalsViewActionsProviderFilter.getActions(LocalsViewActionsProviderFilter.java:95)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.modules.debugger.jpda.ui.FixedWatchesManager.getActions(FixedWatchesManager.java:181)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.modules.debugger.jpda.ui.models.NumericDisplayFilter.getActions(NumericDisplayFilter.java:115)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at
org.netbeans.spi.debugger.jpda.VariablesFilterAdapter.getActions(VariablesFilterAdapter.java:175)
	at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getActions(VariablesTreeModelFilter.java:356)
	at
org.netbeans.spi.viewmodel.Models$CompoundNodeActionsProvider.getActions(Models.java:1154)
	at org.netbeans.spi.viewmodel.Models$CompoundModel.getActions(Models.java:2292)
	at org.netbeans.modules.viewmodel.TreeModelNode.canDestroy(TreeModelNode.java:189)
	at
org.openide.explorer.ExplorerActionsImpl.updateActions(ExplorerActionsImpl.java:239)
	at org.openide.explorer.ExplorerActionsImpl.attach(ExplorerActionsImpl.java:146)
	at org.openide.explorer.ExplorerUtils.activateActions(ExplorerUtils.java:185)
	at org.netbeans.modules.viewmodel.TreeTable.propertyChange(TreeTable.java:172)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
	at
org.netbeans.core.windows.RegistryImpl.doFirePropertyChange(RegistryImpl.java:255)
	at org.netbeans.core.windows.RegistryImpl.tryFireChanges(RegistryImpl.java:228)
	at
org.netbeans.core.windows.RegistryImpl.selectedNodesChanged(RegistryImpl.java:192)
	at
org.netbeans.core.windows.WindowManagerImpl.notifyRegistrySelectedNodesChanged(WindowManagerImpl.java:942)
	at
org.netbeans.core.windows.WindowManagerImpl.topComponentActivatedNodesChanged(WindowManagerImpl.java:1068)
	at org.openide.windows.TopComponent.setActivatedNodes(TopComponent.java:277)
	at org.netbeans.modules.viewmodel.TreeTable.propertyChange(TreeTable.java:175)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
	at org.openide.explorer.ExplorerManager$2.run(ExplorerManager.java:776)
	at org.openide.util.Mutex.doEvent(Mutex.java:1158)
	at org.openide.util.Mutex.readAccess(Mutex.java:284)
	at org.openide.explorer.ExplorerManager.fireInAWT(ExplorerManager.java:773)
	at org.openide.explorer.ExplorerManager.access$600(ExplorerManager.java:58)
	at
org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.updateSelection(ExplorerManager.java:248)
	at
org.openide.explorer.ExplorerManager$1AtomicSetSelectedNodes.run(ExplorerManager.java:253)
	at org.openide.util.Mutex.readAccess(Mutex.java:293)
	at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:259)
	at
org.openide.explorer.ExplorerManager$1SetExploredContextAndSelection.run(ExplorerManager.java:340)
	at org.openide.util.Mutex.readAccess(Mutex.java:293)
	at
org.openide.explorer.ExplorerManager.setExploredContextAndSelection(ExplorerManager.java:353)
	at org.openide.explorer.view.BeanTreeView.selectionChanged(BeanTreeView.java:103)
	at org.openide.explorer.view.TreeView.callSelectionChanged(TreeView.java:711)
	at org.openide.explorer.view.TreeView$TreePropertyListener.run(TreeView.java:1270)
	at org.openide.util.Mutex.postRequest(Mutex.java:1119)
	at org.openide.util.Mutex.postReadRequest(Mutex.java:472)
	at
org.openide.explorer.view.TreeView$TreePropertyListener.valueChanged(TreeView.java:1241)
	at
javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)
	at
javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078)
	at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287)
	at javax.swing.JTree.setSelectionPaths(JTree.java:1187)
	at javax.swing.JTree.setSelectionRows(JTree.java:1260)
	at
org.openide.explorer.view.TreeTable$ListToTreeSelectionModelWrapper.updateSelectedPathsFromSelectedRows(TreeTable.java:1423)
	at
org.openide.explorer.view.TreeTable$ListToTreeSelectionModelWrapper$ListSelectionHandler.valueChanged(TreeTable.java:1442)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:157)
	at
javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:619)
	at
org.openide.explorer.view.TreeTable$TreeTableUI$TreeTableMouseInputHandler.setValueIsAdjusting(TreeTable.java:1527)
	at
org.openide.explorer.view.TreeTable$TreeTableUI$TreeTableMouseInputHandler.mouseReleased(TreeTable.java:1497)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5554)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5319)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4021)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3869)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
	at java.awt.Container.dispatchEventImpl(Container.java:2054)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3869)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 3 Jiri Skrivanek 2006-10-25 09:03:41 UTC
Please, next time add logs as file attachment. The description field is
unreadable otherwise.
1) java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
	at
org.netbeans.modules.debugger.localsviewenhancements.ui.models.LocalsViewActionsProviderFilter

Where did you get this class/module? It is not a part of standard NetBeans
distribution. Did you run NetBeans with empty userdir?

2) skipped breakpoints

Did you compile your classes with debug info?

3) Please, attach entire ${netbeans.userdir}/var/log/messages.log. You can look
at Help|About dialog to know where is your userdir.

4) Please, attach something from SJAS. Go to Runtime tab, select 'Servers|Sun
Java App. Server' node and call 'View Server Log' action from context menu.

Comment 4 byteme 2006-10-25 14:23:42 UTC
I think the issue maybe surrounding Sandip Chitale's plugin. That's where that
module came from.  I will do a closer module check in the future.  Is there a
way to tell what modules are in the standard distribution or "supported".  The
closest thing I have seen is Sandip Chitale's module explorer plugin. 

I was able late yesterday to do a full debug, code replace. Etc.  
Comment 5 Jiri Skrivanek 2006-10-25 15:05:40 UTC
Modules in standard distribution are those ones which are installed by NetBeans
installer. Other stable modules can be dowloaded from NetBeans Update Center.
Modules from Update Center Beta or dowloaded from other location cannot be
treated as stable. The author should say if he guarantee stability.