Are you trying to run this code within AEM or on a LiveCycle Server (or what is now a LC Server)?
So i take it you want to invoke a LC process from AEM?
This code was once used to run on a LC server. I assume you are trying to run on on AEM J2EE for forms server?
I managed to work out a solution and thought I would document it here in case it helps someone else.
Instead of setting the properties for the service client factory myself like this:
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
I used the service client factory provider instead:
ServiceClientFactory myFactory = scfProvider.getDefaultServiceClientFactory();
As described in the page below:
I am connecting to a remote server and had to change my Adobe LiveCycle Client SDK Configuration in configMgr to the remote IP.
After doing this it connected, but I got a different error:
ALC-DSC-099-000: java.lang.UnsupportedOperationException: Deserialization not allowed for class sun.util.calendar.ZoneInfo
To fix that I found a blog post that had the solution of adding "sun.util." to the deserializationFirewall whitelist
See the following for full details:
It then worked.
I assume I was previously missing a setting for the service client factory, but can't be sure.
For completeness, this required the following entry in the core pom file:
Yes that is right - I am connecting to a AEM JEE server. My title for this was a little misleading in hindsight, but I wanted to describe the area of forms that the problem was related too.