products forums blog support careers about
  History | Log In     View a printable version of the current page.  
PRO USERS, to ensure 'PRIORITY SUPPORT' make sure that your ASAP account is "tagged" when you file the request. Click here for instructions on how to tag your account.
Issue Details (XML | Word | Printable)

Key: STU-1058
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Unprioritized Unprioritized
Assignee: Kevin Lindsey
Reporter: Mark Luffel
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Aptana Studio

BundleClassLoader fails to find lexer's "type-enumeration"

Created: 23/Jan/08 09:39 PM   Updated: 28/Jan/08 06:12 PM
Component/s: General
Affects Version/s: Aptana Studio 1.1
Fix Version/s: Aptana Studio 1.1.1

Importance: Average
Studio Install Type: N/A
Participants: Kevin Lindsey and Mark Luffel


 Description  « Hide
Maybe the solution is to add the bundle of every plugin that uses an Aptana extension point to the BundleClassLoader?
Unable to find source-code formatter for language: stacktrace. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
Unable to locate type enumeration: org.appcelerator.ide.editors.html.onexpr.OnExprTokenTypes
java.lang.ClassNotFoundException: Unable to find class: org.appcelerator.ide.editors.html.onexpr.OnExprTokenTypes
	at com.aptana.xml.BundleClassLoader.findClass(BundleClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at com.aptana.xml.BundleClassLoader.loadClass(BundleClassLoader.java:213)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at com.aptana.xml.BundleClassLoader.loadClass(BundleClassLoader.java:188)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:242)
	at com.aptana.ide.lexer.matcher.model.LexerElement.createTypeEnumeration(LexerElement.java:188)
	at com.aptana.ide.lexer.matcher.model.LexerElement.getTokenList(LexerElement.java:136)
	at com.aptana.ide.lexer.matcher.MatcherLexerBuilder.loadXML(MatcherLexerBuilder.java:208)
	at com.aptana.ide.editors.unified.LanguageRegistry.createTokenList(LanguageRegistry.java:379)
	at com.aptana.ide.editors.unified.LanguageRegistry$1.createInstance(LanguageRegistry.java:553)
	at com.aptana.ide.editors.unified.InstanceCreator.getCachedInstance(InstanceCreator.java:111)
	at com.aptana.ide.editors.unified.LanguageRegistry.getTokenList(LanguageRegistry.java:295)
	at com.aptana.ide.editors.unified.parsing.AbstractUnifiedParser.addLexerGrammar(AbstractUnifiedParser.java:65)
	at com.aptana.ide.parsing.AbstractParser.addGrammars(AbstractParser.java:208)
	at com.aptana.ide.parsing.AbstractParser.buildLexer(AbstractParser.java:380)
	at com.aptana.ide.parsing.AbstractParser.initialize(AbstractParser.java:142)
	at com.aptana.ide.parsing.AbstractParser.<init>(AbstractParser.java:124)
	at com.aptana.ide.editors.unified.parsing.AbstractUnifiedParser.<init>(AbstractUnifiedParser.java:57)
	at org.appcelerator.ide.editors.html.onexpr.OnExprParser.<init>(OnExprParser.java:36)
	at org.appcelerator.ide.editors.html.onexpr.OnExprParser.<init>(OnExprParser.java:32)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at java.lang.Class.newInstance0(Class.java:350)
	at java.lang.Class.newInstance(Class.java:303)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:819)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
	at com.aptana.ide.editors.unified.InstanceCreator.createInstance(InstanceCreator.java:92)
	at com.aptana.ide.editors.unified.LanguageRegistry.createParser(LanguageRegistry.java:355)
	at com.aptana.ide.editor.html.parsing.HTMLLanguageRegistry.loadFromExtension(HTMLLanguageRegistry.java:108)
	at org.appcelerator.ide.editors.html.copynpaste.HTMLParser.addChildParsers(HTMLParser.java:149)
	at com.aptana.ide.parsing.AbstractParser.initialize(AbstractParser.java:138)
	at com.aptana.ide.parsing.AbstractParser.<init>(AbstractParser.java:124)
	at com.aptana.ide.editors.unified.parsing.AbstractUnifiedParser.<init>(AbstractUnifiedParser.java:57)
	at org.appcelerator.ide.editors.html.copynpaste.HTMLParser.<init>(HTMLParser.java:122)
	at org.appcelerator.ide.editors.html.AppHtmlParser.<init>(AppHtmlParser.java:19)
	at org.appcelerator.ide.editors.html.AppHtmlParser.<init>(AppHtmlParser.java:15)
	at org.appcelerator.ide.editors.html.AppHtmlFileServiceFactory.createParser(AppHtmlFileServiceFactory.java:31)
	at com.aptana.ide.editor.html.HTMLFileServiceFactory.createFileService(HTMLFileServiceFactory.java:86)
	at org.appcelerator.ide.editors.html.AppHtmlFileServiceFactory.createFileService(AppHtmlFileServiceFactory.java:22)
	at com.aptana.ide.editors.unified.UnifiedEditor.updateFileInfo(UnifiedEditor.java:1812)
	at com.aptana.ide.editor.html.HTMLSourceEditor.updateFileInfo(HTMLSourceEditor.java:285)
	at com.aptana.ide.editors.unified.UnifiedEditor.doSetInput(UnifiedEditor.java:1695)
	at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:2998)
	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:758)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
	at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2451)
	at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3016)
	at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3043)
	at com.aptana.ide.editors.unified.UnifiedEditor.init(UnifiedEditor.java:338)
	at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:186)
	at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:160)
	at com.aptana.ide.editor.html.MultiPageHTMLEditor.createPage0(MultiPageHTMLEditor.java:320)
	at com.aptana.ide.editor.html.MultiPageHTMLEditor.createPages(MultiPageHTMLEditor.java:753)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:283)
	at com.aptana.ide.editor.html.HTMLEditor.createPartControl(HTMLEditor.java:400)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:300)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:472)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2719)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2633)
	at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:2625)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2577)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2572)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2556)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2547)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)


 All   Comments   Change History      Sort Order:
Kevin Lindsey - 28/Jan/08 05:44 PM
Hi Mark,

Are you using custom enumeration classes? If so, you'll need to add <bundle> and <package> elements to your lexer XML file. The bundle element takes a text node that is the project name like "com.mycompany.myplugin" and you'll need to add the package name as a text node to the package element. You can have as many of those as you need. Let me know if that resolves the issue.

-Kevin Lindsey


Mark Luffel - 28/Jan/08 06:09 PM
Thanks Kevin, that worked.
I only started seeing this after the 1.1 release, so I assumed it was a regression. Thanks for the help.

Kevin Lindsey - 28/Jan/08 06:12 PM
Excellent. Thanks for the update.