Highlighted

Unable to get Adobe image request fired by using Appmeasurement for JAVA

sritanurudrapau

10-10-2018

Hello There!

I wanted to fire an image request using JAVA appmeasurement but unable to do so.

1. Jar files has been imported

2. Referred to JAVA appmeasurement document from the code manager and also bumped on to this https://forums.adobe.com/thread/2329798

3. Here's how the code looks like

AppMeasurement s = new AppMeasurement();

                                //Setup application config variables

                                s.account = "rsid-value added";

                                s.pageName = "hard-coded string added";

                                s.prop25 = "hard-coded string added";

                                s.sendFromServer = true;

                                s.trackingServer ="tracking server-value added";

                                s.trackingServerSecure = "secured tracking server-value added";

                                s.track();

                              

No error anywhere but no image request firing and there is no reporting data being received as well.

4. Used Httpfox and Chrome dev console to debug

Looking forward for a fix or an alternate solution

Thanks in advance!

Replies

Highlighted

Gigazelle

Employee

18-10-2018

Is this a client-side java implementation or a server-side implementation? You'll want to make sure your s.sendFromServer variable is set to the correct value.

Highlighted

sritanurudrapau

19-10-2018

Hi Gigazelle,

Thanks for replying.

To answer your question, yes it is a server-side implementation.

And s.sendFromServer has got the correct value.

Do you think that a firewall has to do anything in this regard

Thanks again!

Highlighted

Gigazelle

Employee

19-10-2018

Certainly a possibility. Another thing you might want to check is to make sure the code is running. Typically if s.track() is called, it should be sending data. If you're able to add some debug log code right above/below the track function, we can validate that it's running. If you don't get the debug log code, then we have a better idea of where the issue is. If you do see the debug text in the console, then it's a much higher chance to be firewall related.

Highlighted

sritanurudrapau

22-02-2019

Yeah. That was a firewall issue indeed. And yes this issue was solved by curating the adobe image request right on the page itself by dynamically populating all the variables with values from the backend.