Can't save API file - wth?

From: Jürgen Lorenz Simon (simon_jackso..ac.com)
Date: Fri May 04 2007 - 06:13:02 EDT

  • Next message: Jürgen Lorenz Simon: "Re: Can't save API file - wth? [SOLVED]"

    Hi,

    I can't figure out when this started exactly, but we recently noticed
    that
    we can no longer edit API files. When trying to change them, the
    following
    error message crops up:

    Failed to save .api file.

    The PDE error log shows one error, with no stack trace available,
    plus one
    warning. The warning has this stack trace:

    java.lang.RuntimeException: Failed to save .api file.
    at org.objectstyle.wolips.apieditor.editor.ApiEditor.doSave(Unknown
    Source)
    at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:130)
    at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:257)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread
    (ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.window.ApplicationWindow$1.run
    (ApplicationWindow.java:763)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.jface.window.ApplicationWindow.run
    (ApplicationWindow.java:760)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:
    2283)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation
    (SaveableHelper.java:263)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation
    (SaveableHelper.java:243)
    at org.eclipse.ui.internal.SaveableHelper.savePart
    (SaveableHelper.java:135)
    at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:
    1414)
    at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:
    2995)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor
    (WorkbenchPage.java:3008)
    at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.commands.ActionHandler.execute
    (ActionHandler.java:119)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks
    (ParameterizedCommand.java:424)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
    (HandlerService.java:160)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand
    (WorkbenchKeyboard.java:466)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press
    (WorkbenchKeyboard.java:799)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent
    (WorkbenchKeyboard.java:846)
    at
    org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings
    (WorkbenchKeyboard.java:564)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3
    (WorkbenchKeyboard.java:506)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard
    $KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1109)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1557)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1552)
    at org.eclipse.swt.widgets.Control.kEventUnicodeKeyPressed
    (Control.java:1820)
    at org.eclipse.swt.widgets.Composite.kEventUnicodeKeyPressed
    (Composite.java:583)
    at org.eclipse.swt.widgets.Control.kEventTextInputUnicodeForKeyEvent
    (Control.java:1812)
    at org.eclipse.swt.widgets.Widget.textInputProc(Widget.java:2000)
    at org.eclipse.swt.widgets.Display.textInputProc(Display.java:3838)
    at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native
    Method)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2910)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
    (Workbench.java:422)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:
    95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run
    (PlatformActivator.java:78)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
    ion(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
    (EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    (EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    (EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
    Caused by:
    org.objectstyle.wolips.core.resources.types.api.ApiModelException:
    Failed to save API file /Users/simon_jackson/Projects/Avida/
    eclipse_workspace/TCExtensions/Components/Miscellaneous/
    TCPopupWindow.api.
    at
    org.objectstyle.wolips.core.resources.types.api.ApiModel.saveChanges
    (Unknown Source)
    at
    org.objectstyle.wolips.core.resources.types.api.ApiModel.saveChanges
    (Unknown Source)
    ... 59 more
    Caused by: java.lang.IllegalArgumentException: Not supported: indent-
    number
    at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute
    (TransformerFactoryImpl.java:574)
    ... 61 more

    The worst of it is, that the API file is TRASHED. It ends up empty.
    Thats not
    tolerable. If it simply failed to be modified, fine. But trashed?
    Please fix this!

    Could this be caused by some version incompatibilities in the xalan
    library?

    Best,
    J.L.Simon



    This archive was generated by hypermail 2.0.0 : Fri May 04 2007 - 06:13:13 EDT