Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactoring completed. Still one test failing. But the code it repres…

…ents should be removed.
  • Loading branch information...
commit cee604fadf319e6b5416fc9a4e76d2e26e22a71b 1 parent 71b9194
@anagrius anagrius authored
Showing with 227 additions and 1,680 deletions.
  1. +0 −846 subprojects/authorization-ws/logFile_IS_UNDEFINED
  2. +2 −1  subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/FileParser.java
  3. +48 −32 ...s/importer/src/main/java/com/trifork/stamdata/importer/jobs/autorisationsregister/AutorisationImporter.java
  4. +11 −7 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/cpr/CPRImporter.java
  5. +2 −2 ...s/importer/src/main/java/com/trifork/stamdata/importer/jobs/dosagesuggestions/DosageSuggestionImporter.java
  6. +2 −1  subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/sikrede/SikredeParser.java
  7. +2 −2 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/sks/SksImporter.java
  8. +2 −2 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/sor/SORImporter.java
  9. +4 −3 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/takst/TakstImporter.java
  10. +27 −22 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/takst/TakstParser.java
  11. +29 −50 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/yderregister/YderregisterImporter.java
  12. +2 −2 subprojects/importer/src/main/resources/config.properties
  13. +0 −345 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/FileSpoolerImplTest.java
  14. +0 −67 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/FileSpoolerSetupTest.java
  15. +0 −59 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/JobSpoolerSetupTest.java
  16. +0 −86 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/SpoolerManagerTest.java
  17. +9 −31 ...cts/importer/src/test/java/com/trifork/stamdata/importer/jobs/autorisationsregister/AutIntegrationTest.java
  18. +11 −12 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/autorisationsregister/AutParserTest.java
  19. +30 −25 ...fork/stamdata/importer/jobs/autorisationsregister/{AutImporterTest.java → AutorisationParserTest.java}
  20. +15 −17 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/cpr/CPRIntegrationTest.java
  21. +6 −8 ...mporter/src/test/java/com/trifork/stamdata/importer/jobs/doseringsforslag/DoseringsforslagImporterTest.java
  22. +2 −25 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/takst/TakstParserTest.java
  23. +19 −26 ...cts/importer/src/test/java/com/trifork/stamdata/importer/jobs/yderregister/YderregisterIntegrationTest.java
  24. +4 −9 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/yderregister/YderregisterParserTest.java
View
846 subprojects/authorization-ws/logFile_IS_UNDEFINED
@@ -1,846 +0,0 @@
-2011-07-04 10:12:13,082 WARN [main] c.t.s.a.WebService [WebService.java:67] An unexpected error happend while processing request.
-java.util.NoSuchElementException: null
- at java.util.Scanner.throwFor(Scanner.java:838) ~[na:1.6.0_26]
- at java.util.Scanner.next(Scanner.java:1347) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:56) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:103) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:12:13,101 WARN [main] c.t.s.a.WebService [WebService.java:67] An unexpected error happend while processing request.
-java.lang.NullPointerException: source
- at java.util.Scanner.<init>(Scanner.java:557) ~[na:1.6.0_26]
- at java.util.Scanner.<init>(Scanner.java:578) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:56) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:131) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:12:52,067 WARN [main] c.t.s.a.WebService [WebService.java:67] An unexpected error happend while processing request.
-java.util.NoSuchElementException: null
- at java.util.Scanner.throwFor(Scanner.java:838) ~[na:1.6.0_26]
- at java.util.Scanner.next(Scanner.java:1347) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:56) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:103) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:13:16,818 WARN [main] c.t.s.a.WebService [WebService.java:67] An unexpected error happend while processing request.
-java.util.NoSuchElementException: null
- at java.util.Scanner.throwFor(Scanner.java:838) ~[na:1.6.0_26]
- at java.util.Scanner.next(Scanner.java:1347) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:56) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:103) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:18:00,997 WARN [main] c.t.s.a.WebService [WebService.java:69] An unexpected error happend while processing request.
-java.util.NoSuchElementException: null
- at java.util.Scanner.throwFor(Scanner.java:838) ~[na:1.6.0_26]
- at java.util.Scanner.next(Scanner.java:1347) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:58) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:103) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:18:02,943 WARN [main] c.t.s.a.WebService [WebService.java:69] An unexpected error happend while processing request.
-java.lang.NullPointerException: source
- at java.util.Scanner.<init>(Scanner.java:557) ~[na:1.6.0_26]
- at java.util.Scanner.<init>(Scanner.java:578) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:58) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:131) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:33:07,815 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.util.NoSuchElementException: null
- at java.util.Scanner.throwFor(Scanner.java:838) ~[na:1.6.0_26]
- at java.util.Scanner.next(Scanner.java:1347) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:61) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:109) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:50:04,226 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.lang.NullPointerException: source
- at java.util.Scanner.<init>(Scanner.java:557) ~[na:1.6.0_26]
- at java.util.Scanner.<init>(Scanner.java:578) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:61) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:139) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:50:35,781 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.lang.NullPointerException: source
- at java.util.Scanner.<init>(Scanner.java:557) ~[na:1.6.0_26]
- at java.util.Scanner.<init>(Scanner.java:578) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:61) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:139) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:50:43,095 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.lang.NullPointerException: source
- at java.util.Scanner.<init>(Scanner.java:557) ~[na:1.6.0_26]
- at java.util.Scanner.<init>(Scanner.java:578) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:61) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:139) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 10:58:55,641 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:137) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:00:43,948 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:138) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:00:59,748 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:138) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:04:02,216 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.util.NoSuchElementException: null
- at java.util.Scanner.throwFor(Scanner.java:838) ~[na:1.6.0_26]
- at java.util.Scanner.next(Scanner.java:1347) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:61) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:138) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:04:13,153 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:138) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:12:13,643 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:143) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:12:38,065 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:143) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:16:11,749 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.lang.NullPointerException: null
- at dk.sosi.seal.SOSIFactory.validate(SOSIFactory.java:770) ~[seal-2.0.0.jar:2.0.0]
- at dk.sosi.seal.SOSIFactory.deserializeRequest(SOSIFactory.java:632) ~[seal-2.0.0.jar:2.0.0]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:110) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:16:37,644 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.lang.NullPointerException: null
- at dk.sosi.seal.SOSIFactory.validate(SOSIFactory.java:770) ~[seal-2.0.0.jar:2.0.0]
- at dk.sosi.seal.SOSIFactory.deserializeRequest(SOSIFactory.java:632) ~[seal-2.0.0.jar:2.0.0]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:110) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:18:26,263 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:137) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:19:12,336 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.lang.NullPointerException: source
- at java.util.Scanner.<init>(Scanner.java:557) ~[na:1.6.0_26]
- at java.util.Scanner.<init>(Scanner.java:578) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:61) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_deserialize_the_request_and_pass_it_to_the_request_processor(TestAuthorizationServlet.java:108) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:19:12,350 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-java.lang.NullPointerException: source
- at java.util.Scanner.<init>(Scanner.java:557) ~[na:1.6.0_26]
- at java.util.Scanner.<init>(Scanner.java:578) ~[na:1.6.0_26]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:61) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:136) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:23:33,064 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.TestAuthorizationServlet$2.deserializeRequest(TestAuthorizationServlet.java:132) ~[bin/:na]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:158) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:23:50,872 WARN [main] c.t.s.a.WebService [WebService.java:71] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.TestAuthorizationServlet$2.deserializeRequest(TestAuthorizationServlet.java:132) ~[bin/:na]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:63) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:158) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:33:58,187 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:35] Configuring the stamdata authorization web-service.
-2011-07-04 11:33:59,917 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:96] Done configuring the stamdata authorization web-service.
-2011-07-04 11:36:19,975 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:35] Configuring the stamdata authorization web-service.
-2011-07-04 11:36:21,639 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:96] Done configuring the stamdata authorization web-service.
-2011-07-04 11:41:01,852 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:41] Configuring the stamdata authorization web-service.
-2011-07-04 11:41:03,475 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:101] Done configuring the stamdata authorization web-service.
-2011-07-04 11:41:54,985 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:41] Configuring the stamdata authorization web-service.
-2011-07-04 11:41:56,114 INFO [main] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:101] Done configuring the stamdata authorization web-service.
-2011-07-04 11:41:56,393 WARN [main] c.t.s.a.WebService [WebService.java:63] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.TestAuthorizationServlet$2.deserializeRequest(TestAuthorizationServlet.java:119) ~[bin/:na]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:55) ~[bin/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:145) [bin/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) [.cp/:na]
- at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) [.cp/:na]
-2011-07-04 11:42:39,767 WARN [Outgoing Connection channel:tcp://localhost:60253!0 Thread 3] c.t.s.a.WebService [WebService.java:63] An unexpected error happend while processing request.
-dk.sosi.seal.modelbuilders.ModelBuildException: Some exception.
- at com.trifork.stamdata.authorization.TestAuthorizationServlet$2.deserializeRequest(TestAuthorizationServlet.java:119) ~[test/:na]
- at com.trifork.stamdata.authorization.WebService.doPost(WebService.java:55) ~[main/:na]
- at com.trifork.stamdata.authorization.TestAuthorizationServlet.should_return_soap_fault_if_could_not_deserialize_request(TestAuthorizationServlet.java:145) [test/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) [junit-4.8.2.jar:na]
- at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) [junit-4.8.2.jar:na]
- at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) [junit-4.8.2.jar:na]
- at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) [junit-4.8.2.jar:na]
- at org.junit.runners.ParentRunner.run(ParentRunner.java:236) [junit-4.8.2.jar:na]
- at org.mockito.internal.runners.JUnit45AndHigherRunnerImpl.run(JUnit45AndHigherRunnerImpl.java:37) [mockito-core-1.8.5.jar:na]
- at org.mockito.runners.MockitoJUnitRunner.run(MockitoJUnitRunner.java:62) [mockito-core-1.8.5.jar:na]
- at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:51) [gradle-plugins-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:63) [gradle-plugins-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:49) [gradle-plugins-1.0-milestone-3.jar:1.0-milestone-3]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:75) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at $Proxy3.processTestClass(Unknown Source) [na:na]
- at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:86) [gradle-plugins-1.0-milestone-3.jar:1.0-milestone-3]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_26]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_26]
- at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.remote.internal.MethodInvocationUnmarshallingDispatch.dispatch(MethodInvocationUnmarshallingDispatch.java:48) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.DiscardOnFailureDispatch.dispatch(DiscardOnFailureDispatch.java:31) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:129) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:69) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:63) [gradle-core-1.0-milestone-3.jar:1.0-milestone-3]
- at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_26]
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_26]
- at java.lang.Thread.run(Thread.java:680) [na:1.6.0_26]
-2011-07-04 11:42:39,846 INFO [Outgoing Connection channel:tcp://localhost:60253!0 Thread 3] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:41] Configuring the stamdata authorization web-service.
-2011-07-04 11:42:40,953 INFO [Outgoing Connection channel:tcp://localhost:60253!0 Thread 3] c.t.s.a.ApplicationContextListener [ApplicationContextListener.java:101] Done configuring the stamdata authorization web-service.
View
3  subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/FileParser.java
@@ -3,6 +3,7 @@
import java.io.File;
import com.trifork.stamdata.importer.persistence.AuditingPersister;
+import com.trifork.stamdata.importer.persistence.Persister;
public interface FileParser
{
@@ -14,7 +15,7 @@
boolean ensureRequiredFileArePresent(File[] input);
- void importFiles(File[] input, AuditingPersister persister) throws Exception;
+ void importFiles(File[] input, Persister persister) throws Exception;
/**
* (non-javadoc)
View
80 ...mporter/src/main/java/com/trifork/stamdata/importer/jobs/autorisationsregister/AutorisationImporter.java
@@ -25,25 +25,27 @@
import static com.trifork.stamdata.Preconditions.checkNotNull;
-import java.io.BufferedReader;
import java.io.File;
-import java.io.FileInputStream;
import java.io.IOException;
-import java.io.InputStreamReader;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.Timestamp;
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.LineIterator;
import org.joda.time.DateTime;
+import org.joda.time.format.DateTimeFormat;
+import org.joda.time.format.DateTimeFormatter;
import com.trifork.stamdata.importer.jobs.FileParser;
import com.trifork.stamdata.importer.jobs.autorisationsregister.model.Autorisation;
import com.trifork.stamdata.importer.jobs.autorisationsregister.model.Autorisationsregisterudtraek;
-import com.trifork.stamdata.importer.persistence.AuditingPersister;
+import com.trifork.stamdata.importer.persistence.Persister;
public class AutorisationImporter implements FileParser
{
+ private static final String FILENAME_DATE_FORMAT = "yyyyMMdd";
private static final String FILE_ENCODING = "ISO8859-15";
@Override
@@ -54,7 +56,7 @@ public boolean ensureRequiredFileArePresent(File[] input)
// make sure that there are some.
checkNotNull(input);
-
+
return (input.length > 0);
}
@@ -65,46 +67,60 @@ public String getIdentifier()
}
@Override
- public void importFiles(File[] files, AuditingPersister persister) throws Exception
+ public String getHumanName()
{
- for (File file : files)
+ return "Autorisationsregisteret Parser";
+ }
+
+ @Override
+ public void importFiles(File[] files, Persister persister) throws Exception
+ {
+ // Make sure the file set has not been imported before.
+ // Check what the previous highest version is (the ValidFrom column).
+
+ Connection connection = persister.getConnection();
+ ResultSet rows = connection.createStatement().executeQuery("SELECT MAX(ValidFrom) as version FROM Autorisation");
+
+ // There will always be a next here, but it might be null.
+
+ rows.next();
+ Timestamp previousVersion = rows.getTimestamp("version");
+
+ DateTime currentVersion = getDateFromFilename(files[0].getName());
+
+ if (previousVersion != null && !currentVersion.isAfter(previousVersion.getTime()))
{
- Date date = getDateFromFilename(file.getName());
+ throw new Exception("The version of autorisationsregister that was placed for import was out of order. current_version='" + previousVersion + "', new_version='" + currentVersion + "'.");
+ }
- Autorisationsregisterudtraek dataset = parse(file, date);
+ for (File file : files)
+ {
+ Autorisationsregisterudtraek dataset = parse(file, currentVersion);
persister.persistCompleteDataset(dataset);
}
}
- protected Date getDateFromFilename(String filename) throws ParseException
+ protected DateTime getDateFromFilename(String filename)
{
- SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
- return formatter.parse(filename.substring(0, 8));
+ DateTimeFormatter formatter = DateTimeFormat.forPattern(FILENAME_DATE_FORMAT);
+ return formatter.parseDateTime(filename.substring(0, 8));
}
- public Date getNextImportExpectedBefore(Date lastImport)
+ public Autorisationsregisterudtraek parse(File file, DateTime validFrom) throws IOException
{
- // Largest gap observed was 15 days from 2008-10-18 to 2008-11-01.
+ Autorisationsregisterudtraek dataset = new Autorisationsregisterudtraek(validFrom.toDate());
- return new DateTime(lastImport).plusMonths(1).toDate();
- }
-
- public Autorisationsregisterudtraek parse(File file, Date validFrom) throws IOException
- {
- Autorisationsregisterudtraek dataset = new Autorisationsregisterudtraek(validFrom);
- BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), FILE_ENCODING));
+ LineIterator lineIterator = FileUtils.lineIterator(file, FILE_ENCODING);
+
+ // TODO (thb): The parsing should not be handled in a constructor. That
+ // is bad design.
- while (reader.ready())
+ while (lineIterator.hasNext())
{
- dataset.addEntity(new Autorisation(reader.readLine()));
+ String line = lineIterator.nextLine();
+ dataset.addEntity(new Autorisation(line));
}
return dataset;
}
-
- @Override
- public String getHumanName()
- {
- return "Autorisationsregisteret Parser";
- }
}
View
18 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/cpr/CPRImporter.java
@@ -23,6 +23,7 @@
package com.trifork.stamdata.importer.jobs.cpr;
+import static com.trifork.stamdata.Preconditions.checkNotNull;
import static com.trifork.stamdata.importer.util.DateUtils.yyyy_MM_dd;
import java.io.File;
@@ -39,8 +40,8 @@
import com.trifork.stamdata.importer.config.Configuration;
import com.trifork.stamdata.importer.jobs.FileParser;
import com.trifork.stamdata.importer.jobs.cpr.model.CPRDataset;
-import com.trifork.stamdata.importer.persistence.AuditingPersister;
import com.trifork.stamdata.importer.persistence.Dataset;
+import com.trifork.stamdata.importer.persistence.Persister;
import com.trifork.stamdata.importer.persistence.StamdataEntity;
import com.trifork.stamdata.importer.util.DateUtils;
@@ -71,15 +72,18 @@ public boolean ensureRequiredFileArePresent(File[] input)
}
@Override
- public void importFiles(File[] input, AuditingPersister persister) throws Exception
+ public void importFiles(File[] input, Persister persister) throws Exception
{
+ checkNotNull(input);
+ checkNotNull(persister);
+
logger.info("Starting to parse CPR file ");
for (File personFile : input)
{
if (!isPersonerFile(personFile))
{
- throw new Exception("File " + personFile.getAbsolutePath() + " is not a valid CPR file. Nothing is imported from the fileset");
+ throw new Exception("File " + personFile.getAbsolutePath() + " is not a valid CPR file. Nothing will be imported from the fileset.");
}
}
@@ -102,7 +106,7 @@ public void importFiles(File[] input, AuditingPersister persister) throws Except
if (previousVersion == null)
{
- logger.warn("could not get latestIKraft from database. Asuming empty database and skipping import sequence checks.");
+ logger.debug("Find any previous versions of CPR. Asuming an initial import and skipping sequence checks.");
}
else if (!cpr.getPreviousFileValidFrom().equals(previousVersion))
{
@@ -115,12 +119,12 @@ else if (!cpr.getPreviousFileValidFrom().equals(previousVersion))
persister.persistDeltaDataset(dataset);
}
- // Add latest 'ikraft' date to database if we are not importing
+ // Add latest 'version' date to database if we are not importing
// a full set.
if (isDeltaFile(personFile))
{
- insertIkraft(cpr.getValidFrom(), connection);
+ insertVersion(cpr.getValidFrom(), connection);
}
}
}
@@ -146,7 +150,7 @@ static public Date getLatestVersion(Connection con) throws SQLException
return null;
}
- void insertIkraft(Date calendar, Connection con) throws SQLException
+ void insertVersion(Date calendar, Connection con) throws SQLException
{
Statement stm = con.createStatement();
String query = "INSERT INTO PersonIkraft (IkraftDato) VALUES ('" + DateUtils.toMySQLdate(calendar) + "');";
View
4 ...mporter/src/main/java/com/trifork/stamdata/importer/jobs/dosagesuggestions/DosageSuggestionImporter.java
@@ -53,8 +53,8 @@
import com.trifork.stamdata.importer.jobs.dosagesuggestions.models.DosageVersion;
import com.trifork.stamdata.importer.jobs.dosagesuggestions.models.Drug;
import com.trifork.stamdata.importer.jobs.dosagesuggestions.models.DrugDosageStructureRelation;
-import com.trifork.stamdata.importer.persistence.AuditingPersister;
import com.trifork.stamdata.importer.persistence.CompleteDataset;
+import com.trifork.stamdata.importer.persistence.Persister;
import com.trifork.stamdata.importer.persistence.StamdataEntity;
@@ -66,7 +66,7 @@
private static final Logger logger = getLogger(DosageSuggestionImporter.class);
@Override
- public void importFiles(File[] files, AuditingPersister persister) throws Exception
+ public void importFiles(File[] files, Persister persister) throws Exception
{
// METADATA FILE
//
View
3  subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/sikrede/SikredeParser.java
@@ -5,6 +5,7 @@
import com.trifork.stamdata.importer.jobs.FileParser;
import com.trifork.stamdata.importer.persistence.AuditingPersister;
import com.trifork.stamdata.importer.persistence.Dataset;
+import com.trifork.stamdata.importer.persistence.Persister;
public class SikredeParser implements FileParser
{
@@ -31,7 +32,7 @@ public boolean ensureRequiredFileArePresent(File[] input)
}
@Override
- public void importFiles(File[] input, AuditingPersister persister) throws Exception
+ public void importFiles(File[] input, Persister persister) throws Exception
{
// 1. CHECK VERSIONS
//
View
4 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/sks/SksImporter.java
@@ -32,8 +32,8 @@
import com.trifork.stamdata.importer.jobs.FileParser;
import com.trifork.stamdata.importer.jobs.sks.model.Organisation;
-import com.trifork.stamdata.importer.persistence.AuditingPersister;
import com.trifork.stamdata.importer.persistence.Dataset;
+import com.trifork.stamdata.importer.persistence.Persister;
/**
@@ -59,7 +59,7 @@ public boolean ensureRequiredFileArePresent(File[] input)
}
@Override
- public void importFiles(File[] files, AuditingPersister persister) throws Exception
+ public void importFiles(File[] files, Persister persister) throws Exception
{
for (File file : files)
{
View
4 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/sor/SORImporter.java
@@ -34,7 +34,7 @@
import org.slf4j.LoggerFactory;
import com.trifork.stamdata.importer.jobs.FileParser;
-import com.trifork.stamdata.importer.persistence.AuditingPersister;
+import com.trifork.stamdata.importer.persistence.Persister;
/**
* Parser for the SOR register.
@@ -61,7 +61,7 @@ public boolean ensureRequiredFileArePresent(File[] input)
}
@Override
- public void importFiles(File[] files, AuditingPersister persister) throws Exception
+ public void importFiles(File[] files, Persister persister) throws Exception
{
for (File file : files)
{
View
7 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/takst/TakstImporter.java
@@ -40,7 +40,8 @@
import com.google.common.collect.Maps;
import com.trifork.stamdata.importer.config.MySQLConnectionManager;
import com.trifork.stamdata.importer.jobs.FileParser;
-import com.trifork.stamdata.importer.persistence.AuditingPersister;
+import com.trifork.stamdata.importer.persistence.CompleteDataset;
+import com.trifork.stamdata.importer.persistence.Persister;
/**
* Parser for the DKMA register. Also known as 'Taksten'.
@@ -72,11 +73,11 @@ public boolean ensureRequiredFileArePresent(File[] input)
return true;
}
- public void importFiles(File[] input, AuditingPersister persister) throws Exception
+ public void importFiles(File[] input, Persister persister) throws Exception
{
Takst takst = new TakstParser().parseFiles(input);
- persister.persistCompleteDataset(takst.getDatasets());
+ persister.persistCompleteDataset(takst.getDatasets().toArray(new CompleteDataset[] {}));
}
/**
View
49 subprojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/takst/TakstParser.java
@@ -118,16 +118,21 @@
takst.addDataset(new TakstDataset<T>(takst, entities, type));
}
- private <T extends TakstEntity> void addOptional(Takst takst, FixedLengthFileParser parser, FixedLengthParserConfiguration<T> config, Class<T> type) throws IOException
+ private <T extends TakstEntity> void addOptional(File[] input, Takst takst, FixedLengthFileParser parser, FixedLengthParserConfiguration<T> config, Class<T> type) throws IOException
{
- List<T> entities = parser.parse(config, type);
- takst.addDataset(new TakstDataset<T>(takst, entities, type));
+ File file = getFileByName(config.getFilename(), input);
+
+ if (file != null && file.isFile())
+ {
+ List<T> entities = parser.parse(config, type);
+ takst.addDataset(new TakstDataset<T>(takst, entities, type));
+ }
}
public Takst parseFiles(File[] input) throws Exception
{
// Parse required meta information first.
-
+
String systemline = getSystemLine(input);
String version = getVersion(systemline);
@@ -179,20 +184,20 @@ public Takst parseFiles(File[] input) throws Exception
// Now parse optional files one at a time, to be robust to them not
// being present.
- addOptional(takst, parser, new LaegemiddelnavnFactory(), Laegemiddelnavn.class);
- addOptional(takst, parser, new LaegemiddelformBetegnelserFactory(), LaegemiddelformBetegnelser.class);
- addOptional(takst, parser, new RekommandationerFactory(), Rekommandationer.class);
- addOptional(takst, parser, new IndholdsstofferFactory(), Indholdsstoffer.class);
- addOptional(takst, parser, new EnhedspriserFactory(), Enhedspriser.class);
- addOptional(takst, parser, new PakningskombinationerFactory(), Pakningskombinationer.class);
- addOptional(takst, parser, new PakningskombinationerUdenPriserFactory(), PakningskombinationerUdenPriser.class);
-
+ addOptional(input, takst, parser, new LaegemiddelnavnFactory(), Laegemiddelnavn.class);
+ addOptional(input, takst, parser, new LaegemiddelformBetegnelserFactory(), LaegemiddelformBetegnelser.class);
+ addOptional(input, takst, parser, new RekommandationerFactory(), Rekommandationer.class);
+ addOptional(input, takst, parser, new IndholdsstofferFactory(), Indholdsstoffer.class);
+ addOptional(input, takst, parser, new EnhedspriserFactory(), Enhedspriser.class);
+ addOptional(input, takst, parser, new PakningskombinationerFactory(), Pakningskombinationer.class);
+ addOptional(input, takst, parser, new PakningskombinationerUdenPriserFactory(), PakningskombinationerUdenPriser.class);
+
// Post process the data.
-
+
addTypedDivEnheder(takst);
addLaegemiddelAdministrationsvejRefs(takst);
filterOutVetDrugs(takst);
-
+
return takst;
}
@@ -205,7 +210,7 @@ private void addLaegemiddelAdministrationsvejRefs(Takst takst)
{
TakstDataset<Laegemiddel> lmr = takst.getDatasetOfType(Laegemiddel.class);
List<LaegemiddelAdministrationsvejRef> lars = new ArrayList<LaegemiddelAdministrationsvejRef>();
-
+
for (Laegemiddel lm : lmr.getEntities())
{
for (Administrationsvej av : lm.getAdministrationsveje())
@@ -213,7 +218,7 @@ private void addLaegemiddelAdministrationsvejRefs(Takst takst)
lars.add(new LaegemiddelAdministrationsvejRef(lm, av));
}
}
-
+
takst.addDataset(new TakstDataset<LaegemiddelAdministrationsvejRef>(takst, lars, LaegemiddelAdministrationsvejRef.class));
}
@@ -234,7 +239,7 @@ private void addTypedDivEnheder(Takst takst)
List<Pakningsstoerrelsesenhed> pakEnheder = new ArrayList<Pakningsstoerrelsesenhed>();
List<Styrkeenhed> styrkeEnheder = new ArrayList<Styrkeenhed>();
Dataset<DivEnheder> divEnheder = takst.getDatasetOfType(DivEnheder.class);
-
+
for (DivEnheder enhed : divEnheder.getEntities())
{
if (enhed.isEnhedstypeTid())
@@ -265,7 +270,7 @@ static void filterOutVetDrugs(Takst takst)
{
List<Pakning> pakningerToBeRemoved = new ArrayList<Pakning>();
Dataset<Pakning> pakninger = takst.getDatasetOfType(Pakning.class);
-
+
if (pakninger != null)
{
for (Pakning pakning : pakninger.getEntities())
@@ -274,10 +279,10 @@ static void filterOutVetDrugs(Takst takst)
}
pakninger.removeEntities(pakningerToBeRemoved);
}
-
+
Dataset<Laegemiddel> lmr = takst.getDatasetOfType(Laegemiddel.class);
List<Laegemiddel> laegemidlerToBeRemoved = new ArrayList<Laegemiddel>();
-
+
if (lmr != null)
{
for (Laegemiddel lm : lmr.getEntities())
@@ -286,10 +291,10 @@ static void filterOutVetDrugs(Takst takst)
}
lmr.removeEntities(laegemidlerToBeRemoved);
}
-
+
Dataset<ATCKoderOgTekst> atckoder = takst.getDatasetOfType(ATCKoderOgTekst.class);
List<ATCKoderOgTekst> atcToBeRemoved = new ArrayList<ATCKoderOgTekst>();
-
+
if (atckoder != null)
{
for (ATCKoderOgTekst atc : atckoder.getEntities())
View
79 ...rojects/importer/src/main/java/com/trifork/stamdata/importer/jobs/yderregister/YderregisterImporter.java
@@ -28,49 +28,51 @@
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Arrays;
-import java.util.Calendar;
-import java.util.Date;
import java.util.Map;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import com.google.common.collect.Maps;
import com.trifork.stamdata.importer.jobs.FileParser;
import com.trifork.stamdata.importer.jobs.yderregister.model.YderregisterDatasets;
-import com.trifork.stamdata.importer.persistence.AuditingPersister;
+import com.trifork.stamdata.importer.persistence.Persister;
public class YderregisterImporter implements FileParser
{
+ private static final Logger logger = LoggerFactory.getLogger(YderregisterImporter.class);
+
private static final String[] requiredFileExt = new String[] { "K05", "K40", "K45", "K1025", "K5094" };
@Override
- public void importFiles(File[] input, AuditingPersister persister) throws Exception
+ public void importFiles(File[] input, Persister persister) throws Exception
{
String versionString = null;
int version;
for (File f : input)
{
- String curFileLoebe;
+ String currentFileVersion;
if (f.getName().endsWith("XML") && f.getName().length() >= 15)
{
- curFileLoebe = f.getName().substring(10, 15);
+ currentFileVersion = f.getName().substring(10, 15);
}
else
{
+ logger.warn("Unknown file encountered. filename='{}' parser='{}'", f.getName(), getIdentifier());
+
continue;
}
if (versionString == null)
{
- versionString = curFileLoebe;
+ versionString = currentFileVersion;
}
- else
+ else if (!versionString.equals(currentFileVersion))
{
- if (!versionString.equals(curFileLoebe))
- {
- throw new Exception("Det blev forsøgt at importere yderregisterfiler med forskellige løbenumre. Løbenummeret fremgår af filnavnet");
- }
+ throw new Exception("Det blev forsøgt at importere yderregisterfiler med forskellige løbenumre. Løbenummeret fremgår af filnavnet.");
}
}
@@ -83,23 +85,20 @@ public void importFiles(File[] input, AuditingPersister persister) throws Except
// Verify the version
- int latestInDB = getLastLoebenummer(persister.getConnection());
+ int latestInDB = getLastVersion(persister.getConnection());
- if (latestInDB != 0)
+ if (latestInDB != 0 && latestInDB > version)
{
- if (latestInDB > version)
- {
- throw new Exception("Det blev forsøgt at indlæse et yderregister med et løbenummer, der er lavere end det seneste importerede løbenummer.");
- }
+ throw new Exception("Det blev forsøgt at indlæse et yderregister med et løbenummer, der er lavere end det seneste importerede løbenummer.");
}
setLastVersion(version, persister.getConnection());
- YderregisterParser tp = new YderregisterParser();
- YderregisterDatasets yderreg = tp.parseYderregister(input);
+ YderregisterParser parser = new YderregisterParser();
+ YderregisterDatasets dataset = parser.parseYderregister(input);
- persister.persistCompleteDataset(yderreg.getYderregisterDS());
- persister.persistCompleteDataset(yderreg.getYderregisterPersonDS());
+ persister.persistCompleteDataset(dataset.getYderregisterDS());
+ persister.persistCompleteDataset(dataset.getYderregisterPersonDS());
}
public boolean ensureRequiredFileArePresent(File[] input)
@@ -126,33 +125,19 @@ public boolean ensureRequiredFileArePresent(File[] input)
return true;
}
- /**
- * They should come at least each quarter
- */
- public Date getNextImportExpectedBefore(Date lastImport)
+ @Override
+ public String getIdentifier()
{
- Calendar cal;
- if (lastImport == null)
- {
- cal = Calendar.getInstance();
- }
- else
- {
- cal = Calendar.getInstance();
- cal.setTime(lastImport);
- }
-
- cal.add(Calendar.DATE, 95);
-
- return cal.getTime();
+ return "yderregister";
}
- public String getIdentifier()
+ @Override
+ public String getHumanName()
{
- return "yderregister";
+ return "Yderregisteret Parser";
}
- public int getLastLoebenummer(Connection connection) throws Exception
+ public int getLastVersion(Connection connection) throws Exception
{
int latestInDB = 0;
@@ -172,13 +157,7 @@ public int getLastLoebenummer(Connection connection) throws Exception
public void setLastVersion(int version, Connection connection) throws Exception
{
Statement stm = connection.createStatement();
- stm.execute("INSERT INTO YderLoebenummer (Loebenummer) values (" + version + "); ");
+ stm.execute("INSERT INTO YderLoebenummer (Loebenummer) VALUES (" + version + "); ");
stm.close();
}
-
- @Override
- public String getHumanName()
- {
- return "Yderregisteret Parser";
- }
}
View
4 subprojects/importer/src/main/resources/config.properties
@@ -20,10 +20,10 @@ rootDir = /pack/stamdata
# You can disable jobs by commenting them out.
parser: com.trifork.stamdata.importer.jobs.cpr.CPRImporter; 12
-parser: com.trifork.stamdata.importer.jobs.autorisationsregister.AutorisationImporter; 1
+parser: com.trifork.stamdata.importer.jobs.autorisationsregister.AutorisationImporter; 30
parser: com.trifork.stamdata.importer.jobs.sks.SksImporter; 100
parser: com.trifork.stamdata.importer.jobs.sor.SORImporter; 20
-parser: com.trifork.stamdata.importer.jobs.yderregister.YderregisterImporter; 39
+parser: com.trifork.stamdata.importer.jobs.yderregister.YderregisterImporter; 95
parser: com.trifork.stamdata.importer.jobs.dosagesuggestions.DosageSuggestionImporter; 10
parser: com.trifork.stamdata.importer.jobs.sikrede.SikredeParser; 10
View
345 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/FileSpoolerImplTest.java
@@ -1,345 +0,0 @@
-// The contents of this file are subject to the Mozilla Public
-// License Version 1.1 (the "License"); you may not use this file
-// except in compliance with the License. You may obtain a copy of
-// the License at http://www.mozilla.org/MPL/
-//
-// Software distributed under the License is distributed on an "AS
-// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-// implied. See the License for the specific language governing
-// rights and limitations under the License.
-//
-// Contributor(s): Contributors are attributed in the source code
-// where applicable.
-//
-// The Original Code is "Stamdata".
-//
-// The Initial Developer of the Original Code is Trifork Public A/S.
-//
-// Portions created for the Original Code are Copyright 2011,
-// Lægemiddelstyrelsen. All Rights Reserved.
-//
-// Portions created for the FMKi Project are Copyright 2011,
-// National Board of e-Health (NSI). All Rights Reserved.
-
-package com.trifork.stamdata.importer.jobs;
-
-import static junit.framework.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.List;
-
-import org.apache.commons.io.FileUtils;
-import org.apache.commons.io.filefilter.NameFileFilter;
-import org.apache.commons.io.filefilter.TrueFileFilter;
-import org.joda.time.DateTime;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.rules.TemporaryFolder;
-
-import com.trifork.stamdata.importer.config.MySQLConnectionManager;
-import com.trifork.stamdata.importer.jobs.FileParserJob;
-import com.trifork.stamdata.importer.jobs.FileSpoolerImpl;
-import com.trifork.stamdata.importer.jobs.ImportTimeManager;
-import com.trifork.stamdata.importer.jobs.exceptions.FileImporterException;
-
-
-/**
- * SingleFileSpoolerImplTest. Tests that single files are spooled correctly.
- *
- * @author Jan Buchholdt (jbu@trifork.com)
- */
-public class FileSpoolerImplTest
-{
- @Rule
- public static TemporaryFolder testFolder = new TemporaryFolder();
-
- private FileParserJob worker;
- private Connection con;
-
- @Before
- public void setUp() throws SQLException
- {
- worker = new FileParserJob(new FileSpoolerSetup("TestSpooler", testFolder.getRoot().getAbsolutePath(), TestFileImporter.class));
-
- con = MySQLConnectionManager.getConnection();
-
- con.createStatement().executeUpdate("TRUNCATE TABLE Import");
- }
-
- @Test
- public void testConstructImpl()
- {
- assertNotNull(worker);
- assertTrue(worker.getInputFiles().isDirectory());
- assertTrue(worker.getInputFiles().canWrite());
- assertTrue(worker.getProcessingFiles().isDirectory());
- assertTrue(worker.getProcessingFiles().canWrite());
- assertTrue(worker.getRejectedDir().isDirectory());
- assertTrue(worker.getRejectedDir().canWrite());
- }
-
- @Test
- public void testMoveProcessingFilesBackToInput() throws Exception
- {
- // Setup: Create a file in the processing dir.
-
- File processingSubdir = new File(worker.getProcessingFiles() + "/xxxyyyzzz/");
- File processingFile = new File(processingSubdir.getAbsolutePath() + "/fil.txt");
- File inputFile = new File(worker.getInputFiles() + "/fil.txt");
-
- processingSubdir.mkdirs();
- processingFile.createNewFile();
-
- assertTrue(processingSubdir.exists());
- assertTrue(processingFile.exists());
- assertFalse(inputFile.exists());
-
- // It should now be moved back to input dir.
-
- worker.moveProcessingFilesBackToInput();
-
- // Check that the file is gone in processing dir and present in input
- // dir.
-
- assertFalse(processingFile.exists());
- assertFalse(processingSubdir.exists());
- assertTrue(inputFile.exists());
- }
-
- @Test
- public void testGetDirSignature() throws Exception
- {
- // Setup 1: Create an empty dir.
-
- File dir = new File(testFolder.newFolder("dir1").getAbsolutePath());
- assertTrue(dir.mkdirs());
- long s = FileParserJob.getDirSignature(dir);
-
- // Check that same signature is returned.
-
- assertEquals(s, FileParserJob.getDirSignature(dir));
-
- // Setup 2: add a file.
-
- File file = new File(dir.getAbsolutePath() + "/file");
- assertTrue(file.createNewFile());
-
- // Check that a new signature is returned.
-
- assertFalse(s == FileParserJob.getDirSignature(dir));
- s = FileParserJob.getDirSignature(dir);
-
- // Check that same signature is returned.
-
- assertEquals(s, FileParserJob.getDirSignature(dir));
-
- // Setup 3: Write a char to the file.
-
- FileWriter fw = new FileWriter(file);
- fw.write('x');
- fw.close();
-
- // Check that a new signature is returned.
-
- assertFalse(s == FileParserJob.getDirSignature(dir));
- s = FileParserJob.getDirSignature(dir);
-
- // Check that same signature is returned.
-
- assertEquals(s, FileParserJob.getDirSignature(dir));
- }
-
- @Test
- public void testIsRejectedDirsEmpty() throws Exception
- {
- assertTrue(worker.isRejectedDirEmpty());
- File f = new File(worker.getRejectedDir().getAbsolutePath() + "/file");
- f.createNewFile();
- assertFalse(worker.isRejectedDirEmpty());
- }
-
- @Test
- public void testPollNoFiles() throws Exception
- {
- worker.run();
- assertEquals(worker.isOK(), FileSpoolerImpl.FileParserJob.OK);
- assertEquals(worker.isExecuting(), FileSpoolerImpl.FileParserJob.AWAITING);
- assertNull(worker.getMessage());
- }
-
- @Test
- public void testPollInputFile() throws Exception
- {
- File f = new File(worker.getInputFiles() + "/f");
- assertTrue(f.createNewFile());
- worker.run();
- assertEquals(worker.isOK(), FileSpoolerImpl.FileParserJob.OK);
- assertEquals(worker.isExecuting(), FileSpoolerImpl.FileParserJob.STABILIZING);
- assertNull(worker.getMessage());
- }
-
- @Test
- public void testImportSucess() throws Exception
- {
- // Create an input file.
-
- File f = new File(worker.getInputFiles() + "/f");
- assertTrue(f.createNewFile());
-
- // "Cheat" and make it look as if the file is stable now, so we dont
- // have to wait.
-
- Calendar cal = Calendar.getInstance();
- cal.add(Calendar.MILLISECOND, -1000);
- worker.stabilizationPeriodEnd = cal;
- worker.inputdirSignature = FileParserJob.getDirSignature(worker.getInputFiles());
-
- // Make an importer that always succeeds.
-
- TestFileImporter importer = new TestFileImporter()
- {
- @Override
- public boolean checkRequiredFiles(List<File> files)
- {
- return true;
- }
- };
-
- worker.importer = importer;
- Date beforeCall = new Date();
-
- // Polling now should trigger import.
-
- worker.run();
-
- // Check that status/activity is set correctly after import
-
- assertEquals(worker.isOK(), FileSpoolerImpl.FileParserJob.OK);
- assertEquals(worker.isExecuting(), FileSpoolerImpl.FileParserJob.AWAITING);
-
- // Check that no error message is set
-
- assertNull(worker.getMessage());
-
- // Check that the importer was called once
-
- assertEquals(1, importer.importFileCalled);
-
- // Check that importtime was set in mysql and that we can get it out
-
- Date importTime = ImportTimeManager.getLastImportTime(worker.getSetup().getName());
- assertNotNull(importTime);
-
- // Check that importtime was set to the timestamp of the execution. I.e.
- // before now.
-
- assertTrue(importTime.before(new Date()));
-
- // Check that importtime was set to the timestamp of the execution. I.e.
- // after before the call.
- // Due to MySQL not having sub-second presicion and the fact that it
- // rounds down, a second is added before the comparision.
-
- DateTime date = new DateTime(importTime);
- date = date.plusSeconds(1);
-
- assertTrue(date.toDate().after(beforeCall));
-
- // Check that the input files are deleted, as they should be after
- // succesful processing.
-
- assertTrue(worker.getInputFiles().listFiles().length == 0);
- assertTrue(worker.getProcessingFiles().listFiles().length == 0);
- assertTrue(worker.getRejectedDir().listFiles().length == 0);
- assertFalse(f.exists());
- }
-
- @Test
- public void testImportFailure() throws Exception
- {
- // create a file
-
- File f = new File(worker.getInputFiles() + "/f");
- assertTrue(f.createNewFile());
-
- // "Cheat" and make it look as if it is stable
-
- Calendar cal = Calendar.getInstance();
- cal.add(Calendar.MILLISECOND, -1000);
- worker.stabilizationPeriodEnd = cal;
- worker.inputdirSignature = FileParserJob.getDirSignature(worker.getInputFiles());
-
- // Make an importer that always fails
-
- TestFileImporter importer = new TestFileImporter()
- {
- @Override
- public boolean checkRequiredFiles(List<File> files)
- {
- return true;
- }
-
- @Override
- public void run(List<File> files, Connection con) throws FileImporterException
- {
- throw new FileImporterException("errormsg");
- }
- };
-
- worker.importer = importer;
-
- // Do import and check that the failure is handled correctly.
-
- worker.run();
-
- // there should be created a new dir in rejected with the input file and
- // a RejectReason file.
-
- assertEquals(2, FileUtils.listFiles(worker.getRejectedDir(), TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE).size());
- assertEquals(1, FileUtils.listFiles(worker.getRejectedDir(), new NameFileFilter("f"), TrueFileFilter.INSTANCE).size());
-
- assertEquals(FileSpoolerImpl.FileParserJob.ERROR, worker.isOK());
-
- assertNull(ImportTimeManager.getLastImportTime(worker.getSetup().getName()));
-
- // No files should be present in input or processing dirs
-
- assertEquals(0, FileUtils.listFiles(worker.getInputFiles(), TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE).size());
- assertEquals(0, FileUtils.listFiles(worker.getProcessingFiles(), TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE).size());
- }
-}
-
-
-class TestFileImporter implements Parser
-{
- int importFileCalled = 0;
-
- @Override
- public void run(List<File> files, Connection con) throws Exception
- {
- importFileCalled++;
- }
-
- @Override
- public boolean checkRequiredFiles(List<File> files)
- {
-
- return false;
- }
-
- @Override
- public Date getNextImportExpectedBefore(Date lastImport)
- {
- return new DateTime().plusHours(1).toDate();
- }
-};
View
67 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/FileSpoolerSetupTest.java
@@ -1,67 +0,0 @@
-// The contents of this file are subject to the Mozilla Public
-// License Version 1.1 (the "License"); you may not use this file
-// except in compliance with the License. You may obtain a copy of
-// the License at http://www.mozilla.org/MPL/
-//
-// Software distributed under the License is distributed on an "AS
-// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-// implied. See the License for the specific language governing
-// rights and limitations under the License.
-//
-// Contributor(s): Contributors are attributed in the source code
-// where applicable.
-//
-// The Original Code is "Stamdata".
-//
-// The Initial Developer of the Original Code is Trifork Public A/S.
-//
-// Portions created for the Original Code are Copyright 2011,
-// Lægemiddelstyrelsen. All Rights Reserved.
-//
-// Portions created for the FMKi Project are Copyright 2011,
-// National Board of e-Health (NSI). All Rights Reserved.
-
-package com.trifork.stamdata.importer.jobs;
-
-
-import junit.framework.Assert;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-import com.trifork.stamdata.importer.jobs.FileSpoolerSetup;
-
-/**
- * FileSpoolerTest. Tests that setup of files and filesets are handled correct.
- *
- * @author Jan Buchholdt
- */
-
-public class FileSpoolerSetupTest {
-
-
- @Before
- public void setupTest() throws Exception {
- }
-
- @After
- public void cleanUpTest() throws Exception {
- }
-
- @Test
- public void runSetupTest() throws Exception {
- String spoolerDir = "file://" + System.getProperty("java.io.tmpdir") + "/FileSpoolerTest";
-
- FileSpoolerSetup setup = new FileSpoolerSetup("TestSpooler", spoolerDir, TestFileImporter.class);
- Assert.assertEquals(setup.rootDir, spoolerDir + "/TestSpooler");
- Assert.assertEquals(setup.getInputPath(), spoolerDir + "/TestSpooler/" + FileSpoolerSetup.INPUT_DIR);
- Assert.assertEquals(setup.getRejectPath(), spoolerDir + "/TestSpooler/" + FileSpoolerSetup.REJECT_DIR);
- Assert.assertEquals(setup.getProcessingPath(), spoolerDir + "/TestSpooler/" + FileSpoolerSetup.PROCESSING_DIR);
- Assert.assertEquals(setup.getStableSeconds(), FileSpoolerSetup.DEFAULT_STABLE_SECONDS);
- Assert.assertEquals(setup.getImporterClass(), TestFileImporter.class);
- setup.stableSeconds = 20;
- Assert.assertEquals(setup.getStableSeconds(), 20);
-
- }
-
-}
View
59 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/JobSpoolerSetupTest.java
@@ -1,59 +0,0 @@
-// The contents of this file are subject to the Mozilla Public
-// License Version 1.1 (the "License"); you may not use this file
-// except in compliance with the License. You may obtain a copy of
-// the License at http://www.mozilla.org/MPL/
-//
-// Software distributed under the License is distributed on an "AS
-// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-// implied. See the License for the specific language governing
-// rights and limitations under the License.
-//
-// Contributor(s): Contributors are attributed in the source code
-// where applicable.
-//
-// The Original Code is "Stamdata".
-//
-// The Initial Developer of the Original Code is Trifork Public A/S.
-//
-// Portions created for the Original Code are Copyright 2011,
-// Lægemiddelstyrelsen. All Rights Reserved.
-//
-// Portions created for the FMKi Project are Copyright 2011,
-// National Board of e-Health (NSI). All Rights Reserved.
-
-package com.trifork.stamdata.importer.jobs;
-
-import static junit.framework.Assert.assertEquals;
-
-import org.junit.Test;
-
-import com.trifork.stamdata.importer.config.Configuration;
-import com.trifork.stamdata.importer.jobs.Job;
-import com.trifork.stamdata.importer.jobs.JobSpoolerSetup;
-
-
-/**
- * FileSpoolerTest. Tests that setup of files and file sets are handled correct.
- *
- * @author Jan Buchholdt
- */
-public class JobSpoolerSetupTest implements Job
-{
- @Test
- public void runSetupTest() throws Exception
- {
- Configuration.setDefaultInstance(new Configuration("testJobSpoolerconfig"));
- JobSpoolerSetup setup = new JobSpoolerSetup("testjobspooler");
-
- assertEquals(this.getClass().getName(), setup.getJobExecutorClass().getName());
- assertEquals("* 1 * * *", setup.getSchedule());
-
- Configuration.setDefaultInstance(new Configuration());
- }
-
- @Override
- public void run()
- {
- // Dummy
- }
-}
View
86 subprojects/importer/src/test/java/com/trifork/stamdata/importer/jobs/SpoolerManagerTest.java
@@ -1,86 +0,0 @@
-// The contents of this file are subject to the Mozilla Public
-// License Version 1.1 (the "License"); you may not use this file
-// except in compliance with the License. You may obtain a copy of
-// the License at http://www.mozilla.org/MPL/
-//
-// Software distributed under the License is distributed on an "AS
-// IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-// implied. See the License for the specific language governing
-// rights and limitations under the License.
-//
-// Contributor(s): Contributors are attributed in the source code
-// where applicable.
-//
-// The Original Code is "Stamdata".
-//
-// The Initial Developer of the Original Code is Trifork Public A/S.
-//
-// Portions created for the Original Code are Copyright 2011,
-// Lægemiddelstyrelsen. All Rights Reserved.
-//
-// Portions created for the FMKi Project are Copyright 2011,
-// National Board of e-Health (NSI). All Rights Reserved.
-
-package com.trifork.stamdata.importer.jobs;
-
-import org.apache.commons.io.FileUtils;
-import org.junit.After;
-import org.junit.Test;
-
-import com.trifork.stamdata.importer.jobs.FileParserJob;
-import com.trifork.stamdata.importer.jobs.FileSpoolerImpl;
-import com.trifork.stamdata.importer.jobs.Job;
-import com.trifork.stamdata.importer.jobs.JobManager;
-
-import java.io.File;
-import java.util.HashMap;
-
-import static org.junit.Assert.*;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-
-public class SpoolerManagerTest
-{
- private static final String TMP_FILE_SPOOLER_MANAGER = System.getProperty("java.io.tmpdir") + "/tmp/FileSpoolerManager";
-
- @After
- public void cleanUpfiles()
- {
- FileUtils.deleteQuietly(new File(TMP_FILE_SPOOLER_MANAGER));
- }
-
- @Test
- public void testInit()
- {
- JobManager manager = new JobManager(TMP_FILE_SPOOLER_MANAGER);
- FileParserJob spooler = manager.spoolers.get("takst");
- assertNotNull(spooler);
- }
-
- @Test
- public void testAreAllSpoolersRunning()
- {
- JobManager fsm = new JobManager(TMP_FILE_SPOOLER_MANAGER);
- fsm.spoolers = new HashMap<String, FileParserJob>();
- fsm.jobSpoolers = new HashMap<String, Job>();
-
- // Add a mocked running spooler
- FileParserJob mock1 = mock(FileParserJob.class);
- when(mock1.isOK()).thenReturn(FileSpoolerImpl.FileParserJob.OK);
- fsm.spoolers.put("takst", mock1);
-
- assertTrue(fsm.isAllSpoolersRunning());
-
- Job mock2 = mock(Job.class);
- when(mock2.isOK()).thenReturn(JobSpoolerImpl.Status.OK);
- fsm.jobSpoolers.put("navnebeskyttelse", mock2);
-
- assertTrue(fsm.isAllSpoolersRunning());
-
- // And a spooler that is not runnning
- when(mock1.isOK()).thenReturn(FileSpoolerImpl.FileParserJob.ERROR);
- fsm.spoolers.put("test2", mock1);
- assertFalse(fsm.isAllSpoolersRunning());
- }
-}
View
40 .../importer/src/test/java/com/trifork/stamdata/importer/jobs/autorisationsregister/AutIntegrationTest.java
@@ -30,9 +30,7 @@
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
-import java.util.ArrayList;
import java.util.Date;
-import java.util.List;
import org.apache.commons.io.FileUtils;
import org.junit.After;
@@ -41,10 +39,8 @@
import org.junit.Test;
import com.trifork.stamdata.importer.config.MySQLConnectionManager;
-import com.trifork.stamdata.importer.jobs.autorisationsregister.AutorisationImporter;
import com.trifork.stamdata.importer.jobs.autorisationsregister.model.Autorisation;
import com.trifork.stamdata.importer.jobs.autorisationsregister.model.Autorisationsregisterudtraek;
-import com.trifork.stamdata.importer.jobs.exceptions.FileImporterException;
import com.trifork.stamdata.importer.persistence.AuditingPersister;
import com.trifork.stamdata.importer.persistence.Dataset;
@@ -79,16 +75,15 @@ public static void init()
}
@Before
- public void cleanDb() throws SQLException
+ public void setUp() throws SQLException
{
- connection = MySQLConnectionManager.getAutoCommitConnection();
- Statement stmt = connection.createStatement();
- stmt.executeUpdate("TRUNCATE TABLE " + Dataset.getEntityTypeDisplayName(Autorisation.class));
- stmt.close();
+ connection = MySQLConnectionManager.getConnection();
+ connection.createStatement().execute("TRUNCATE TABLE Autorisation");
+ connection.commit();
}
@After
- public void rollback() throws SQLException
+ public void tearDown() throws SQLException
{
connection.rollback();
connection.close();
@@ -119,33 +114,16 @@ public void testImport() throws Exception
}
}
- @Test
- public void testImportX2() throws Exception
+ @Test(expected = Exception.class)
+ public void should_not_allow_the_same_version_to_be_imported_twice() throws Exception
{
AutorisationImporter importer = new AutorisationImporter();
AuditingPersister persister = new AuditingPersister(connection);
+
File[] files = new File[] { initial };
importer.importFiles(files, persister);
importer.importFiles(files, persister);
-
- Statement stmt = connection.createStatement();
-
- ResultSet rs = stmt.executeQuery("SELECT COUNT(*) FROM " + Dataset.getEntityTypeDisplayName(Autorisation.class));
- rs.next();
- assertEquals("Number of records in database.", initialCompares.getEntities().size(), rs.getInt(1));
-
- rs = stmt.executeQuery("SELECT * FROM " + Dataset.getEntityTypeDisplayName(Autorisation.class));
-
- for (int i = 0; i < initialCompares.getEntities().size(); i++)
- {
- rs.next();
- Autorisation compare = initialCompares.getEntityById(rs.getString("Autorisationsnummer"));
- assertEquals(compare.getCpr(), rs.getString("cpr"));
- assertEquals(compare.getFornavn(), rs.getString("Fornavn"));
- assertEquals(compare.getEfternavn(), rs.getString("Efternavn"));
- assertEquals(compare.getUddannelsesKode(), rs.getString("UddannelsesKode"));
- }
}
@Test
@@ -184,7 +162,7 @@ public void testDelta() throws Exception
stmt.close();
}
- @Test(expected = FileImporterException.class)
+ @Test(expected = Exception.class)
public void testInvalid() throws Exception
{
File[] files = new File[] { invalid };
View
23 ...jects/importer/src/test/java/com/trifork/stamdata/importer/jobs/autorisationsregister/AutParserTest.java
@@ -31,31 +31,30 @@
import java.util.Date;
import org.apache.commons.io.FileUtils;
+import org.joda.time.DateTime;
import org.junit.Before;
import org.junit.Test;
-import com.trifork.stamdata.importer.jobs.autorisationsregister.AutorisationsregisterParser;
import com.trifork.stamdata.importer.jobs.autorisationsregister.model.Autorisation;
import com.trifork.stamdata.importer.jobs.autorisationsregister.model.Autorisationsregisterudtraek;
-
-public class AutParserTest {
-
+public class AutParserTest
+{
public static File valid;
public static File invalid;
@Before
- public void setUp() {
-
+ public void setUp()
+ {
valid = FileUtils.toFile(getClass().getClassLoader().getResource("data/aut/valid/20090915AutDK.csv"));
invalid = FileUtils.toFile(getClass().getClassLoader().getResource("data/aut/invalid/20090915AutDK.csv"));
}
@Test
- public void testParse() throws IOException {
-
- Autorisationsregisterudtraek auts = AutorisationsregisterParser.parse(valid, new Date());
+ public void testParse() throws IOException
+ {
+ Autorisationsregisterudtraek auts = new AutorisationImporter().parse(valid, new DateTime());
assertEquals(4, auts.getEntities().size());
Autorisation a = auts.getEntityById("0013H");
assertNotNull(a);
@@ -64,8 +63,8 @@ public void testParse() throws IOException {
}
@Test(expected = Exception.class)
- public void testInvalid() throws IOException {
-
- AutorisationsregisterParser.parse(invalid, new Date());
+ public void testInvalid() throws IOException
+ {
+ new AutorisationImporter().parse(invalid, new DateTime());
}
}
View
55 ...r/jobs/autorisationsregister/AutImporterTest.java → ...autorisationsregister/AutorisationParserTest.java
@@ -23,42 +23,53 @@
package com.trifork.stamdata.importer.jobs.autorisationsregister;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.verify;
import java.io.File;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
+import java.sql.Connection;
import org.apache.commons.io.FileUtils;
+import org.junit.After;
+import org.junit.Before;
import org.junit.Test;
-import org.mockito.Mock;
import org.mockito.Mockito;
-import com.trifork.stamdata.importer.jobs.autorisationsregister.AutorisationImporter;
+import com.trifork.stamdata.importer.config.MySQLConnectionManager;
import com.trifork.stamdata.importer.persistence.AuditingPersister;
import com.trifork.stamdata.importer.persistence.CompleteDataset;