- This topic has 2 replies, 3 voices, and was last updated 20 years, 2 months ago by
Brett Connor.
-
AuthorPosts
-
mikeottingerMemberHi Folks,
I’m running myEclipse version 3.0.1 build 200409161125 on Win Xp, no special plugins. I’ve created an xsd file. When I go to create an xml file based off this schema, it creates the root element along with its mandatory subelement just fine. But when I go to add its optional subelement called User I receive the following stacktrace in the logs. Right clicking on the root element and selecting Add Child, I see the element I wish to add, but clicking it appears to do nothing (except log the stacktrace). Is this is a known issue, it is resolved in a more recent build? Thanks for your time.
java.lang.ArrayStoreException
at java.lang.System.arraycopy(Native Method)
at java.util.Vector.toArray(Vector.java:688)
at com.ibm.etools.contentmodel.xsd.XSDImpl.getEnumeratedValuesForType(Unknown Source)
at com.ibm.etools.contentmodel.xsd.XSDImpl$ElementDeclarationBaseImpl$DataTypeImpl.getEnumeratedValues(Unknown Source)
at com.ibm.etools.contentmodel.internal.util.CMDataTypeValueHelper.getValue(Unknown Source)
at com.ibm.etools.contentmodel.util.DOMContentBuilderImpl.visitCMDataType(Unknown Source)
at com.ibm.etools.contentmodel.util.DOMContentBuilderImpl.visitCMElementDeclaration(Unknown Source)
at com.ibm.etools.contentmodel.util.CMVisitor.visitCMNode(Unknown Source)
at com.ibm.etools.contentmodel.util.CMVisitor.visitCMGroup(Unknown Source)
at com.ibm.etools.contentmodel.util.DOMContentBuilderImpl.visitCMGroup(Unknown Source)
at com.ibm.etools.contentmodel.util.CMVisitor.visitCMNode(Unknown Source)
at com.ibm.etools.contentmodel.util.DOMContentBuilderImpl.visitCMElementDeclaration(Unknown Source)
at com.ibm.etools.contentmodel.util.CMVisitor.visitCMNode(Unknown Source)
at com.ibm.etools.contentmodel.util.DOMContentBuilderImpl.build(Unknown Source)
at com.ibm.sse.editor.xml.ui.actions.AbstractNodeActionManager.insert(Unknown Source)
at com.ibm.sse.editor.xml.ui.actions.AbstractNodeActionManager$AddNodeAction.addNodeForCMNode(Unknown Source)
at com.ibm.sse.editor.xml.ui.actions.AbstractNodeActionManager$AddNodeAction.run(Unknown Source)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)April 15, 2005 at 2:04 pm #228184
Riyad KallaMemberIf you are able to, please email the XSD file to support@genuitec.com ATTN Riyad with a link to this thread as well as exact steps to reproduce. This will ensure that this bug is fixed quickly (it is not currently known).
April 18, 2005 at 8:20 am #228252
Brett ConnorMemberI get the same error editing an XSD, hitting ^space to auto-complete an attribute name. I get line numbers in my stack, seems to be the same error location though:
Error 2005-04-18 14:11:37.446 The command for the key you pressed failed
java.lang.ArrayStoreException
at java.lang.System.arraycopy(Native Method)
at java.util.Vector.toArray(Unknown Source)
at com.ibm.etools.contentmodel.xsd.XSDImpl.getEnumeratedValuesForType(XSDImpl.java:359)
at com.ibm.etools.contentmodel.xsd.XSDImpl$XSDAttributeUseAdapter$DataTypeImpl.getEnumeratedValues(XSDImpl.java:1245)
at com.ibm.sse.editor.xml.taginfo.MarkupTagInfoProvider.printDataTypeInfo(MarkupTagInfoProvider.java:162)
at com.ibm.sse.editor.xml.taginfo.MarkupTagInfoProvider.printDefaultInfo(MarkupTagInfoProvider.java:93)
at com.ibm.sse.editor.xml.taginfo.MarkupTagInfoProvider.getInfo(MarkupTagInfoProvider.java:50)
at com.ibm.sse.editor.xml.contentassist.AbstractContentAssistProcessor.getAdditionalInfo(AbstractContentAssistProcessor.java:2062)
at com.ibm.sse.editor.xml.contentassist.AbstractContentAssistProcessor.addAttributeNameProposals(AbstractContentAssistProcessor.java:167)
at com.ibm.sse.editor.xml.contentassist.AbstractContentAssistProcessor.computeAttributeProposals(AbstractContentAssistProcessor.java:1464)
at com.ibm.sse.editor.xml.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1209)
at com.ibm.sse.editor.xml.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1422)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1470)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:250)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:247)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:206)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:201)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1319)
at com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:450)
at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
at org.eclipse.core.commands.Command.execute(Command.java:331)
at org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:452)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:741)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:784)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:543)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:486)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:110)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:777)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:866)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:851)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:879)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:875)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1182)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3126)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3029)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3466)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1625)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2525)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
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.core.launcher.Main.invokeFramework(Main.java:315)
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:942)
at org.eclipse.core.launcher.Main.main(Main.java:926)– System Setup ——————————-
Operating System and version: XP
Eclipse version: 3.1M6
Eclipse build id: I20050401-1645
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 7
MyEclipse version: 3.8.4
Eclipse JDK version: 1.5.0_02
Application Server JDK version: n/a
Are there any exceptions in the Eclipse log file? above -
AuthorPosts