WARN PTV_SpeedPatterns is not licensed

Deals with generic topics such as logging, framework and so on. If you are not sure where to place your topic just put it here.

WARN PTV_SpeedPatterns is not licensed

Postby HaliFeri » Wed Feb 05, 2020 10:33 am

Hi,

(bernd: XSERS-1681)

we recently upgraded xServices (xRoute, xLocate, xMap) from 1.24.0 to 1.28.1 and since our PTV logs are full of the following warnings:

Code: Select all
2020-02-04 09:47:37,025;WARN;com.ptvag.xserver.module.xroute.m0014;163eb888-75e7-4f91-a83c-c56d1fd59dd6;default;;;The theme PTV_TruckSpeedPatterns is not licensed.
2020-02-04 09:46:42,561;WARN;com.ptvag.xserver.module.xroute.m0014;1e291a0e-369b-4729-ae18-7bf2db01680f;default;;;The theme PTV_SpeedPatterns is not licensed.


We never had license for speed patterns and never used them either. The EuropePremium.geo maps we use always contained the speed pattern feature layer as I checked.

Is there any configuration option, to mute these warnings which appear with every single routing request?
Now it's very hard to notice any real warnings.

Thank you for your help!
HaliFeri
 
Posts: 7
Joined: Wed May 21, 2014 3:08 pm

Re: WARN PTV_SpeedPatterns is not licensed

Postby Bernd Welter » Wed Feb 05, 2020 3:22 pm

Hello HaliFeri,

here's a recommendation of our core experts: use an expression filter (available for LOG4J 1.2). You can update the configuration in the server-logging.properties:
log4j.appender.XSERVER.filter.0=org.apache.log4j.filter.ExpressionFilter
log4j.appender.XSERVER.filter.0.expression=(MSG ~= 'The theme PTV_TruckSpeedPatterns is not licensed.')||(MSG ~= 'The theme PTV_SpeedPatterns is not licensed.') log4j.appender.XSERVER.filter.0.acceptOnMatch=false

If you want to enable the server to use this feature
- download the required JAR from https://mvnrepository.com/artifact/log4 ... ras/1.2.17
- copy it to [server]/shared/lib
Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1512
Joined: Mon Apr 14, 2014 10:28 am

Re: WARN PTV_SpeedPatterns is not licensed

Postby HaliFeri » Thu Feb 06, 2020 1:28 pm

Thank you Bernd!

I will try this after installing the Extras module.

In the meanwhile I wonder how much performance degradation should I expect because of this new filtering.
HaliFeri
 
Posts: 7
Joined: Wed May 21, 2014 3:08 pm

Re: WARN PTV_SpeedPatterns is not licensed

Postby Bernd Welter » Thu Feb 06, 2020 1:44 pm

how about disabling WARNINGS as a whole?
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1512
Joined: Mon Apr 14, 2014 10:28 am

Re: WARN PTV_SpeedPatterns is not licensed

Postby Bernd Welter » Thu Feb 06, 2020 2:17 pm

did you ever try to remove the spee pattern data from the map?
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1512
Joined: Mon Apr 14, 2014 10:28 am

Re: WARN PTV_SpeedPatterns is not licensed

Postby HaliFeri » Fri Feb 07, 2020 10:34 am

Hi Bernd!

I tried the method you suggested in server-logging.properties, but it doesn't seem to change anything.
In addition with the
Code: Select all
log4j.appender.XSERVER.filter.0=org.apache.log4j.filter.ExpressionFilter
log4j.appender.XSERVER.filter.0.acceptOnMatch=false

I tried
Code: Select all
log4j.appender.XSERVER.filter.0.expression=(MSG ~= 'The theme PTV_SpeedPatterns is not licensed.')

and
Code: Select all
log4j.appender.XSERVER.filter.0.expression=(MSG ~= 'PTV_SpeedPatterns')

as well with no success.

After reading a bit about log4j 1.2, I also tried
Code: Select all
org.apache.log4j.varia.StringMatchFilter
, which doesn't need any additional lib, but it has no visible effect either.

I'm positive I'm working with the right appender settings, as when I modified the log level on the appender, I saw the effect. I also restarted the service after every config modification (the log level change took effect only after restart I think).

So right now it seems that no filtering mechanism works.

We don't really want to switch off WARN level completely, as other useful messages could be hidden that way.
HaliFeri
 
Posts: 7
Joined: Wed May 21, 2014 3:08 pm

Re: WARN PTV_SpeedPatterns is not licensed

Postby Bernd Welter » Mon Feb 10, 2020 12:33 pm

Hello

unfortunately I am not familiar with the logging framework recommended by DEV.
What I did was easier:
- stop the service
- remove the /featurelayer folder from the map (back them up!)
- start the service

Worked fine on my local environment:
warnings.PNG
warnings.PNG (6.38 KiB) Viewed 43 times


Best regards,
Bernd




PS: I do not expect that we create a minor 1.28 just because of this suboptimal behaviour
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1512
Joined: Mon Apr 14, 2014 10:28 am

Re: WARN PTV_SpeedPatterns is not licensed

Postby HaliFeri » Mon Feb 10, 2020 3:41 pm

We also noticed this.

Removing /featurelayer/*/{trafficpatterns,trucktrafficpatterns} folders stops the warn messages.

We will probably go with this solution.
Thank you for your support.
HaliFeri
 
Posts: 7
Joined: Wed May 21, 2014 3:08 pm

Re: WARN PTV_SpeedPatterns is not licensed

Postby Bernd Welter » Mon Feb 10, 2020 4:37 pm

sounds good!!

C u
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1512
Joined: Mon Apr 14, 2014 10:28 am


Return to Generic questions

cron