Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4068

Theme export not escaping certain characters, creating an invalid theme file

    Details

    • Story Points:
      5

      Description

      I exported a theme to a file, reinstall an Aptana Studio, but when I try import it, nothing happened.

      !ENTRY com.aptana.plist 4 0 2012-01-05 09:21:37.910
      !MESSAGE (Build 3.0.0.1319725619) [ERROR]  The content of elements must consist of well-formed character data or markup.
      !STACK 0
      org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
      	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
      	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      	at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      	at com.aptana.plist.xml.XMLPListParser.parse(XMLPListParser.java:85)
      	at com.aptana.plist.PListParserFactory.parse(PListParserFactory.java:33)
      	at com.aptana.theme.TextmateImporter.parse(TextmateImporter.java:139)
      	at com.aptana.theme.TextmateImporter.convertToProperties(TextmateImporter.java:72)
      	at com.aptana.theme.TextmateImporter.convert(TextmateImporter.java:55)
      	at com.aptana.theme.preferences.ThemePreferencePage.widgetSelected(ThemePreferencePage.java:1318)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      	at org.eclipse.jface.window.Window.open(Window.java:801)
      	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
      	at com.aptana.theme.internal.OpenThemePreferencesHandler$1.runInUIThread(OpenThemePreferencesHandler.java:43)
      	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at com.aptana.rcp.IDEApplication.start(IDEApplication.java:125)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
       
      !ENTRY com.aptana.theme 4 0 2012-01-05 09:21:37.921
      !MESSAGE (Build 3.0.0.1320258654) [ERROR]  null
      !STACK 0
      java.lang.NullPointerException
      	at com.aptana.theme.TextmateImporter.convertToProperties(TextmateImporter.java:74)
      	at com.aptana.theme.TextmateImporter.convert(TextmateImporter.java:55)
      	at com.aptana.theme.preferences.ThemePreferencePage.widgetSelected(ThemePreferencePage.java:1318)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      	at org.eclipse.jface.window.Window.open(Window.java:801)
      	at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
      	at com.aptana.theme.internal.OpenThemePreferencesHandler$1.runInUIThread(OpenThemePreferencesHandler.java:43)
      	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at com.aptana.rcp.IDEApplication.start(IDEApplication.java:125)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
      

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              matycz Matej Szendi
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration