- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2019 03:43 AM
Hi, Guys.
Need some help here. I have a custom Java application - literally doing a hello world right now.
I followed this youtube tutorial by Mr. Andersen- https://www.youtube.com/watch?v=tOHuFVE3XNQ
I made sure that the JAR file is available in the MID server already via MID Server JAR Files.
Here is my Java class:
package com.xsltprocessor;
public class Processor {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("hello");
}
public Processor(){
}
public String HeartBeat(String s){
String x = s+" - append.";
return x;
}
}
Also, here's the payload I am passing:
<parameters>
<parameter name="script" value="var test = new Packages.com.xsltprocessor.Processor(); test.HeartBeat('heya');"
</parameters>
The returned input throws a unique error that it is looking for a MID Server Script Include. This mostly taken in the ECC QUEUE Name because I tried changing the name and it's using that always in the error message.
Solved! Go to Solution.
- Labels:
-
MID Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2019 06:08 PM
Figured that the best approach to test this is to create the probe via Script. I had to use the following script to run the probe:
var probe = new JavascriptProbe("MID SERVER");
probe.setName("NAME");
probe.setJavascript("var test = new Packages.com.xsltprocessor.Processor(); test.HeartBeat('heya');");
probe.create();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2019 12:13 PM
Can you try passing that command inside the Name field instead of payload and check? Maybe you can run it in the background script and check.
var probe = SncProbe.get("Command");
probe.setName("var test = new Packages.com.xsltprocessor.Processor(); test.HeartBeat('heya');");
probe.create("<MID Server Name>");
then check the ECC queue with output entry and see what the output is.
Mark the comment as a correct answer and also helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2019 05:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2019 06:08 PM
Figured that the best approach to test this is to create the probe via Script. I had to use the following script to run the probe:
var probe = new JavascriptProbe("MID SERVER");
probe.setName("NAME");
probe.setJavascript("var test = new Packages.com.xsltprocessor.Processor(); test.HeartBeat('heya');");
probe.create();