Fully featured low overhead profiler for Java EE and Java SE platforms.
Performance monitoring and profiling of Jenkins, TeamCity, Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Command line tool export - license not found

Moderators: Vladimir Kondratyev, Anton Katilin

Command line tool export - license not found

Postby michelracineco » Mon Jan 09, 2017 8:26 pm

Hello there,

Here's what I'm trying to do:

C:\Users\username>java -jar "C:\Program Files\YourKit Java Profiler 2016.02-b45\lib\yjp.jar" -export "C:\Users\username\Snapshots\DemoApp-2017-01-09(4).snapshot" c:\temp
[YourKit Java Profiler 2016.02-b45] Log file: C:\Users\username\.yjp\log\yjp-7772.log
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.yourkit.Main$2.run(a:5)
Caused by: java.lang.ExceptionInInitializerError
at com.yourkit.a.e.try(a:120)
at com.yourkit.g.r.e.a(a:155)
at com.yourkit.Main1.if(a:102)
at com.yourkit.Main1.entry(a:311)
... 5 more
Caused by: java.lang.RuntimeException: No valid license key available
at com.yourkit.api.SnapshotImpl.<clinit>(a:84)
... 9 more
Caused by: java.lang.Exception: License cannot not be obtained from the license server (cannot connect to https://www.yourkit.com)
at com.yourkit.i.i.a(a:16)
at com.yourkit.i.a.if(a:89)
at com.yourkit.i.a.do(a:134)
at com.yourkit.i.a.a(a:62)
at com.yourkit.api.SnapshotImpl.<clinit>(a:69)
... 9 more

I can use the gui just fine, same user, to do an export. We use a proxy, and it's set in Windows settings. I also tried to add a cmd prompt http_proxy variable but it didn't work.


Posts: 1
Joined: Mon Jan 09, 2017 8:00 pm

Re: Command line tool export - license not found

Postby Anton Katilin » Tue Jan 10, 2017 11:37 am

Hi Michel

Please try setting -Dhttps.proxyHost=... and -Dhttps.proxyPort=... in the Java command line or in <user home>/.yjp/ui.ini

(See http://docs.oracle.com/javase/7/docs/ap ... rties.html )

If this doesn't help please contact support@yourkit.com and provide your license key.

Best regards,
Anton Katilin
Posts: 5741
Joined: Wed Aug 11, 2004 8:37 am

Return to Java Profiler

Who is online

Users browsing this forum: Google [Bot] and 13 guests