Advertisement
Guest User

XStreamGae JUnit Test Stack Trace

a guest
Apr 4th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. com.thoughtworks.xstream.converters.ConversionException: Cannot construct com.mycompany.myapp.Car as it does not have a no-args constructor : Cannot construct com.mycompany.myapp.Car as it does not have a no-args constructor
  2. ---- Debugging information ----
  3. message : Cannot construct com.mycompany.myapp.Car as it does not have a no-args constructor
  4. cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
  5. cause-message : Cannot construct com.mycompany.myapp.Car as it does not have a no-args constructor
  6. class : com.mycompany.myapp.Car
  7. required-type : com.mycompany.myapp.Car
  8. converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
  9. path : /com.mycompany.myapp.Car
  10. line number : 1
  11. version : null
  12. -------------------------------
  13. at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
  14. at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
  15. at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
  16. at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
  17. at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
  18. at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
  19. at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1052)
  20. at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1036)
  21. at com.thoughtworks.xstream.XStream.fromXML(XStream.java:912)
  22. at com.thoughtworks.xstream.XStream.fromXML(XStream.java:903)
  23. at com.mycompany.myapp.XStreamGaeTest.testStringKeys(XStreamGaeTest.java:34)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  25. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  26. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  27. at java.lang.reflect.Method.invoke(Method.java:601)
  28. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
  29. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  30. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
  31. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
  32. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
  33. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
  34. at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
  35. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
  36. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
  37. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
  38. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
  39. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
  40. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
  41. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
  42. at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
  43. at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
  44. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  45. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  46. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  47. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  48. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  49. Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct com.mycompany.myapp.Car as it does not have a no-args constructor
  50. at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
  51. at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:428)
  52. at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:233)
  53. at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
  54. ... 35 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement