Importing a non-existent class causes an exception that does not fully identify the source file


  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: Release 1.4
  • Fix Version/s: None
  • Component/s: None
  • Labels:


I'm in the process of stripping out some OSGi support, and I missed one import.

The exception identifies "init.clj", but I'd prefer to see the full path there, as I have a few different "init.clj" files in my overall project.

Reflection warning, com/annadaletech/nexus/services/registry.clj:37 - call to unregisterAll can't be resolved.
Reflection warning, com/annadaletech/nexus/services/registry.clj:131 - call to getConfiguration can't be resolved.
Reflection warning, com/annadaletech/nexus/services/registry.clj:150 - call to getConfiguration can't be resolved.
Exception in thread "main" java.lang.ClassNotFoundException: org.osgi.framework.ServiceRegistration, compiling:(init.clj:1)
	at clojure.lang.Compiler$InvokeExpr.eval(
	at clojure.lang.Compiler.compile1(
	at clojure.lang.Compiler.compile1(
	at clojure.lang.Compiler.compile(
	at clojure.lang.RT.compile(
	at clojure.lang.RT.load(
	at clojure.lang.RT.load(
	at clojure.core$load$fn__4890.invoke(core.clj:5415)
	at clojure.core$load.doInvoke(core.clj:5414)
	at clojure.lang.RestFn.invoke(
	at clojure.core$load_one.invoke(core.clj:5227)
	at clojure.core$compile$fn__4895.invoke(core.clj:5426)
	at clojure.core$compile.invoke(core.clj:5425)
	at clojuresque.tasks.compile$main$fn__64.invoke(compile.clj:23)
	at clojuresque.cli$with_command_line_STAR_.invoke(cli.clj:92)
	at clojuresque.tasks.compile$main.doInvoke(compile.clj:6)
	at clojure.lang.RestFn.applyTo(
	at clojure.core$apply.invoke(core.clj:601)
	at clojure.lang.Var.invoke(
	at clojuresque.Driver.main(
Caused by: java.lang.ClassNotFoundException: org.osgi.framework.ServiceRegistration


Alex Miller made changes -
Field Original Value New Value
Labels feedback
Alex Miller made changes -
Labels errormsgs
Stuart Halloway made changes -
Issue Type Defect [ 1 ] Enhancement [ 4 ]


Vote (0)
Watch (0)


  • Created: