Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

ThriftHandlerSpec fails. #125

Open
knservis opened this issue Jul 10, 2013 · 3 comments
Open

ThriftHandlerSpec fails. #125

knservis opened this issue Jul 10, 2013 · 3 comments

Comments

@knservis
Copy link

Hi,

I am installing kestrel to try it out and I tried to run the tests but the ThriftHandlerSpec fails. I am not sure whether the fault is with the Handler, the test or my setup (I am using java 1.7, sbt 11.3). Is that a known issue? I am unfamiliar Thrift and Scala testing and my Scala knowledge is basic. If you point me to the right direction I can try fixing this.

Here is the output from the first test:

error] x ThriftHandler should
[error] x put
[error] null (InetSocketAddress.java:56)
[error] java.net.InetSocketAddress$InetSocketAddressHolder.access$600(InetSocketAddress.java:56)
[error] java.net.InetSocketAddress.getHostName(InetSocketAddress.java:345)
[error] net.lag.kestrel.ThriftHandler.clientDescription(ThriftHandler.scala:164)
[error] net.lag.kestrel.ThriftHandler.(ThriftHandler.scala:160)
[error] net.lag.kestrel.ThriftHandlerSpec$$anonfun$1.withFrozenThriftHandler$1(ThriftHandlerSpec.scala:64)
[error] net.lag.kestrel.ThriftHandlerSpec$$anonfun$1$$anonfun$apply$67$$anonfun$apply$2.apply$mcV$sp(ThriftHandlerSpec.scala:85)
[error] net.lag.kestrel.ThriftHandlerSpec$$anonfun$1$$anonfun$apply$67$$anonfun$apply$2.apply(ThriftHandlerSpec.scala:85)
[error] net.lag.kestrel.ThriftHandlerSpec$$anonfun$1$$anonfun$apply$67$$anonfun$apply$2.apply(ThriftHandlerSpec.scala:85)
[error] org.specs.specification.LifeCycle$class.withCurrent(ExampleLifeCycle.scala:66)
[error] org.specs.specification.Examples.withCurrent(Examples.scala:52)
[error] org.specs.specification.Examples$$anonfun$specifyExample$1.apply(Examples.scala:114)
[error] org.specs.specification.Examples$$anonfun$specifyExample$1.apply(Examples.scala:114)
[error] org.specs.specification.ExampleExecution$$anonfun$3$$anonfun$apply$5.apply(ExampleLifeCycle.scala:219)
[error] scala.Option.getOrElse(Option.scala:108)
[error] org.specs.specification.LifeCycle$class.executeExpectations(ExampleLifeCycle.scala:90)
[error] net.lag.kestrel.ThriftHandlerSpec.org$specs$mock$JMockerExampleLifeCycle$$super$executeExpectations(ThriftHandlerSpec.scala:30)
[error] org.specs.mock.JMockerExampleLifeCycle$class.executeExpectations(JMocker.scala:555)
[error] net.lag.kestrel.ThriftHandlerSpec.executeExpectations(ThriftHandlerSpec.scala:30)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3$$anonfun$apply$4.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3$$anonfun$apply$4.apply(ExampleContext.scala:81)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$class.id$1(ExampleContext.scala:32)
[error] org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:33)
[error] org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:33)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3.apply(ExampleContext.scala:80)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleContext$class.executeExpectations(ExampleContext.scala:80)
[error] org.specs.specification.Examples.executeExpectations(Examples.scala:52)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3$$anonfun$apply$4.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3$$anonfun$apply$4.apply(ExampleContext.scala:81)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$class.id$1(ExampleContext.scala:32)
[error] org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:33)
[error] org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:33)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3.apply(ExampleContext.scala:80)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleContext$class.executeExpectations(ExampleContext.scala:80)
[error] org.specs.specification.Examples.executeExpectations(Examples.scala:52)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3$$anonfun$apply$4.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3$$anonfun$apply$4.apply(ExampleContext.scala:81)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3$$anonfun$apply$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$class.id$1(ExampleContext.scala:32)
[error] org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:33)
[error] org.specs.specification.ExampleContext$$anonfun$1.apply(ExampleContext.scala:33)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3.apply(ExampleContext.scala:81)
[error] org.specs.specification.ExampleContext$$anonfun$executeExpectations$3.apply(ExampleContext.scala:80)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleContext$class.executeExpectations(ExampleContext.scala:80)
[error] org.specs.specification.Examples.executeExpectations(Examples.scala:52)
[error] org.specs.specification.ExampleExecution$$anonfun$3.apply(ExampleLifeCycle.scala:219)
[error] org.specs.specification.ExampleExecution$$anonfun$3.apply(ExampleLifeCycle.scala:198)
[error] org.specs.specification.ExampleExecution$$anonfun$2.apply(ExampleLifeCycle.scala:181)
[error] org.specs.specification.ExampleExecution.execute(ExampleLifeCycle.scala:252)
[error] org.specs.specification.SpecificationExecutor$$anonfun$executeExample$3.apply(SpecificationExecutor.scala:70)
[error] org.specs.specification.SpecificationExecutor$$anonfun$executeExample$3.apply(SpecificationExecutor.scala:70)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.SpecificationExecutor$class.executeExample(SpecificationExecutor.scala:70)
[error] org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:58)
[error] org.specs.specification.BaseSpecification.executeExample(BaseSpecification.scala:58)
[error] org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:125)
[error] org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:125)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleLifeCycle$class.executeExample(ExampleLifeCycle.scala:125)
[error] org.specs.specification.Examples.executeExample(Examples.scala:52)
[error] org.specs.specification.Examples.executeExample(Examples.scala:52)
[error] org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:125)
[error] org.specs.specification.ExampleLifeCycle$$anonfun$executeExample$1.apply(ExampleLifeCycle.scala:125)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.ExampleLifeCycle$class.executeExample(ExampleLifeCycle.scala:125)
[error] org.specs.specification.Examples.executeExample(Examples.scala:52)
[error] org.specs.specification.Examples.executeExample(Examples.scala:52)
[error] org.specs.specification.Examples$$anonfun$executeExamples$2.apply(Examples.scala:80)
[error] org.specs.specification.Examples$$anonfun$executeExamples$2.apply(Examples.scala:80)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.specification.Examples.executeExamples(Examples.scala:80)
[error] org.specs.specification.ExampleStructure$class.ownFailures(ExampleStructure.scala:58)
[error] org.specs.specification.Examples.ownFailures(Examples.scala:52)
[error] org.specs.specification.ExampleStructure$class.failures(ExampleStructure.scala:64)
[error] org.specs.specification.Examples.failures(Examples.scala:52)
[error] org.specs.specification.ExampleStructure$$anonfun$failures$1.apply(ExampleStructure.scala:64)
[error] org.specs.specification.ExampleStructure$$anonfun$failures$1.apply(ExampleStructure.scala:64)
[error] scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[error] scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[error] scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[error] scala.collection.immutable.List.foreach(List.scala:76)
[error] scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:239)
[error] scala.collection.immutable.List.flatMap(List.scala:76)
[error] org.specs.specification.ExampleStructure$class.failures(ExampleStructure.scala:64)
[error] org.specs.specification.Examples.failures(Examples.scala:52)
[error] org.specs.specification.ExampleStructure$$anonfun$failures$1.apply(ExampleStructure.scala:64)
[error] org.specs.specification.ExampleStructure$$anonfun$failures$1.apply(ExampleStructure.scala:64)
[error] scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[error] scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:239)
[error] scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[error] scala.collection.immutable.List.foreach(List.scala:76)
[error] scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:239)
[error] scala.collection.immutable.List.flatMap(List.scala:76)
[error] org.specs.specification.ExampleStructure$class.failures(ExampleStructure.scala:64)
[error] org.specs.specification.Examples.failures(Examples.scala:52)
[error] org.specs.specification.Examples.failures(Examples.scala:52)
[error] org.specs.execute.HasResults$class.failureAndErrors(HasResults.scala:61)
[error] org.specs.specification.Examples.failureAndErrors(Examples.scala:52)
[error] org.specs.execute.HasResults$class.isOk(HasResults.scala:69)
[error] org.specs.specification.Examples.isOk(Examples.scala:52)
[error] org.specs.runner.NotifierRunner.reportSystem(NotifierRunner.scala:81)
[error] org.specs.runner.NotifierRunner$$anonfun$reportASpecification$3.apply(NotifierRunner.scala:72)
[error] org.specs.runner.NotifierRunner$$anonfun$reportASpecification$3.apply(NotifierRunner.scala:68)
[error] scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[error] scala.collection.immutable.List.foreach(List.scala:76)
[error] org.specs.runner.NotifierRunner.reportASpecification(NotifierRunner.scala:68)
[error] org.specs.runner.NotifierRunner.report(NotifierRunner.scala:58)
[error] org.specs.runner.NotifierRunner.report(NotifierRunner.scala:45)
[error] org.specs.runner.Reporter$class.reportSpecs(Reporter.scala:195)
[error] org.specs.runner.NotifierRunner.reportSpecs(NotifierRunner.scala:45)
[error] org.specs.runner.TestInterfaceRunner$$anonfun$run$3.apply(TestInterfaceRunner.scala:72)
[error] org.specs.runner.TestInterfaceRunner$$anonfun$run$3.apply(TestInterfaceRunner.scala:72)
[error] scala.Option.map(Option.scala:133)
[error] org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:72)
[error] org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:65)
[error] sbt.TestRunner.delegateRun(TestFramework.scala:62)
[error] sbt.TestRunner.run(TestFramework.scala:56)
[error] sbt.TestRunner.runTest$1(TestFramework.scala:76)
[error] sbt.TestRunner.run(TestFramework.scala:85)
[error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7$$anonfun$apply$9.apply(TestFramework.scala:184)
[error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7$$anonfun$apply$9.apply(TestFramework.scala:184)
[error] sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:196)
[error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7.apply(TestFramework.scala:184)
[error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7.apply(TestFramework.scala:184)
[error] sbt.Tests$$anonfun$makeSerial$1$$anonfun$apply$8.apply(Tests.scala:115)
[error] sbt.Tests$$anonfun$makeSerial$1$$anonfun$apply$8.apply(Tests.scala:115)
[error] scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
[error] scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
[error] scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[error] scala.collection.immutable.List.foreach(List.scala:45)
[error] scala.collection.TraversableLike$class.map(TraversableLike.scala:194)
[error] scala.collection.immutable.List.map(List.scala:45)
[error] sbt.Tests$$anonfun$makeSerial$1.apply(Tests.scala:115)
[error] sbt.Tests$$anonfun$makeSerial$1.apply(Tests.scala:115)
[error] sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:47)
[error] sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:47)
[error] sbt.std.Transform$$anon$5.work(System.scala:67)
[error] sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:221)
[error] sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:221)
[error] sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
[error] sbt.Execute.work(Execute.scala:227)
[error] sbt.Execute$$anonfun$submit$1.apply(Execute.scala:221)
[error] sbt.Execute$$anonfun$submit$1.apply(Execute.scala:221)
[error] sbt.CompletionService$$anon$1$$anon$2.call(CompletionService.scala:26)
[error] java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[error] java.util.concurrent.FutureTask.run(FutureTask.java:166)
[error] java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[error] java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[error] java.util.concurrent.FutureTask.run(FutureTask.java:166)
[error] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[error] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[error] java.lang.Thread.run(Thread.java:724)

@deric
Copy link

deric commented Aug 20, 2013

I'm having the same issue with oracle java 1.7.0_25-b15 and sbt_2.9.1 0.11.2

@jaingaurav1990
Copy link

I am also having the same issue with oracle java 6 and sbt 0.11.2

@dexterbt1
Copy link

I'm trying to build a dockerfile for this but i'm having the same issue with @deric
debian + oracle java 1.7 + scala 2.9.1 + sbt 0.11.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants