2 Replies Latest reply on Jan 12, 2012 9:37 PM by 910747

    Error creating Web Service proxy

    Gerardo Rivera-Oracle
      Hello.

      I'm using JDeveloper 11.1.1.4.0 on Windows 7 for creating a Web Service Proxy on a service deployed on localhost. In the wizard everything runs fine but once I choose finish I receive the following error:

      java.lang.ClassCastException: oracle.jdeveloper.model.JavaSourceNode cannot be cast to oracle.jdeveloper.webservices.model.WebServiceProxyNode
           at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getProxyAlreadyInProject(WebServiceProxy.java:2044)
           at oracle.jdeveloper.webservices.model.proxy.ProxyWarningChecker.getWarnings(ProxyWarningChecker.java:111)
           at oracle.jdevimpl.webservices.wizard.jaxrpc.common.WarningCommitListener.checkCommit(WarningCommitListener.java:105)
           at oracle.ide.wizard.FSMWizard.finishImpl(FSMWizard.java:864)
           at oracle.ide.wizard.FSMWizard._validateFSMState(FSMWizard.java:621)
           at oracle.ide.wizard.FSMWizard.doFinish(FSMWizard.java:333)
           at oracle.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:3940)
           at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
           at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
           at java.awt.Dialog$1.run(Dialog.java:1046)
           at java.awt.Dialog$3.run(Dialog.java:1098)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.awt.Dialog.show(Dialog.java:1096)
           at java.awt.Component.show(Component.java:1563)
           at java.awt.Component.setVisible(Component.java:1515)
           at java.awt.Window.setVisible(Window.java:842)
           at java.awt.Dialog.setVisible(Dialog.java:986)
           at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
           at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
           at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:51)
           at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyWizard.runWizard(ProxyWizard.java:502)
           at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyGalleryWizard.invoke(ProxyGalleryWizard.java:86)
           at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:372)
           at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:420)
           at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
           at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
           at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

      Any clues about what's going on?

      Thanks Gerardo.
        • 1. Re: Error creating Web Service proxy
          910747
          I am also having this issue on Windows 7 using Oracle Fusion Middleware 11.1.1.4, and am prevented from moving forward. Please help.

          java.lang.ClassCastException: oracle.jdeveloper.model.JavaSourceNode cannot be cast to oracle.jdeveloper.webservices.model.WebServiceProxyNode
               at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getProxyAlreadyInProject(WebServiceProxy.java:2044)
               at oracle.jdeveloper.webservices.model.proxy.ProxyWarningChecker.getWarnings(ProxyWarningChecker.java:111)
               at oracle.jdevimpl.webservices.wizard.jaxrpc.common.WarningCommitListener.checkCommit(WarningCommitListener.java:105)
               at oracle.ide.wizard.FSMWizard.finishImpl(FSMWizard.java:864)
               at oracle.ide.wizard.FSMWizard._validateFSMState(FSMWizard.java:621)
               at oracle.ide.wizard.FSMWizard.doFinish(FSMWizard.java:333)
               at oracle.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:3940)
               at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
               at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
               at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
               at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
               at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
               at java.awt.Dialog$1.run(Dialog.java:1046)
               at java.awt.Dialog$3.run(Dialog.java:1098)
               at java.security.AccessController.doPrivileged(Native Method)
               at java.awt.Dialog.show(Dialog.java:1096)
               at java.awt.Component.show(Component.java:1563)
               at java.awt.Component.setVisible(Component.java:1515)
               at java.awt.Window.setVisible(Window.java:842)
               at java.awt.Dialog.setVisible(Dialog.java:986)
               at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
               at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
               at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:51)
               at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyWizard.runWizard(ProxyWizard.java:502)
               at oracle.jdevimpl.webservices.wizard.jaxrpc.ProxyGalleryWizard.invoke(ProxyGalleryWizard.java:86)
               at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:372)
               at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:420)
               at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
               at oracle.javatools.util.SwingUtils.invokeAfterRepaint(SwingUtils.java:509)
               at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1102)
               at oracle.ide.wizard.WizardManager$2.run(WizardManager.java:428)
               at oracle.ide.util.IdeUtil$3.run(IdeUtil.java:1089)
               at oracle.javatools.util.SwingUtils.invokeAfterRepaint(SwingUtils.java:509)
               at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1102)
               at oracle.ide.wizard.WizardManager.invokeSecondaryWizard(WizardManager.java:424)
               at oracle.ide.gallery.ObjectGallery.invokeWizard(ObjectGallery.java:383)
               at oracle.ide.gallery.ObjectGallery.runDialog(ObjectGallery.java:204)
               at oracle.ide.gallery.ObjectGallery.runDialog(ObjectGallery.java:124)
               at oracle.ide.gallery.ObjectGalleryAddin._invokeGallery(ObjectGalleryAddin.java:405)
               at oracle.ide.gallery.ObjectGalleryAddin.handleEvent(ObjectGalleryAddin.java:208)
               at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
               at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
               at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
               at oracle.ide.ceditor.keymap.IdeKeymapHelper.invokeAction(IdeKeymapHelper.java:180)
               at oracle.javatools.editor.keys.MultiKeyHandler.keyPressed(MultiKeyHandler.java:334)
               at java.awt.Component.processKeyEvent(Component.java:6225)
               at javax.swing.JComponent.processKeyEvent(JComponent.java:2801)
               at java.awt.Component.processEvent(Component.java:6044)
               at java.awt.Container.processEvent(Container.java:2041)
               at java.awt.Component.dispatchEventImpl(Component.java:4630)
               at java.awt.Container.dispatchEventImpl(Container.java:2099)
               at java.awt.Component.dispatchEvent(Component.java:4460)
               at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
               at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
               at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
               at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
               at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
               at java.awt.Component.dispatchEventImpl(Component.java:4502)
               at java.awt.Container.dispatchEventImpl(Container.java:2099)
               at java.awt.Window.dispatchEventImpl(Window.java:2478)
               at java.awt.Component.dispatchEvent(Component.java:4460)
               at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
               at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
               at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
               at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
               at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
               at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
               at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

          And this was the final error message:

          java.lang.ClassCastException: oracle.jdeveloper.model.JavaSourceNode cannot be cast to oracle.jdeveloper.webservices.model.WebServiceProxyNode
               at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.getProxyAlreadyInProject(WebServiceProxy.java:2044)
               at oracle.jdeveloper.webservices.model.proxy.generator.ConfigureProxyGenerator.action(ConfigureProxyGenerator.java:57)
               at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:143)
               at java.lang.Thread.run(Thread.java:619)

          Edited by: user2407056 on Jan 12, 2012 11:37 AM
          • 2. Re: Error creating Web Service proxy
            910747
            While I was not able to find the source of the problem, I was able to get around it. The issue was in the application/project itself. I generated a new test project and generated the web service there, then copied the files back to the original project. It's a kluge, I know, but it worked.