Upgading YT5.2.3 to 6 on Ubuntu - launchBrowser - NullPointerException

Hi,

I solved my issue here, but it can save some time for others, so I thought I share with you. (It took me about an hour to figure it out.)

I got this error:
WrapperSimpleApp Error: java.lang.NullPointerException
WrapperSimpleApp Error:       at Jetbrains.youtrack.standalone.YoutrackStandalone.launchBrowser(YoutrackStandalone.java:104)


I downloaded the new wrapper, but I still got that error.

I found my solution here:
https://confluence.jetbrains.com/display/YTD6/FAQ#FAQ-HowtolaunchYouTrackwithoutlettingitopenabrowserwindow%3F

So my wrapper additional looks like this:
wrapper.java.additional.1=-Dorg.tanukisoftware.wrapper.WrapperSimpleApp.waitForStartMain=TRUE
wrapper.java.additional.2=-Dorg.tanukisoftware.wrapper.WrapperSimpleApp.maxStartMainWait=300
wrapper.java.additional.3=-XX:MaxPermSize=128m
wrapper.java.additional.4=-XX:+HeapDumpOnOutOfMemoryError
wrapper.java.additional.5=-XX:+UseConcMarkSweepGC
wrapper.java.additional.6=-XX:+DisableExplicitGC
wrapper.java.additional.7=-XX:SoftRefLRUPolicyMSPerMB=10000
wrapper.java.additional.8=-XX:+UseBiasedLocking
wrapper.java.additional.9=-Djava.awt.headless=true
wrapper.java.additional.10=-Xss4m
wrapper.java.additional.11=-Dcatalina.base=/home/youtrack/standalone
wrapper.java.additional.12=-Djetbrains.dnq.cachePercent=25
wrapper.java.additional.13=-Djetbrains.dnq.sharedCache=false
wrapper.java.additional.14=-Djetbains.webr.uiQueryCancellingPolicyTimeout=80000
wrapper.java.additional.15=-Djetbrains.dnq.fairLatches=false
wrapper.java.additional.16=-Djetbrains.dnq.readUncommittedForCachingThread=true
wrapper.java.additional.17=-Djetbrains.youtrack.disableBrowser=true


And now it works just fine.

I hope, I could save some time for you.

Br,
Ghingis
1 comment
Comment actions Permalink
Hi Ghingis,

Correct. The problem was caused by wrapper.conf, so it was upgraded and the guide https://confluence.jetbrains.com/display/YTD6/Linux.+YouTrack+JAR+as+a+Service can be used successfully.
Still, you my observe the problem which can be fixed by restarting YouTrack with
-Djetbrains.youtrack.disableBrowser=true
prettyPrint();
Next YouTrack hot-fix build will include intelligent fix.

Thank you.
0

Please sign in to leave a comment.