mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-21 23:18:52 -05:00
Moved alert-config.xml to conf folder.
Removed hard-coded file location (in EMail object). Corrected table for MySQL query.
This commit is contained in:
parent
93a5385f10
commit
bf7cc39d33
@ -140,7 +140,7 @@ private trait ServiceTrait {
|
|||||||
private object EMail extends ServiceTrait {
|
private object EMail extends ServiceTrait {
|
||||||
override def send(msg: String, recip: String) = {
|
override def send(msg: String, recip: String) = {
|
||||||
val props = new Properties()
|
val props = new Properties()
|
||||||
val config = XML.loadFile("alert-config.xml") \\ "credentials"
|
val config = XML.loadFile(Config.ALERT_CONFIG) \\ "credentials"
|
||||||
val sender = config \ "user" text
|
val sender = config \ "user" text
|
||||||
val pass = config \ "pass" text
|
val pass = config \ "pass" text
|
||||||
val host = config \ "host" text
|
val host = config \ "host" text
|
||||||
|
@ -29,7 +29,7 @@ public class ReportHandlerQueries {
|
|||||||
insertNewReportRow = db
|
insertNewReportRow = db
|
||||||
.getConnection()
|
.getConnection()
|
||||||
.prepareStatement(
|
.prepareStatement(
|
||||||
"INSERT INTO `msc2_reports` (`from`, `about`, `time`, `reason`, `snapshot_from`,`snapshot_about`,`chatlogs`, `from_x`, `from_y`, `about_x`, `about_y`) VALUES(?,?,?,?,?,?,?,?,?,?,?)");
|
"INSERT INTO `pk_reports` (`from`, `about`, `time`, `reason`, `snapshot_from`,`snapshot_about`,`chatlogs`, `from_x`, `from_y`, `about_x`, `about_y`) VALUES(?,?,?,?,?,?,?,?,?,?,?)");
|
||||||
insertNewDupeDataRow = db
|
insertNewDupeDataRow = db
|
||||||
.getConnection()
|
.getConnection()
|
||||||
.prepareStatement(
|
.prepareStatement(
|
||||||
|
@ -0,0 +1,234 @@
|
|||||||
|
01:19:17 25-06-11: Exception in thread "pool-4-thread-1"
|
||||||
|
01:19:17 25-06-11: java.lang.Error: java.io.FileNotFoundException: alert-config.xml (No such file or directory)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1116)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.lang.Thread.run(Thread.java:636)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: java.lang.Error: java.io.FileNotFoundException: alert-config.xml (No such file or directory)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1116)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.lang.Thread.run(Thread.java:636)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: Caused by: java.io.FileNotFoundException: alert-config.xml (No such file or directory)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.io.FileInputStream.open(Native Method)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.io.FileInputStream.<init>(FileInputStream.java:137)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.io.FileInputStream.<init>(FileInputStream.java:96)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at scala.xml.Source$.fromFile(XML.scala:24)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at scala.xml.factory.XMLLoader$class.loadFile(XMLLoader.scala:49)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at scala.xml.XML$.loadFile(XML.scala:40)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at org.moparscape.msc.gs.alert.EMail$.send(AlertHandler.scala:143)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at org.moparscape.msc.gs.alert.Service$$anonfun$3.apply(AlertHandler.scala:104)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at org.moparscape.msc.gs.alert.Service$$anonfun$3.apply(AlertHandler.scala:104)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at org.moparscape.msc.gs.alert.Service$.send(AlertHandler.scala:112)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:39)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:38)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at scala.collection.immutable.Map$Map1.foreach(Map.scala:118)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1.run(AlertHandler.scala:38)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:19:17 25-06-11: ... 2 more
|
||||||
|
01:19:17 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: Exception in thread "pool-4-thread-1"
|
||||||
|
01:21:50 25-06-11: java.lang.Error: java.io.FileNotFoundException: alert-config.xml (No such file or directory)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1116)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.lang.Thread.run(Thread.java:636)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.lang.Thread.run(Thread.java:636)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: Caused by: java.io.FileNotFoundException: alert-config.xml (No such file or directory)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.io.FileInputStream.open(Native Method)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.io.FileInputStream.<init>(FileInputStream.java:137)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.io.FileInputStream.<init>(FileInputStream.java:96)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at scala.xml.Source$.fromFile(XML.scala:24)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at scala.xml.factory.XMLLoader$class.loadFile(XMLLoader.scala:49)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at scala.xml.XML$.loadFile(XML.scala:40)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.EMail$.send(AlertHandler.scala:143)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.Service$$anonfun$3.apply(AlertHandler.scala:104)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.Service$$anonfun$3.apply(AlertHandler.scala:104)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.Service$.send(AlertHandler.scala:112)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.Service$.send(AlertHandler.scala:112)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:39)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:38)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.Service$.send(AlertHandler.scala:112)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:39)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:38)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at scala.collection.immutable.Map$Map1.foreach(Map.scala:118)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1.run(AlertHandler.scala:38)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:21:50 25-06-11: ... 2 more
|
||||||
|
01:21:50 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: Exception in thread "pool-4-thread-1"
|
||||||
|
01:23:20 25-06-11: java.lang.Error: java.io.FileNotFoundException: alert-config.xml (No such file or directory)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1116)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.lang.Thread.run(Thread.java:636)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.lang.Thread.run(Thread.java:636)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: Caused by: java.io.FileNotFoundException: alert-config.xml (No such file or directory)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.io.FileInputStream.open(Native Method)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.io.FileInputStream.<init>(FileInputStream.java:137)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.io.FileInputStream.<init>(FileInputStream.java:96)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at scala.xml.Source$.fromFile(XML.scala:24)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at scala.xml.factory.XMLLoader$class.loadFile(XMLLoader.scala:49)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at scala.xml.XML$.loadFile(XML.scala:40)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.EMail$.send(AlertHandler.scala:144)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.Service$$anonfun$3.apply(AlertHandler.scala:105)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.Service$$anonfun$3.apply(AlertHandler.scala:105)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.Service$.send(AlertHandler.scala:113)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:39)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:38)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at scala.collection.immutable.Map$Map1.foreach(Map.scala:118)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1$$anonfun$run$1.apply(AlertHandler.scala:38)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at scala.collection.immutable.Map$Map1.foreach(Map.scala:118)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at org.moparscape.msc.gs.alert.AlertHandler$$anon$1.run(AlertHandler.scala:38)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
||||||
|
01:23:20 25-06-11: ... 2 more
|
||||||
|
01:23:20 25-06-11:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user