#2517 JarDist Error

go4 Wed 9 Mar 2016

The NPE in JarDistEnv:

java.lang.NullPointerException
	at fanx.emit.FPodEmit.emit(FPodEmit.java:87)
	at fanx.emit.FPodEmit.emit(FPodEmit.java:31)
	at fan.sys.BootEnv.loadPodClass(BootEnv.java:307)
	at fan.sys.Env.loadPodClass(Env.java:197)
	at fan.sys.JarDistEnv.loadPodClass(JarDistEnv.java:86)
	at fanjardist.Main.boot(Main.java:17)
	at fanjardist.Main.main(Main.java:42)
java.lang.RuntimeException: java.lang.NullPointerException
	at fan.sys.BootEnv.loadPodClass(BootEnv.java:313)
	at fan.sys.Env.loadPodClass(Env.java:197)
	at fan.sys.JarDistEnv.loadPodClass(JarDistEnv.java:86)
	at fanjardist.Main.boot(Main.java:17)
	at fanjardist.Main.main(Main.java:42)

Thanks.

SlimerDude Wed 9 Mar 2016

Hi Go4, BootEnv.java at 313 (assuming Fantom 1.0.67) gives this:

public Class loadPodClass(Pod pod)
{
  try
  {
    ...
    ...
  }
  catch (Exception e)
  {
    e.printStackTrace();
    throw new RuntimeException(e.toString());  // Line 313
  }
}

Is there any other stacktrace printed in the console? Or do you know which pod is being loaded?

brian Wed 9 Mar 2016

For for sanity sake, I checked that some of the example jardist targets still work and they do. So I don't think this is a regression bug. Its probably just something special in your setup. Is it possible you have some pod that doesn't contain any Fantom code?

go4 Wed 9 Mar 2016

Solved. I'm sorry that just miss a jar classpath.

Login or Signup to reply.