This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 164275 [details] log file after error I tried to inplement this guide https://platform.netbeans.org/tutorials/nbm-javacc-lexer.html#appendix (JavaCC Lexer Generator Integration Tutorial for the NetBeans Platform) When i was done, i tried to create SJTemplate file. When you create a new SJTemplate file its showing me a "java.lang.IllegalStateException exception has occurred" error. How to fix? Details: java.lang.NullPointerException: displayName attribute not specified for org.simplejava.SJDataObject at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.get(MultiViewFactory.java:390) at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.getDisplayName(MultiViewFactory.java:408) at org.netbeans.core.multiview.TabsComponent.createButton(TabsComponent.java:598) at org.netbeans.core.multiview.TabsComponent.setModel(TabsComponent.java:158) at org.netbeans.core.multiview.MultiViewPeer.setMimeLookup(MultiViewPeer.java:174) at org.netbeans.core.multiview.MultiViewCloneableTopComponent.setMimeLookup(MultiViewCloneableTopComponent.java:101) at org.netbeans.core.api.multiview.MultiViews.createCloneableMultiView(MultiViews.java:119) Caused: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openide.loaders.MultiDOEditor.createMultiViewPane(MultiDOEditor.java:99) Caused: java.lang.IllegalStateException at org.openide.loaders.MultiDOEditor.createMultiViewPane(MultiDOEditor.java:101) at org.openide.loaders.MultiDOEditor.call(MultiDOEditor.java:108) at org.openide.loaders.MultiDOEditor.call(MultiDOEditor.java:60) at org.netbeans.modules.openide.loaders.SimpleES.createPane(SimpleES.java:107) Caused: java.lang.IllegalStateException: Cannot create factory for org.simplejava.SJDataObject@428753[C:\Users\sivanuk\Documents\NetBeansProjects\JavaApplication4\newSJTemplate.sj@ff0f4115:e66e2a] at org.netbeans.modules.openide.loaders.SimpleES.createPane(SimpleES.java:109) at org.openide.text.CloneableEditorSupport.createCloneableTopComponent(CloneableEditorSupport.java:1061) at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:206) at org.openide.windows.CloneableOpenSupport$1.run(CloneableOpenSupport.java:107) at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:118) at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.writeAccess(NbMutexEventProvider.java:83) at org.netbeans.modules.openide.util.LazyMutexImplementation.writeAccess(LazyMutexImplementation.java:79) at org.openide.util.Mutex.writeAccess(Mutex.java:310) at org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:104) at org.openide.text.CloneableEditorSupport.open(CloneableEditorSupport.java:436) at org.openide.awt.ActionDefaultPerfomer.actionPerformed(ActionDefaultPerfomer.java:70) at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:226) at org.openide.awt.ContextManager.actionPerformed(ContextManager.java:260) at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:109) at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:93) at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116) at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99) at org.openide.awt.GeneralAction$BaseDelAction.actionPerformed(GeneralAction.java:234) at org.netbeans.modules.project.ui.ProjectUtilities$3.run(ProjectUtilities.java:316) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
I replace my SJDataObject.java to author's file