Command line tool export - license not found

Questions about YourKit Java Profiler
Post Reply
michelracineco
Posts: 1
Joined: Mon Jan 09, 2017 8:00 pm

Command line tool export - license not found

Post by michelracineco »

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
java.lang.reflect.InvocationTargetException
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.

Suggestion?

Thanks,
Michel.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Command line tool export - license not found

Post by Anton Katilin »

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 [email protected] and provide your license key.

Best regards,
Anton
Post Reply