Hi Pierre,

but request.getParameter("siteId") means it should be set somewhere. Is the 
siteId the identifier of the site the request comes from? For example google 
advertising.

Thanks for your help.

Best regards
Ingo 

 


-----Ursprüngliche Nachricht-----
Von: Pierre Smits <pierresm...@apache.org> 
Gesendet: Mittwoch, 9. Februar 2022 11:25
An: user@ofbiz.apache.org
Betreff: Re: TrackingCode siteId

Guten Morgen Ingo,

The field definition appears in marketing-entitymodel.xml in the entity 
definition "TrackingCodeOrder" and in entity definition 
"TrackingCodeOrderReturn". In both as a long-varchar type.
In file TrackingCodeEvents.java, it appears at line 266 and line 554.

Please raise an issue in our JIRA if you feel it needs to be addressed.

Met vriendelijke groet,

Pierre Smits
*Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since
2008 (without privileges)
Proud contributor to the ASF since 2006
*Apache Directory <https://directory.apache.org>, PMC Member*

Anyone could have been you, whereas I've always been anyone.


On Wed, Feb 9, 2022 at 10:56 AM Ingo Wolfmayr <ingo.wolfm...@wolfix.at>
wrote:

> Hi everybody,
>
>
>
> I am testing the "Tracking Code" part of the marketing module and was 
> wondering where the "siteId" comes from. I get a null pointer exeption 
> when calling a page with a tracking code.
>
>
>
> Caused by: java.lang.NullPointerException
>
>             at java.net.URLEncoder.encode(URLEncoder.java:224) ~[?:?]
>
>             at java.net.URLEncoder.encode(URLEncoder.java:196) ~[?:?]
>
>             at
> org.apache.ofbiz.marketing.tracking.TrackingCodeEvents.processTracking
> Code(TrackingCodeEvents.java:267)
> ~[main/:?]
>
>             at
> org.apache.ofbiz.marketing.tracking.TrackingCodeEvents.checkPartnerTra
> ckingCodeUrlParam(TrackingCodeEvents.java:175)
> ~[main/:?]
>
>
>
> I looked into the ofbiz code but could not find the place where it is set.
>
>
>
> Best regards,
>
> Ingo
>
>
>
> Mag. (FH) Ingo Wolfmayr
>
> *Wolfix Solutions*
>
> Gänsgasse 14
>
> A-5282 Ranshofen
>
>
>
> Tel.: +43 (0) 664 2549626
>
> Web: https://www.wolfix.at
>
> Xing: https://www.xing.com/profile/Ingo_Wolfmayr/
>
>
>
> [image: emailsignatur]
>
>
>
>
>

Reply via email to