java.lang.Exception

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • HTTP session invalidates when user works
    via by mikamj,
  • The java.security.debug System Property
    via by Unknown author,
  • The java.security.debug System Property
    via by Unknown author,
  • Currently class name of anonymous function contains only name of containing class, but does not contain owner method name. So it is hard to read stack traces: people cannot find where anonymous function (shown as $$anonfun) is declared. Example: {code} at java.lang.Thread.dumpStack(Thread.java:1158) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter$$$$anonfun$$5.apply(LambdaLift.scala:254) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter$$$$anonfun$$5.apply(LambdaLift.scala:246) at scala.Iterator$$class.foreach(Iterator.scala:375) at scala.Iterator$$$$anon$$12.foreach(Iterator.scala:240) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter.computeFreeVars(LambdaLift.scala:246) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter.transformUnit(LambdaLift.scala:419) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter.transformUnit(LambdaLift.scala:45) at scala.tools.nsc.transform.Transform$$Phase.apply(Transform.scala:30) at scala.tools.nsc.Global$$GlobalPhase.applyPhase(Global.scala:249) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:238) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$2.apply(Global.scala:238) at scala.Iterator$$class.foreach(Iterator.scala:375) at scala.collection.mutable.ListBuffer$$$$anon$$0.foreach(ListBuffer.scala:255) at scala.tools.nsc.Global$$GlobalPhase.run(Global.scala:238) at scala.tools.nsc.Global$$Run.compileSources(Global.scala:534) at scala.tools.nsc.ScriptRunner.compile$$0(ScriptRunner.scala:302) at scala.tools.nsc.ScriptRunner.withCompiledScript(ScriptRunner.scala:337) at scala.tools.nsc.ScriptRunner.runScript(ScriptRunner.scala:362) at scala.tools.nsc.MainGenericRunner$$.main(MainGenericRunner.scala:165) at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) {code} It is not clear, what is {{Global$$GlobalPhase$$$$anonfun$$2}}. I'm attaching patch that adds function name to the class name of anonymous function. With patch applied stack trace becomes: {code} java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1158) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter$$computeFreeVars$$anonfun$$2.apply(LambdaLift.scala:254) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter$$computeFreeVars$$anonfun$$2.apply(LambdaLift.scala:246) at scala.Iterator$$class.foreach(Iterator.scala:375) at scala.Iterator$$$$anon$$13.foreach(Iterator.scala:240) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter.computeFreeVars(LambdaLift.scala:246) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter.transformUnit(LambdaLift.scala:419) at scala.tools.nsc.transform.LambdaLift$$LambdaLifter.transformUnit(LambdaLift.scala:45) at scala.tools.nsc.transform.Transform$$Phase.apply(Transform.scala:30) at scala.tools.nsc.Global$$GlobalPhase.applyPhase(Global.scala:249) at scala.tools.nsc.Global$$GlobalPhase$$run$$anonfun$$1.apply(Global.scala:238) at scala.tools.nsc.Global$$GlobalPhase$$run$$anonfun$$1.apply(Global.scala:238) at scala.Iterator$$class.foreach(Iterator.scala:375) at scala.collection.mutable.ListBuffer$$$$anon$$1.foreach(ListBuffer.scala:255) at scala.tools.nsc.Global$$GlobalPhase.run(Global.scala:238) at scala.tools.nsc.Global$$Run.compileSources(Global.scala:534) at scala.tools.nsc.ScriptRunner.compile$$1(ScriptRunner.scala:302) at scala.tools.nsc.ScriptRunner.withCompiledScript(ScriptRunner.scala:337) at scala.tools.nsc.ScriptRunner.runScript(ScriptRunner.scala:362) at scala.tools.nsc.MainGenericRunner$$.main(MainGenericRunner.scala:165) at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) {code} That anonymous function — {{Global$$GlobalPhase$$run$$anonfun$$1}} — is declared in method run. Another illustration is list of classes generated for Seq.scala. Original: {code} Seq.class Seq$$.class Seq$$class.class Seq$$Projection$$$$anon$$0.class Seq$$Projection$$$$anon$$1.class Seq$$Projection$$$$anon$$2$$$$anonfun$$0.class Seq$$Projection$$$$anon$$2$$$$anonfun$$1.class Seq$$Projection$$$$anon$$2$$$$anonfun$$2.class Seq$$Projection$$$$anon$$2.class Seq$$Projection$$$$anon$$3$$$$anonfun$$3.class Seq$$Projection$$$$anon$$3.class Seq$$Projection.class Seq$$Projection$$class.class Seq$$Projection$$ComputeSize.class Seq$$Projection$$MapProjection.class {code} With patch applied: {code} Seq.class Seq$$.class Seq$$class.class Seq$$contains$$anonfun$$1.class Seq$$Projection$$$$anon$$1.class Seq$$Projection$$$$anon$$2.class Seq$$Projection$$$$anon$$3$$apply$$anonfun$$1.class Seq$$Projection$$$$anon$$3.class Seq$$Projection$$$$anon$$3$$elements$$anonfun$$1.class Seq$$Projection$$$$anon$$3$$length$$anonfun$$1.class Seq$$Projection$$$$anon$$4.class Seq$$Projection$$$$anon$$4$$elements$$anonfun$$2.class Seq$$Projection.class Seq$$Projection$$class.class Seq$$Projection$$ComputeSize.class Seq$$Projection$$MapProjection.class {code} I've rebuilt scala itself with patch applied with patch applied, but didn't run tests. TBD: similar enhancement for anonymous classes.
    via by Stepan Koltsov,
    • java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1158) at ru.arriah.vetcontrol.web.vu.VUSessionDestoyingListener.sessionDestroyed(VUSessionDestoyingListener.java:15) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:816) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:774) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:762) at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1407) at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:199) at ru.arriah.vetcontrol.web.vu.action.ExitAction.execute(ExitAction.java:20) at ru.arriah.common.web.UIController.process(UIController.java:242) at ru.arriah.common.web.UIController.doGet(UIController.java:269) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:440) at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:228) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

    Users with the same issue

    rp
    1 times, last one,
    Unknown visitor1 times, last one,
    andyglick
    4 times, last one,
    Unknown visitor1 times, last one,