Similar error occurs on 2.0a1 and 1.2b9.
I tried this on two very different PCs:
- Windows XP 2G ram using MS Terminal Services JRE 1.6r13 no JDK
- Windows Vista 4G ram JRE+JDK 1.6r10
java.lang.NullPointerException
at org.mc4j.console.connection.wizard.ConnectionVisualPanel.isValid(ConnectionVisualPanel.java:174)
at java.awt.Component.invalidateIfValid(Unknown Source)
at java.awt.Component.setLocale(Unknown Source)
at javax.swing.JComponent.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at org.mc4j.console.swing.ComponentBorder.<init>(ComponentBorder.java:76)
at org.mc4j.console.connection.wizard.ConnectionVisualPanel.<init>(ConnectionVisualPanel.java:67)
at org.mc4j.console.connection.wizard.ConnectionIterator.createPanels(ConnectionIterator.java:49)
at org.mc4j.console.connection.wizard.ConnectionIterator.getPanels(ConnectionIterator.java:78)
at org.mc4j.console.connection.wizard.ConnectionIterator.current(ConnectionIterator.java:142)
at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:596)
at org.mc4j.console.connection.wizard.ConnectionDescriptor.updateState(ConnectionDescriptor.java:89)
at org.openide.WizardDescriptor.initialize(WizardDescriptor.java:373)
at org.openide.NotifyDescriptor.getterCalled(NotifyDescriptor.java:236)
at org.openide.DialogDescriptor.isModal(DialogDescriptor.java:291)
at org.netbeans.core.windows.services.NbDialog.<init>(NbDialog.java:36)
at org.netbeans.core.windows.services.DialogDisplayerImpl$1.run(DialogDisplayerImpl.java:76)
[catch] at org.openide.util.Mutex$1.run(Mutex.java:1188)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Had the same problems with all mc4j versions (old ones too). Eventually switched to JDK 5 and the NPEs stopped. You can change the Java runtime that the application starts with in the 'MC4J Console 1.2b9.lax' file
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I had this problem with my Mac after upgrading to Snow Leopard. Turns out they removed JVMs older than 1.6. I had to find some instructions on how to put the 1.5 JVM back in so that I could select it in the Java Preferences app (under Utilities). I could not determine how to give the app the path to a different JVM easily, but this worked.