-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathprodDb.trace.db
1961 lines (1961 loc) · 253 KB
/
prodDb.trace.db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "CHAI_LOCATION_DATA_LOCATION" not found; SQL statement:
alter table chai_location_data_location drop constraint FK952116D27113078C [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "CHAI_LOCATION_DATA_LOCATION" not found; SQL statement:
alter table chai_location_data_location drop constraint FK952116D2D8D50204 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "CHAI_LOCATION_DATA_LOCATION" not found; SQL statement:
alter table chai_location_data_location drop constraint FK952116D27B0DEAB5 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "CHAI_LOCATION_LOCATION" not found; SQL statement:
alter table chai_location_location drop constraint FK98A7308D9EA72D71 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "CHAI_LOCATION_LOCATION" not found; SQL statement:
alter table chai_location_location drop constraint FK98A7308DC46E7081 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "CHAI_LOCATION_SYNC_CHANGE" not found; SQL statement:
alter table chai_location_sync_change drop constraint FKD25681FCBEB56971 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "CHAI_LOCATION_SYNC_CHANGE_MESSAGES" not found; SQL statement:
alter table chai_location_sync_change_messages drop constraint FKD2902C2F35531133 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248A6577B676 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248A23E4C913 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248A3A924CE5 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248AD842CA8C [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248A77C2A336 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248A863AE2AC [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248A41AAC75B [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT" not found; SQL statement:
alter table memms_equipment drop constraint FKFD7F248ABEB56971 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_CALC_LOCATION_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_calc_location_export_filter drop constraint FKA52DD64E219B88B3 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_CALC_LOCATION_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_calc_location_export_filter drop constraint FKA52DD64E29244F19 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_DATA_LOCATION_REPORT_LISTING" not found; SQL statement:
alter table memms_equipment_data_location_report_listing drop constraint FKFA19D243399D8142 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_DATA_LOCATION_REPORT_LISTING" not found; SQL statement:
alter table memms_equipment_data_location_report_listing drop constraint FKFA19D2431D7EA34B [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_DEPARTMENT_REPORT_LISTING" not found; SQL statement:
alter table memms_equipment_department_report_listing drop constraint FK98D2239179B15FA3 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_DEPARTMENT_REPORT_LISTING" not found; SQL statement:
alter table memms_equipment_department_report_listing drop constraint FK98D22391842D11EF [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_EQUIPMENT_TYPE_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_equipment_type_export_filter drop constraint FK95E4EC0413BADD74 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_EQUIPMENT_TYPE_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_equipment_type_export_filter drop constraint FK95E4EC049AAB5A8 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_LOCATION_TYPE_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_location_type_export_filter drop constraint FKC3CCFCB32B8AABF2 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_LOCATION_TYPE_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_location_type_export_filter drop constraint FKC3CCFCB3C0DD35D4 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_MANUFACTURER_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_manufacturer_export_filter drop constraint FK3D9E34AB97E0DF5 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_MANUFACTURER_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_manufacturer_export_filter drop constraint FK3D9E34A556F45B1 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_REPORT_LISTING" not found; SQL statement:
alter table memms_equipment_report_listing drop constraint FK1358A6CE2BECD55A [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_SERVICE_PROVIDER_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_service_provider_export_filter drop constraint FKFB4C77B4B5EF6D07 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_SERVICE_PROVIDER_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_service_provider_export_filter drop constraint FKFB4C77B4B97E0DF5 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_STATUS" not found; SQL statement:
alter table memms_equipment_status drop constraint FKBB905947BFAE517E [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_STATUS" not found; SQL statement:
alter table memms_equipment_status drop constraint FKBB905947C86733C7 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_SUPPLIER_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_supplier_export_filter drop constraint FK67E9D885B97E0DF5 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_SUPPLIER_EXPORT_FILTER" not found; SQL statement:
alter table memms_equipment_supplier_export_filter drop constraint FK67E9D8851F5769D6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_TYPE_REPORT_LISTING" not found; SQL statement:
alter table memms_equipment_type_report_listing drop constraint FK6FF08EE91116F30D [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_EQUIPMENT_TYPE_REPORT_LISTING" not found; SQL statement:
alter table memms_equipment_type_report_listing drop constraint FK6FF08EE93882C90A [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_HMIS_EQUIPMENT_TYPE_MEMMS_EQUIPMENT_TYPE" not found; SQL statement:
alter table memms_hmis_equipment_type_memms_equipment_type drop constraint FKF02D9477E0F2E4C9 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_HMIS_EQUIPMENT_TYPE_MEMMS_EQUIPMENT_TYPE" not found; SQL statement:
alter table memms_hmis_equipment_type_memms_equipment_type drop constraint FKF02D9477B13300FB [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_HMIS_REPORT" not found; SQL statement:
alter table memms_hmis_report drop constraint FK28A63A80BEB56971 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_ORDER_ABSTRACT" not found; SQL statement:
alter table memms_maintenance_order_abstract drop constraint FK29999D2323E4C913 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_ORDER_ABSTRACT" not found; SQL statement:
alter table memms_maintenance_order_abstract drop constraint FK29999D233A924CE5 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_ORDER_USED_SPARE_PART" not found; SQL statement:
alter table memms_maintenance_order_used_spare_part drop constraint FK8571D9FCA9137979 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_ORDER_USED_SPARE_PART" not found; SQL statement:
alter table memms_maintenance_order_used_spare_part drop constraint FK8571D9FCB01A04C6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_ORDER_USED_SPARE_PART" not found; SQL statement:
alter table memms_maintenance_order_used_spare_part drop constraint FK8571D9FCBC7E7CF8 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_PROCESS_ABSTRACT" not found; SQL statement:
alter table memms_maintenance_process_abstract drop constraint FK8DB16F2223E4C913 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_PROCESS_ABSTRACT" not found; SQL statement:
alter table memms_maintenance_process_abstract drop constraint FK8DB16F22A9137979 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_MAINTENANCE_PROCESS_ABSTRACT" not found; SQL statement:
alter table memms_maintenance_process_abstract drop constraint FK8DB16F22CD4EEBE6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_NOTIFICATION_ABSTRACT" not found; SQL statement:
alter table memms_notification_abstract drop constraint FKCD5D15F296FF607A [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_NOTIFICATION_ABSTRACT" not found; SQL statement:
alter table memms_notification_abstract drop constraint FKCD5D15F2163D0274 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_NOTIFICATION_NEW_EQUIPMENT" not found; SQL statement:
alter table memms_notification_new_equipment drop constraint FK9726FDDF6577B676 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_NOTIFICATION_NEW_EQUIPMENT" not found; SQL statement:
alter table memms_notification_new_equipment drop constraint FK9726FDDFBEB56971 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_NOTIFICATION_WORK_ORDER" not found; SQL statement:
alter table memms_notification_work_order drop constraint FKC9F5270CD4EEBE6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTION" not found; SQL statement:
alter table memms_prevention drop constraint FKE4BF73B423E4C913 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTION" not found; SQL statement:
alter table memms_prevention drop constraint FKE4BF73B4FD97EC7B [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTION_ACTION" not found; SQL statement:
alter table memms_prevention_action drop constraint FK947C3521B13300FB [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTION_MEMMS_PREVENTION_ACTION" not found; SQL statement:
alter table memms_prevention_memms_prevention_action drop constraint FK155CD196D4413D97 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTION_MEMMS_PREVENTION_ACTION" not found; SQL statement:
alter table memms_prevention_memms_prevention_action drop constraint FK155CD196A2FBB8FB [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTIVE_ORDER_ABSTRACT" not found; SQL statement:
alter table memms_preventive_order_abstract drop constraint FK12D30EBFAE517E [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTIVE_ORDER_ABSTRACT" not found; SQL statement:
alter table memms_preventive_order_abstract drop constraint FK12D30E370755F6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_PREVENTIVE_ORDER_DURATION_BASED_OCCUR_DAYS_OF_WEEK" not found; SQL statement:
alter table memms_preventive_order_duration_based_occur_days_of_week drop constraint FK586A89D24A3BDF91 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_REPORT_GROUP_INDICATOR_VALUE" not found; SQL statement:
alter table memms_report_group_indicator_value drop constraint FKFA90183A843FDE8E [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_REPORT_INDICATOR" not found; SQL statement:
alter table memms_report_indicator drop constraint FK313A4A48EDDC3836 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_REPORT_INDICATOR_VALUE" not found; SQL statement:
alter table memms_report_indicator_value drop constraint FKF46468BA91097858 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_REPORT_INDICATOR_VALUE" not found; SQL statement:
alter table memms_report_indicator_value drop constraint FKF46468BA5C890C67 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_REPORT_LOCATION_REPORT" not found; SQL statement:
alter table memms_report_location_report drop constraint FK22754A772A06541E [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_REPORT_LOCATION_REPORT" not found; SQL statement:
alter table memms_report_location_report drop constraint FK22754A7791D3F221 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART" not found; SQL statement:
alter table memms_spare_part drop constraint FK251FF8DF23E4C913 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART" not found; SQL statement:
alter table memms_spare_part drop constraint FK251FF8DF52E12137 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART" not found; SQL statement:
alter table memms_spare_part drop constraint FK251FF8DFB07F90AA [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART" not found; SQL statement:
alter table memms_spare_part drop constraint FK251FF8DF41AAC75B [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART" not found; SQL statement:
alter table memms_spare_part drop constraint FK251FF8DFBEB56971 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_DATA_LOCATION_REPORT_LISTING" not found; SQL statement:
alter table memms_spare_part_data_location_report_listing drop constraint FKADEE7A0E399D8142 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_DATA_LOCATION_REPORT_LISTING" not found; SQL statement:
alter table memms_spare_part_data_location_report_listing drop constraint FKADEE7A0E8A2EAB0B [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_EXPORT_FILTER_MEMMS_PROVIDER" not found; SQL statement:
alter table memms_spare_part_export_filter_memms_provider drop constraint FKAB3A6431D9E80D16 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_EXPORT_FILTER_MEMMS_PROVIDER" not found; SQL statement:
alter table memms_spare_part_export_filter_memms_provider drop constraint FKAB3A64317FDF7BC [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_REPORT_LISTING" not found; SQL statement:
alter table memms_spare_part_report_listing drop constraint FK68E3FDD92BECD55A [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_SPARE_PART_TYPE_EXPORT_FILTER" not found; SQL statement:
alter table memms_spare_part_spare_part_type_export_filter drop constraint FK6A27512280FC6C45 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_SPARE_PART_TYPE_EXPORT_FILTER" not found; SQL statement:
alter table memms_spare_part_spare_part_type_export_filter drop constraint FK6A275122C56E6D84 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_SUPPLIER_EXPORT_FILTER" not found; SQL statement:
alter table memms_spare_part_supplier_export_filter drop constraint FKA31EF490FC7AEEC8 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_SUPPLIER_EXPORT_FILTER" not found; SQL statement:
alter table memms_spare_part_supplier_export_filter drop constraint FKA31EF490DB1B21B2 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE" not found; SQL statement:
alter table memms_spare_part_type drop constraint FKEA15029A77C2A336 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_COMPATIBLE_EQUIPMENT_TYPES" not found; SQL statement:
alter table memms_spare_part_type_compatible_equipment_types drop constraint FK1AA22BE2B01A04C6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_COMPATIBLE_EQUIPMENT_TYPES" not found; SQL statement:
alter table memms_spare_part_type_compatible_equipment_types drop constraint FK1AA22BE2B13300FB [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_MANUFACTURER" not found; SQL statement:
alter table memms_spare_part_type_manufacturer drop constraint FK88471556D9E80D16 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_MANUFACTURER" not found; SQL statement:
alter table memms_spare_part_type_manufacturer drop constraint FK88471556FC4420B3 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_REPORT_LISTING" not found; SQL statement:
alter table memms_spare_part_type_report_listing drop constraint FK61A8E6BE3B5BA10B [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_REPORT_LISTING" not found; SQL statement:
alter table memms_spare_part_type_report_listing drop constraint FK61A8E6BE79D52697 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_VENDORS" not found; SQL statement:
alter table memms_spare_part_type_vendors drop constraint FK60637386D9E80D16 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_SPARE_PART_TYPE_VENDORS" not found; SQL statement:
alter table memms_spare_part_type_vendors drop constraint FK60637386B01A04C6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_USER" not found; SQL statement:
alter table memms_user drop constraint FKCDB3F4F91D3F221 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_USER" not found; SQL statement:
alter table memms_user drop constraint FKCDB3F4F7361FB9F [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_USER" not found; SQL statement:
alter table memms_user drop constraint FKCDB3F4FA43DC5E3 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_USER_ROLES" not found; SQL statement:
alter table memms_user_roles drop constraint FK60D339CD6661FD3E [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_USER_ROLES" not found; SQL statement:
alter table memms_user_roles drop constraint FK60D339CDB8CC11E [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_WORK_ORDER" not found; SQL statement:
alter table memms_work_order drop constraint FKCC4F012467242887 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_WORK_ORDER" not found; SQL statement:
alter table memms_work_order drop constraint FKCC4F0124BFAE517E [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_WORK_ORDER" not found; SQL statement:
alter table memms_work_order drop constraint FKCC4F012451DEE534 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_WORK_ORDER_COMMENT" not found; SQL statement:
alter table memms_work_order_comment drop constraint FKF0933244B0EA5BEA [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_WORK_ORDER_COMMENT" not found; SQL statement:
alter table memms_work_order_comment drop constraint FKF0933244CD4EEBE6 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_WORK_ORDER_STATUS" not found; SQL statement:
alter table memms_work_order_status drop constraint FK75E5FB6DC86733C7 [42102-164]
02-18 15:00:56 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Table "MEMMS_WORK_ORDER_STATUS" not found; SQL statement:
alter table memms_work_order_status drop constraint FK75E5FB6DCD4EEBE6 [42102-164]
02-18 15:01:25 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(EQUIPMENT0_.CODE)/(SELECT COUNT(EQUIPMENT1_.CODE) FROM MEMMS_EQUIPMENT EQUIPMENT1_, CHAI_LOCATION_DATA_LOCATION DATALOCATI2_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI2_1_ ON DATALOCATI2_.ID=DATALOCATI2_1_.ID WHERE EQUIPMENT1_.DATA_LOCATION_ID=DATALOCATI2_.ID AND (EQUIPMENT1_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND (EQUIPMENT1_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21))) AS COL_0_0_ FROM MEMMS_EQUIPMENT EQUIPMENT0_ WHERE (EQUIPMENT0_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND DATEDIFF(NOW(), EQUIPMENT0_.PURCHASE_DATE)[*]/12>EQUIPMENT0_.EXPECTED_LIFE_TIME_NUMBER_OF_MONTHS-24 AND (EQUIPMENT0_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(equipment0_.code)/(select count(equipment1_.code) from memms_equipment equipment1_, chai_location_data_location datalocati2_ inner join chai_location_abstract datalocati2_1_ on datalocati2_.id=datalocati2_1_.id where equipment1_.data_location_id=datalocati2_.id and (equipment1_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment1_.data_location_id in (20 , 19 , 22 , 21))) as col_0_0_ from memms_equipment equipment0_ where (equipment0_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and datediff(now(), equipment0_.purchase_date)/12>equipment0_.expected_life_time_number_of_months-24 and (equipment0_.data_location_id in (20 , 19 , 22 , 21)) [42001-164]
02-18 15:01:25 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(WORKORDER1_.ID)/(SELECT COUNT(WORKORDER4_.ID) FROM MEMMS_WORK_ORDER_STATUS WORKORDERS3_ INNER JOIN MEMMS_WORK_ORDER WORKORDER4_ ON WORKORDERS3_.WORK_ORDER_ID=WORKORDER4_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER4_1_ ON WORKORDER4_.ID=WORKORDER4_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT5_ ON WORKORDER4_.EQUIPMENT_ID=EQUIPMENT5_.ID, CHAI_LOCATION_DATA_LOCATION DATALOCATI6_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI6_1_ ON DATALOCATI6_.ID=DATALOCATI6_1_.ID WHERE EQUIPMENT5_.DATA_LOCATION_ID=DATALOCATI6_.ID AND (EQUIPMENT5_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21))) AS COL_0_0_ FROM MEMMS_WORK_ORDER_STATUS WORKORDERS0_ INNER JOIN MEMMS_WORK_ORDER WORKORDER1_ ON WORKORDERS0_.WORK_ORDER_ID=WORKORDER1_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER1_1_ ON WORKORDER1_.ID=WORKORDER1_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT2_ ON WORKORDER1_.EQUIPMENT_ID=EQUIPMENT2_.ID WHERE WORKORDER1_.CURRENT_STATUS='CLOSEDFIXED' AND (DATEDIFF(NOW(), WORKORDER1_.RETURNED_ON)[*]<365.0 OR DATEDIFF(NOW(), WORKORDERS0_.DATE_CREATED)<365.0) AND (EQUIPMENT2_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(workorder1_.id)/(select count(workorder4_.id) from memms_work_order_status workorders3_ inner join memms_work_order workorder4_ on workorders3_.work_order_id=workorder4_.id inner join memms_maintenance_order_abstract workorder4_1_ on workorder4_.id=workorder4_1_.id inner join memms_equipment equipment5_ on workorder4_.equipment_id=equipment5_.id, chai_location_data_location datalocati6_ inner join chai_location_abstract datalocati6_1_ on datalocati6_.id=datalocati6_1_.id where equipment5_.data_location_id=datalocati6_.id and (equipment5_.data_location_id in (20 , 19 , 22 , 21))) as col_0_0_ from memms_work_order_status workorders0_ inner join memms_work_order workorder1_ on workorders0_.work_order_id=workorder1_.id inner join memms_maintenance_order_abstract workorder1_1_ on workorder1_.id=workorder1_1_.id inner join memms_equipment equipment2_ on workorder1_.equipment_id=equipment2_.id where workorder1_.current_status='CLOSEDFIXED' and (datediff(now(), workorder1_.returned_on)<365.0 or datediff(now(), workorders0_.date_created)<365.0) and (equipment2_.data_location_id in (20 , 19 , 22 , 21)) [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT AVG(TEMP.FROMOPENTOCLOSED) AS FINAL_RESULT FROM (SELECT DATEDIFF(WO.OPEN_ON,WOS.DATE_CREATED)[*] AS FROMOPENTOCLOSED FROM MEMMS_WORK_ORDER WO ,MEMMS_EQUIPMENT EQU,MEMMS_WORK_ORDER_STATUS WOS WHERE WO.EQUIPMENT_ID=EQU.ID AND WO.ID=WOS.WORK_ORDER_ID AND WO.CURRENT_STATUS='CLOSEDFIXED' AND WOS.STATUS='OPENATFOSA' AND EQU.DATA_LOCATION_ID IN (20, 19, 22, 21) ) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select avg(temp.fromOpenToClosed) as final_result from (select dateDiff(wo.open_on,wos.date_created) as fromOpenToClosed from memms_work_order wo ,memms_equipment equ,memms_work_order_status wos where wo.equipment_id=equ.id and wo.id=wos.work_order_id and wo.current_status='CLOSEDFIXED' and wos.status='OPENATFOSA' and equ.data_location_id in (20, 19, 22, 21) ) temp [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT COUNT(TEMP.SPTYPETIMOUNT)/(SELECT COUNT(MMM.ID) FROM MEMMS_SPARE_PART MMM WHERE MMM.DATA_LOCATION_ID IN (20, 19, 22, 21) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.TYPE_ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (20, 19, 22, 21) GROUP BY MM.TYPE_ID) AS SPTYPETIMOUNT FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (20, 19, 22, 21) GROUP BY MM.TYPE_ID) TEMP WHERE TEMP.SPTYPETIMOUNT<365.0 "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select count(temp.spTypeTimount)/(SELECT count(mmm.id) FROM memms_spare_part mmm where mmm.data_location_id in (20, 19, 22, 21) ) as final_result from (SELECT count(mm.type_id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (20, 19, 22, 21) group by mm.type_id) as spTypeTimount FROM memms_spare_part mm where mm.data_location_id in (20, 19, 22, 21) group by mm.type_id) temp where temp.spTypeTimount<365.0 [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT SUM(TEMP.USAGEEACH)/(SELECT COUNT(M.ID) FROM MEMMS_SPARE_PART M WHERE M.DATA_LOCATION_ID IN (20, 19, 22, 21) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (20, 19, 22, 21) GROUP BY MM.TYPE_ID) AS USAGEEACH FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (20, 19, 22, 21) GROUP BY MM.TYPE_ID) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select sum(temp.usageeach)/(SELECT count(m.id) FROM memms_spare_part m where m.data_location_id in (20, 19, 22, 21) ) as final_result from (SELECT count(mm.id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (20, 19, 22, 21) group by mm.type_id) as usageeach FROM memms_spare_part mm where mm.data_location_id in (20, 19, 22, 21) group by mm.type_id) temp [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Division by zero: "0.0"; SQL statement:
select 1.0*count(equipment0_.code)/(select count(equipment1_.id) from memms_equipment equipment1_, chai_location_data_location datalocati2_ inner join chai_location_abstract datalocati2_1_ on datalocati2_.id=datalocati2_1_.id where equipment1_.data_location_id=datalocati2_.id and (equipment1_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment1_.data_location_id in (15 , 14))) as col_0_0_ from memms_equipment equipment0_ where equipment0_.current_status='OPERATIONAL' and (equipment0_.data_location_id in (15 , 14)) [22012-164]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
at org.h2.message.DbException.get(DbException.java:169)
at org.h2.message.DbException.get(DbException.java:146)
at org.h2.value.ValueDecimal.divide(ValueDecimal.java:84)
at org.h2.expression.Operation.getValue(Operation.java:158)
at org.h2.expression.Alias.getValue(Alias.java:35)
at org.h2.command.dml.Select.queryGroup(Select.java:364)
at org.h2.command.dml.Select.queryWithoutCache(Select.java:613)
at org.h2.command.dml.Query.query(Query.java:297)
at org.h2.command.dml.Query.query(Query.java:267)
at org.h2.command.dml.Query.query(Query.java:36)
at org.h2.command.CommandContainer.query(CommandContainer.java:82)
at org.h2.command.Command.executeQuery(Command.java:187)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
at org.hibernate.loader.Loader.doQuery(Loader.java:802)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2542)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.Query$list.call(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.executeHQL(IndicatorComputationService.groovy:244)
at org.chai.memms.reports.dashboard.IndicatorComputationService$executeHQL.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScript(IndicatorComputationService.groovy:238)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScript.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScriptWithDataLocationCondition(IndicatorComputationService.groovy:231)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScriptWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorWithDataLocationCondition(IndicatorComputationService.groovy:227)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForDataLocations(IndicatorComputationService.groovy:210)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForDataLocations.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForLocation(IndicatorComputationService.groovy:190)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForLocation.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeLocationReport(IndicatorComputationService.groovy:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:992)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.chai.memms.reports.dashboard.IndicatorComputationService$_computeCurrentReport_closure1.doCall(IndicatorComputationService.groovy:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:425)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1376)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1348)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeCurrentReport(IndicatorComputationService.groovy:121)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$FastClassByCGLIB$$26358b2a.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$EnhancerByCGLIB$$4383bf3b.computeCurrentReport(<generated>)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeCurrentReport.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at BootStrap$_closure1.doCall(BootStrap.groovy:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:921)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:406)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:301)
at grails.util.Environment.executeForEnvironment(Environment.java:294)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:270)
at org.codehaus.groovy.grails.commons.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:60)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:74)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:105)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(EQUIPMENT0_.CODE)/(SELECT COUNT(EQUIPMENT1_.CODE) FROM MEMMS_EQUIPMENT EQUIPMENT1_, CHAI_LOCATION_DATA_LOCATION DATALOCATI2_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI2_1_ ON DATALOCATI2_.ID=DATALOCATI2_1_.ID WHERE EQUIPMENT1_.DATA_LOCATION_ID=DATALOCATI2_.ID AND (EQUIPMENT1_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND (EQUIPMENT1_.DATA_LOCATION_ID IN (15 , 14))) AS COL_0_0_ FROM MEMMS_EQUIPMENT EQUIPMENT0_ WHERE (EQUIPMENT0_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND DATEDIFF(NOW(), EQUIPMENT0_.PURCHASE_DATE)[*]/12>EQUIPMENT0_.EXPECTED_LIFE_TIME_NUMBER_OF_MONTHS-24 AND (EQUIPMENT0_.DATA_LOCATION_ID IN (15 , 14)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(equipment0_.code)/(select count(equipment1_.code) from memms_equipment equipment1_, chai_location_data_location datalocati2_ inner join chai_location_abstract datalocati2_1_ on datalocati2_.id=datalocati2_1_.id where equipment1_.data_location_id=datalocati2_.id and (equipment1_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment1_.data_location_id in (15 , 14))) as col_0_0_ from memms_equipment equipment0_ where (equipment0_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and datediff(now(), equipment0_.purchase_date)/12>equipment0_.expected_life_time_number_of_months-24 and (equipment0_.data_location_id in (15 , 14)) [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Division by zero: "0.0"; SQL statement:
select 1.0*count(equipment0_.code)/(select count(equipment1_.code) from memms_equipment equipment1_, chai_location_data_location datalocati2_ inner join chai_location_abstract datalocati2_1_ on datalocati2_.id=datalocati2_1_.id where equipment1_.data_location_id=datalocati2_.id and (equipment1_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment1_.data_location_id in (15 , 14))) as col_0_0_ from memms_equipment equipment0_ where (equipment0_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and equipment0_.obsolete=1 and (equipment0_.data_location_id in (15 , 14)) [22012-164]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
at org.h2.message.DbException.get(DbException.java:169)
at org.h2.message.DbException.get(DbException.java:146)
at org.h2.value.ValueDecimal.divide(ValueDecimal.java:84)
at org.h2.expression.Operation.getValue(Operation.java:158)
at org.h2.expression.Alias.getValue(Alias.java:35)
at org.h2.command.dml.Select.queryGroup(Select.java:364)
at org.h2.command.dml.Select.queryWithoutCache(Select.java:613)
at org.h2.command.dml.Query.query(Query.java:297)
at org.h2.command.dml.Query.query(Query.java:267)
at org.h2.command.dml.Query.query(Query.java:36)
at org.h2.command.CommandContainer.query(CommandContainer.java:82)
at org.h2.command.Command.executeQuery(Command.java:187)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
at org.hibernate.loader.Loader.doQuery(Loader.java:802)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2542)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.Query$list.call(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.executeHQL(IndicatorComputationService.groovy:244)
at org.chai.memms.reports.dashboard.IndicatorComputationService$executeHQL.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScript(IndicatorComputationService.groovy:238)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScript.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScriptWithDataLocationCondition(IndicatorComputationService.groovy:231)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScriptWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorWithDataLocationCondition(IndicatorComputationService.groovy:227)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForDataLocations(IndicatorComputationService.groovy:210)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForDataLocations.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForLocation(IndicatorComputationService.groovy:190)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForLocation.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeLocationReport(IndicatorComputationService.groovy:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:992)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.chai.memms.reports.dashboard.IndicatorComputationService$_computeCurrentReport_closure1.doCall(IndicatorComputationService.groovy:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:425)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1376)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1348)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeCurrentReport(IndicatorComputationService.groovy:121)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$FastClassByCGLIB$$26358b2a.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$EnhancerByCGLIB$$4383bf3b.computeCurrentReport(<generated>)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeCurrentReport.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at BootStrap$_closure1.doCall(BootStrap.groovy:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:921)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:406)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:301)
at grails.util.Environment.executeForEnvironment(Environment.java:294)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:270)
at org.codehaus.groovy.grails.commons.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:60)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:74)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:105)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Division by zero: "0.0"; SQL statement:
select 1.0*count(equipment1_.code)/(select count(equipment2_.code) from memms_equipment equipment2_, chai_location_data_location datalocati3_ inner join chai_location_abstract datalocati3_1_ on datalocati3_.id=datalocati3_1_.id where equipment2_.data_location_id=datalocati3_.id and (equipment2_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment2_.data_location_id in (15 , 14))) as col_0_0_ from memms_work_order workorder0_ inner join memms_maintenance_order_abstract workorder0_1_ on workorder0_.id=workorder0_1_.id inner join memms_equipment equipment1_ on workorder0_.equipment_id=equipment1_.id where (workorder0_.equipment_id is not null) and (equipment1_.data_location_id in (15 , 14)) [22012-164]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
at org.h2.message.DbException.get(DbException.java:169)
at org.h2.message.DbException.get(DbException.java:146)
at org.h2.value.ValueDecimal.divide(ValueDecimal.java:84)
at org.h2.expression.Operation.getValue(Operation.java:158)
at org.h2.expression.Alias.getValue(Alias.java:35)
at org.h2.command.dml.Select.queryGroup(Select.java:364)
at org.h2.command.dml.Select.queryWithoutCache(Select.java:613)
at org.h2.command.dml.Query.query(Query.java:297)
at org.h2.command.dml.Query.query(Query.java:267)
at org.h2.command.dml.Query.query(Query.java:36)
at org.h2.command.CommandContainer.query(CommandContainer.java:82)
at org.h2.command.Command.executeQuery(Command.java:187)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
at org.hibernate.loader.Loader.doQuery(Loader.java:802)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2542)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.Query$list.call(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.executeHQL(IndicatorComputationService.groovy:244)
at org.chai.memms.reports.dashboard.IndicatorComputationService$executeHQL.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScript(IndicatorComputationService.groovy:238)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScript.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScriptWithDataLocationCondition(IndicatorComputationService.groovy:231)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScriptWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorWithDataLocationCondition(IndicatorComputationService.groovy:227)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForDataLocations(IndicatorComputationService.groovy:210)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForDataLocations.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForLocation(IndicatorComputationService.groovy:190)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForLocation.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeLocationReport(IndicatorComputationService.groovy:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:992)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.chai.memms.reports.dashboard.IndicatorComputationService$_computeCurrentReport_closure1.doCall(IndicatorComputationService.groovy:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:425)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1376)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1348)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeCurrentReport(IndicatorComputationService.groovy:121)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$FastClassByCGLIB$$26358b2a.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$EnhancerByCGLIB$$4383bf3b.computeCurrentReport(<generated>)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeCurrentReport.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at BootStrap$_closure1.doCall(BootStrap.groovy:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:921)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:406)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:301)
at grails.util.Environment.executeForEnvironment(Environment.java:294)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:270)
at org.codehaus.groovy.grails.commons.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:60)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:74)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:105)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(WORKORDER1_.ID)/(SELECT COUNT(WORKORDER4_.ID) FROM MEMMS_WORK_ORDER_STATUS WORKORDERS3_ INNER JOIN MEMMS_WORK_ORDER WORKORDER4_ ON WORKORDERS3_.WORK_ORDER_ID=WORKORDER4_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER4_1_ ON WORKORDER4_.ID=WORKORDER4_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT5_ ON WORKORDER4_.EQUIPMENT_ID=EQUIPMENT5_.ID, CHAI_LOCATION_DATA_LOCATION DATALOCATI6_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI6_1_ ON DATALOCATI6_.ID=DATALOCATI6_1_.ID WHERE EQUIPMENT5_.DATA_LOCATION_ID=DATALOCATI6_.ID AND (EQUIPMENT5_.DATA_LOCATION_ID IN (15 , 14))) AS COL_0_0_ FROM MEMMS_WORK_ORDER_STATUS WORKORDERS0_ INNER JOIN MEMMS_WORK_ORDER WORKORDER1_ ON WORKORDERS0_.WORK_ORDER_ID=WORKORDER1_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER1_1_ ON WORKORDER1_.ID=WORKORDER1_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT2_ ON WORKORDER1_.EQUIPMENT_ID=EQUIPMENT2_.ID WHERE WORKORDER1_.CURRENT_STATUS='CLOSEDFIXED' AND (DATEDIFF(NOW(), WORKORDER1_.RETURNED_ON)[*]<365.0 OR DATEDIFF(NOW(), WORKORDERS0_.DATE_CREATED)<365.0) AND (EQUIPMENT2_.DATA_LOCATION_ID IN (15 , 14)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(workorder1_.id)/(select count(workorder4_.id) from memms_work_order_status workorders3_ inner join memms_work_order workorder4_ on workorders3_.work_order_id=workorder4_.id inner join memms_maintenance_order_abstract workorder4_1_ on workorder4_.id=workorder4_1_.id inner join memms_equipment equipment5_ on workorder4_.equipment_id=equipment5_.id, chai_location_data_location datalocati6_ inner join chai_location_abstract datalocati6_1_ on datalocati6_.id=datalocati6_1_.id where equipment5_.data_location_id=datalocati6_.id and (equipment5_.data_location_id in (15 , 14))) as col_0_0_ from memms_work_order_status workorders0_ inner join memms_work_order workorder1_ on workorders0_.work_order_id=workorder1_.id inner join memms_maintenance_order_abstract workorder1_1_ on workorder1_.id=workorder1_1_.id inner join memms_equipment equipment2_ on workorder1_.equipment_id=equipment2_.id where workorder1_.current_status='CLOSEDFIXED' and (datediff(now(), workorder1_.returned_on)<365.0 or datediff(now(), workorders0_.date_created)<365.0) and (equipment2_.data_location_id in (15 , 14)) [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Column "EQUIPMENT1_.DATA_LOCATION_ID" must be in the GROUP BY list; SQL statement:
select 1.0*count(workorder0_.id)/(select count(workorder2_.id) from memms_work_order workorder2_ inner join memms_maintenance_order_abstract workorder2_1_ on workorder2_.id=workorder2_1_.id cross join chai_location_data_location datalocati4_ where equipment1_.data_location_id=datalocati4_.id and (equipment1_.data_location_id in (15 , 14))) as col_0_0_ from memms_work_order workorder0_ inner join memms_maintenance_order_abstract workorder0_1_ on workorder0_.id=workorder0_1_.id inner join memms_equipment equipment1_ on workorder0_.equipment_id=equipment1_.id where workorder0_.current_status='OPENATMMC' and (equipment1_.data_location_id in (15 , 14)) [90016-164]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
at org.h2.message.DbException.get(DbException.java:169)
at org.h2.message.DbException.get(DbException.java:146)
at org.h2.expression.ExpressionColumn.getValue(ExpressionColumn.java:178)
at org.h2.expression.ConditionIn.getValue(ConditionIn.java:44)
at org.h2.expression.Expression.getBooleanValue(Expression.java:180)
at org.h2.table.TableFilter.isOk(TableFilter.java:431)
at org.h2.table.TableFilter.next(TableFilter.java:379)
at org.h2.command.dml.Select.queryGroup(Select.java:311)
at org.h2.command.dml.Select.queryWithoutCache(Select.java:613)
at org.h2.command.dml.Query.query(Query.java:297)
at org.h2.command.dml.Query.query(Query.java:267)
at org.h2.expression.Subquery.getValue(Subquery.java:36)
at org.h2.expression.Operation.getValue(Operation.java:113)
at org.h2.expression.Alias.getValue(Alias.java:35)
at org.h2.command.dml.Select.queryGroup(Select.java:364)
at org.h2.command.dml.Select.queryWithoutCache(Select.java:613)
at org.h2.command.dml.Query.query(Query.java:297)
at org.h2.command.dml.Query.query(Query.java:267)
at org.h2.command.dml.Query.query(Query.java:36)
at org.h2.command.CommandContainer.query(CommandContainer.java:82)
at org.h2.command.Command.executeQuery(Command.java:187)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
at org.hibernate.loader.Loader.doQuery(Loader.java:802)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2542)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.Query$list.call(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.executeHQL(IndicatorComputationService.groovy:244)
at org.chai.memms.reports.dashboard.IndicatorComputationService$executeHQL.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScript(IndicatorComputationService.groovy:238)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScript.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScriptWithDataLocationCondition(IndicatorComputationService.groovy:231)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScriptWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorWithDataLocationCondition(IndicatorComputationService.groovy:227)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForDataLocations(IndicatorComputationService.groovy:210)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForDataLocations.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForLocation(IndicatorComputationService.groovy:190)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForLocation.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeLocationReport(IndicatorComputationService.groovy:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:992)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.chai.memms.reports.dashboard.IndicatorComputationService$_computeCurrentReport_closure1.doCall(IndicatorComputationService.groovy:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:425)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1376)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1348)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeCurrentReport(IndicatorComputationService.groovy:121)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$FastClassByCGLIB$$26358b2a.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$EnhancerByCGLIB$$4383bf3b.computeCurrentReport(<generated>)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeCurrentReport.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at BootStrap$_closure1.doCall(BootStrap.groovy:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:921)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:406)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:301)
at grails.util.Environment.executeForEnvironment(Environment.java:294)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:270)
at org.codehaus.groovy.grails.commons.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:60)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:74)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:105)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT AVG(TEMP.FROMOPENTOCLOSED) AS FINAL_RESULT FROM (SELECT DATEDIFF(WO.OPEN_ON,WOS.DATE_CREATED)[*] AS FROMOPENTOCLOSED FROM MEMMS_WORK_ORDER WO ,MEMMS_EQUIPMENT EQU,MEMMS_WORK_ORDER_STATUS WOS WHERE WO.EQUIPMENT_ID=EQU.ID AND WO.ID=WOS.WORK_ORDER_ID AND WO.CURRENT_STATUS='CLOSEDFIXED' AND WOS.STATUS='OPENATFOSA' AND EQU.DATA_LOCATION_ID IN (15, 14) ) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select avg(temp.fromOpenToClosed) as final_result from (select dateDiff(wo.open_on,wos.date_created) as fromOpenToClosed from memms_work_order wo ,memms_equipment equ,memms_work_order_status wos where wo.equipment_id=equ.id and wo.id=wos.work_order_id and wo.current_status='CLOSEDFIXED' and wos.status='OPENATFOSA' and equ.data_location_id in (15, 14) ) temp [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Division by zero: "0.0"; SQL statement:
select 1.0*count(prevention0_.id)/(select count(preventive3_.id) from memms_preventive_order_abstract preventive3_ inner join memms_maintenance_order_abstract preventive3_1_ on preventive3_.id=preventive3_1_.id inner join memms_equipment equipment4_ on preventive3_.equipment_id=equipment4_.id, chai_location_data_location datalocati5_ inner join chai_location_abstract datalocati5_1_ on datalocati5_.id=datalocati5_1_.id where equipment4_.data_location_id=datalocati5_.id and (equipment4_.data_location_id in (15 , 14))) as col_0_0_ from memms_prevention prevention0_ inner join memms_preventive_order_abstract preventive1_ on prevention0_.order_id=preventive1_.id inner join memms_maintenance_order_abstract preventive1_1_ on preventive1_.id=preventive1_1_.id inner join memms_equipment equipment2_ on preventive1_.equipment_id=equipment2_.id where equipment2_.data_location_id in (15 , 14) [22012-164]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
at org.h2.message.DbException.get(DbException.java:169)
at org.h2.message.DbException.get(DbException.java:146)
at org.h2.value.ValueDecimal.divide(ValueDecimal.java:84)
at org.h2.expression.Operation.getValue(Operation.java:158)
at org.h2.expression.Alias.getValue(Alias.java:35)
at org.h2.command.dml.Select.queryGroup(Select.java:364)
at org.h2.command.dml.Select.queryWithoutCache(Select.java:613)
at org.h2.command.dml.Query.query(Query.java:297)
at org.h2.command.dml.Query.query(Query.java:267)
at org.h2.command.dml.Query.query(Query.java:36)
at org.h2.command.CommandContainer.query(CommandContainer.java:82)
at org.h2.command.Command.executeQuery(Command.java:187)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
at org.hibernate.loader.Loader.doQuery(Loader.java:802)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2542)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.Query$list.call(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.executeHQL(IndicatorComputationService.groovy:244)
at org.chai.memms.reports.dashboard.IndicatorComputationService$executeHQL.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScript(IndicatorComputationService.groovy:238)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScript.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeScriptWithDataLocationCondition(IndicatorComputationService.groovy:231)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeScriptWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorWithDataLocationCondition(IndicatorComputationService.groovy:227)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorWithDataLocationCondition.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForDataLocations(IndicatorComputationService.groovy:210)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForDataLocations.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeIndicatorForLocation(IndicatorComputationService.groovy:190)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeIndicatorForLocation.callCurrent(Unknown Source)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeLocationReport(IndicatorComputationService.groovy:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:992)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.chai.memms.reports.dashboard.IndicatorComputationService$_computeCurrentReport_closure1.doCall(IndicatorComputationService.groovy:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:425)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1376)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1348)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.chai.memms.reports.dashboard.IndicatorComputationService.computeCurrentReport(IndicatorComputationService.groovy:121)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$FastClassByCGLIB$$26358b2a.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
at org.chai.memms.reports.dashboard.IndicatorComputationService$$EnhancerByCGLIB$$4383bf3b.computeCurrentReport(<generated>)
at org.chai.memms.reports.dashboard.IndicatorComputationService$computeCurrentReport.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at BootStrap$_closure1.doCall(BootStrap.groovy:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:921)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:406)
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:301)
at grails.util.Environment.executeForEnvironment(Environment.java:294)
at grails.util.Environment.executeForCurrentEnvironment(Environment.java:270)
at org.codehaus.groovy.grails.commons.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:60)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:74)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:105)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT COUNT(TEMP.SPTYPETIMOUNT)/(SELECT COUNT(MMM.ID) FROM MEMMS_SPARE_PART MMM WHERE MMM.DATA_LOCATION_ID IN (15, 14) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.TYPE_ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (15, 14) GROUP BY MM.TYPE_ID) AS SPTYPETIMOUNT FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (15, 14) GROUP BY MM.TYPE_ID) TEMP WHERE TEMP.SPTYPETIMOUNT<365.0 "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select count(temp.spTypeTimount)/(SELECT count(mmm.id) FROM memms_spare_part mmm where mmm.data_location_id in (15, 14) ) as final_result from (SELECT count(mm.type_id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (15, 14) group by mm.type_id) as spTypeTimount FROM memms_spare_part mm where mm.data_location_id in (15, 14) group by mm.type_id) temp where temp.spTypeTimount<365.0 [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT SUM(TEMP.USAGEEACH)/(SELECT COUNT(M.ID) FROM MEMMS_SPARE_PART M WHERE M.DATA_LOCATION_ID IN (15, 14) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (15, 14) GROUP BY MM.TYPE_ID) AS USAGEEACH FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (15, 14) GROUP BY MM.TYPE_ID) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select sum(temp.usageeach)/(SELECT count(m.id) FROM memms_spare_part m where m.data_location_id in (15, 14) ) as final_result from (SELECT count(mm.id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (15, 14) group by mm.type_id) as usageeach FROM memms_spare_part mm where mm.data_location_id in (15, 14) group by mm.type_id) temp [42001-164]
02-18 15:01:26 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(EQUIPMENT0_.CODE)/(SELECT COUNT(EQUIPMENT1_.CODE) FROM MEMMS_EQUIPMENT EQUIPMENT1_, CHAI_LOCATION_DATA_LOCATION DATALOCATI2_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI2_1_ ON DATALOCATI2_.ID=DATALOCATI2_1_.ID WHERE EQUIPMENT1_.DATA_LOCATION_ID=DATALOCATI2_.ID AND (EQUIPMENT1_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND (EQUIPMENT1_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21 , 15 , 14))) AS COL_0_0_ FROM MEMMS_EQUIPMENT EQUIPMENT0_ WHERE (EQUIPMENT0_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND DATEDIFF(NOW(), EQUIPMENT0_.PURCHASE_DATE)[*]/12>EQUIPMENT0_.EXPECTED_LIFE_TIME_NUMBER_OF_MONTHS-24 AND (EQUIPMENT0_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21 , 15 , 14)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(equipment0_.code)/(select count(equipment1_.code) from memms_equipment equipment1_, chai_location_data_location datalocati2_ inner join chai_location_abstract datalocati2_1_ on datalocati2_.id=datalocati2_1_.id where equipment1_.data_location_id=datalocati2_.id and (equipment1_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment1_.data_location_id in (20 , 19 , 22 , 21 , 15 , 14))) as col_0_0_ from memms_equipment equipment0_ where (equipment0_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and datediff(now(), equipment0_.purchase_date)/12>equipment0_.expected_life_time_number_of_months-24 and (equipment0_.data_location_id in (20 , 19 , 22 , 21 , 15 , 14)) [42001-164]
02-18 15:01:27 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(WORKORDER1_.ID)/(SELECT COUNT(WORKORDER4_.ID) FROM MEMMS_WORK_ORDER_STATUS WORKORDERS3_ INNER JOIN MEMMS_WORK_ORDER WORKORDER4_ ON WORKORDERS3_.WORK_ORDER_ID=WORKORDER4_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER4_1_ ON WORKORDER4_.ID=WORKORDER4_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT5_ ON WORKORDER4_.EQUIPMENT_ID=EQUIPMENT5_.ID, CHAI_LOCATION_DATA_LOCATION DATALOCATI6_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI6_1_ ON DATALOCATI6_.ID=DATALOCATI6_1_.ID WHERE EQUIPMENT5_.DATA_LOCATION_ID=DATALOCATI6_.ID AND (EQUIPMENT5_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21 , 15 , 14))) AS COL_0_0_ FROM MEMMS_WORK_ORDER_STATUS WORKORDERS0_ INNER JOIN MEMMS_WORK_ORDER WORKORDER1_ ON WORKORDERS0_.WORK_ORDER_ID=WORKORDER1_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER1_1_ ON WORKORDER1_.ID=WORKORDER1_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT2_ ON WORKORDER1_.EQUIPMENT_ID=EQUIPMENT2_.ID WHERE WORKORDER1_.CURRENT_STATUS='CLOSEDFIXED' AND (DATEDIFF(NOW(), WORKORDER1_.RETURNED_ON)[*]<365.0 OR DATEDIFF(NOW(), WORKORDERS0_.DATE_CREATED)<365.0) AND (EQUIPMENT2_.DATA_LOCATION_ID IN (20 , 19 , 22 , 21 , 15 , 14)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(workorder1_.id)/(select count(workorder4_.id) from memms_work_order_status workorders3_ inner join memms_work_order workorder4_ on workorders3_.work_order_id=workorder4_.id inner join memms_maintenance_order_abstract workorder4_1_ on workorder4_.id=workorder4_1_.id inner join memms_equipment equipment5_ on workorder4_.equipment_id=equipment5_.id, chai_location_data_location datalocati6_ inner join chai_location_abstract datalocati6_1_ on datalocati6_.id=datalocati6_1_.id where equipment5_.data_location_id=datalocati6_.id and (equipment5_.data_location_id in (20 , 19 , 22 , 21 , 15 , 14))) as col_0_0_ from memms_work_order_status workorders0_ inner join memms_work_order workorder1_ on workorders0_.work_order_id=workorder1_.id inner join memms_maintenance_order_abstract workorder1_1_ on workorder1_.id=workorder1_1_.id inner join memms_equipment equipment2_ on workorder1_.equipment_id=equipment2_.id where workorder1_.current_status='CLOSEDFIXED' and (datediff(now(), workorder1_.returned_on)<365.0 or datediff(now(), workorders0_.date_created)<365.0) and (equipment2_.data_location_id in (20 , 19 , 22 , 21 , 15 , 14)) [42001-164]
02-18 15:01:27 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT AVG(TEMP.FROMOPENTOCLOSED) AS FINAL_RESULT FROM (SELECT DATEDIFF(WO.OPEN_ON,WOS.DATE_CREATED)[*] AS FROMOPENTOCLOSED FROM MEMMS_WORK_ORDER WO ,MEMMS_EQUIPMENT EQU,MEMMS_WORK_ORDER_STATUS WOS WHERE WO.EQUIPMENT_ID=EQU.ID AND WO.ID=WOS.WORK_ORDER_ID AND WO.CURRENT_STATUS='CLOSEDFIXED' AND WOS.STATUS='OPENATFOSA' AND EQU.DATA_LOCATION_ID IN (20, 19, 22, 21, 15, 14) ) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select avg(temp.fromOpenToClosed) as final_result from (select dateDiff(wo.open_on,wos.date_created) as fromOpenToClosed from memms_work_order wo ,memms_equipment equ,memms_work_order_status wos where wo.equipment_id=equ.id and wo.id=wos.work_order_id and wo.current_status='CLOSEDFIXED' and wos.status='OPENATFOSA' and equ.data_location_id in (20, 19, 22, 21, 15, 14) ) temp [42001-164]
02-18 15:01:27 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT COUNT(TEMP.SPTYPETIMOUNT)/(SELECT COUNT(MMM.ID) FROM MEMMS_SPARE_PART MMM WHERE MMM.DATA_LOCATION_ID IN (20, 19, 22, 21, 15, 14) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.TYPE_ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (20, 19, 22, 21, 15, 14) GROUP BY MM.TYPE_ID) AS SPTYPETIMOUNT FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (20, 19, 22, 21, 15, 14) GROUP BY MM.TYPE_ID) TEMP WHERE TEMP.SPTYPETIMOUNT<365.0 "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select count(temp.spTypeTimount)/(SELECT count(mmm.id) FROM memms_spare_part mmm where mmm.data_location_id in (20, 19, 22, 21, 15, 14) ) as final_result from (SELECT count(mm.type_id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (20, 19, 22, 21, 15, 14) group by mm.type_id) as spTypeTimount FROM memms_spare_part mm where mm.data_location_id in (20, 19, 22, 21, 15, 14) group by mm.type_id) temp where temp.spTypeTimount<365.0 [42001-164]
02-18 15:01:27 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT SUM(TEMP.USAGEEACH)/(SELECT COUNT(M.ID) FROM MEMMS_SPARE_PART M WHERE M.DATA_LOCATION_ID IN (20, 19, 22, 21, 15, 14) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (20, 19, 22, 21, 15, 14) GROUP BY MM.TYPE_ID) AS USAGEEACH FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (20, 19, 22, 21, 15, 14) GROUP BY MM.TYPE_ID) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select sum(temp.usageeach)/(SELECT count(m.id) FROM memms_spare_part m where m.data_location_id in (20, 19, 22, 21, 15, 14) ) as final_result from (SELECT count(mm.id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (20, 19, 22, 21, 15, 14) group by mm.type_id) as usageeach FROM memms_spare_part mm where mm.data_location_id in (20, 19, 22, 21, 15, 14) group by mm.type_id) temp [42001-164]
02-18 15:01:27 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(EQUIPMENT0_.CODE)/(SELECT COUNT(EQUIPMENT1_.CODE) FROM MEMMS_EQUIPMENT EQUIPMENT1_, CHAI_LOCATION_DATA_LOCATION DATALOCATI2_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI2_1_ ON DATALOCATI2_.ID=DATALOCATI2_1_.ID WHERE EQUIPMENT1_.DATA_LOCATION_ID=DATALOCATI2_.ID AND (EQUIPMENT1_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND (EQUIPMENT1_.DATA_LOCATION_ID IN (17 , 18 , 16))) AS COL_0_0_ FROM MEMMS_EQUIPMENT EQUIPMENT0_ WHERE (EQUIPMENT0_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND DATEDIFF(NOW(), EQUIPMENT0_.PURCHASE_DATE)[*]/12>EQUIPMENT0_.EXPECTED_LIFE_TIME_NUMBER_OF_MONTHS-24 AND (EQUIPMENT0_.DATA_LOCATION_ID IN (17 , 18 , 16)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(equipment0_.code)/(select count(equipment1_.code) from memms_equipment equipment1_, chai_location_data_location datalocati2_ inner join chai_location_abstract datalocati2_1_ on datalocati2_.id=datalocati2_1_.id where equipment1_.data_location_id=datalocati2_.id and (equipment1_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment1_.data_location_id in (17 , 18 , 16))) as col_0_0_ from memms_equipment equipment0_ where (equipment0_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and datediff(now(), equipment0_.purchase_date)/12>equipment0_.expected_life_time_number_of_months-24 and (equipment0_.data_location_id in (17 , 18 , 16)) [42001-164]
02-18 15:01:27 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(WORKORDER1_.ID)/(SELECT COUNT(WORKORDER4_.ID) FROM MEMMS_WORK_ORDER_STATUS WORKORDERS3_ INNER JOIN MEMMS_WORK_ORDER WORKORDER4_ ON WORKORDERS3_.WORK_ORDER_ID=WORKORDER4_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER4_1_ ON WORKORDER4_.ID=WORKORDER4_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT5_ ON WORKORDER4_.EQUIPMENT_ID=EQUIPMENT5_.ID, CHAI_LOCATION_DATA_LOCATION DATALOCATI6_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI6_1_ ON DATALOCATI6_.ID=DATALOCATI6_1_.ID WHERE EQUIPMENT5_.DATA_LOCATION_ID=DATALOCATI6_.ID AND (EQUIPMENT5_.DATA_LOCATION_ID IN (17 , 18 , 16))) AS COL_0_0_ FROM MEMMS_WORK_ORDER_STATUS WORKORDERS0_ INNER JOIN MEMMS_WORK_ORDER WORKORDER1_ ON WORKORDERS0_.WORK_ORDER_ID=WORKORDER1_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER1_1_ ON WORKORDER1_.ID=WORKORDER1_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT2_ ON WORKORDER1_.EQUIPMENT_ID=EQUIPMENT2_.ID WHERE WORKORDER1_.CURRENT_STATUS='CLOSEDFIXED' AND (DATEDIFF(NOW(), WORKORDER1_.RETURNED_ON)[*]<365.0 OR DATEDIFF(NOW(), WORKORDERS0_.DATE_CREATED)<365.0) AND (EQUIPMENT2_.DATA_LOCATION_ID IN (17 , 18 , 16)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(workorder1_.id)/(select count(workorder4_.id) from memms_work_order_status workorders3_ inner join memms_work_order workorder4_ on workorders3_.work_order_id=workorder4_.id inner join memms_maintenance_order_abstract workorder4_1_ on workorder4_.id=workorder4_1_.id inner join memms_equipment equipment5_ on workorder4_.equipment_id=equipment5_.id, chai_location_data_location datalocati6_ inner join chai_location_abstract datalocati6_1_ on datalocati6_.id=datalocati6_1_.id where equipment5_.data_location_id=datalocati6_.id and (equipment5_.data_location_id in (17 , 18 , 16))) as col_0_0_ from memms_work_order_status workorders0_ inner join memms_work_order workorder1_ on workorders0_.work_order_id=workorder1_.id inner join memms_maintenance_order_abstract workorder1_1_ on workorder1_.id=workorder1_1_.id inner join memms_equipment equipment2_ on workorder1_.equipment_id=equipment2_.id where workorder1_.current_status='CLOSEDFIXED' and (datediff(now(), workorder1_.returned_on)<365.0 or datediff(now(), workorders0_.date_created)<365.0) and (equipment2_.data_location_id in (17 , 18 , 16)) [42001-164]
02-18 15:01:28 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT AVG(TEMP.FROMOPENTOCLOSED) AS FINAL_RESULT FROM (SELECT DATEDIFF(WO.OPEN_ON,WOS.DATE_CREATED)[*] AS FROMOPENTOCLOSED FROM MEMMS_WORK_ORDER WO ,MEMMS_EQUIPMENT EQU,MEMMS_WORK_ORDER_STATUS WOS WHERE WO.EQUIPMENT_ID=EQU.ID AND WO.ID=WOS.WORK_ORDER_ID AND WO.CURRENT_STATUS='CLOSEDFIXED' AND WOS.STATUS='OPENATFOSA' AND EQU.DATA_LOCATION_ID IN (17, 18, 16) ) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select avg(temp.fromOpenToClosed) as final_result from (select dateDiff(wo.open_on,wos.date_created) as fromOpenToClosed from memms_work_order wo ,memms_equipment equ,memms_work_order_status wos where wo.equipment_id=equ.id and wo.id=wos.work_order_id and wo.current_status='CLOSEDFIXED' and wos.status='OPENATFOSA' and equ.data_location_id in (17, 18, 16) ) temp [42001-164]
02-18 15:01:28 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT COUNT(TEMP.SPTYPETIMOUNT)/(SELECT COUNT(MMM.ID) FROM MEMMS_SPARE_PART MMM WHERE MMM.DATA_LOCATION_ID IN (17, 18, 16) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.TYPE_ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (17, 18, 16) GROUP BY MM.TYPE_ID) AS SPTYPETIMOUNT FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (17, 18, 16) GROUP BY MM.TYPE_ID) TEMP WHERE TEMP.SPTYPETIMOUNT<365.0 "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select count(temp.spTypeTimount)/(SELECT count(mmm.id) FROM memms_spare_part mmm where mmm.data_location_id in (17, 18, 16) ) as final_result from (SELECT count(mm.type_id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (17, 18, 16) group by mm.type_id) as spTypeTimount FROM memms_spare_part mm where mm.data_location_id in (17, 18, 16) group by mm.type_id) temp where temp.spTypeTimount<365.0 [42001-164]
02-18 15:01:28 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT SUM(TEMP.USAGEEACH)/(SELECT COUNT(M.ID) FROM MEMMS_SPARE_PART M WHERE M.DATA_LOCATION_ID IN (17, 18, 16) ) AS FINAL_RESULT FROM (SELECT COUNT(MM.ID)/(SELECT ROUND((COUNT(M.ID)/12),0) FROM MEMMS_SPARE_PART M WHERE M.STATUS='OPERATIONAL' AND DATEDIFF(NOW(),M.DELIVERY_DATE)[*]<=365 AND M.DATA_LOCATION_ID IN (17, 18, 16) GROUP BY MM.TYPE_ID) AS USAGEEACH FROM MEMMS_SPARE_PART MM WHERE MM.DATA_LOCATION_ID IN (17, 18, 16) GROUP BY MM.TYPE_ID) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select sum(temp.usageeach)/(SELECT count(m.id) FROM memms_spare_part m where m.data_location_id in (17, 18, 16) ) as final_result from (SELECT count(mm.id)/(SELECT ROUND((count(m.id)/12),0) FROM memms_spare_part m where m.status='OPERATIONAL' and dateDiff(NOW(),m.delivery_date)<=365 and m.data_location_id in (17, 18, 16) group by mm.type_id) as usageeach FROM memms_spare_part mm where mm.data_location_id in (17, 18, 16) group by mm.type_id) temp [42001-164]
02-18 15:01:28 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(EQUIPMENT0_.CODE)/(SELECT COUNT(EQUIPMENT1_.CODE) FROM MEMMS_EQUIPMENT EQUIPMENT1_, CHAI_LOCATION_DATA_LOCATION DATALOCATI2_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI2_1_ ON DATALOCATI2_.ID=DATALOCATI2_1_.ID WHERE EQUIPMENT1_.DATA_LOCATION_ID=DATALOCATI2_.ID AND (EQUIPMENT1_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND (EQUIPMENT1_.DATA_LOCATION_ID IN (17 , 18 , 16))) AS COL_0_0_ FROM MEMMS_EQUIPMENT EQUIPMENT0_ WHERE (EQUIPMENT0_.CURRENT_STATUS IN ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) AND DATEDIFF(NOW(), EQUIPMENT0_.PURCHASE_DATE)[*]/12>EQUIPMENT0_.EXPECTED_LIFE_TIME_NUMBER_OF_MONTHS-24 AND (EQUIPMENT0_.DATA_LOCATION_ID IN (17 , 18 , 16)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(equipment0_.code)/(select count(equipment1_.code) from memms_equipment equipment1_, chai_location_data_location datalocati2_ inner join chai_location_abstract datalocati2_1_ on datalocati2_.id=datalocati2_1_.id where equipment1_.data_location_id=datalocati2_.id and (equipment1_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and (equipment1_.data_location_id in (17 , 18 , 16))) as col_0_0_ from memms_equipment equipment0_ where (equipment0_.current_status in ('OPERATIONAL' , 'PARTIALLYOPERATIONAL' , 'UNDERMAINTENANCE')) and datediff(now(), equipment0_.purchase_date)/12>equipment0_.expected_life_time_number_of_months-24 and (equipment0_.data_location_id in (17 , 18 , 16)) [42001-164]
02-18 15:01:28 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT 1.0*COUNT(WORKORDER1_.ID)/(SELECT COUNT(WORKORDER4_.ID) FROM MEMMS_WORK_ORDER_STATUS WORKORDERS3_ INNER JOIN MEMMS_WORK_ORDER WORKORDER4_ ON WORKORDERS3_.WORK_ORDER_ID=WORKORDER4_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER4_1_ ON WORKORDER4_.ID=WORKORDER4_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT5_ ON WORKORDER4_.EQUIPMENT_ID=EQUIPMENT5_.ID, CHAI_LOCATION_DATA_LOCATION DATALOCATI6_ INNER JOIN CHAI_LOCATION_ABSTRACT DATALOCATI6_1_ ON DATALOCATI6_.ID=DATALOCATI6_1_.ID WHERE EQUIPMENT5_.DATA_LOCATION_ID=DATALOCATI6_.ID AND (EQUIPMENT5_.DATA_LOCATION_ID IN (17 , 18 , 16))) AS COL_0_0_ FROM MEMMS_WORK_ORDER_STATUS WORKORDERS0_ INNER JOIN MEMMS_WORK_ORDER WORKORDER1_ ON WORKORDERS0_.WORK_ORDER_ID=WORKORDER1_.ID INNER JOIN MEMMS_MAINTENANCE_ORDER_ABSTRACT WORKORDER1_1_ ON WORKORDER1_.ID=WORKORDER1_1_.ID INNER JOIN MEMMS_EQUIPMENT EQUIPMENT2_ ON WORKORDER1_.EQUIPMENT_ID=EQUIPMENT2_.ID WHERE WORKORDER1_.CURRENT_STATUS='CLOSEDFIXED' AND (DATEDIFF(NOW(), WORKORDER1_.RETURNED_ON)[*]<365.0 OR DATEDIFF(NOW(), WORKORDERS0_.DATE_CREATED)<365.0) AND (EQUIPMENT2_.DATA_LOCATION_ID IN (17 , 18 , 16)) "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement:
select 1.0*count(workorder1_.id)/(select count(workorder4_.id) from memms_work_order_status workorders3_ inner join memms_work_order workorder4_ on workorders3_.work_order_id=workorder4_.id inner join memms_maintenance_order_abstract workorder4_1_ on workorder4_.id=workorder4_1_.id inner join memms_equipment equipment5_ on workorder4_.equipment_id=equipment5_.id, chai_location_data_location datalocati6_ inner join chai_location_abstract datalocati6_1_ on datalocati6_.id=datalocati6_1_.id where equipment5_.data_location_id=datalocati6_.id and (equipment5_.data_location_id in (17 , 18 , 16))) as col_0_0_ from memms_work_order_status workorders0_ inner join memms_work_order workorder1_ on workorders0_.work_order_id=workorder1_.id inner join memms_maintenance_order_abstract workorder1_1_ on workorder1_.id=workorder1_1_.id inner join memms_equipment equipment2_ on workorder1_.equipment_id=equipment2_.id where workorder1_.current_status='CLOSEDFIXED' and (datediff(now(), workorder1_.returned_on)<365.0 or datediff(now(), workorders0_.date_created)<365.0) and (equipment2_.data_location_id in (17 , 18 , 16)) [42001-164]
02-18 15:01:28 jdbc[2]: exception
org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement "SELECT AVG(TEMP.FROMOPENTOCLOSED) AS FINAL_RESULT FROM (SELECT DATEDIFF(WO.OPEN_ON,WOS.DATE_CREATED)[*] AS FROMOPENTOCLOSED FROM MEMMS_WORK_ORDER WO ,MEMMS_EQUIPMENT EQU,MEMMS_WORK_ORDER_STATUS WOS WHERE WO.EQUIPMENT_ID=EQU.ID AND WO.ID=WOS.WORK_ORDER_ID AND WO.CURRENT_STATUS='CLOSEDFIXED' AND WOS.STATUS='OPENATFOSA' AND EQU.DATA_LOCATION_ID IN (17, 18, 16) ) TEMP "; expected "., [, ::, *, /, %, +, -, ||, ~, !~, NOT, LIKE, REGEXP, IS, IN, BETWEEN, AND, OR, ,"; SQL statement: