jMonkeyEngine / jMonkeyEngine/sdk
This means that there was an unexpected exception when parsing the j3md
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 348
- Forks
- 104
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 3
Description
jMonkeyEngine SDK Exception Report
Please submit me to the Issue Tracker
Comment: This means that there was an unexpected exception when parsing the j3md. If this was due to you opening a j3md from a jar (org.openide.filesystems.FSException) then don't report it to us, if it differs, do so!
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at com.jme3.gde.materialdefinition.fileStructure.leaves.DefineBlock.parse(DefineBlock.java:57)
at com.jme3.gde.materialdefinition.fileStructure.leaves.DefineBlock.(DefineBlock.java:21)
at com.jme3.gde.materialdefinition.fileStructure.DefinesBlock.(DefinesBlock.java:21)
at com.jme3.gde.materialdefinition.fileStructure.TechniqueBlock.(TechniqueBlock.java:56)
at com.jme3.gde.materialdefinition.fileStructure.MatDefBlock.(MatDefBlock.java:60)
at com.jme3.gde.materialdefinition.EditableMatDefFile.load(EditableMatDefFile.java:130)
at com.jme3.gde.materialdefinition.EditableMatDefFile.(EditableMatDefFile.java:98)
at com.jme3.gde.materialdefinition.MatDefDataObject.getEditableFile(MatDefDataObject.java:288)
at com.jme3.gde.materialdefinition.navigator.MatDefNavigatorPanel.updateData(MatDefNavigatorPanel.java:127)
at com.jme3.gde.materialdefinition.MatDefDataObject.createEditor(MatDefDataObject.java:206)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.createElement(MultiViewFactory.java:431)
at org.netbeans.core.multiview.MultiViewModel.getElementForDescription(MultiViewModel.java:197)
at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:107)
at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:103)
at org.netbeans.core.multiview.MultiViewPeer.assignLookup(MultiViewPeer.java:236)
at org.netbeans.core.multiview.MultiViewCloneableTopComponent.getLookup(MultiViewCloneableTopComponent.java:98)
at org.openide.windows.CloneableTopComponent.componentOpened(CloneableTopComponent.java:169)
at org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentOpened(MultiViewCloneableTopComponent.java:128)
at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:282)
at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:1192)
at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:773)
at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:336)
at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1305)
at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1262)
at org.openide.windows.TopComponent.open(TopComponent.java:473)
at org.openide.windows.TopComponent.open(TopComponent.java:453)
at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:183)
at org.openide.windows.CloneableOpenSupport$1.run(CloneableOpenSupport.java:82)
at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:97)
at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.writeAccess(NbMutexEventProvider.java:62)
at org.netbeans.modules.openide.util.LazyMutexImplementation.writeAccess(LazyMutexImplementation.java:56)
at org.openide.util.Mutex.writeAccess(Mutex.java:292)
at org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:79)
at org.openide.text.CloneableEditorSupport.open(CloneableEditorSupport.java:412)
at org.openide.awt.ActionDefaultPerfomer.actionPerformed(ActionDefaultPerfomer.java:47)
at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:413)
at org.openide.awt.ContextManager.actionPerformed(ContextManager.java:261)
at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:108)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:68)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
at org.openide.awt.GeneralAction$BaseDelAction.actionPerformed(GeneralAction.java:354)
at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1608)
at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:278)
at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6624)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
at java.desktop/java.awt.Component.processEvent(Component.java:6386)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4584)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Operating System: Windows 11
Engine Version as used by the SDK: 3.7.0-stable
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at com.jme3.gde.materialdefinition.fileStructure.leaves.DefineBlock.parse, line 57, using the stack trace as the entry point, then trace how EditableMatDefFile.load opens the j3md. Reproduce the failure by opening the reported material definition in the SDK and verify that the same input no longer throws an ArrayIndexOutOfBoundsException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100