Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-404

Open File Throws "editor class could not be instantiated"

    Details

      Description

      Problem

      Titanium Studio can sometimes get in such a state as it will not open any files. It will throw an error. Closing all files and relaunching Titanium Studio makes everything work again.

      Error

      The following error is shown: "Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml"

      Details

      Clicking the "details" button reveals the following:

      org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle com.aptana.editor.js (592).
      	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:121)
      	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
      	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
      	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
      	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
      	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
      	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
      	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
      	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
      	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
      	at com.aptana.index.core.IndexRequestJob.createParticipant(IndexRequestJob.java:104)
      	at com.aptana.index.core.IndexRequestJob.mapParticipantsToFiles(IndexRequestJob.java:366)
      	at com.aptana.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:303)
      	at com.aptana.index.core.IndexFilesOfProjectJob.run(IndexFilesOfProjectJob.java:71)
      	at com.aptana.core.build.UnifiedBuilder.incrementalBuild(UnifiedBuilder.java:137)
      	at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:106)
      	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
      	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
      	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
      	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
      	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: org.osgi.framework.BundleException: The activator com.aptana.editor.js.JSPlugin for bundle com.aptana.editor.js is invalid
      	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:156)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
      	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
      	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
      	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
      	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
      	... 33 more
      Caused by: java.lang.NoClassDefFoundError: com/aptana/editor/common/contentassist/MetadataLoader
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
      	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
      	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:580)
      	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:550)
      	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:481)
      	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:469)
      	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
      	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
      	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      	at java.lang.Class.getDeclaredConstructors0(Native Method)
      	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      	at java.lang.Class.getConstructor0(Class.java:2699)
      	at java.lang.Class.newInstance0(Class.java:326)
      	at java.lang.Class.newInstance(Class.java:308)
      	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:151)
      	... 39 more
      Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle com.aptana.editor.common (676).
      	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:121)
      	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
      	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
      	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
      	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
      	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
      	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
      	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
      	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
      	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
      	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:274)
      	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:130)
      	at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:369)
      	at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:166)
      	at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:237)
      	at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:307)
      	at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:543)
      	at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:669)
      	at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)
      	at org.eclipse.core.runtime.preferences.DefaultScope.getNode(DefaultScope.java:67)
      	at org.eclipse.core.internal.preferences.PreferencesService$5.run(PreferencesService.java:614)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.preferences.PreferencesService.getNodes(PreferencesService.java:608)
      	at org.eclipse.core.internal.preferences.PreferencesService.getBoolean(PreferencesService.java:478)
      	at com.aptana.core.resources.TaskTag.isCaseSensitive(TaskTag.java:81)
      	at com.aptana.ruby.internal.core.index.RubyFileIndexingParticipant.detectTasks(RubyFileIndexingParticipant.java:134)
      	at com.aptana.ruby.internal.core.index.RubyFileIndexingParticipant.indexSource(RubyFileIndexingParticipant.java:113)
      	at com.aptana.ruby.internal.core.index.RubyFileIndexingParticipant.indexFileStore(RubyFileIndexingParticipant.java:77)
      	at com.aptana.ruby.internal.core.index.RubyFileIndexingParticipant.index(RubyFileIndexingParticipant.java:50)
      	at com.aptana.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:325)
      	at com.aptana.index.core.IndexContainerJob.run(IndexContainerJob.java:96)
      	at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:153)
      	at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:92)
      	... 12 more
      Caused by: org.osgi.framework.BundleException: Exception in com.aptana.editor.common.CommonEditorPlugin.start() of bundle com.aptana.editor.common.
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
      	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
      	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
      	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
      	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
      	... 50 more
      Caused by: java.lang.NullPointerException
      	at org.eclipse.ui.internal.Workbench.getWorkbenchWindows(Workbench.java:1446)
      	at com.aptana.editor.common.CommonEditorPlugin.addPartListener(CommonEditorPlugin.java:399)
      	at com.aptana.editor.common.CommonEditorPlugin.start(CommonEditorPlugin.java:240)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
      	... 56 more

      Reproduction

      I don't have steps to reproduce this; hopefully the error details will be helpful enough to determine the cause and a solution.

      Associated Helpdesk Ticket

      http://appc.me/c/APP-413355

        Attachments

          Activity

            People

            • Assignee:
              mxia Michael Xia
              Reporter:
              dtoth Dawson Toth
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: