IllegalArgumentException during Akka Boot

15 views
Skip to first unread message

schoefts

unread,
Nov 25, 2010, 8:58:14 AM11/25/10
to Akka User List
Hi everyone,

I'm current facing an IllegalArgumentException related to
org.codehaus.backport175 (see below) during execution of my Akka Boot
class in an integration test. The error, however, appears to have no
impact on the test functionality?!
There's no problem when using untyped actors only...
I'm using Akka 1.0-M1, JUnit 4.5, and Specs 1.6.5

The exception trace is shown only once per Akka launch - during
creation of the first TypedActor (regardless of actor creation order).

My test setup may appear a bit odd, as I was trying to reproduce the
production setup.
The integration test launches a jetty instance with the WAR file (see
code below).
I haven't been able to reproduce the exception outside the integration
tests, so maybe this problem is related to how I start Akka/Jetty!?.

I'm happy about any hints and ideas.

Thanks!
-Tom


Test Code
------------------------------
trait JettySupport {
protected val jettyServer = new Server(8080)
protected val webappContext = new WebAppContext

def startJetty = {
webappContext.setContextPath("/")
webappContext.setWar("integration/target/scala_2.8.0/web.war")
jettyServer.setHandler(webappContext)
jettyServer.start
}

def stopJetty = jettyServer.stop
}

class ChargerSimulatorRestEndpointTest extends Specification with
JettySupport {
"Doing this" should {
doBefore(startJetty)
doAfter(stopJetty)
"result in that" in {
...
}
}
}


Akka Boot
------------------------------
trait Hello

object HelloImpl {
var count: Int = 1
}

class HelloImpl extends TypedActor with Hello with Logging {
log info ("Hello " + HelloImpl.count)
HelloImpl.count += 1
}

class Boot extends Logging with ConfigSupport {
TypedActor.newInstance[Hello](classOf[Hello], classOf[HelloImpl],
5000)
TypedActor.newInstance[Hello](classOf[Hello], classOf[HelloImpl],
5000)
...
}


