From: SourceForge.net <no...@so...> - 2010-01-07 16:26:07
|
Bugs item #2927555, was opened at 2010-01-07 06:30 Message generated for change (Comment added) made by ezust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2927555&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: macros Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: John Potelle (jpotelle) >Assigned to: Shlomy Reinstein (shlomy) Summary: beanshell load() fails w/ exception Initial Comment: jEdit 4.3 (final) running on Windows XP Pro SP3 w/ Java 1.5.0_15 The attached sample beanshell macro creates a simple HashMap and saves it to a file using save(), when this file doesn't exist. On a second invocation, the file now existing, the macro loads it with load(). Saving works, loading doesn't. See related bug ID: 2899265 and its fix: svn rev. 16524 save() and load() are documented here: C:\Program Files\jEdit\doc\users-guide\bsh-commands-serial.html See exception text below: Sourced file: C:\Documents and Settings\jpotelle\.jedit\macros\Misc\Define_Project_Info_Breaks.bsh : Undefined argument: BshObjectInputStream : at Line: 74 : in file: load : ( BshObjectInputStream ) Called from method: load : at Line: 10 : in file: C:\Documents and Settings\jpotelle\.jedit\macros\Misc\Define_Project_Info_Breaks.bsh : load ( infile ) at org.gjt.sp.jedit.bsh.BSHArguments.getArguments(BSHArguments.java:67) at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:69) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130) at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80) at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186) at org.gjt.sp.jedit.bsh.Name.invokeLocalMethod(Name.java:955) at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:801) at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at org.gjt.sp.jedit.bsh.BSHAssignment.eval(BSHAssignment.java:77) at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130) at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80) at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:46) at org.gjt.sp.jedit.bsh.BSHTryStatement.eval(BSHTryStatement.java:86) at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130) at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80) at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258) at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186) at org.gjt.sp.jedit.bsh.Name.invokeLocalMethod(Name.java:914) at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:801) at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644) at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:331) at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:279) at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:205) at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1023) at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:442) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:352) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3255) at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3237) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:221) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ---------------------------------------------------------------------- >Comment By: Alan Ezust (ezust) Date: 2010-01-07 08:26 Message: shlomy, looks like another thing related to the changing of bsh namespace, and since you fixed the load() already, can you do the same for save? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2927555&group_id=588 |