6 Replies Latest reply on Oct 11, 2006 10:57 AM by 441615

    AMA Dialog throws Exception : java.lang.NoSuchMethodError

    441615
      Hi,

      I am trying to create my own Search Rules for the Application Migration Assistant v1.0, I am following the online tutorial. I am using JDev 10.1.2.0.0 ( Build 1811 ).

      If I try to specify the New Search Rules File, the dialog throws this error :-
      Exception occurred during event dispatching:
      java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build(Ljava/io/
      InputStream;Ljava/net/URL;)Ljava/lang/Object;
              at oracle.mtg.sqllocator.addin.analyzer.RulesValidator._buildXMLSchema(U
      nknown Source)
              at oracle.mtg.sqllocator.addin.analyzer.RulesValidator.validateXML(Unkno
      wn Source)
              at oracle.mtg.sqllocator.addin.project.ui.EditSearchRulesFilePanel._comm
      it(Unknown Source)
              at oracle.mtg.sqllocator.addin.project.ui.EditSearchRulesFilePanel.acces
      s$000(Unknown Source)
              at oracle.mtg.sqllocator.addin.project.ui.EditSearchRulesFilePanel$1.vet
      oableChange(Unknown Source)
              at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSup
      port.java:300)
              at java.beans.VetoableChangeSupport.fireVetoableChange(VetoableChangeSup
      port.java:217)
              at oracle.bali.ewt.dialog.JEWTDialog.fireVetoableChange(Unknown Source)
              at oracle.bali.ewt.dialog.JEWTDialog.dismissDialog(Unknown Source)
              at oracle.bali.ewt.dialog.JEWTDialog$UIListener.actionPerformed(Unknown
      Source)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
      86)
              at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
      ctButton.java:1839)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
      .java:420)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
      )
              at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
      istener.java:245)
              at java.awt.Component.processMouseEvent(Component.java:5100)
              at java.awt.Component.processEvent(Component.java:4897)
              at java.awt.Container.processEvent(Container.java:1569)
              at java.awt.Component.dispatchEventImpl(Component.java:3615)
              at java.awt.Container.dispatchEventImpl(Container.java:1627)
              at java.awt.Component.dispatchEvent(Component.java:3477)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
      )
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
              at java.awt.Container.dispatchEventImpl(Container.java:1613)
              at java.awt.Window.dispatchEventImpl(Window.java:1606)
              at java.awt.Component.dispatchEvent(Component.java:3477)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
      read.java:201)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:151)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:141)
              at java.awt.Dialog$1.run(Dialog.java:540)
              at java.awt.Dialog.show(Dialog.java:561)
              at java.awt.Component.show(Component.java:1133)
              at java.awt.Component.setVisible(Component.java:1088)
              at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
              at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
              at oracle.mtg.sqllocator.addin.project.ui.EditSearchRulesFilePanel._modi
      fySearchRulesFile(Unknown Source)
              at oracle.mtg.sqllocator.addin.project.ui.EditSearchRulesFilePanel.creat
      eCOMBean(Unknown Source)
              at oracle.mtg.sqllocator.addin.project.ui.SearchRulesListPanel._newCOMBe
      an(Unknown Source)
              at oracle.mtg.sqllocator.addin.project.ui.SearchRulesListPanel$UIObserve
      r.actionPerformed(Unknown Source)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
      86)
              at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
      ctButton.java:1839)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
      .java:420)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
      )
              at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
      istener.java:245)
              at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
      31)
              at java.awt.Component.processMouseEvent(Component.java:5100)
              at java.awt.Component.processEvent(Component.java:4897)
              at java.awt.Container.processEvent(Container.java:1569)
              at java.awt.Component.dispatchEventImpl(Component.java:3615)
              at java.awt.Container.dispatchEventImpl(Container.java:1627)
              at java.awt.Component.dispatchEvent(Component.java:3477)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
      )
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
              at java.awt.Container.dispatchEventImpl(Container.java:1613)
              at java.awt.Window.dispatchEventImpl(Window.java:1606)
              at java.awt.Component.dispatchEvent(Component.java:3477)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
      read.java:201)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:151)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:141)
              at java.awt.Dialog$1.run(Dialog.java:540)
              at java.awt.Dialog.show(Dialog.java:561)
              at java.awt.Component.show(Component.java:1133)
              at java.awt.Component.setVisible(Component.java:1088)
              at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
              at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
              at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276
      )
              at oracle.jdeveloper.model.JProjectSettingsPanel.showDialog(JProjectSett
      ingsPanel.java:185)
              at oracle.jdeveloper.model.JProjectSettingsPanel.showDialog(JProjectSett
      ingsPanel.java:110)
              at oracle.jdeveloper.model.JProjectSettingsPanel.showDialog(JProjectSett
      ingsPanel.java:101)
              at oracle.jdeveloper.model.JProjectStructureController.handleEvent(JProj
      ectStructureController.java:342)
              at oracle.ide.IdeAction.performAction(IdeAction.java:649)
              at oracle.ide.IdeAction$1.run(IdeAction.java:857)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
      read.java:201)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:151)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
      I am not sure what other relevant information is necessary to debug this. I found the procedure really straightforward, but it's just this naggin error which is stopping me from completing my work.

      Can you please help me with this ?

      Regards,

      Sandeep
        • 1. Re: AMA Dialog throws Exception : java.lang.NoSuchMethodError
          14233
          Sandeep,

          The issue is that AMA is not certified with JDeveloper 10.1.2 only JDeveloper 9.0.4. The extensions api has changed a lot between releases and we intend to release a new version of AMA that will work with JDeveloper 10.1.3 and SQL Developer in the future, dates to be decided.

          Donal
          • 2. Re: AMA Dialog throws Exception : java.lang.NoSuchMethodError
            441615
            Hi Donal,

            Thanks for your response. I found an archived version of JDeveloper v 9.0.4.1.1 ( Build 1436 ). However, AMA refuses to show up in this versiontoo.

            I even tried to add AMA as an "External Tool" , by trying to invoke the class oracle.mtg.sqllocator.addin.SQLLocatorExtension that is listed in jdev-ext.xml. I even tried with oracle.mtg.sqllocator.addin.sqlnav.SqlNavigatorAddin, but it still doesn't work.

            If I try to call one of the two classes directly, I get this error :-
            java.io.IOException: CreateProcess: D:\JDev9.0.4\jdev\lib\ext\ama.jar!\oracle\mtg\sqllocator\addin\SQLLocatorExtension.class error=3
                    at java.lang.Win32Process.create(Native Method)
                 at java.lang.Win32Process.<init>(Win32Process.java:66)
                 at java.lang.Runtime.execInternal(Native Method)
                 at java.lang.Runtime.exec(Runtime.java:566)
                 at oracle.ide.runner.Starter.start(Starter.java:195)
                 at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:524)
                 at oracle.ide.runner.RunProcess.start(RunProcess.java:477)
                 at oracle.ide.runner.SimpleProcess.exec(SimpleProcess.java:203)
                 at oracle.jdevimpl.toolmanager.Tool.invoke(Tool.java:355)
                 at oracle.jdevimpl.toolmanager.ToolManager.handleEvent(ToolManager.java:581)
                 at oracle.ide.IdeAction$1.run(IdeAction.java:634)
                 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
                 at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
                 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
                 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
                 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
                 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
                 at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
            We'll be soon engaged in a major effort to revamp a big Java Application & AMA will be of big help to us.

            Regards,

            Sandeep
            • 3. Re: AMA Dialog throws Exception : java.lang.NoSuchMethodError
              14233
              Sorry I gave you the incorrect version in my last post. The correct version of JDeveloper you need is 9.0.5.2. You will find a copy here:

              http://www.oracle.com/technology/software/products/jdev/archives.html

              Sonal
              • 4. Re: AMA Dialog throws Exception : java.lang.NoSuchMethodError
                441615
                Hi Donal,

                Yes, we finally figured it out :).

                We got our entire team here to work onit. We tested all the different versions of JDeveloper that we could get. Here are the results ( if anyone visits this Thread ) :-
                #     Version      Build     Works ?     Comments

                1     9.0.3.5             1417     No     
                2     9.0.4.0             1419     No     
                3     9.0.4.1.1      1436    No     
                4     9.0.4.2             1459    No     
                5     9.0.4.3             1471     No     
                <FONT COLOR="BROWN">6     9.0.5.2     1618     Yes     Completely</FONT>
                7     10.1.2.0.0     1811   Yes     Only the basic Analysis
                8     10.1.3.0.4.     3673     JDEV_ADF_!0.1.3_NT_060125.0900.3673     No     Not avaliable
                I request the AMA Development Team to verify our findings & update the AMA Home Page with a similar Compatibility Matrix.

                Thanks for pointing us in the right direction. We ar eagerly looking forward to future releases of AMA for higher versions of JDeveloper.

                Regards,

                Sandeep
                • 5. Re: AMA Dialog throws Exception : java.lang.NoSuchMethodError
                  14233
                  Sandeep,

                  Yes, only 9.0.5.2 version is supported and this detail is on the AMA page already.

                  http://www.oracle.com/technology/tech/migration/ama/index.html

                  First bullet point.

                  We have published our Statement of direction here:

                  http://www.oracle.com/technology/tech/migration/migrationtoolsstatementofdirection.htm

                  Donal
                  • 6. Re: AMA Dialog throws Exception : java.lang.NoSuchMethodError
                    441615
                    Hi,

                    Ah, I seem to have missed the fine print :). Yes, it's all there.

                    Thanks, Donal.

                    Regards,

                    Sandeep