Exception
------------------------------
[INFO] [2010-11-25 14:32:23,982] [Thread-48]
s.s.a.s.AkkaLoader: Running version 1.0-M1
[INFO] [2010-11-25 14:32:23,997] [Thread-48] s.s.a.s.AkkaLoader:
==================================================
[INFO] [2010-11-25 14:32:23,997] [Thread-48] s.s.a.s.AkkaLoader:
Starting Akka...
[INFO] [2010-11-25 14:32:23,997] [Thread-48] s.s.a.s.Initializer$$anon
$1: Creating /deploy class-loader
[INFO] [2010-11-25 14:32:23,997] [Thread-48] s.s.a.s.Initializer$$anon
$1: Loading boot class [com.tom.akka.Boot]
[INFO] [2010-11-25 14:32:24,091] [Thread-48] c.t.a.HelloImpl: Hello 1
java.lang.IllegalArgumentException: interface
org.codehaus.backport175.reader.Annotation is not visible from class
loader
at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at
org.codehaus.backport175.reader.proxy.ProxyFactory.newAnnotationProxy(ProxyFactory.java:
43)
at
org.codehaus.backport175.reader.bytecode.AnnotationReader.getAnnotation(AnnotationReader.java:
283)
at
org.codehaus.aspectwerkz.annotation.AsmAnnotations.getAnnotation(AsmAnnotations.java:
36)
at
org.codehaus.aspectwerkz.annotation.AspectAnnotationParser.doParse(AspectAnnotationParser.java:
71)
at
org.codehaus.aspectwerkz.annotation.AspectAnnotationParser.parse(AspectAnnotationParser.java:
56)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parseAspectElements(DocumentParser.java:
441)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parsePackageElements(DocumentParser.java:
353)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parseSystemElement(DocumentParser.java:
238)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parseSystemElements(DocumentParser.java:
181)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parse(DocumentParser.java:
168)
at
org.codehaus.aspectwerkz.definition.XmlParser.parseNoCache(XmlParser.java:
178)
at
org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.registerClassLoader(SystemDefinitionContainer.java:
140)
at
org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.registerClassLoader(SystemDefinitionContainer.java:
105)
at
org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.getHierarchicalDefinitionsFor(SystemDefinitionContainer.java:
319)
at
org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.getDefinitionsFor(SystemDefinitionContainer.java:
227)
at
org.codehaus.aspectwerkz.transform.inlining.ContextImpl.<init>(ContextImpl.java:
99)
at
org.codehaus.aspectwerkz.transform.inlining.InliningWeavingStrategy.newContext(InliningWeavingStrategy.java:
258)
at
org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor._preProcess(AspectWerkzPreProcessor.java:
168)
at
org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor.preProcess(AspectWerkzPreProcessor.java:
150)
at
org.codehaus.aspectwerkz.hook.impl.ClassPreProcessorHelper.defineClass0Pre(ClassPreProcessorHelper.java:
107)
at
org.codehaus.aspectwerkz.proxy.ProxyDelegationStrategy.getNewProxyClassFor(ProxyDelegationStrategy.java:
131)
at
org.codehaus.aspectwerkz.proxy.ProxyDelegationStrategy.getProxyClassFor(ProxyDelegationStrategy.java:
58)
at
org.codehaus.aspectwerkz.proxy.ProxyDelegationStrategy.newInstance(ProxyDelegationStrategy.java:
80)
at org.codehaus.aspectwerkz.proxy.Proxy.newInstance(Proxy.java:
137)
at se.scalablesolutions.akka.actor.TypedActor
$.newInstance(TypedActor.scala:524)
at se.scalablesolutions.akka.actor.TypedActor
$.newInstance(TypedActor.scala:507)
at se.scalablesolutions.akka.actor.TypedActor
$.newInstance(TypedActor.scala:451)
at com.tom.akka.Boot.<init>(Boot.scala:24)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2$$anonfun$apply
$2.apply(BootableActorLoaderService.scala:93)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2$$anonfun$apply
$2.apply(BootableActorLoaderService.scala:91)
at scala.collection.IndexedSeqOptimized
$class.foreach(IndexedSeqOptimized.scala:34)
at
scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:32)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2.apply(BootableActorLoaderService.scala:91)

at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2.apply(BootableActorLoaderService.scala:91)

