[
https://issues.apache.org/jira/browse/CLEREZZA-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919329#action_12919329
]
Reto Bachmann-Gmür commented on CLEREZZA-320:
---------------------------------------------
Whenever I don't recreate the ClassLoader on every execution
I get the following error:
java.lang.ClassNotFoundException: sun.reflect.MethodAccessorImpl
at
scala.tools.nsc.interpreter.AbstractFileClassLoader.onull$1(AbstractFileClassLoader.scala:21)
at
scala.tools.nsc.interpreter.AbstractFileClassLoader$$anonfun$getBytesForClass$1.apply(AbstractFileClassLoader.scala:26)
at
scala.tools.nsc.interpreter.AbstractFileClassLoader$$anonfun$getBytesForClass$1.apply(AbstractFileClassLoader.scala:25)
at
scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at
scala.tools.nsc.interpreter.AbstractFileClassLoader.getBytesForClass(AbstractFileClassLoader.scala:25)
at
scala.tools.nsc.interpreter.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:33)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at
scala.tools.nsc.interpreter.AbstractFileClassLoader.scala$tools$nsc$util$ScalaClassLoader$$super$loadClass(AbstractFileClassLoader.scala:16)
at
scala.tools.nsc.util.ScalaClassLoader$class.loadClass(ScalaClassLoader.scala:57)
at
scala.tools.nsc.interpreter.AbstractFileClassLoader.loadClass(AbstractFileClassLoader.scala:16)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
The puzzling thing is that if I create a new
AbstractFileClassLoader(virtualDirectory, this.getClass.getClassLoader()) it
doesn't try to access this class and works.
> SSP rendering is slow:
> scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass needs a lot of
> time to be executed
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: CLEREZZA-320
> URL: https://issues.apache.org/jira/browse/CLEREZZA-320
> Project: Clerezza
> Issue Type: Bug
> Environment: in netbeans, during cpu profiling exclude all java core
> classes
> Reporter: Tsuyoshi Ito
> Priority: Blocker
> Attachments: org.clerezza.test.render.zip, page_reuest_wo_javacore.png
>
>
> during profiling session we detected that rendering ssp is very slow. A lot
> of time is used to execute
> scala.tool.nsc.interpreter.AbstractFileClassLoader.findClass. Seems that each
> execution the classes are (re)loaded. IMO this should not be the case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.