MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » applet在appletviewer里运作正常,在网页里却报错No

applet在appletviewer里运作正常,在网页里却报错NoSuchMethodError

www.myexceptions.net  网友分享于:2013-11-26  浏览:315次
applet在appletviewer里运行正常,在网页里却报错NoSuchMethodError
报错信息如下:
java.lang.NoSuchMethodError:   fxbird.NCPF0202.NCPF0202Form.getDetail()Ljava/util/List;

at   fxbird.NCPF0202.NCPF0202Applet$1.actionPerformed(NCPF0202Applet.java:655)

at   javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

at   javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.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(BasicButtonListener.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.Component.dispatchEvent(Component.java:3477)

at   java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

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)


655行代码如下:
gu.setData(form.getDetail(),colNames,form.getDisplayPage(),form.getDisplayCount());
fomr继承自BaseForm,但baseform里有getDetail()方法,返回个List,而且是public型的,怎么会没有这个方法呢,所有需要导入的类,全在applet的标签里写上了,保证无误。难道是jdk的问题吗


------解决方案--------------------
可能需要更新浏览器中的虚拟机

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有