at scala.Option.foreach(Option.scala:121)
at se.scalablesolutions.akka.actor.BootableActorLoaderService
$class.onLoad(BootableActorLoaderService.scala:91)
at se.scalablesolutions.akka.servlet.Initializer$$anon$1.se
$scalablesolutions$akka$remote$BootableRemoteActorService$$super
$onLoad(Initializer.scala:33)
at se.scalablesolutions.akka.remote.BootableRemoteActorService
$class.onLoad(BootableRemoteActorService.scala:35)
at se.scalablesolutions.akka.servlet.Initializer$$anon$1.se
$scalablesolutions$akka$camel$CamelService$$super
$onLoad(Initializer.scala:33)
at se.scalablesolutions.akka.camel.CamelService
$class.onLoad(CamelService.scala:38)
at se.scalablesolutions.akka.servlet.Initializer$$anon
$1.onLoad(Initializer.scala:33)
at
se.scalablesolutions.akka.servlet.AkkaLoader.boot(AkkaLoader.scala:27)
at
se.scalablesolutions.akka.servlet.Initializer.contextInitialized(Initializer.scala:
33)
at
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:
645)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:
200)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
995)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:
588)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:381)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
55)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:
92)
at org.eclipse.jetty.server.Server.doStart(Server.java:228)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
55)
at com.tom.integration.util.JettySupport
$class.startJetty(JettySupport.scala:23)
at
com.tom.integration.MyTest.startJetty(ChargerSimulatorRestEndpointTest.scala:
13)
at com.tom.integration.MyTest$$anonfun$1$$anonfun$apply$1.apply
$mcV$sp(MyTest.scala:15)
at com.tom.integration.MyTest$$anonfun$1$$anonfun$apply
$1.apply(MyTest.scala:15)
at com.tom.integration.MyTestt$$anonfun$1$$anonfun$apply
$1.apply(MyTest.scala:15)
at org.specs.specification.BeforeAfter$$anonfun$stackActions
$1.apply(Context.scala:80)
at org.specs.specification.ExampleContext$$anonfun
$executeActions$1$$anonfun$apply$1.apply(ExampleContext.scala:59)
at org.specs.specification.LifeCycle
$class.withCurrent(ExampleLifeCycle.scala:60)
at org.specs.specification.Examples.withCurrent(Examples.scala:
52)
at org.specs.specification.ExampleContext$$anonfun
$executeActions$1.apply(ExampleContext.scala:59)
at org.specs.specification.ExampleContext$$anonfun
$executeActions$1.apply(ExampleContext.scala:58)
at scala.Option.map(Option.scala:74)
at org.specs.specification.ExampleContext
$class.executeActions(ExampleContext.scala:58)
at org.specs.specification.ExampleContext
$class.beforeExample(ExampleContext.scala:53)
at
org.specs.specification.Examples.beforeExample(Examples.scala:52)
at org.specs.specification.ExampleContext$$anonfun
$beforeExample$2.apply(ExampleContext.scala:48)
at org.specs.specification.ExampleContext$$anonfun
$beforeExample$2.apply(ExampleContext.scala:48)
at scala.Option.map(Option.scala:74)
at org.specs.specification.ExampleContext
$class.beforeExample(ExampleContext.scala:48)
at
org.specs.specification.Examples.beforeExample(Examples.scala:52)
at org.specs.specification.ExampleExecution$$anonfun
$3.apply(ExampleLifeCycle.scala:193)
at org.specs.specification.ExampleExecution$$anonfun
$3.apply(ExampleLifeCycle.scala:190)
at org.specs.specification.ExampleExecution$$anonfun
$2.apply(ExampleLifeCycle.scala:173)
at
org.specs.specification.ExampleExecution.execute(ExampleLifeCycle.scala:
244)
at org.specs.specification.SpecificationExecutor$$anonfun
$executeExample$3.apply(SpecificationExecutor.scala:75)
at org.specs.specification.SpecificationExecutor$$anonfun
$executeExample$3.apply(SpecificationExecutor.scala:75)
at scala.Option.map(Option.scala:74)
at org.specs.specification.SpecificationExecutor
$class.executeExample(SpecificationExecutor.scala:75)
at
org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:
58)
at
org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:
58)
at org.specs.specification.ExampleLifeCycle$$anonfun
$executeExample$1.apply(ExampleLifeCycle.scala:117)
at org.specs.specification.ExampleLifeCycle$$anonfun
$executeExample$1.apply(ExampleLifeCycle.scala:117)
at scala.Option.map(Option.scala:74)
at org.specs.specification.ExampleLifeCycle
$class.executeExample(ExampleLifeCycle.scala:117)
at
org.specs.specification.Examples.executeExample(Examples.scala:52)
at
org.specs.specification.Examples.executeExample(Examples.scala:52)
at org.specs.specification.Examples$$anonfun$executeExamples
$1.apply(Examples.scala:80)
at org.specs.specification.Examples$$anonfun$executeExamples
$1.apply(Examples.scala:80)
at scala.Option.map(Option.scala:74)
at
org.specs.specification.Examples.executeExamples(Examples.scala:80)
at org.specs.specification.ExampleStructure
$class.ownFailures(ExampleStructure.scala:58)
at org.specs.specification.Examples.ownFailures(Examples.scala:
52)
at org.specs.specification.ExampleStructure
$class.failures(ExampleStructure.scala:64)
at org.specs.specification.Examples.failures(Examples.scala:
52)
at org.specs.specification.Examples.failures(Examples.scala:
52)
at org.specs.execute.HasResults$class.issues(HasResults.scala:
63)
at org.specs.specification.Examples.issues(Examples.scala:52)
at org.specs.execute.HasResults$class.isOk(HasResults.scala:
69)
at org.specs.specification.Examples.isOk(Examples.scala:52)
at
org.specs.runner.NotifierRunner.reportExample(NotifierRunner.scala:
104)
at org.specs.runner.NotifierRunner$$anonfun$reportSystem
$5.apply(NotifierRunner.scala:97)
at org.specs.runner.NotifierRunner$$anonfun$reportSystem
$5.apply(NotifierRunner.scala:96)
at scala.collection.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at
org.specs.runner.NotifierRunner.reportSystem(NotifierRunner.scala:96)
at org.specs.runner.NotifierRunner$$anonfun
$reportASpecification$3.apply(NotifierRunner.scala:70)
at org.specs.runner.NotifierRunner$$anonfun
$reportASpecification$3.apply(NotifierRunner.scala:66)
at scala.collection.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at
org.specs.runner.NotifierRunner.reportASpecification(NotifierRunner.scala:
66)
at org.specs.runner.NotifierRunner.report(NotifierRunner.scala:
59)
at org.specs.runner.NotifierRunner.report(NotifierRunner.scala:
45)
at org.specs.runner.Reporter$class.reportSpecs(Reporter.scala:
195)
at
org.specs.runner.NotifierRunner.reportSpecs(NotifierRunner.scala:45)
at org.specs.runner.TestInterfaceRunner$$anonfun$run
$3.apply(TestInterfaceRunner.scala:68)
at org.specs.runner.TestInterfaceRunner$$anonfun$run
$3.apply(TestInterfaceRunner.scala:68)
at scala.Option.map(Option.scala:74)
at
org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:68)
at
org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:63)
at sbt.TestRunner.run(TestFramework.scala:53)
at sbt.TestRunner.runTest$1(TestFramework.scala:67)
at sbt.TestRunner.run(TestFramework.scala:76)
at sbt.TestFramework$$anonfun$10$$anonfun$apply$11.runTest
$2(TestFramework.scala:194)
at sbt.TestFramework$$anonfun$10$$anonfun$apply$11$$anonfun
$apply$12.apply(TestFramework.scala:205)
at sbt.TestFramework$$anonfun$10$$anonfun$apply$11$$anonfun
$apply$12.apply(TestFramework.scala:205)
at sbt.NamedTestTask.run(TestFramework.scala:92)
at sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask
$1.apply(ScalaProject.scala:193)
at sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask
$1.apply(ScalaProject.scala:193)
at sbt.TaskManager$Task.invoke(TaskManager.scala:62)
at sbt.impl.RunTask.doRun$1(RunTask.scala:77)
at sbt.impl.RunTask.runTask(RunTask.scala:85)
at sbt.impl.RunTask.sbt$impl$RunTask$
$runIfNotRoot(RunTask.scala:60)
at sbt.impl.RunTask$$anonfun$runTasksExceptRoot
$2.apply(RunTask.scala:48)
at sbt.impl.RunTask$$anonfun$runTasksExceptRoot
$2.apply(RunTask.scala:48)
at sbt.Distributor$Run$Worker$$anonfun
$2.apply(ParallelRunner.scala:131)
at sbt.Distributor$Run$Worker$$anonfun
$2.apply(ParallelRunner.scala:131)
at sbt.Control$.trapUnit(Control.scala:19)
at sbt.Distributor$Run$Worker.run(ParallelRunner.scala:131)
java.lang.IllegalArgumentException: interface
org.codehaus.backport175.reader.Annotation is not visible from class
loader
at java.lang.reflect.Proxy.getProxyClass(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at
org.codehaus.backport175.reader.proxy.ProxyFactory.newAnnotationProxy(ProxyFactory.java:
43)
at
org.codehaus.backport175.reader.bytecode.AnnotationReader.getAnnotation(AnnotationReader.java:
283)
at
org.codehaus.aspectwerkz.annotation.AsmAnnotations.getAnnotation(AsmAnnotations.java:
36)
at
org.codehaus.aspectwerkz.annotation.AspectAnnotationParser.doParse(AspectAnnotationParser.java:
71)
at
org.codehaus.aspectwerkz.annotation.AspectAnnotationParser.parse(AspectAnnotationParser.java:
56)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parseAspectElements(DocumentParser.java:
441)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parsePackageElements(DocumentParser.java:
353)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parseSystemElement(DocumentParser.java:
238)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parseSystemElements(DocumentParser.java:
181)
at
org.codehaus.aspectwerkz.definition.DocumentParser.parse(DocumentParser.java:
168)
at
org.codehaus.aspectwerkz.definition.XmlParser.parseNoCache(XmlParser.java:
178)
at
org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.registerClassLoader(SystemDefinitionContainer.java:
140)
at
org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.getHierarchicalDefinitionsFor(SystemDefinitionContainer.java:
319)
at
org.codehaus.aspectwerkz.definition.SystemDefinitionContainer.getDefinitionsFor(SystemDefinitionContainer.java:
227)
at
org.codehaus.aspectwerkz.transform.inlining.ContextImpl.<init>(ContextImpl.java:
99)
at
org.codehaus.aspectwerkz.transform.inlining.InliningWeavingStrategy.newContext(InliningWeavingStrategy.java:
258)
at
org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor._preProcess(AspectWerkzPreProcessor.java:
168)
at
org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor.preProcess(AspectWerkzPreProcessor.java:
150)
at
org.codehaus.aspectwerkz.hook.impl.ClassPreProcessorHelper.defineClass0Pre(ClassPreProcessorHelper.java:
107)
at
org.codehaus.aspectwerkz.proxy.ProxyDelegationStrategy.getNewProxyClassFor(ProxyDelegationStrategy.java:
131)
at
org.codehaus.aspectwerkz.proxy.ProxyDelegationStrategy.getProxyClassFor(ProxyDelegationStrategy.java:
58)
at
org.codehaus.aspectwerkz.proxy.ProxyDelegationStrategy.newInstance(ProxyDelegationStrategy.java:
80)
at org.codehaus.aspectwerkz.proxy.Proxy.newInstance(Proxy.java:
137)
at se.scalablesolutions.akka.actor.TypedActor
$.newInstance(TypedActor.scala:524)
at se.scalablesolutions.akka.actor.TypedActor
$.newInstance(TypedActor.scala:507)
at se.scalablesolutions.akka.actor.TypedActor
$.newInstance(TypedActor.scala:451)
at com.tom.akka.Boot.<init>(Boot.scala:24)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2$$anonfun$apply
$2.apply(BootableActorLoaderService.scala:93)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2$$anonfun$apply
$2.apply(BootableActorLoaderService.scala:91)
at scala.collection.IndexedSeqOptimized
$class.foreach(IndexedSeqOptimized.scala:34)
at
scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:32)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2.apply(BootableActorLoaderService.scala:91)

at se.scalablesolutions.akka.actor.BootableActorLoaderService$
$anonfun$onLoad$2.apply(BootableActorLoaderService.scala:91)

at scala.Option.foreach(Option.scala:121)
at se.scalablesolutions.akka.actor.BootableActorLoaderService
$class.onLoad(BootableActorLoaderService.scala:91)
at se.scalablesolutions.akka.servlet.Initializer$$anon$1.se
$scalablesolutions$akka$remote$BootableRemoteActorService$$super
$onLoad(Initializer.scala:33)
at se.scalablesolutions.akka.remote.BootableRemoteActorService
$class.onLoad(BootableRemoteActorService.scala:35)
at se.scalablesolutions.akka.servlet.Initializer$$anon$1.se
$scalablesolutions$akka$camel$CamelService$$super
$onLoad(Initializer.scala:33)
at se.scalablesolutions.akka.camel.CamelService
$class.onLoad(CamelService.scala:38)
at se.scalablesolutions.akka.servlet.Initializer$$anon
$1.onLoad(Initializer.scala:33)
at
se.scalablesolutions.akka.servlet.AkkaLoader.boot(AkkaLoader.scala:27)
at
se.scalablesolutions.akka.servlet.Initializer.contextInitialized(Initializer.scala:
33)
at
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:
645)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:
200)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
995)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:
588)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:381)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
55)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:
92)
at org.eclipse.jetty.server.Server.doStart(Server.java:228)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
55)
at com.tom.integration.util.JettySupport
$class.startJetty(JettySupport.scala:23)
at com.tom.integration.MyTest.startJetty(MyTest.scala:13)
at com.tom.integration.MyTest$$anonfun$1$$anonfun$apply$1.apply
$mcV$sp(MyTest.scala:15)
at com.tom.integration.MyTest$$anonfun$1$$anonfun$apply
$1.apply(MyTest.scala:15)
at com.tom.integration.MyTest$$anonfun$1$$anonfun$apply
$1.apply(MyTest.scala:15)
at org.specs.specification.BeforeAfter$$anonfun$stackActions
$1.apply(Context.scala:80)
at org.specs.specification.ExampleContext$$anonfun
$executeActions$1$$anonfun$apply$1.apply(ExampleContext.scala:59)
at org.specs.specification.LifeCycle
$class.withCurrent(ExampleLifeCycle.scala:60)
at org.specs.specification.Examples.withCurrent(Examples.scala:
52)
at org.specs.specification.ExampleContext$$anonfun
$executeActions$1.apply(ExampleContext.scala:59)
at org.specs.specification.ExampleContext$$anonfun
$executeActions$1.apply(ExampleContext.scala:58)
at scala.Option.map(Option.scala:74)
at org.specs.specification.ExampleContext
$class.executeActions(ExampleContext.scala:58)
at org.specs.specification.ExampleContext
$class.beforeExample(ExampleContext.scala:53)
at
org.specs.specification.Examples.beforeExample(Examples.scala:52)
at org.specs.specification.ExampleContext$$anonfun
$beforeExample$2.apply(ExampleContext.scala:48)
at org.specs.specification.ExampleContext$$anonfun
$beforeExample$2.apply(ExampleContext.scala:48)
at scala.Option.map(Option.scala:74)
at org.specs.specification.ExampleContext
$class.beforeExample(ExampleContext.scala:48)
at
org.specs.specification.Examples.beforeExample(Examples.scala:52)
at org.specs.specification.ExampleExecution$$anonfun
$3.apply(ExampleLifeCycle.scala:193)
at org.specs.specification.ExampleExecution$$anonfun
$3.apply(ExampleLifeCycle.scala:190)
at org.specs.specification.ExampleExecution$$anonfun
$2.apply(ExampleLifeCycle.scala:173)
at
org.specs.specification.ExampleExecution.execute(ExampleLifeCycle.scala:
244)
at org.specs.specification.SpecificationExecutor$$anonfun
$executeExample$3.apply(SpecificationExecutor.scala:75)
at org.specs.specification.SpecificationExecutor$$anonfun
$executeExample$3.apply(SpecificationExecutor.scala:75)
at scala.Option.map(Option.scala:74)
at org.specs.specification.SpecificationExecutor
$class.executeExample(SpecificationExecutor.scala:75)
at
org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:
58)
at
org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:
58)
at org.specs.specification.ExampleLifeCycle$$anonfun
$executeExample$1.apply(ExampleLifeCycle.scala:117)
at org.specs.specification.ExampleLifeCycle$$anonfun
$executeExample$1.apply(ExampleLifeCycle.scala:117)
at scala.Option.map(Option.scala:74)
at org.specs.specification.ExampleLifeCycle
$class.executeExample(ExampleLifeCycle.scala:117)
at
org.specs.specification.Examples.executeExample(Examples.scala:52)
at
org.specs.specification.Examples.executeExample(Examples.scala:52)
at org.specs.specification.Examples$$anonfun$executeExamples
$1.apply(Examples.scala:80)
at org.specs.specification.Examples$$anonfun$executeExamples
$1.apply(Examples.scala:80)
at scala.Option.map(Option.scala:74)
at
org.specs.specification.Examples.executeExamples(Examples.scala:80)
at org.specs.specification.ExampleStructure
$class.ownFailures(ExampleStructure.scala:58)
at org.specs.specification.Examples.ownFailures(Examples.scala:
52)
at org.specs.specification.ExampleStructure
$class.failures(ExampleStructure.scala:64)
at org.specs.specification.Examples.failures(Examples.scala:
52)
at org.specs.specification.Examples.failures(Examples.scala:
52)
at org.specs.execute.HasResults$class.issues(HasResults.scala:
63)
at org.specs.specification.Examples.issues(Examples.scala:52)
at org.specs.execute.HasResults$class.isOk(HasResults.scala:
69)
at org.specs.specification.Examples.isOk(Examples.scala:52)
at
org.specs.runner.NotifierRunner.reportExample(NotifierRunner.scala:
104)
at org.specs.runner.NotifierRunner$$anonfun$reportSystem
$5.apply(NotifierRunner.scala:97)
at org.specs.runner.NotifierRunner$$anonfun$reportSystem
$5.apply(NotifierRunner.scala:96)
at scala.collection.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at
org.specs.runner.NotifierRunner.reportSystem(NotifierRunner.scala:96)
at org.specs.runner.NotifierRunner$$anonfun
$reportASpecification$3.apply(NotifierRunner.scala:70)
at org.specs.runner.NotifierRunner$$anonfun
$reportASpecification$3.apply(NotifierRunner.scala:66)
at scala.collection.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at
org.specs.runner.NotifierRunner.reportASpecification(NotifierRunner.scala:
66)
at org.specs.runner.NotifierRunner.report(NotifierRunner.scala:
59)
at org.specs.runner.NotifierRunner.report(NotifierRunner.scala:
45)
at org.specs.runner.Reporter$class.reportSpecs(Reporter.scala:
195)
at
org.specs.runner.NotifierRunner.reportSpecs(NotifierRunner.scala:45)
at org.specs.runner.TestInterfaceRunner$$anonfun$run
$3.apply(TestInterfaceRunner.scala:68)
at org.specs.runner.TestInterfaceRunner$$anonfun$run
$3.apply(TestInterfaceRunner.scala:68)
at scala.Option.map(Option.scala:74)
at
org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:68)
at
org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:63)
at sbt.TestRunner.run(TestFramework.scala:53)
at sbt.TestRunner.runTest$1(TestFramework.scala:67)
at sbt.TestRunner.run(TestFramework.scala:76)
at sbt.TestFramework$$anonfun$10$$anonfun$apply$11.runTest
$2(TestFramework.scala:194)
at sbt.TestFramework$$anonfun$10$$anonfun$apply$11$$anonfun
$apply$12.apply(TestFramework.scala:205)
at sbt.TestFramework$$anonfun$10$$anonfun$apply$11$$anonfun
$apply$12.apply(TestFramework.scala:205)
at sbt.NamedTestTask.run(TestFramework.scala:92)
at sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask
$1.apply(ScalaProject.scala:193)
at sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask
$1.apply(ScalaProject.scala:193)
at sbt.TaskManager$Task.invoke(TaskManager.scala:62)
at sbt.impl.RunTask.doRun$1(RunTask.scala:77)
at sbt.impl.RunTask.runTask(RunTask.scala:85)
at sbt.impl.RunTask.sbt$impl$RunTask$
$runIfNotRoot(RunTask.scala:60)
at sbt.impl.RunTask$$anonfun$runTasksExceptRoot
$2.apply(RunTask.scala:48)
at sbt.impl.RunTask$$anonfun$runTasksExceptRoot
$2.apply(RunTask.scala:48)
at sbt.Distributor$Run$Worker$$anonfun
$2.apply(ParallelRunner.scala:131)
at sbt.Distributor$Run$Worker$$anonfun
$2.apply(ParallelRunner.scala:131)
at sbt.Control$.trapUnit(Control.scala:19)
at sbt.Distributor$Run$Worker.run(ParallelRunner.scala:131)
[INFO] [2010-11-25 14:32:25,076] [Thread-48] c.t.a.HelloImpl: Hello 2

Jonas Bonér

unread,
Nov 26, 2010, 1:49:05 AM11/26/10
to akka...@googlegroups.com
I don't know. But the use-case is odd. Why would you want to create an
actor with no way of sending it a message? E.g. no method on the Hello
trait. I suppose that is the "problem". It must be a shortcoming in
the proxy creation. What happens if you use it the way it is intended?

> --
> You received this message because you are subscribed to the Google Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
>
>

--
Jonas Bonér

Jonas Bonér
Specialist at Large
work: http://scalablesolutions.se
code: http://akka.io
blog: http://jonasboner.com
twtr: @jboner

schoefts

unread,
Nov 26, 2010, 2:35:03 AM11/26/10
to Akka User List
This simple actor was merely introduced to simplify the use case and
reduce the code in my post.
The Trait actually used instead of Hello handles multiple events and
produces the same error log.

Jonas Bonér

unread,
Nov 26, 2010, 4:53:02 AM11/26/10
to akka...@googlegroups.com
On 26 November 2010 08:35, schoefts <thomas.s...@gmail.com> wrote:
> This simple actor was merely introduced to simplify the use case and
> reduce the code in my post.
> The Trait actually used instead of Hello handles multiple events and
> produces the same error log.

Ok. Thanks. I'll look into it later. Do you have a work-around?

