java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Spring JIRA by Alexander Bulaev, 1 year ago
This exception has no message.
via Spring JIRA by Alexander Bulaev, 1 year ago
This exception has no message.
java.lang.NullPointerException:
at org.springframework.scala.context.function.FunctionalConfiguration$class.environment(FunctionalConfiguration.scala:96)
at com.alexb.main.context.FunctionalConfigurationBugDemo$ContextConfiguration.environment(FunctionalConfigurationBugDemo.scala:15)
at org.springframework.scala.context.function.FunctionalConfiguration$class.profile(FunctionalConfiguration.scala:238)
at com.alexb.main.context.FunctionalConfigurationBugDemo$ContextConfiguration.profile(FunctionalConfigurationBugDemo.scala:15)
at com.alexb.main.context.FunctionalConfigurationBugDemo$ConfigPart$class.$init$(FunctionalConfigurationBugDemo.scala:8)
at com.alexb.main.context.FunctionalConfigurationBugDemo$ContextConfiguration.(FunctionalConfigurationBugDemo.scala:15)
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.springframework.scala.context.function.FunctionalConfigApplicationContext$$anonfun$1.apply(FunctionalConfigApplicationContext.scala:69)
at org.springframework.scala.context.function.FunctionalConfigApplicationContext$$anonfun$1.apply(FunctionalConfigApplicationContext.scala:69)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:34)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at org.springframework.scala.context.function.FunctionalConfigApplicationContext.registerClasses(FunctionalConfigApplicationContext.scala:69)
at org.springframework.scala.context.function.FunctionalConfigApplicationContext.registerClass(FunctionalConfigApplicationContext.scala:57)
at org.springframework.scala.context.function.FunctionalConfigApplicationContext$.apply(FunctionalConfigApplicationContext.scala:114)
at com.alexb.main.context.FunctionalConfigurationBugDemo$delayedInit$body.apply(FunctionalConfigurationBugDemo.scala:17)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
at scala.App$class.main(App.scala:71)
at com.alexb.main.context.FunctionalConfigurationBugDemo$.main(FunctionalConfigurationBugDemo.scala:5)
at com.alexb.main.context.FunctionalConfigurationBugDemo.main(FunctionalConfigurationBugDemo.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.