Dropbox, Skype and Livecycle

command-prompt-glossyI recently noticed that Livecycle (JBoss) on my development laptop would frequently not start up correctly. It would throw all sorts of errors about ports already in use (1099, etc) and throw a complete wobbly. So I decided to dig around using TcpView and Process Explorer. It seems that Skype and Dropbox (to a lesser extent) would sometimes come in and steal some Livecycle ports when they run. Strangely, it didn’t reproduce every time I went looking for them but I saw enough to see that either one would try to grab the Naming Service port (1099) for some reason.

As both Skype and Dropbox started automatically on my laptop, I inevitably tried to run Livecycle without thinking and it would bomb out. So I decided it was easier to just quit both Dropbox and Skype until after Livecycle had started, then restart those processes when I needed them. They seemed to work fine without the RMI port anyway.

I knocked up a quick batch file to detect if either process was running and kill these apps before running Livecycle so I thought I’d share it. Props go to StackOverflow for the process detection script.

@ECHO OFF
tasklist /FI "IMAGENAME eq dropbox.exe" 2>NUL | find /I /N "dropbox.exe">NUL
if NOT "%ERRORLEVEL%"=="0" goto TEST_SKYPE
echo Dropbox is running...DIE!!
taskkill /f /im "dropbox.exe"

:TEST_SKYPE
tasklist /FI "IMAGENAME eq skype.exe" 2>NUL | find /I /N "skype.exe">NUL
if NOT "%ERRORLEVEL%"=="0" goto START_LC
echo Skype is running...DIE!!
taskkill /f /im "skype.exe"

:START_LC
net start "MySQL for Adobe LiveCycle ES4"
net start JBOSS_FOR_ADOBE_LIVECYCLE_ES4

:EXIT0
pause
Advertisements
aemblog

Everything AEM aka CQ5 based on my experience listed here.

Adobe AEM The Right Way

Best practices, tips, and tricks for your Adobe AEM project

/home/bkondepudi

A WCM journey with Day/Adobe CQ

Technoracle (a.k.a. "Duane's World")

A multi-purpose toolkit for the Adobe LiveCycle and AEM Forms developer.

Adobe LiveCycle Blog

A multi-purpose toolkit for the Adobe LiveCycle and AEM Forms developer.

A multi-purpose toolkit for the Adobe LiveCycle and AEM Forms developer.

XFA@Mobile

A multi-purpose toolkit for the Adobe LiveCycle and AEM Forms developer.

Code Monkey

Ramblings of a Developer