>
>
> On 26 Nov., 07:49, Jonas Bonér <jo...@jonasboner.com> wrote:
>> I don't know. But the use-case is odd. Why would you want to create an
>> actor with no way of sending it a message? E.g. no method on the Hello
>> trait. I suppose that is the "problem". It must be a shortcoming in
>> the proxy creation. What happens if you use it the way it is intended?
>

schoefts

unread,
Nov 26, 2010, 5:11:30 AM11/26/10
to Akka User List
Thanks - no hurry!
Surprisingly the actor (during which creation the error trace appears)
appears to be fully functional.



On 26 Nov., 10:53, Jonas Bonér <jo...@jonasboner.com> wrote:

Jonas Bonér

unread,
Nov 26, 2010, 5:18:23 AM11/26/10
to akka...@googlegroups.com
On 26 November 2010 11:11, schoefts <thomas.s...@gmail.com> wrote:
> Thanks - no hurry!
> Surprisingly the actor (during which creation the error trace appears)
> appears to be fully functional.

Ah, ok. Good to know.

>
>
>
> On 26 Nov., 10:53, Jonas Bonér <jo...@jonasboner.com> wrote:
>> On 26 November 2010 08:35, schoefts <thomas.schoeft...@gmail.com> wrote:
>>
>> > This simple actor was merely introduced to simplify the use case and
>> > reduce the code in my post.
>> > The Trait actually used instead of Hello handles multiple events and
>> > produces the same error log.
>>
>> Ok. Thanks. I'll look into it later. Do you have a work-around?
>>
>>
>>
>> > On 26 Nov., 07:49, Jonas Bonér <jo...@jonasboner.com> wrote:
>> >> I don't know. But the use-case is odd. Why would you want to create an
>> >> actor with no way of sending it a message? E.g. no method on the Hello
>> >> trait. I suppose that is the "problem". It must be a shortcoming in
>> >> the proxy creation. What happens if you use it the way it is intended?
>

Reply all
Reply to author
Forward
0 new messages