Hi Robert,
I see that others have found this issue fixed in 2.0.3 but I'm still having trouble with RTextSrollPane generating a NPE, and also a window indicating that "
The component cannot be instantiated. Please make sure it is a JavaBeans component", in NetBeans GUI designer using the precompiled 2.0.3 jar or a jar compiled from the 2.0.3 source. I've tested and had the same result in all of Netbeans 7.1.1, 7.1.2 and 7.2 Beta. Is there anything I can do to make this work or is there any chance you're still looking into the issue?
I'm upgrading from 1.5.2. This is an incredibly useful work you've created, thank you very much for your effort!
Here is the stack trace:
- Code: Select all
INFO [org.netbeans.modules.form.BeanSupport]: Cannot create default instance of: org.fife.ui.rtextarea.RTextScrollPane
java.lang.NullPointerException
at org.fife.ui.rtextarea.Gutter.setLineNumberFont(Gutter.java:580)
at org.fife.ui.rtextarea.RTextScrollPane.<init>(RTextScrollPane.java:98)
at org.fife.ui.rtextarea.RTextScrollPane.<init>(RTextScrollPane.java:73)
at org.fife.ui.rtextarea.RTextScrollPane.<init>(RTextScrollPane.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:178)
[catch] at org.netbeans.modules.form.BeanSupport.createBeanInstance(BeanSupport.java:83)
at org.netbeans.modules.form.BeanSupport.getDefaultInstance(BeanSupport.java:109)
at org.netbeans.modules.form.GandalfPersistenceManager.restoreComponent(GandalfPersistenceManager.java:718)
at org.netbeans.modules.form.GandalfPersistenceManager.loadComponent(GandalfPersistenceManager.java:956)
at org.netbeans.modules.form.GandalfPersistenceManager.loadForm(GandalfPersistenceManager.java:528)
at org.netbeans.modules.form.GandalfPersistenceManager.loadForm(GandalfPersistenceManager.java:312)
at org.netbeans.modules.form.FormEditor$2.run(FormEditor.java:343)
at org.netbeans.modules.form.FormLAF$2.run(FormLAF.java:286)
at org.openide.util.Mutex.doEventAccess(Mutex.java:1363)
at org.openide.util.Mutex.readAccess(Mutex.java:322)
at org.netbeans.modules.form.FormLAF.executeWithLookAndFeel(FormLAF.java:269)
at org.netbeans.modules.form.FormEditor.loadFormData(FormEditor.java:340)
at org.netbeans.modules.nbform.FormEditorSupport.loadOpeningForm(FormEditorSupport.java:455)
at org.netbeans.modules.nbform.FormDesignerTC.loadForm(FormDesignerTC.java:274)
at org.netbeans.modules.nbform.FormDesignerTC.access$300(FormDesignerTC.java:86)
at org.netbeans.modules.nbform.FormDesignerTC$PreLoadTask$1.run(FormDesignerTC.java:263)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)