Bug 141401 - V3:spi needs to be added to pick up registered connection pools for v3 target server
V3:spi needs to be added to pick up registered connection pools for v3 target...
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: GlassFish
6.x
All All
: P3 (vote)
: 7.0
Assigned To: Vince Kraemer
issues@serverplugins
:
: 142654 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-23 19:09 UTC by davisn
Modified: 2011-02-24 17:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments
messages.log (92.48 KB, text/plain)
2008-07-23 19:11 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2008-07-23 19:09:56 UTC
java.lang.ClassCastException occurs when trying to create a JDBC Resource

Steps to Reporduce:
1. Install NB6.5 trunk build (7/21/2008)
2. Create a Web Project 
3. Right-clik at the Web Project > select New > Others > Glassfish > JDBC Resource > Next
BUG:
   Exception occurs as described with message below
   (messages.log file attached)  

--------------------------------------------------
java.lang.ClassCastException: org.netbeans.modules.glassfish.javaee.Hk2DeploymentManager cannot be cast to
org.netbeans.modules.j2ee.sun.api.SunDeploymentManagerInterface
	at org.netbeans.modules.j2ee.sun.ide.sunresources.beans.ResourceUtils.getResourceNames(ResourceUtils.java:853)
	at org.netbeans.modules.j2ee.sun.ide.sunresources.beans.ResourceUtils.getRegisteredConnectionPools(ResourceUtils.java:814)
	at
org.netbeans.modules.j2ee.sun.ide.sunresources.wizards.CommonAttributeVisualPanel.initChoiceComponents(CommonAttributeVisualPanel.java:385)
	at
org.netbeans.modules.j2ee.sun.ide.sunresources.wizards.CommonAttributeVisualPanel.<init>(CommonAttributeVisualPanel.java:125)
	at org.netbeans.modules.j2ee.sun.ide.sunresources.wizards.CommonAttributePanel.getComponent(CommonAttributePanel.java:107)
	at org.netbeans.modules.j2ee.sun.ide.sunresources.wizards.DataSourceWizard.initialize(DataSourceWizard.java:167)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.initialize(TemplateWizard.java:1015)
	at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
	at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
	at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:200)
	at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:218)
	at org.netbeans.modules.project.ui.TemplateChooserPanel.storeSettings(TemplateChooserPanel.java:147)
	at org.netbeans.modules.project.ui.TemplateChooserPanel.storeSettings(TemplateChooserPanel.java:66)
	at org.openide.WizardDescriptor.setValueOpen(WizardDescriptor.java:1285)
	at org.openide.WizardDescriptor.setValue(WizardDescriptor.java:1264)
	at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1126)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
	at java.awt.Dialog$1.run(Dialog.java:1045)
	at java.awt.Dialog$3.run(Dialog.java:1097)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1095)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:863)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:897)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:885)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
	at org.openide.util.Mutex.readAccess(Mutex.java:268)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:870)
	at java.awt.Component.show(Component.java:1422)
	at java.awt.Component.setVisible(Component.java:1375)
	at java.awt.Window.setVisible(Window.java:806)
	at java.awt.Dialog.setVisible(Dialog.java:985)
	at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:502)
	at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:369)
	at org.netbeans.modules.project.ui.actions.NewFile.doPerform(NewFile.java:153)
	at org.netbeans.modules.project.ui.actions.NewFile.access$200(NewFile.java:80)
	at org.netbeans.modules.project.ui.actions.NewFile$PopupListener.actionPerformed(NewFile.java:348)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 davisn 2008-07-23 19:11:26 UTC
Created attachment 65419 [details]
messages.log
Comment 2 _ pcw 2008-07-23 19:18:37 UTC
Good find.  Looks like some code in the resource wizards needs to be upgraded now that the Configurations are more shared.
Comment 3 Nitya Doraisamy 2008-07-23 19:57:06 UTC
Peter, I have started looking into this.
Comment 4 Nitya Doraisamy 2008-07-29 05:36:39 UTC
Fixed Classcast exception,
http://hg.netbeans.org/main/rev/efe69363e4cd

Downgrading to P3 - spi needs to be added to pick up registered connection pools for v3 target server
Comment 5 Nitya Doraisamy 2008-08-02 00:40:57 UTC
*** Issue 142654 has been marked as a duplicate of this issue. ***
Comment 6 Nitya Doraisamy 2008-10-11 04:28:37 UTC
This didn't get done in time for 6.5
Comment 7 Vince Kraemer 2009-03-30 17:48:34 UTC
is this going to be fixed in 6.7?
Comment 8 Nitya Doraisamy 2009-11-17 12:27:36 UTC
This will have to wait for the next release. Should be part of refactoring to move common features/support between v2 & v3 plugins


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo