I have managed to get the client to compile,
However when I try and run the complied version I get:
- Code: Select all
[java] Exception in thread "Haven main thread" java.lang.Error: java.lang.reflect.InvocationTargetException
[java] at haven.MainFrame.javabughack(MainFrame.java:363)
[java] at haven.MainFrame.main2(MainFrame.java:376)
[java] at haven.MainFrame.access$1(MainFrame.java:373)
[java] at haven.MainFrame$7.run(MainFrame.java:424)
[java] at java.lang.Thread.run(Thread.java:745)
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at java.awt.EventQueue.invokeAndWait(EventQueue.java:1319)
[java] at java.awt.EventQueue.invokeAndWait(EventQueue.java:1294)
[java] at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
[java] at haven.MainFrame.javabughack(MainFrame.java:354)
[java] ... 4 more
[java] Caused by: java.lang.ExceptionInInitializerError
[java] at haven.MainFrame$5.run(MainFrame.java:357)
[java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
[java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
[java] at java.awt.EventQueue.access$500(EventQueue.java:97)
[java] at java.awt.EventQueue$3.run(EventQueue.java:709)
[java] at java.awt.EventQueue$3.run(EventQueue.java:703)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
[java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
[java] Caused by: java.lang.NullPointerException
[java] at haven.Resource.loadtex(Resource.java:1615)
[java] at haven.LoginScreen.<clinit>(LoginScreen.java:38)
[java] ... 15 more
Digging a little deeper it looks like the texture types are not being loaded into ltypes in resource.java
The most I can track it down is to this block of code:
- Code: Select all
static {
for(Class<?> cl : dolda.jglob.Loader.get(LayerName.class).classes()) {
String nm = cl.getAnnotation(LayerName.class).value();
if(LayerFactory.class.isAssignableFrom(cl)) {
try {
addltype(nm, cl.asSubclass(LayerFactory.class).newInstance());
} catch(InstantiationException e) {
throw(new Error(e));
} catch(IllegalAccessException e) {
throw(new Error(e));
}
} else if(Layer.class.isAssignableFrom(cl)) {
addltype(nm, cl.asSubclass(Layer.class));
} else {
throw(new Error("Illegal resource layer class: " + cl));
}
}
}
The loop doesn't even run once?
built using jdk1.8.0_66 x64 on windows 10.
if anyone has any ideas or a way I can track down what is causing the issue?